fastapi-rtk 0.0.15 → 0.0.18

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.
@@ -2,8 +2,8 @@ var Dd = Object.defineProperty;
2
2
  var Md = (e, t, r) => t in e ? Dd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var ms = (e, t, r) => (Md(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import * as lt from "react";
5
- import je, { useState as fe, useRef as Nd, useCallback as Te, useEffect as ke, useMemo as wt, useReducer as Dc, createContext as Mc, useContext as Co, forwardRef as Nc, createElement as gs, memo as Ao, Fragment as Fd } from "react";
6
- import { Select as Kt, MultiSelect as Fc, PasswordInput as Lc, TextInput as zc, useProps as Be, Modal as Nr, Box as Me, Stack as $o, ScrollArea as Sn, Group as Fr, Button as Yt, Tooltip as mt, ActionIcon as gt, useCombobox as Ld, Pill as ys, Combobox as Er, PillsInput as vs, Flex as Po, Divider as Ia, Text as nt, Popover as ca, Indicator as ci, CloseButton as zd, Loader as Ud, useStyles as ui, Table as Pe, Checkbox as fi, LoadingOverlay as Vd, Tabs as Tr, Paper as Da, Grid as rt, Skeleton as Bd, useMantineTheme as Wd, Pagination as Hd, NumberInput as Gd, Menu as ar, UnstyledButton as qd } from "@mantine/core";
5
+ import je, { useState as fe, useRef as Nd, useCallback as Te, useEffect as $e, useMemo as wt, useReducer as Dc, createContext as Mc, useContext as Co, forwardRef as Nc, createElement as gs, memo as Ao, Fragment as Fd } from "react";
6
+ import { Select as Kt, MultiSelect as Fc, PasswordInput as Lc, TextInput as zc, useProps as Be, Modal as Nr, Box as Me, Stack as $o, ScrollArea as Sn, Group as Fr, Button as Yt, Tooltip as mt, ActionIcon as gt, useCombobox as Ld, Pill as ys, Combobox as Er, PillsInput as vs, Flex as Po, Divider as Ia, Text as nt, Popover as ca, Indicator as ci, CloseButton as zd, Loader as Ud, useStyles as ui, Table as Re, Checkbox as fi, LoadingOverlay as Vd, Tabs as Tr, Paper as Da, Grid as rt, Skeleton as Bd, useMantineTheme as Wd, Pagination as Hd, NumberInput as Gd, Menu as ar, UnstyledButton as qd } from "@mantine/core";
7
7
  import { useForm as di } from "@mantine/form";
8
8
  import { DateInput as Ro, DateTimePicker as Uc } from "@mantine/dates";
9
9
  import { randomId as Gn, useHover as Yd } from "@mantine/hooks";
@@ -11,7 +11,7 @@ import { withJsonFormsControlProps as fr, JsonFormsDispatch as Kd, useJsonForms
11
11
  import { rankWith as Ie, isDateControl as Gc, isDateTimeControl as qc, getAjv as Zd, isNumberControl as Yc, isIntegerControl as Kc, isStringControl as Xc, isBooleanControl as Jc, isEnumControl as Zc, createDefaultValue as Qd, Resolve as ep, encode as xs, Paths as Qc, formatErrorMessage as tp, errorsAt as rp, or as np, isObjectArrayControl as op, isPrimitiveArrayControl as ap, and as _s, uiTypeIs as pi, schemaMatches as ip, hasType as sp, schemaSubPathMatches as lp, resolveSchema as cp } from "@jsonforms/core";
12
12
  import { withEmotionCache as up, ThemeContext as eu, CacheProvider as fp, Global as dp, css as pp, keyframes as hp } from "@emotion/react";
13
13
  import { useNavigate as mp } from "react-router-dom";
14
- var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
+ var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
15
15
  function Ut(e) {
16
16
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
17
17
  }
@@ -53,14 +53,14 @@ function gp() {
53
53
  Es = 1;
54
54
  var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
55
55
  function i(s, l, c) {
56
- var u, f = {}, p = null, y = null;
57
- c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (y = l.ref);
56
+ var u, f = {}, p = null, g = null;
57
+ c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (g = l.ref);
58
58
  for (u in l)
59
59
  n.call(l, u) && !a.hasOwnProperty(u) && (f[u] = l[u]);
60
60
  if (s && s.defaultProps)
61
61
  for (u in l = s.defaultProps, l)
62
62
  f[u] === void 0 && (f[u] = l[u]);
63
- return { $$typeof: t, type: s, key: p, ref: y, props: f, _owner: o.current };
63
+ return { $$typeof: t, type: s, key: p, ref: g, props: f, _owner: o.current };
64
64
  }
65
65
  return rn.Fragment = r, rn.jsx = i, rn.jsxs = i, rn;
66
66
  }
@@ -77,11 +77,11 @@ var nn = {};
77
77
  var Ts;
78
78
  function yp() {
79
79
  return Ts || (Ts = 1, process.env.NODE_ENV !== "production" && function() {
80
- var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = Symbol.iterator, h = "@@iterator";
80
+ var e = je, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, h = "@@iterator";
81
81
  function b(m) {
82
82
  if (m === null || typeof m != "object")
83
83
  return null;
84
- var _ = g && m[g] || m[h];
84
+ var _ = y && m[y] || m[h];
85
85
  return typeof _ == "function" ? _ : null;
86
86
  }
87
87
  var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -89,10 +89,10 @@ function yp() {
89
89
  {
90
90
  for (var _ = arguments.length, R = new Array(_ > 1 ? _ - 1 : 0), z = 1; z < _; z++)
91
91
  R[z - 1] = arguments[z];
92
- D("error", m, R);
92
+ j("error", m, R);
93
93
  }
94
94
  }
95
- function D(m, _, R) {
95
+ function j(m, _, R) {
96
96
  {
97
97
  var z = T.ReactDebugCurrentFrame, Q = z.getStackAddendum();
98
98
  Q !== "" && (_ += "%s", R = R.concat([Q]));
@@ -102,10 +102,10 @@ function yp() {
102
102
  oe.unshift("Warning: " + _), Function.prototype.apply.call(console[m], console, oe);
103
103
  }
104
104
  }
105
- var I = !1, x = !1, O = !1, k = !1, J = !1, ee;
105
+ var D = !1, x = !1, O = !1, k = !1, J = !1, ee;
106
106
  ee = Symbol.for("react.module.reference");
107
107
  function _e(m) {
108
- return !!(typeof m == "string" || typeof m == "function" || m === n || m === a || J || m === o || m === c || m === u || k || m === y || I || x || O || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === f || m.$$typeof === i || m.$$typeof === s || m.$$typeof === l || // This needs to include all possible module reference object
108
+ return !!(typeof m == "string" || typeof m == "function" || m === n || m === a || J || m === o || m === c || m === u || k || m === g || D || x || O || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === f || m.$$typeof === i || m.$$typeof === s || m.$$typeof === l || // This needs to include all possible module reference object
109
109
  // types supported by any Flight configuration anywhere since
110
110
  // we don't know which Flight build this will end up being used
111
111
  // with.
@@ -318,10 +318,10 @@ function yp() {
318
318
  var ye = m ? m.displayName || m.name : "", he = ye ? H(ye) : "";
319
319
  return typeof m == "function" && G.set(m, he), he;
320
320
  }
321
- function $e(m, _, R) {
321
+ function Pe(m, _, R) {
322
322
  return P(m, !1);
323
323
  }
324
- function j(m) {
324
+ function I(m) {
325
325
  var _ = m.prototype;
326
326
  return !!(_ && _.isReactComponent);
327
327
  }
@@ -329,7 +329,7 @@ function yp() {
329
329
  if (m == null)
330
330
  return "";
331
331
  if (typeof m == "function")
332
- return P(m, j(m));
332
+ return P(m, I(m));
333
333
  if (typeof m == "string")
334
334
  return H(m);
335
335
  switch (m) {
@@ -341,7 +341,7 @@ function yp() {
341
341
  if (typeof m == "object")
342
342
  switch (m.$$typeof) {
343
343
  case l:
344
- return $e(m.render);
344
+ return Pe(m.render);
345
345
  case f:
346
346
  return Ge(m.type, _, R);
347
347
  case p: {
@@ -717,31 +717,29 @@ function Oe(...e) {
717
717
  const t = Array.from(Array.isArray(e[0]) ? e[0] : e);
718
718
  return vp(t);
719
719
  }
720
- function hi(e, { autoInvoke: t = !0, ...r }) {
721
- const [n, o] = fe(null), [a, i] = fe(!1), [s, l] = fe(null), c = Nd(null), u = Te(() => {
720
+ function hi(e, { autoInvoke: t = !0, initialLoading: r = !1, ...n }) {
721
+ const [o, a] = fe(null), [i, s] = fe(r), [l, c] = fe(null), u = Nd(null), f = Te(() => {
722
722
  if (e)
723
- return l(null), c.current && c.current.abort(), c.current = new AbortController(), i(!0), fetch(e, { signal: c.current.signal, ...r }).then(async (p) => {
724
- const y = await p.json();
725
- if (!p.ok)
723
+ return c(null), u.current && u.current.abort(), u.current = new AbortController(), s(!0), fetch(e, { signal: u.current.signal, ...n }).then(async (g) => {
724
+ const y = await g.json();
725
+ if (!g.ok)
726
726
  throw new Error(y.detail);
727
- return o(y), y;
728
- }).catch((p) => (p.name !== "AbortError" && l(p), p)).finally(() => {
729
- i(!1);
730
- });
731
- }, [e]), f = Te(() => {
732
- var p;
733
- c.current && ((p = c.current) == null || p.abort(""));
727
+ return a(y), s(!1), y;
728
+ }).catch((g) => (g && g.name !== "AbortError" && (c(g), s(!1)), g));
729
+ }, [e]), p = Te(() => {
730
+ var g;
731
+ u.current && ((g = u.current) == null || g.abort(""), s(!1));
734
732
  }, []);
735
- return ke(() => (t && u(), () => {
736
- c.current && c.current.abort("");
737
- }), [u, t]), { data: n, loading: a, error: s, refetch: u, abort: f };
733
+ return $e(() => (t && f(), () => {
734
+ u.current && u.current.abort("");
735
+ }), [f, t]), { data: o, loading: i, error: l, refetch: f, abort: p };
738
736
  }
739
- function bp({ path: e, autoInvoke: t = !0 }) {
740
- const { fetchPath: r, options: n } = wt(
737
+ function bp({ path: e, autoInvoke: t = !0, initialLoading: r = !0 }) {
738
+ const { fetchPath: n, options: o } = wt(
741
739
  () => Ye({ path: Oe(e, "auth/user"), method: "GET" }),
742
740
  [e]
743
- ), { data: o, loading: a, refetch: i, error: s } = hi(r, { autoInvoke: t, ...n });
744
- return { user: o, loading: a, refetch: i, error: s };
741
+ ), { data: a, loading: i, refetch: s, error: l } = hi(n, { autoInvoke: t, initialLoading: r, ...o });
742
+ return { user: a, loading: i, refetch: s, error: l };
745
743
  }
746
744
  function xp({ path: e, queryParams: t, autoInvoke: r = !0 }) {
747
745
  const { fetchPath: n, options: o } = wt(
@@ -756,52 +754,36 @@ function xp({ path: e, queryParams: t, autoInvoke: r = !0 }) {
756
754
  if (!a)
757
755
  return null;
758
756
  const u = a.result.map((f, p) => {
759
- const y = a.ids[p];
760
- return typeof y == "object" ? { ...f, ...y } : { ...f, id: y };
757
+ const g = a.ids[p];
758
+ return typeof g == "object" ? { ...f, ...g } : { ...f, id: g };
761
759
  });
762
760
  return { ...a, result: u };
763
761
  }, [a]), loading: i, refetch: s, error: l };
764
762
  }
765
763
  const _p = async (e, t) => {
766
- try {
767
- const { fetchPath: r, options: n } = Ye({
768
- path: Oe(e, "/"),
769
- method: "POST",
770
- body: t
771
- }), o = await fetch(r, n), a = await o.json();
772
- if (o.ok)
773
- return a;
774
- throw new Error(a.detail);
775
- } catch (r) {
776
- throw new Error(r);
777
- }
764
+ const { fetchPath: r, options: n } = Ye({
765
+ path: Oe(e, "/"),
766
+ method: "POST",
767
+ body: t
768
+ }), o = await fetch(r, n), a = await o.json();
769
+ if (o.ok)
770
+ return a;
771
+ throw new Error(a.detail);
778
772
  }, Ep = async (e, t) => {
779
- try {
780
- const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "DELETE" }), o = await fetch(r, n), a = await o.json();
781
- if (o.ok)
782
- return a;
783
- throw new Error(a.detail);
784
- } catch (r) {
785
- throw new Error(r);
786
- }
773
+ const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "DELETE" }), o = await fetch(r, n), a = await o.json();
774
+ if (o.ok)
775
+ return a;
776
+ throw new Error(a.detail);
787
777
  }, Tp = async (e, t) => {
788
- try {
789
- const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "GET" }), o = await fetch(r, n), a = await o.json();
790
- if (o.ok)
791
- return a;
792
- throw new Error(a.detail);
793
- } catch (r) {
794
- throw new Error(r);
795
- }
778
+ const { fetchPath: r, options: n } = Ye({ path: Oe(e, t.toString()), method: "GET" }), o = await fetch(r, n), a = await o.json();
779
+ if (o.ok)
780
+ return a;
781
+ throw new Error(a.detail);
796
782
  }, Sp = async (e, t, r) => {
797
- try {
798
- const { fetchPath: n, options: o } = Ye({ path: Oe(e, t.toString()), method: "PUT", body: r }), a = await fetch(n, o), i = await a.json();
799
- if (a.ok)
800
- return i;
801
- throw new Error(i.detail);
802
- } catch (n) {
803
- throw new Error(n);
804
- }
783
+ const { fetchPath: n, options: o } = Ye({ path: Oe(e, t.toString()), method: "PUT", body: r }), a = await fetch(n, o), i = await a.json();
784
+ if (a.ok)
785
+ return i;
786
+ throw new Error(i.detail);
805
787
  }, Ue = (e) => e && typeof e == "object" ? JSON.stringify(e) : e;
806
788
  function Ss(e, t) {
807
789
  const r = e || {
@@ -955,12 +937,12 @@ function nu(e, t) {
955
937
  throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(c));
956
938
  if (!o[u]) {
957
939
  o[u] = !0;
958
- var y = i.get(c) || /* @__PURE__ */ new Set();
959
- if (y = Array.from(y), u = y.length) {
940
+ var g = i.get(c) || /* @__PURE__ */ new Set();
941
+ if (g = Array.from(g), u = g.length) {
960
942
  f.add(c);
961
943
  do {
962
- var g = y[--u];
963
- l(g, s.get(g), f);
944
+ var y = g[--u];
945
+ l(y, s.get(y), f);
964
946
  } while (u);
965
947
  f.delete(c);
966
948
  }
@@ -1222,18 +1204,18 @@ function Sr(e) {
1222
1204
  test: u,
1223
1205
  params: f,
1224
1206
  message: p,
1225
- skipAbsent: y
1207
+ skipAbsent: g
1226
1208
  } = e;
1227
1209
  let {
1228
- parent: g,
1210
+ parent: y,
1229
1211
  context: h,
1230
1212
  abortEarly: b = i.spec.abortEarly,
1231
1213
  disableStackTrace: T = i.spec.disableStackTrace
1232
1214
  } = o;
1233
1215
  function A(F) {
1234
- return Jt.isRef(F) ? F.getValue(r, g, h) : F;
1216
+ return Jt.isRef(F) ? F.getValue(r, y, h) : F;
1235
1217
  }
1236
- function D(F = {}) {
1218
+ function j(F = {}) {
1237
1219
  const te = Object.assign({
1238
1220
  value: r,
1239
1221
  originalValue: a,
@@ -1247,24 +1229,24 @@ function Sr(e) {
1247
1229
  const ce = new ze(ze.formatError(F.message || p, te), r, te.path, F.type || c, te.disableStackTrace);
1248
1230
  return ce.params = te, ce;
1249
1231
  }
1250
- const I = b ? s : l;
1232
+ const D = b ? s : l;
1251
1233
  let x = {
1252
1234
  path: n,
1253
- parent: g,
1235
+ parent: y,
1254
1236
  type: c,
1255
1237
  from: o.from,
1256
- createError: D,
1238
+ createError: j,
1257
1239
  resolve: A,
1258
1240
  options: o,
1259
1241
  originalValue: a,
1260
1242
  schema: i
1261
1243
  };
1262
1244
  const O = (F) => {
1263
- ze.isError(F) ? I(F) : F ? l(null) : I(D());
1245
+ ze.isError(F) ? D(F) : F ? l(null) : D(j());
1264
1246
  }, k = (F) => {
1265
- ze.isError(F) ? I(F) : s(F);
1247
+ ze.isError(F) ? D(F) : s(F);
1266
1248
  };
1267
- if (y && St(r))
1249
+ if (g && St(r))
1268
1250
  return O(!0);
1269
1251
  let ee;
1270
1252
  try {
@@ -1513,10 +1495,10 @@ attempted value: ${i}
1513
1495
  o || (o = !0, r(h, i));
1514
1496
  }, f = (h) => {
1515
1497
  o || (o = !0, n(h, i));
1516
- }, p = a.length, y = [];
1498
+ }, p = a.length, g = [];
1517
1499
  if (!p)
1518
1500
  return f([]);
1519
- let g = {
1501
+ let y = {
1520
1502
  value: i,
1521
1503
  originalValue: s,
1522
1504
  path: l,
@@ -1525,8 +1507,8 @@ attempted value: ${i}
1525
1507
  };
1526
1508
  for (let h = 0; h < a.length; h++) {
1527
1509
  const b = a[h];
1528
- b(g, u, function(A) {
1529
- A && (Array.isArray(A) ? y.push(...A) : y.push(A)), --p <= 0 && f(y);
1510
+ b(y, u, function(A) {
1511
+ A && (Array.isArray(A) ? g.push(...A) : g.push(A)), --p <= 0 && f(g);
1530
1512
  });
1531
1513
  }
1532
1514
  }
@@ -1558,7 +1540,7 @@ attempted value: ${i}
1558
1540
  [l ? "index" : "key"]: s,
1559
1541
  path: l || s.includes(".") ? `${o || ""}[${l ? s : `"${s}"`}]` : (o ? `${o}.` : "") + t
1560
1542
  });
1561
- return (f, p, y) => this.resolve(u)._validate(c, u, p, y);
1543
+ return (f, p, g) => this.resolve(u)._validate(c, u, p, g);
1562
1544
  }
1563
1545
  validate(t, r) {
1564
1546
  var n;
@@ -2370,9 +2352,9 @@ class wi extends Ve {
2370
2352
  __validating: r.__validating || !1
2371
2353
  }), u = !1;
2372
2354
  for (const f of s) {
2373
- let p = a[f], y = f in o;
2355
+ let p = a[f], g = f in o;
2374
2356
  if (p) {
2375
- let g, h = o[f];
2357
+ let y, h = o[f];
2376
2358
  c.path = (r.path ? `${r.path}.` : "") + f, p = p.resolve({
2377
2359
  value: h,
2378
2360
  context: r.context,
@@ -2383,13 +2365,13 @@ class wi extends Ve {
2383
2365
  u = u || f in o;
2384
2366
  continue;
2385
2367
  }
2386
- g = !r.__validating || !T ? (
2368
+ y = !r.__validating || !T ? (
2387
2369
  // TODO: use _cast, this is double resolving
2388
2370
  p.cast(o[f], c)
2389
- ) : o[f], g !== void 0 && (l[f] = g);
2371
+ ) : o[f], y !== void 0 && (l[f] = y);
2390
2372
  } else
2391
- y && !i && (l[f] = o[f]);
2392
- (y !== f in l || l[f] !== o[f]) && (u = !0);
2373
+ g && !i && (l[f] = o[f]);
2374
+ (g !== f in l || l[f] !== o[f]) && (u = !0);
2393
2375
  }
2394
2376
  return u ? l : o;
2395
2377
  }
@@ -2598,11 +2580,11 @@ class Ci extends Ve {
2598
2580
  return;
2599
2581
  }
2600
2582
  let f = new Array(c.length);
2601
- for (let y = 0; y < c.length; y++) {
2583
+ for (let g = 0; g < c.length; g++) {
2602
2584
  var p;
2603
- f[y] = i.asNestedTest({
2585
+ f[g] = i.asNestedTest({
2604
2586
  options: r,
2605
- index: y,
2587
+ index: g,
2606
2588
  parent: c,
2607
2589
  parentPath: r.path,
2608
2590
  originalParent: (p = r.originalValue) != null ? p : t
@@ -2613,7 +2595,7 @@ class Ci extends Ve {
2613
2595
  tests: f,
2614
2596
  originalValue: (u = r.originalValue) != null ? u : t,
2615
2597
  options: r
2616
- }, n, (y) => o(y.concat(l), c));
2598
+ }, n, (g) => o(g.concat(l), c));
2617
2599
  });
2618
2600
  }
2619
2601
  clone(t) {
@@ -2959,7 +2941,7 @@ function _h(e, t) {
2959
2941
  case "initCall":
2960
2942
  return { ...mu };
2961
2943
  case "setUser":
2962
- return { ...e, user: t.payload, loading: !1, error: null };
2944
+ return { ...e, user: t.payload, error: null };
2963
2945
  case "setError":
2964
2946
  return { ...e, loading: !1, error: t.payload };
2965
2947
  case "setLoading":
@@ -2969,98 +2951,102 @@ function _h(e, t) {
2969
2951
  }
2970
2952
  }
2971
2953
  function Eh(e) {
2972
- const [t, r] = Dc(_h, mu), { user: n, refetch: o } = bp({ path: e });
2973
- ke(() => {
2954
+ const [t, r] = Dc(_h, mu), { user: n, refetch: o, loading: a } = bp({ path: e });
2955
+ $e(() => {
2956
+ r({ type: "setLoading", payload: a });
2957
+ }, [a]), $e(() => {
2974
2958
  r({ type: "setUser", payload: n });
2975
2959
  }, [n]);
2976
- const a = Te(
2977
- async ({ username: u, password: f }) => {
2960
+ const i = Te(
2961
+ async ({ username: f, password: p }) => {
2978
2962
  r({ type: "initCall" });
2979
2963
  try {
2980
- const p = new FormData();
2981
- p.append("username", u), p.append("password", f);
2982
- const { fetchPath: y, options: g } = Ye({
2964
+ const g = new FormData();
2965
+ g.append("username", f), g.append("password", p);
2966
+ const { fetchPath: y, options: h } = Ye({
2983
2967
  path: Oe(e, "auth/login"),
2984
2968
  method: "POST"
2985
2969
  });
2986
2970
  (await fetch(y, {
2987
- ...g,
2971
+ ...h,
2988
2972
  headers: {
2989
2973
  "Content-Type": "application/x-www-form-urlencoded"
2990
2974
  },
2991
- body: new URLSearchParams(p)
2975
+ body: new URLSearchParams(g)
2992
2976
  })).ok ? o() : r({ type: "setError", payload: "Username or password wrong." });
2993
- } catch (p) {
2994
- console.error("signin error", p), r({ type: "setError", payload: "Failed to fetch" });
2977
+ } catch (g) {
2978
+ console.error("signin error", g), r({ type: "setError", payload: "Failed to fetch" });
2995
2979
  }
2996
2980
  },
2997
2981
  [e, o]
2998
- ), i = Te(async () => {
2982
+ ), s = Te(async () => {
2999
2983
  r({ type: "initCall" });
3000
2984
  try {
3001
- const { fetchPath: u, options: f } = Ye({ path: Oe(e, "auth/logout"), method: "POST" });
3002
- (await fetch(u, f)).ok ? r({ type: "setUser", payload: null }) : r({ type: "setError", payload: "Couldn't sign out user" });
3003
- } catch (u) {
3004
- console.error("signout error", u), r({ type: "setError", payload: "Failed to fetch" });
2985
+ const { fetchPath: f, options: p } = Ye({ path: Oe(e, "auth/logout"), method: "POST" });
2986
+ (await fetch(f, p)).ok ? r({ type: "setUser", payload: null }) : r({ type: "setError", payload: "Couldn't sign out user" });
2987
+ } catch (f) {
2988
+ console.error("signout error", f), r({ type: "setError", payload: "Failed to fetch" });
2989
+ } finally {
2990
+ r({ type: "setLoading", payload: !1 });
3005
2991
  }
3006
- }, [e]), s = Te(
3007
- async (u) => {
2992
+ }, [e]), l = Te(
2993
+ async (f) => {
3008
2994
  r({ type: "initCall" });
3009
2995
  try {
3010
- const { fetchPath: f, options: p } = Ye({
2996
+ const { fetchPath: p, options: g } = Ye({
3011
2997
  path: Oe(e, "auth/user"),
3012
2998
  method: "PUT",
3013
- body: u
2999
+ body: f
3014
3000
  });
3015
- (await fetch(f, p)).ok && o(), r({ type: "setError", payload: "Couldn't update user data" });
3016
- } catch (f) {
3017
- console.error("update error", f), r({ type: "setError", payload: "Failed to post" });
3001
+ (await fetch(p, g)).ok && o(), r({ type: "setError", payload: "Couldn't update user data" });
3002
+ } catch (p) {
3003
+ console.error("update error", p), r({ type: "setError", payload: "Failed to post" });
3018
3004
  }
3019
3005
  },
3020
3006
  [e, o]
3021
- ), l = Te(
3022
- async (u) => {
3007
+ ), c = Te(
3008
+ async (f) => {
3023
3009
  if (!n.email)
3024
3010
  return r({ type: "setError", payload: "No email found" });
3025
3011
  try {
3026
- const { fetchPath: f, options: p } = Ye({
3012
+ const { fetchPath: p, options: g } = Ye({
3027
3013
  path: Oe(e, "auth/forgot-password"),
3028
3014
  method: "POST",
3029
3015
  body: { email: n.email }
3030
- }), y = await fetch(f, p);
3016
+ }), y = await fetch(p, g);
3031
3017
  if (!y.ok) {
3032
3018
  r({ type: "setError", payload: "Couldn't request token to reset password" });
3033
3019
  return;
3034
3020
  }
3035
- const g = await y.json(), { token: h } = g, { fetchPath: b, options: T } = Ye({
3021
+ const h = await y.json(), { token: b } = h, { fetchPath: T, options: A } = Ye({
3036
3022
  path: Oe(e, "auth/reset-password"),
3037
3023
  method: "POST",
3038
- body: { token: h, password: u }
3024
+ body: { token: b, password: f }
3039
3025
  });
3040
- if (!(await fetch(b, T)).ok) {
3026
+ if (!(await fetch(T, A)).ok) {
3041
3027
  r({ type: "setError", payload: "Couldn't reset password" });
3042
3028
  return;
3043
3029
  }
3044
3030
  o();
3045
- } catch (f) {
3046
- console.error("resetPassword error", f), r({ type: "setError", payload: "Failed to post" });
3031
+ } catch (p) {
3032
+ console.error("resetPassword error", p), r({ type: "setError", payload: "Failed to post" });
3047
3033
  }
3048
3034
  },
3049
3035
  [e, o, n == null ? void 0 : n.email]
3050
- ), c = Te(
3051
- (u, f) => {
3052
- const p = Oe(e, "auth/login", u);
3053
- if (f) {
3054
- const h = window.screenLeft + window.outerWidth / 2 - 250, b = window.screenTop + window.outerHeight / 2 - 500 / 2, T = window.open(
3055
- p + "?popup=true",
3036
+ ), u = Te(
3037
+ (f, p) => {
3038
+ const g = Oe(e, "auth/login", f);
3039
+ if (p) {
3040
+ const b = window.screenLeft + window.outerWidth / 2 - 250, T = window.screenTop + window.outerHeight / 2 - 500 / 2, A = window.open(
3041
+ g + "?popup=true",
3056
3042
  "auth",
3057
- `toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${b}, left=${h}`
3058
- ), A = window.setInterval(function() {
3059
- T.closed !== !1 && (window.clearInterval(A), o());
3043
+ `toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${T}, left=${b}`
3044
+ ), j = window.setInterval(function() {
3045
+ A.closed !== !1 && (window.clearInterval(j), o());
3060
3046
  }, 200);
3061
3047
  return;
3062
3048
  }
3063
- window.location.href = Oe(e, "auth/login", u);
3049
+ window.location.href = Oe(e, "auth/login", f);
3064
3050
  },
3065
3051
  [e, o]
3066
3052
  );
@@ -3068,25 +3054,25 @@ function Eh(e) {
3068
3054
  user: t.user,
3069
3055
  loading: t.loading,
3070
3056
  error: t.error,
3071
- signin: a,
3072
- signout: i,
3073
- update: s,
3074
- resetPassword: l,
3075
- oauth_signin: c
3057
+ signin: i,
3058
+ signout: s,
3059
+ update: l,
3060
+ resetPassword: c,
3061
+ oauth_signin: u
3076
3062
  };
3077
3063
  }
3078
3064
  function Th(e, t) {
3079
3065
  const { user: r } = t, [n, o] = fe(null), [a, i] = fe(!0), [s, l] = fe({ error: "401 Not authorized", message: "User is not logged in." });
3080
- ke(() => {
3066
+ $e(() => {
3081
3067
  r && c(e);
3082
3068
  }, [r]);
3083
3069
  const c = async (u) => {
3084
3070
  i(!0);
3085
3071
  try {
3086
- const { fetchPath: f, options: p } = Ye({ path: Oe(u, "info/"), method: "GET" }), y = await fetch(f, p);
3087
- if (y.ok) {
3088
- const g = await y.json();
3089
- o(g);
3072
+ const { fetchPath: f, options: p } = Ye({ path: Oe(u, "info/"), method: "GET" }), g = await fetch(f, p);
3073
+ if (g.ok) {
3074
+ const y = await g.json();
3075
+ o(y);
3090
3076
  } else
3091
3077
  l({ error: "404 Not Found", message: "Couldn't fetch info" });
3092
3078
  } catch {
@@ -3112,15 +3098,11 @@ function GR(e) {
3112
3098
  return /* @__PURE__ */ d.jsx(Pi.Provider, { value: { auth: o, info: a }, children: n });
3113
3099
  }
3114
3100
  const Oh = async (e, t, r) => {
3115
- try {
3116
- const { fetchPath: n, options: o } = Ye({ path: Oe(t, "/download"), method: "POST" }), a = await fetch(n, { ...o, body: JSON.stringify(r) });
3117
- if (!a.ok)
3118
- throw new Error(a.statusText);
3119
- const i = await a.blob(), s = document.createElement("a"), l = URL.createObjectURL(i);
3120
- s.href = l, s.download = e.toLowerCase() + ".csv", s.click();
3121
- } catch (n) {
3122
- throw new Error(n);
3123
- }
3101
+ const { fetchPath: n, options: o } = Ye({ path: Oe(t, "/download"), method: "POST" }), a = await fetch(n, { ...o, body: JSON.stringify(r) });
3102
+ if (!a.ok)
3103
+ throw new Error(a.statusText);
3104
+ const i = await a.blob(), s = document.createElement("a"), l = URL.createObjectURL(i);
3105
+ s.href = l, s.download = e.toLowerCase() + ".csv", s.click();
3124
3106
  }, Ds = {
3125
3107
  queryParams: null,
3126
3108
  loading: !1,
@@ -3158,11 +3140,11 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3158
3140
  error: f
3159
3141
  } = xh({ path: e, autoInvoke: n }), {
3160
3142
  data: p,
3161
- loading: y,
3162
- refetch: g,
3143
+ loading: g,
3144
+ refetch: y,
3163
3145
  error: h
3164
3146
  } = xp({ path: e, queryParams: i, autoInvoke: s });
3165
- ke(() => {
3147
+ $e(() => {
3166
3148
  if (f) {
3167
3149
  a({ type: "setError", payload: { message: "Couldn't fetch info", originalError: f } });
3168
3150
  return;
@@ -3172,9 +3154,9 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3172
3154
  return;
3173
3155
  }
3174
3156
  a({ type: "setError", payload: Ds.error });
3175
- }, [f, h]), ke(() => {
3176
- a({ type: "setLoading", payload: c || y });
3177
- }, [y, c]);
3157
+ }, [f, h]), $e(() => {
3158
+ a({ type: "setLoading", payload: c || g });
3159
+ }, [g, c]);
3178
3160
  const b = Te(
3179
3161
  (O) => {
3180
3162
  const k = Ss(o.queryParams, O);
@@ -3194,17 +3176,17 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3194
3176
  async (O, k) => {
3195
3177
  try {
3196
3178
  const J = await _p(e, O);
3197
- return k || (u(), g()), J;
3179
+ return k || (u(), y()), J;
3198
3180
  } catch (J) {
3199
3181
  a({ type: "setError", payload: { message: "Couldnt add item.", originalError: J } });
3200
3182
  }
3201
3183
  },
3202
- [g, u, e]
3203
- ), D = Te(
3184
+ [y, u, e]
3185
+ ), j = Te(
3204
3186
  async (O, k, J) => {
3205
3187
  try {
3206
3188
  const ee = await Sp(e, Ue(O), k);
3207
- return J || (u(), g()), ee;
3189
+ return J || (u(), y()), ee;
3208
3190
  } catch (ee) {
3209
3191
  a({
3210
3192
  type: "setError",
@@ -3212,12 +3194,12 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3212
3194
  });
3213
3195
  }
3214
3196
  },
3215
- [g, u, e]
3216
- ), I = Te(
3197
+ [y, u, e]
3198
+ ), D = Te(
3217
3199
  async (O, k) => {
3218
3200
  try {
3219
3201
  const J = await Ep(e, Ue(O));
3220
- return k || (u(), g()), J;
3202
+ return k || (u(), y()), J;
3221
3203
  } catch (J) {
3222
3204
  a({
3223
3205
  type: "setError",
@@ -3225,7 +3207,7 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3225
3207
  });
3226
3208
  }
3227
3209
  },
3228
- [g, u, e]
3210
+ [y, u, e]
3229
3211
  ), x = Te(
3230
3212
  async (O) => {
3231
3213
  try {
@@ -3244,11 +3226,11 @@ function Ah({ path: e, initialQueryParams: t, relation: r, fetchInfo: n = !0 })
3244
3226
  loading: o.loading,
3245
3227
  error: o.error,
3246
3228
  setQueryParams: b,
3247
- refetch: g,
3229
+ refetch: y,
3248
3230
  getEntry: T,
3249
3231
  addEntry: A,
3250
- updateEntry: D,
3251
- deleteEntry: I,
3232
+ updateEntry: j,
3233
+ deleteEntry: D,
3252
3234
  download: x
3253
3235
  };
3254
3236
  }
@@ -3492,7 +3474,7 @@ function Lh({ opened: e, onClose: t, ...r }) {
3492
3474
  }), u = async (f) => {
3493
3475
  await o(f), c.reset(), t();
3494
3476
  };
3495
- return ke(() => {
3477
+ return $e(() => {
3496
3478
  c.setInitialValues(n.add.defaultValues), c.reset();
3497
3479
  }, [n.add.defaultValues]), /* @__PURE__ */ d.jsx(
3498
3480
  Nr,
@@ -3537,8 +3519,8 @@ function zh() {
3537
3519
  if (Ns)
3538
3520
  return ae;
3539
3521
  Ns = 1;
3540
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3541
- function D(x) {
3522
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3523
+ function j(x) {
3542
3524
  if (typeof x == "object" && x !== null) {
3543
3525
  var O = x.$$typeof;
3544
3526
  switch (O) {
@@ -3555,8 +3537,8 @@ function zh() {
3555
3537
  switch (x = x && x.$$typeof, x) {
3556
3538
  case s:
3557
3539
  case u:
3558
- case g:
3559
3540
  case y:
3541
+ case g:
3560
3542
  case i:
3561
3543
  return x;
3562
3544
  default:
@@ -3568,36 +3550,36 @@ function zh() {
3568
3550
  }
3569
3551
  }
3570
3552
  }
3571
- function I(x) {
3572
- return D(x) === c;
3553
+ function D(x) {
3554
+ return j(x) === c;
3573
3555
  }
3574
- return ae.AsyncMode = l, ae.ConcurrentMode = c, ae.ContextConsumer = s, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = n, ae.Lazy = g, ae.Memo = y, ae.Portal = r, ae.Profiler = a, ae.StrictMode = o, ae.Suspense = f, ae.isAsyncMode = function(x) {
3575
- return I(x) || D(x) === l;
3576
- }, ae.isConcurrentMode = I, ae.isContextConsumer = function(x) {
3577
- return D(x) === s;
3556
+ return ae.AsyncMode = l, ae.ConcurrentMode = c, ae.ContextConsumer = s, ae.ContextProvider = i, ae.Element = t, ae.ForwardRef = u, ae.Fragment = n, ae.Lazy = y, ae.Memo = g, ae.Portal = r, ae.Profiler = a, ae.StrictMode = o, ae.Suspense = f, ae.isAsyncMode = function(x) {
3557
+ return D(x) || j(x) === l;
3558
+ }, ae.isConcurrentMode = D, ae.isContextConsumer = function(x) {
3559
+ return j(x) === s;
3578
3560
  }, ae.isContextProvider = function(x) {
3579
- return D(x) === i;
3561
+ return j(x) === i;
3580
3562
  }, ae.isElement = function(x) {
3581
3563
  return typeof x == "object" && x !== null && x.$$typeof === t;
3582
3564
  }, ae.isForwardRef = function(x) {
3583
- return D(x) === u;
3565
+ return j(x) === u;
3584
3566
  }, ae.isFragment = function(x) {
3585
- return D(x) === n;
3567
+ return j(x) === n;
3586
3568
  }, ae.isLazy = function(x) {
3587
- return D(x) === g;
3569
+ return j(x) === y;
3588
3570
  }, ae.isMemo = function(x) {
3589
- return D(x) === y;
3571
+ return j(x) === g;
3590
3572
  }, ae.isPortal = function(x) {
3591
- return D(x) === r;
3573
+ return j(x) === r;
3592
3574
  }, ae.isProfiler = function(x) {
3593
- return D(x) === a;
3575
+ return j(x) === a;
3594
3576
  }, ae.isStrictMode = function(x) {
3595
- return D(x) === o;
3577
+ return j(x) === o;
3596
3578
  }, ae.isSuspense = function(x) {
3597
- return D(x) === f;
3579
+ return j(x) === f;
3598
3580
  }, ae.isValidElementType = function(x) {
3599
- return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === g || x.$$typeof === y || x.$$typeof === i || x.$$typeof === s || x.$$typeof === u || x.$$typeof === b || x.$$typeof === T || x.$$typeof === A || x.$$typeof === h);
3600
- }, ae.typeOf = D, ae;
3581
+ return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === y || x.$$typeof === g || x.$$typeof === i || x.$$typeof === s || x.$$typeof === u || x.$$typeof === b || x.$$typeof === T || x.$$typeof === A || x.$$typeof === h);
3582
+ }, ae.typeOf = j, ae;
3601
3583
  }
3602
3584
  var ie = {};
3603
3585
  /** @license React v16.13.1
@@ -3611,84 +3593,84 @@ var ie = {};
3611
3593
  var Fs;
3612
3594
  function Uh() {
3613
3595
  return Fs || (Fs = 1, process.env.NODE_ENV !== "production" && function() {
3614
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3615
- function D(P) {
3596
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
3597
+ function j(P) {
3616
3598
  return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3617
- P === n || P === c || P === a || P === o || P === f || P === p || typeof P == "object" && P !== null && (P.$$typeof === g || P.$$typeof === y || P.$$typeof === i || P.$$typeof === s || P.$$typeof === u || P.$$typeof === b || P.$$typeof === T || P.$$typeof === A || P.$$typeof === h);
3599
+ P === n || P === c || P === a || P === o || P === f || P === p || typeof P == "object" && P !== null && (P.$$typeof === y || P.$$typeof === g || P.$$typeof === i || P.$$typeof === s || P.$$typeof === u || P.$$typeof === b || P.$$typeof === T || P.$$typeof === A || P.$$typeof === h);
3618
3600
  }
3619
- function I(P) {
3601
+ function D(P) {
3620
3602
  if (typeof P == "object" && P !== null) {
3621
- var $e = P.$$typeof;
3622
- switch ($e) {
3603
+ var Pe = P.$$typeof;
3604
+ switch (Pe) {
3623
3605
  case t:
3624
- var j = P.type;
3625
- switch (j) {
3606
+ var I = P.type;
3607
+ switch (I) {
3626
3608
  case l:
3627
3609
  case c:
3628
3610
  case n:
3629
3611
  case a:
3630
3612
  case o:
3631
3613
  case f:
3632
- return j;
3614
+ return I;
3633
3615
  default:
3634
- var Ge = j && j.$$typeof;
3616
+ var Ge = I && I.$$typeof;
3635
3617
  switch (Ge) {
3636
3618
  case s:
3637
3619
  case u:
3638
- case g:
3639
3620
  case y:
3621
+ case g:
3640
3622
  case i:
3641
3623
  return Ge;
3642
3624
  default:
3643
- return $e;
3625
+ return Pe;
3644
3626
  }
3645
3627
  }
3646
3628
  case r:
3647
- return $e;
3629
+ return Pe;
3648
3630
  }
3649
3631
  }
3650
3632
  }
3651
- var x = l, O = c, k = s, J = i, ee = t, _e = u, F = n, te = g, ce = y, pe = r, He = a, Ae = o, Ze = f, it = !1;
3633
+ var x = l, O = c, k = s, J = i, ee = t, _e = u, F = n, te = y, ce = g, pe = r, He = a, Ae = o, Ze = f, it = !1;
3652
3634
  function xt(P) {
3653
- return it || (it = !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.")), S(P) || I(P) === l;
3635
+ return it || (it = !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.")), S(P) || D(P) === l;
3654
3636
  }
3655
3637
  function S(P) {
3656
- return I(P) === c;
3638
+ return D(P) === c;
3657
3639
  }
3658
3640
  function C(P) {
3659
- return I(P) === s;
3641
+ return D(P) === s;
3660
3642
  }
3661
3643
  function W(P) {
3662
- return I(P) === i;
3644
+ return D(P) === i;
3663
3645
  }
3664
3646
  function M(P) {
3665
3647
  return typeof P == "object" && P !== null && P.$$typeof === t;
3666
3648
  }
3667
3649
  function U(P) {
3668
- return I(P) === u;
3650
+ return D(P) === u;
3669
3651
  }
3670
3652
  function N(P) {
3671
- return I(P) === n;
3653
+ return D(P) === n;
3672
3654
  }
3673
3655
  function L(P) {
3674
- return I(P) === g;
3656
+ return D(P) === y;
3675
3657
  }
3676
3658
  function B(P) {
3677
- return I(P) === y;
3659
+ return D(P) === g;
3678
3660
  }
3679
3661
  function H(P) {
3680
- return I(P) === r;
3662
+ return D(P) === r;
3681
3663
  }
3682
3664
  function q(P) {
3683
- return I(P) === a;
3665
+ return D(P) === a;
3684
3666
  }
3685
3667
  function G(P) {
3686
- return I(P) === o;
3668
+ return D(P) === o;
3687
3669
  }
3688
3670
  function Ee(P) {
3689
- return I(P) === f;
3671
+ return D(P) === f;
3690
3672
  }
3691
- ie.AsyncMode = x, ie.ConcurrentMode = O, ie.ContextConsumer = k, ie.ContextProvider = J, ie.Element = ee, ie.ForwardRef = _e, ie.Fragment = F, ie.Lazy = te, ie.Memo = ce, ie.Portal = pe, ie.Profiler = He, ie.StrictMode = Ae, ie.Suspense = Ze, ie.isAsyncMode = xt, ie.isConcurrentMode = S, ie.isContextConsumer = C, ie.isContextProvider = W, ie.isElement = M, ie.isForwardRef = U, ie.isFragment = N, ie.isLazy = L, ie.isMemo = B, ie.isPortal = H, ie.isProfiler = q, ie.isStrictMode = G, ie.isSuspense = Ee, ie.isValidElementType = D, ie.typeOf = I;
3673
+ ie.AsyncMode = x, ie.ConcurrentMode = O, ie.ContextConsumer = k, ie.ContextProvider = J, ie.Element = ee, ie.ForwardRef = _e, ie.Fragment = F, ie.Lazy = te, ie.Memo = ce, ie.Portal = pe, ie.Profiler = He, ie.StrictMode = Ae, ie.Suspense = Ze, ie.isAsyncMode = xt, ie.isConcurrentMode = S, ie.isContextConsumer = C, ie.isContextProvider = W, ie.isElement = M, ie.isForwardRef = U, ie.isFragment = N, ie.isLazy = L, ie.isMemo = B, ie.isPortal = H, ie.isProfiler = q, ie.isStrictMode = G, ie.isSuspense = Ee, ie.isValidElementType = j, ie.typeOf = D;
3692
3674
  }()), ie;
3693
3675
  }
3694
3676
  var Ls;
@@ -3790,16 +3772,16 @@ function Bh() {
3790
3772
  throw p.name = "Invariant Violation", p;
3791
3773
  }
3792
3774
  f = a[u](i, u, l, s, null, t);
3793
- } catch (g) {
3794
- f = g;
3775
+ } catch (y) {
3776
+ f = y;
3795
3777
  }
3796
3778
  if (f && !(f instanceof Error) && e(
3797
3779
  (l || "React class") + ": type specification of " + s + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
3798
3780
  ), f instanceof Error && !(f.message in r)) {
3799
3781
  r[f.message] = !0;
3800
- var y = c ? c() : "";
3782
+ var g = c ? c() : "";
3801
3783
  e(
3802
- "Failed " + s + " type: " + f.message + (y ?? "")
3784
+ "Failed " + s + " type: " + f.message + (g ?? "")
3803
3785
  );
3804
3786
  }
3805
3787
  }
@@ -3834,7 +3816,7 @@ function Wh() {
3834
3816
  if (typeof C == "function")
3835
3817
  return C;
3836
3818
  }
3837
- var p = "<<anonymous>>", y = {
3819
+ var p = "<<anonymous>>", g = {
3838
3820
  array: T("array"),
3839
3821
  bigint: T("bigint"),
3840
3822
  bool: T("boolean"),
@@ -3844,8 +3826,8 @@ function Wh() {
3844
3826
  string: T("string"),
3845
3827
  symbol: T("symbol"),
3846
3828
  any: A(),
3847
- arrayOf: D,
3848
- element: I(),
3829
+ arrayOf: j,
3830
+ element: D(),
3849
3831
  elementType: x(),
3850
3832
  instanceOf: O,
3851
3833
  node: _e(),
@@ -3855,7 +3837,7 @@ function Wh() {
3855
3837
  shape: te,
3856
3838
  exact: ce
3857
3839
  };
3858
- function g(S, C) {
3840
+ function y(S, C) {
3859
3841
  return S === C ? S !== 0 || 1 / S === 1 / C : S !== S && C !== C;
3860
3842
  }
3861
3843
  function h(S, C) {
@@ -3873,11 +3855,11 @@ function Wh() {
3873
3855
  );
3874
3856
  throw P.name = "Invariant Violation", P;
3875
3857
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
3876
- var $e = H + ":" + B;
3877
- !C[$e] && // Avoid spamming the console because they are often not actionable except for lib authors
3858
+ var Pe = H + ":" + B;
3859
+ !C[Pe] && // Avoid spamming the console because they are often not actionable except for lib authors
3878
3860
  W < 3 && (a(
3879
3861
  "You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
3880
- ), C[$e] = !0, W++);
3862
+ ), C[Pe] = !0, W++);
3881
3863
  }
3882
3864
  }
3883
3865
  return L[B] == null ? N ? L[B] === null ? new h("The " + q + " `" + G + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new h("The " + q + " `" + G + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : S(L, B, H, q, G);
@@ -3902,7 +3884,7 @@ function Wh() {
3902
3884
  function A() {
3903
3885
  return b(i);
3904
3886
  }
3905
- function D(S) {
3887
+ function j(S) {
3906
3888
  function C(W, M, U, N, L) {
3907
3889
  if (typeof S != "function")
3908
3890
  return new h("Property `" + L + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
@@ -3920,7 +3902,7 @@ function Wh() {
3920
3902
  }
3921
3903
  return b(C);
3922
3904
  }
3923
- function I() {
3905
+ function D() {
3924
3906
  function S(C, W, M, U, N) {
3925
3907
  var L = C[W];
3926
3908
  if (!s(L)) {
@@ -3959,11 +3941,11 @@ function Wh() {
3959
3941
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
3960
3942
  function C(W, M, U, N, L) {
3961
3943
  for (var B = W[M], H = 0; H < S.length; H++)
3962
- if (g(B, S[H]))
3944
+ if (y(B, S[H]))
3963
3945
  return null;
3964
3946
  var q = JSON.stringify(S, function(Ee, P) {
3965
- var $e = Ze(P);
3966
- return $e === "symbol" ? String(P) : P;
3947
+ var Pe = Ze(P);
3948
+ return Pe === "symbol" ? String(P) : P;
3967
3949
  });
3968
3950
  return new h("Invalid " + N + " `" + L + "` of value `" + String(B) + "` " + ("supplied to `" + U + "`, expected one of " + q + "."));
3969
3951
  }
@@ -4003,8 +3985,8 @@ function Wh() {
4003
3985
  return null;
4004
3986
  P.data && n(P.data, "expectedType") && q.push(P.data.expectedType);
4005
3987
  }
4006
- var $e = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
4007
- return new h("Invalid " + B + " `" + H + "` supplied to " + ("`" + L + "`" + $e + "."));
3988
+ var Pe = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
3989
+ return new h("Invalid " + B + " `" + H + "` supplied to " + ("`" + L + "`" + Pe + "."));
4008
3990
  }
4009
3991
  return b(M);
4010
3992
  }
@@ -4128,7 +4110,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
4128
4110
  function xt(S) {
4129
4111
  return !S.constructor || !S.constructor.name ? p : S.constructor.name;
4130
4112
  }
4131
- return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
4113
+ return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
4132
4114
  }, ga;
4133
4115
  }
4134
4116
  var ya, Hs;
@@ -4227,7 +4209,7 @@ var Kh = {
4227
4209
  strokeWidth: c,
4228
4210
  className: `tabler-icon tabler-icon-${e}`
4229
4211
  }), f),
4230
- [...r.map(([p, y]) => gs(p, y)), ...u || []]
4212
+ [...r.map(([p, g]) => gs(p, g)), ...u || []]
4231
4213
  );
4232
4214
  }
4233
4215
  );
@@ -4408,8 +4390,8 @@ function pm({ form: e, name: t, ...r }) {
4408
4390
  onDropdownOpen: () => n.updateSelectedOptionIndex("active")
4409
4391
  }), [o, a] = fe([]), [i, s] = fe(""), l = (f) => {
4410
4392
  i !== "" && (o.includes(i) || a((p) => [...p, i]), s(""));
4411
- }, c = (f) => a((p) => p.filter((y) => y !== f)), u = o.map((f) => /* @__PURE__ */ d.jsx(ys, { withRemoveButton: !0, onRemove: () => c(f), children: f }, f));
4412
- return ke(() => {
4393
+ }, c = (f) => a((p) => p.filter((g) => g !== f)), u = o.map((f) => /* @__PURE__ */ d.jsx(ys, { withRemoveButton: !0, onRemove: () => c(f), children: f }, f));
4394
+ return $e(() => {
4413
4395
  if (e.getInputProps(t).value)
4414
4396
  try {
4415
4397
  const f = JSON.parse(String(e.getInputProps(t).value));
@@ -4419,7 +4401,7 @@ function pm({ form: e, name: t, ...r }) {
4419
4401
  }
4420
4402
  else
4421
4403
  e.getInputProps(t).onChange([]);
4422
- }, []), ke(() => {
4404
+ }, []), $e(() => {
4423
4405
  e.getInputProps(t).onChange(o);
4424
4406
  }, [o]), /* @__PURE__ */ d.jsxs(
4425
4407
  Er,
@@ -4477,9 +4459,9 @@ function hm({ onClose: e, ...t }) {
4477
4459
  size: "sm",
4478
4460
  c: "gray"
4479
4461
  }, t);
4480
- ke(() => {
4462
+ $e(() => {
4481
4463
  i.setValues({ filters: [] }), i.reset();
4482
- }, [a]), ke(() => {
4464
+ }, [a]), $e(() => {
4483
4465
  if (n.filters && n.filters.length) {
4484
4466
  const f = n.filters.map((p) => ({
4485
4467
  ...p,
@@ -4489,8 +4471,8 @@ function hm({ onClose: e, ...t }) {
4489
4471
  }
4490
4472
  }, [n.filters]);
4491
4473
  const c = (f) => {
4492
- const p = f.filters.map(({ key: g, ...h }) => h), y = JSON.parse(JSON.stringify(p));
4493
- o({ filters: y, page: 0 }), e();
4474
+ const p = f.filters.map(({ key: y, ...h }) => h), g = JSON.parse(JSON.stringify(p));
4475
+ o({ filters: g, page: 0 }), e();
4494
4476
  }, u = i.values.filters.map((f, p) => /* @__PURE__ */ d.jsxs(Me, { px: "sm", children: [
4495
4477
  /* @__PURE__ */ d.jsxs(Po, { my: "md", gap: "md", style: { whiteSpace: "nowrap" }, children: [
4496
4478
  /* @__PURE__ */ d.jsx(Me, { style: { width: "192px" }, children: r && r.filters && /* @__PURE__ */ d.jsx(
@@ -4498,12 +4480,12 @@ function hm({ onClose: e, ...t }) {
4498
4480
  {
4499
4481
  form: i,
4500
4482
  name: `filters.${p}.col`,
4501
- items: Object.entries(r.filters).map(([y, g]) => ({
4502
- label: g.label,
4503
- value: String(y)
4483
+ items: Object.entries(r.filters).map(([g, y]) => ({
4484
+ label: y.label,
4485
+ value: String(g)
4504
4486
  })),
4505
- onChange: (y) => {
4506
- i.setFieldValue(`filters.${p}`, { col: y, opr: "", value: "", key: Gn() });
4487
+ onChange: (g) => {
4488
+ i.setFieldValue(`filters.${p}`, { col: g, opr: "", value: "", key: Gn() });
4507
4489
  }
4508
4490
  }
4509
4491
  ) }),
@@ -4512,14 +4494,14 @@ function hm({ onClose: e, ...t }) {
4512
4494
  {
4513
4495
  form: i,
4514
4496
  name: `filters.${p}.opr`,
4515
- items: r.filters[f.col].filters.map((y) => ({
4516
- label: y.name,
4517
- value: y.operator
4497
+ items: r.filters[f.col].filters.map((g) => ({
4498
+ label: g.name,
4499
+ value: g.operator
4518
4500
  })),
4519
- onChange: (y) => {
4501
+ onChange: (g) => {
4520
4502
  i.setFieldValue(`filters.${p}`, {
4521
4503
  col: i.values.filters[p].col,
4522
- opr: y,
4504
+ opr: g,
4523
4505
  value: "",
4524
4506
  key: Gn()
4525
4507
  });
@@ -4643,29 +4625,29 @@ function va({
4643
4625
  customElement: l,
4644
4626
  ...c
4645
4627
  }) {
4646
- const { queryParams: u, setQueryParams: f, loading: p } = We(), y = {
4628
+ const { queryParams: u, setQueryParams: f, loading: p } = We(), g = {
4647
4629
  fw: 700,
4648
4630
  size: "sm",
4649
4631
  color: "gray.8",
4650
4632
  hoverColor: "gray.6",
4651
4633
  selectedColor: "blue"
4652
- }, g = ui({
4634
+ }, y = ui({
4653
4635
  name: "FieldTitle",
4654
4636
  classes: Js,
4655
4637
  classNames: i,
4656
4638
  styles: s,
4657
4639
  props: c
4658
- }), h = Be("FieldTitle", y, c), { hovered: b, ref: T } = Yd(), A = r && u.order_column === r;
4640
+ }), h = Be("FieldTitle", g, c), { hovered: b, ref: T } = Yd(), A = r && u.order_column === r;
4659
4641
  return /* @__PURE__ */ d.jsx(
4660
- Pe.Th,
4642
+ Re.Th,
4661
4643
  {
4662
4644
  className: Js.fieldTitleRoot,
4663
- ...g("root"),
4645
+ ...y("root"),
4664
4646
  onClick: r && !p ? () => f({
4665
4647
  order_column: r,
4666
4648
  order_direction: u.order_direction === "asc" ? "desc" : "asc"
4667
4649
  }) : null,
4668
- children: /* @__PURE__ */ d.jsx(Me, { ref: T, ...g("wrapper"), children: e === "Checkbox" ? /* @__PURE__ */ d.jsx(fi, { pb: 5, pl: 2, onChange: o, checked: a }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
4650
+ children: /* @__PURE__ */ d.jsx(Me, { ref: T, ...y("wrapper"), children: e === "Checkbox" ? /* @__PURE__ */ d.jsx(fi, { pb: 5, pl: 2, onChange: o, checked: a }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
4669
4651
  /* @__PURE__ */ d.jsx(
4670
4652
  Me,
4671
4653
  {
@@ -4681,9 +4663,9 @@ function va({
4681
4663
  {
4682
4664
  label: "rel",
4683
4665
  style: { indicator: { top: "-1px !important", right: "-2px !important", padding: "4px" } },
4684
- children: /* @__PURE__ */ d.jsx(Me, { ...g("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4666
+ children: /* @__PURE__ */ d.jsx(Me, { ...y("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4685
4667
  }
4686
- ) }) : /* @__PURE__ */ d.jsx(Me, { ...g("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4668
+ ) }) : /* @__PURE__ */ d.jsx(Me, { ...y("icon"), children: A ? u.order_direction === "asc" ? /* @__PURE__ */ d.jsx(Wa, { size: 14, strokeWidth: 1.5 }) : /* @__PURE__ */ d.jsx(Ys, { size: 14, strokeWidth: 1.5 }) : null })
4687
4669
  ] }) })
4688
4670
  }
4689
4671
  );
@@ -4692,19 +4674,19 @@ const Eu = Ao(
4692
4674
  ({ data: e, info: t, settings: r, hideActions: n, hideCheckbox: o, allChecked: a, toggleAll: i, headerCustomizer: s }) => {
4693
4675
  const l = e.list_columns.includes("actions") ? "_actions" : "actions";
4694
4676
  let c = s == null ? void 0 : s[l];
4695
- return typeof c == "function" && (c = c()), /* @__PURE__ */ d.jsx(Pe.Thead, { children: /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
4677
+ return typeof c == "function" && (c = c()), /* @__PURE__ */ d.jsx(Re.Thead, { children: /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
4696
4678
  o ? null : /* @__PURE__ */ d.jsx(va, { data: e, column: "Checkbox", allChecked: a, toggleAll: i }),
4697
4679
  n ? null : /* @__PURE__ */ d.jsx(va, { column: "Actions", customElement: c }),
4698
4680
  e.list_columns.map((u, f) => {
4699
- var y;
4681
+ var g;
4700
4682
  let p = s == null ? void 0 : s[u];
4701
4683
  return typeof p == "function" && (p = p(e.label_columns[u])), p === null ? null : /* @__PURE__ */ d.jsx(
4702
4684
  va,
4703
4685
  {
4704
4686
  column: u,
4705
4687
  label: e.label_columns[u],
4706
- orderColumn: e.order_columns.find((g) => g === u) || e.order_columns.find((g) => g.startsWith(`${u}.`)),
4707
- related: ((y = t.filters[u]) == null ? void 0 : y.schema.type) === "Nested",
4688
+ orderColumn: e.order_columns.find((y) => y === u) || e.order_columns.find((y) => y.startsWith(`${u}.`)),
4689
+ related: ((g = t.filters[u]) == null ? void 0 : g.schema.type) === "Nested",
4708
4690
  customElement: p
4709
4691
  },
4710
4692
  u
@@ -4840,20 +4822,20 @@ function Om({ item: e, info: t, opened: r, onClose: n, ...o }) {
4840
4822
  initialValues: t.edit.defaultValues,
4841
4823
  validate: ki(t.edit.schema)
4842
4824
  }), f = () => {
4843
- const y = {};
4844
- return Object.keys(u.values).forEach((g) => {
4845
- u.isDirty(g) && (y[g] = !0);
4846
- }), y;
4825
+ const g = {};
4826
+ return Object.keys(u.values).forEach((y) => {
4827
+ u.isDirty(y) && (g[y] = !0);
4828
+ }), g;
4847
4829
  };
4848
- ke(() => {
4849
- e && wm(e, t).then((y) => {
4850
- u.setValues(y), u.resetDirty(y);
4830
+ $e(() => {
4831
+ e && wm(e, t).then((g) => {
4832
+ u.setValues(g), u.resetDirty(g);
4851
4833
  });
4852
4834
  }, [e, t.edit.columns]);
4853
- const p = async (y) => {
4854
- y = Su(f(), y), await a(e.id, y), n();
4835
+ const p = async (g) => {
4836
+ g = Su(f(), g), await a(e.id, g), n();
4855
4837
  };
4856
- return ke(() => {
4838
+ return $e(() => {
4857
4839
  u.setInitialValues(t.edit.defaultValues), u.reset();
4858
4840
  }, [t.edit.defaultValues]), e ? /* @__PURE__ */ d.jsx(
4859
4841
  Nr,
@@ -4867,17 +4849,17 @@ function Om({ item: e, info: t, opened: r, onClose: n, ...o }) {
4867
4849
  centered: !0,
4868
4850
  ...s,
4869
4851
  children: /* @__PURE__ */ d.jsx(Me, { component: "form", onSubmit: u.onSubmit(p), children: /* @__PURE__ */ d.jsx($o, { spacing: "md", ...l, children: /* @__PURE__ */ d.jsxs(Sn.Autosize, { mah: 450, type: "auto", children: [
4870
- t.edit.columns.map((y, g) => /* @__PURE__ */ d.jsx(
4852
+ t.edit.columns.map((g, y) => /* @__PURE__ */ d.jsx(
4871
4853
  ji,
4872
4854
  {
4873
4855
  form: u,
4874
- name: y.name,
4875
- label: y.label,
4876
- description: y.description,
4877
- schema: y,
4878
- withAsterisk: y.required
4856
+ name: g.name,
4857
+ label: g.label,
4858
+ description: g.description,
4859
+ schema: g,
4860
+ withAsterisk: g.required
4879
4861
  },
4880
- g
4862
+ y
4881
4863
  )),
4882
4864
  /* @__PURE__ */ d.jsx(Fr, { position: "right", mt: "xl", children: /* @__PURE__ */ d.jsx(Yt, { type: "submit", ...c, children: "Save" }) })
4883
4865
  ] }) }) })
@@ -4983,7 +4965,7 @@ var Mi = {}, Ni = {};
4983
4965
  }
4984
4966
  e.isTag = r, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
4985
4967
  })(Ni);
4986
- var X = {}, Zt = Re && Re.__extends || function() {
4968
+ var X = {}, Zt = ke && ke.__extends || function() {
4987
4969
  var e = function(t, r) {
4988
4970
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
4989
4971
  n.__proto__ = o;
@@ -5001,7 +4983,7 @@ var X = {}, Zt = Re && Re.__extends || function() {
5001
4983
  }
5002
4984
  t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
5003
4985
  };
5004
- }(), hn = Re && Re.__assign || function() {
4986
+ }(), hn = ke && ke.__assign || function() {
5005
4987
  return hn = Object.assign || function(e) {
5006
4988
  for (var t, r = 1, n = arguments.length; r < n; r++) {
5007
4989
  t = arguments[r];
@@ -5335,7 +5317,7 @@ function ba(e) {
5335
5317
  return t;
5336
5318
  }
5337
5319
  (function(e) {
5338
- var t = Re && Re.__createBinding || (Object.create ? function(s, l, c, u) {
5320
+ var t = ke && ke.__createBinding || (Object.create ? function(s, l, c, u) {
5339
5321
  u === void 0 && (u = c);
5340
5322
  var f = Object.getOwnPropertyDescriptor(l, c);
5341
5323
  (!f || ("get" in f ? !l.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() {
@@ -5343,7 +5325,7 @@ function ba(e) {
5343
5325
  } }), Object.defineProperty(s, u, f);
5344
5326
  } : function(s, l, c, u) {
5345
5327
  u === void 0 && (u = c), s[u] = l[c];
5346
- }), r = Re && Re.__exportStar || function(s, l) {
5328
+ }), r = ke && ke.__exportStar || function(s, l) {
5347
5329
  for (var c in s)
5348
5330
  c !== "default" && !Object.prototype.hasOwnProperty.call(l, c) && t(l, s, c);
5349
5331
  };
@@ -5555,7 +5537,7 @@ function Lu(e, t, r) {
5555
5537
  return r && (o = new Zn.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), o.next = n[0] || null, o.parent = t, n.unshift(o), n[1] && (n[1].prev = n[0])), n;
5556
5538
  }
5557
5539
  Dr.formatDOM = Lu;
5558
- var Lm = Re && Re.__importDefault || function(e) {
5540
+ var Lm = ke && ke.__importDefault || function(e) {
5559
5541
  return e && e.__esModule ? e : { default: e };
5560
5542
  };
5561
5543
  Object.defineProperty(zi, "__esModule", { value: !0 });
@@ -6500,31 +6482,31 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
6500
6482
  return [];
6501
6483
  t = t || {};
6502
6484
  var r = 1, n = 1;
6503
- function o(g) {
6504
- var h = g.match(tg);
6485
+ function o(y) {
6486
+ var h = y.match(tg);
6505
6487
  h && (r += h.length);
6506
- var b = g.lastIndexOf(lg);
6507
- n = ~b ? g.length - b : n + g.length;
6488
+ var b = y.lastIndexOf(lg);
6489
+ n = ~b ? y.length - b : n + y.length;
6508
6490
  }
6509
6491
  function a() {
6510
- var g = { line: r, column: n };
6492
+ var y = { line: r, column: n };
6511
6493
  return function(h) {
6512
- return h.position = new i(g), c(), h;
6494
+ return h.position = new i(y), c(), h;
6513
6495
  };
6514
6496
  }
6515
- function i(g) {
6516
- this.start = g, this.end = { line: r, column: n }, this.source = t.source;
6497
+ function i(y) {
6498
+ this.start = y, this.end = { line: r, column: n }, this.source = t.source;
6517
6499
  }
6518
6500
  i.prototype.content = e;
6519
- function s(g) {
6501
+ function s(y) {
6520
6502
  var h = new Error(
6521
- t.source + ":" + r + ":" + n + ": " + g
6503
+ t.source + ":" + r + ":" + n + ": " + y
6522
6504
  );
6523
- if (h.reason = g, h.filename = t.source, h.line = r, h.column = n, h.source = e, !t.silent)
6505
+ if (h.reason = y, h.filename = t.source, h.line = r, h.column = n, h.source = e, !t.silent)
6524
6506
  throw h;
6525
6507
  }
6526
- function l(g) {
6527
- var h = g.exec(e);
6508
+ function l(y) {
6509
+ var h = y.exec(e);
6528
6510
  if (h) {
6529
6511
  var b = h[0];
6530
6512
  return o(b), e = e.slice(b.length), h;
@@ -6533,32 +6515,32 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
6533
6515
  function c() {
6534
6516
  l(rg);
6535
6517
  }
6536
- function u(g) {
6518
+ function u(y) {
6537
6519
  var h;
6538
- for (g = g || []; h = f(); )
6539
- h !== !1 && g.push(h);
6540
- return g;
6520
+ for (y = y || []; h = f(); )
6521
+ h !== !1 && y.push(h);
6522
+ return y;
6541
6523
  }
6542
6524
  function f() {
6543
- var g = a();
6525
+ var y = a();
6544
6526
  if (!(il != e.charAt(0) || sl != e.charAt(1))) {
6545
6527
  for (var h = 2; lr != e.charAt(h) && (sl != e.charAt(h) || il != e.charAt(h + 1)); )
6546
6528
  ++h;
6547
6529
  if (h += 2, lr === e.charAt(h - 1))
6548
6530
  return s("End of comment missing");
6549
6531
  var b = e.slice(2, h - 2);
6550
- return n += 2, o(b), e = e.slice(h), n += 2, g({
6532
+ return n += 2, o(b), e = e.slice(h), n += 2, y({
6551
6533
  type: cg,
6552
6534
  comment: b
6553
6535
  });
6554
6536
  }
6555
6537
  }
6556
6538
  function p() {
6557
- var g = a(), h = l(ng);
6539
+ var y = a(), h = l(ng);
6558
6540
  if (h) {
6559
6541
  if (f(), !l(og))
6560
6542
  return s("property missing ':'");
6561
- var b = l(ag), T = g({
6543
+ var b = l(ag), T = y({
6562
6544
  type: ug,
6563
6545
  property: ll(h[0].replace(al, lr)),
6564
6546
  value: b ? ll(b[0].replace(al, lr)) : lr
@@ -6566,19 +6548,19 @@ var Hi = {}, Gi = {}, al = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, tg = /\n/g, rg = /
6566
6548
  return l(ig), T;
6567
6549
  }
6568
6550
  }
6569
- function y() {
6570
- var g = [];
6571
- u(g);
6551
+ function g() {
6552
+ var y = [];
6553
+ u(y);
6572
6554
  for (var h; h = p(); )
6573
- h !== !1 && (g.push(h), u(g));
6574
- return g;
6555
+ h !== !1 && (y.push(h), u(y));
6556
+ return y;
6575
6557
  }
6576
- return c(), y();
6558
+ return c(), g();
6577
6559
  };
6578
6560
  function ll(e) {
6579
6561
  return e ? e.replace(sg, lr) : lr;
6580
6562
  }
6581
- var dg = Re && Re.__importDefault || function(e) {
6563
+ var dg = ke && ke.__importDefault || function(e) {
6582
6564
  return e && e.__esModule ? e : { default: e };
6583
6565
  };
6584
6566
  Object.defineProperty(Gi, "__esModule", { value: !0 });
@@ -6609,7 +6591,7 @@ var mg = /^--[a-zA-Z0-9-]+$/, gg = /-([a-z])/g, yg = /^[^-]+$/, vg = /^-(webkit|
6609
6591
  return t === void 0 && (t = {}), xg(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(bg, cl) : e = e.replace(vg, cl), e.replace(gg, _g));
6610
6592
  };
6611
6593
  Lo.camelCase = Eg;
6612
- var Tg = Re && Re.__importDefault || function(e) {
6594
+ var Tg = ke && ke.__importDefault || function(e) {
6613
6595
  return e && e.__esModule ? e : { default: e };
6614
6596
  };
6615
6597
  Object.defineProperty(Hi, "__esModule", { value: !0 });
@@ -6699,7 +6681,7 @@ function fl(e) {
6699
6681
  var Lg = je, zg = Hu, yn = Wu, Ug = yn.setStyleProp, Vg = yn.canTextBeChildOfNode;
6700
6682
  function Gu(e, t) {
6701
6683
  t = t || {};
6702
- for (var r = t.library || Lg, n = r.cloneElement, o = r.createElement, a = r.isValidElement, i = [], s, l, c = typeof t.replace == "function", u = t.transform || yn.returnFirstArg, f, p, y, g = t.trim, h = 0, b = e.length; h < b; h++) {
6684
+ for (var r = t.library || Lg, n = r.cloneElement, o = r.createElement, a = r.isValidElement, i = [], s, l, c = typeof t.replace == "function", u = t.transform || yn.returnFirstArg, f, p, g, y = t.trim, h = 0, b = e.length; h < b; h++) {
6703
6685
  if (s = e[h], c && (f = t.replace(s), a(f))) {
6704
6686
  b > 1 && (f = n(f, {
6705
6687
  key: f.key || h
@@ -6707,12 +6689,12 @@ function Gu(e, t) {
6707
6689
  continue;
6708
6690
  }
6709
6691
  if (s.type === "text") {
6710
- if (l = !s.data.trim().length, l && s.parent && !Vg(s.parent) || g && l)
6692
+ if (l = !s.data.trim().length, l && s.parent && !Vg(s.parent) || y && l)
6711
6693
  continue;
6712
6694
  i.push(u(s.data, s, h));
6713
6695
  continue;
6714
6696
  }
6715
- switch (p = s.attribs, Bg(s) ? Ug(p.style, p) : p && (p = zg(p, s.name)), y = null, s.type) {
6697
+ switch (p = s.attribs, Bg(s) ? Ug(p.style, p) : p && (p = zg(p, s.name)), g = null, s.type) {
6716
6698
  case "script":
6717
6699
  case "style":
6718
6700
  s.children[0] && (p.dangerouslySetInnerHTML = {
@@ -6720,12 +6702,12 @@ function Gu(e, t) {
6720
6702
  });
6721
6703
  break;
6722
6704
  case "tag":
6723
- s.name === "textarea" && s.children[0] ? p.defaultValue = s.children[0].data : s.children && s.children.length && (y = Gu(s.children, t));
6705
+ s.name === "textarea" && s.children[0] ? p.defaultValue = s.children[0].data : s.children && s.children.length && (g = Gu(s.children, t));
6724
6706
  break;
6725
6707
  default:
6726
6708
  continue;
6727
6709
  }
6728
- b > 1 && (p.key = h), i.push(u(o(s.name, p, y), s, h));
6710
+ b > 1 && (p.key = h), i.push(u(o(s.name, p, g), s, h));
6729
6711
  }
6730
6712
  return i.length === 1 ? i[0] : i;
6731
6713
  }
@@ -6920,13 +6902,13 @@ function Zu() {
6920
6902
  NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap,
6921
6903
  HTMLFormElement: f,
6922
6904
  DOMParser: p,
6923
- trustedTypes: y
6924
- } = e, g = l.prototype, h = ln(g, "cloneNode"), b = ln(g, "remove"), T = ln(g, "nextSibling"), A = ln(g, "childNodes"), D = ln(g, "parentNode");
6905
+ trustedTypes: g
6906
+ } = e, y = l.prototype, h = ln(y, "cloneNode"), b = ln(y, "remove"), T = ln(y, "nextSibling"), A = ln(y, "childNodes"), j = ln(y, "parentNode");
6925
6907
  if (typeof i == "function") {
6926
6908
  const w = r.createElement("template");
6927
6909
  w.content && w.content.ownerDocument && (r = w.content.ownerDocument);
6928
6910
  }
6929
- let I, x = "";
6911
+ let D, x = "";
6930
6912
  const {
6931
6913
  implementation: O,
6932
6914
  createNodeIterator: k,
@@ -6936,7 +6918,7 @@ function Zu() {
6936
6918
  importNode: _e
6937
6919
  } = n;
6938
6920
  let F = {};
6939
- t.isSupported = typeof Yu == "function" && typeof D == "function" && O && O.createHTMLDocument !== void 0;
6921
+ t.isSupported = typeof Yu == "function" && typeof j == "function" && O && O.createHTMLDocument !== void 0;
6940
6922
  const {
6941
6923
  MUSTACHE_EXPR: te,
6942
6924
  ERB_EXPR: ce,
@@ -6972,7 +6954,7 @@ function Zu() {
6972
6954
  enumerable: !0,
6973
6955
  value: !1
6974
6956
  }
6975
- })), L = null, B = null, H = !0, q = !0, G = !1, Ee = !0, P = !1, $e = !0, j = !1, Ge = !1, Qe = !1, dt = !1, rr = !1, Dt = !1, kn = !0, jn = !1;
6957
+ })), L = null, B = null, H = !0, q = !0, G = !1, Ee = !0, P = !1, Pe = !0, I = !1, Ge = !1, Qe = !1, dt = !1, rr = !1, Dt = !1, kn = !0, jn = !1;
6976
6958
  const Xr = "user-content-";
6977
6959
  let Jr = !0, nr = !1, Mt = {}, Nt = null;
6978
6960
  const Bt = K({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
@@ -7005,18 +6987,18 @@ function Zu() {
7005
6987
  // eslint-disable-line indent
7006
6988
  ve
7007
6989
  // eslint-disable-line indent
7008
- ) : Zr, Nt = Et(v, "FORBID_CONTENTS") ? K({}, v.FORBID_CONTENTS, ve) : Bt, L = Et(v, "FORBID_TAGS") ? K({}, v.FORBID_TAGS, ve) : {}, B = Et(v, "FORBID_ATTR") ? K({}, v.FORBID_ATTR, ve) : {}, Mt = Et(v, "USE_PROFILES") ? v.USE_PROFILES : !1, H = v.ALLOW_ARIA_ATTR !== !1, q = v.ALLOW_DATA_ATTR !== !1, G = v.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = v.SAFE_FOR_TEMPLATES || !1, $e = v.SAFE_FOR_XML !== !1, j = v.WHOLE_DOCUMENT || !1, dt = v.RETURN_DOM || !1, rr = v.RETURN_DOM_FRAGMENT || !1, Dt = v.RETURN_TRUSTED_TYPE || !1, Qe = v.FORCE_BODY || !1, kn = v.SANITIZE_DOM !== !1, jn = v.SANITIZE_NAMED_PROPS || !1, Jr = v.KEEP_CONTENT !== !1, nr = v.IN_PLACE || !1, S = v.ALLOWED_URI_REGEXP || Xu, Wt = v.NAMESPACE || _t, N = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (q = !1), rr && (dt = !0), Mt && (C = K({}, gl), M = [], Mt.html === !0 && (K(C, ml), K(M, yl)), Mt.svg === !0 && (K(C, _a), K(M, Sa), K(M, eo)), Mt.svgFilters === !0 && (K(C, Ea), K(M, Sa), K(M, eo)), Mt.mathMl === !0 && (K(C, Ta), K(M, vl), K(M, eo))), v.ADD_TAGS && (C === W && (C = ir(C)), K(C, v.ADD_TAGS, ve)), v.ADD_ATTR && (M === U && (M = ir(M)), K(M, v.ADD_ATTR, ve)), v.ADD_URI_SAFE_ATTR && K(gr, v.ADD_URI_SAFE_ATTR, ve), v.FORBID_CONTENTS && (Nt === Bt && (Nt = ir(Nt)), K(Nt, v.FORBID_CONTENTS, ve)), Jr && (C["#text"] = !0), j && K(C, ["html", "head", "body"]), C.table && (K(C, ["tbody"]), delete L.tbody), v.TRUSTED_TYPES_POLICY) {
6990
+ ) : Zr, Nt = Et(v, "FORBID_CONTENTS") ? K({}, v.FORBID_CONTENTS, ve) : Bt, L = Et(v, "FORBID_TAGS") ? K({}, v.FORBID_TAGS, ve) : {}, B = Et(v, "FORBID_ATTR") ? K({}, v.FORBID_ATTR, ve) : {}, Mt = Et(v, "USE_PROFILES") ? v.USE_PROFILES : !1, H = v.ALLOW_ARIA_ATTR !== !1, q = v.ALLOW_DATA_ATTR !== !1, G = v.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = v.SAFE_FOR_TEMPLATES || !1, Pe = v.SAFE_FOR_XML !== !1, I = v.WHOLE_DOCUMENT || !1, dt = v.RETURN_DOM || !1, rr = v.RETURN_DOM_FRAGMENT || !1, Dt = v.RETURN_TRUSTED_TYPE || !1, Qe = v.FORCE_BODY || !1, kn = v.SANITIZE_DOM !== !1, jn = v.SANITIZE_NAMED_PROPS || !1, Jr = v.KEEP_CONTENT !== !1, nr = v.IN_PLACE || !1, S = v.ALLOWED_URI_REGEXP || Xu, Wt = v.NAMESPACE || _t, N = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && Nn(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (q = !1), rr && (dt = !0), Mt && (C = K({}, gl), M = [], Mt.html === !0 && (K(C, ml), K(M, yl)), Mt.svg === !0 && (K(C, _a), K(M, Sa), K(M, eo)), Mt.svgFilters === !0 && (K(C, Ea), K(M, Sa), K(M, eo)), Mt.mathMl === !0 && (K(C, Ta), K(M, vl), K(M, eo))), v.ADD_TAGS && (C === W && (C = ir(C)), K(C, v.ADD_TAGS, ve)), v.ADD_ATTR && (M === U && (M = ir(M)), K(M, v.ADD_ATTR, ve)), v.ADD_URI_SAFE_ATTR && K(gr, v.ADD_URI_SAFE_ATTR, ve), v.FORBID_CONTENTS && (Nt === Bt && (Nt = ir(Nt)), K(Nt, v.FORBID_CONTENTS, ve)), Jr && (C["#text"] = !0), I && K(C, ["html", "head", "body"]), C.table && (K(C, ["tbody"]), delete L.tbody), v.TRUSTED_TYPES_POLICY) {
7009
6991
  if (typeof v.TRUSTED_TYPES_POLICY.createHTML != "function")
7010
6992
  throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
7011
6993
  if (typeof v.TRUSTED_TYPES_POLICY.createScriptURL != "function")
7012
6994
  throw sn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
7013
- I = v.TRUSTED_TYPES_POLICY, x = I.createHTML("");
6995
+ D = v.TRUSTED_TYPES_POLICY, x = D.createHTML("");
7014
6996
  } else
7015
- I === void 0 && (I = dy(y, o)), I !== null && typeof x == "string" && (x = I.createHTML(""));
6997
+ D === void 0 && (D = dy(g, o)), D !== null && typeof x == "string" && (x = D.createHTML(""));
7016
6998
  Ke && Ke(v), At = v;
7017
6999
  }
7018
7000
  }, Fn = K({}, ["mi", "mo", "mn", "ms", "mtext"]), tn = K({}, ["foreignobject", "annotation-xml"]), Ln = K({}, ["title", "style", "font", "a", "script"]), zn = K({}, [..._a, ...Ea, ...ty]), Un = K({}, [...Ta, ...ry]), Vn = function(v) {
7019
- let E = D(v);
7001
+ let E = j(v);
7020
7002
  (!E || !E.tagName) && (E = {
7021
7003
  namespaceURI: Wt,
7022
7004
  tagName: "template"
@@ -7028,7 +7010,7 @@ function Zu() {
7028
7010
  element: v
7029
7011
  });
7030
7012
  try {
7031
- D(v).removeChild(v);
7013
+ j(v).removeChild(v);
7032
7014
  } catch {
7033
7015
  b(v);
7034
7016
  }
@@ -7064,7 +7046,7 @@ function Zu() {
7064
7046
  $ = he && he[0];
7065
7047
  }
7066
7048
  Ft === "application/xhtml+xml" && Wt === _t && (v = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + v + "</body></html>");
7067
- const Y = I ? I.createHTML(v) : v;
7049
+ const Y = D ? D.createHTML(v) : v;
7068
7050
  if (Wt === _t)
7069
7051
  try {
7070
7052
  E = new p().parseFromString(Y, Ft);
@@ -7078,7 +7060,7 @@ function Zu() {
7078
7060
  }
7079
7061
  }
7080
7062
  const ye = E.body || E.documentElement;
7081
- return v && $ && ye.insertBefore(r.createTextNode($), ye.childNodes[0] || null), Wt === _t ? ee.call(E, j ? "html" : "body")[0] : j ? E.documentElement : ye;
7063
+ return v && $ && ye.insertBefore(r.createTextNode($), ye.childNodes[0] || null), Wt === _t ? ee.call(E, I ? "html" : "body")[0] : I ? E.documentElement : ye;
7082
7064
  }, Wn = function(v) {
7083
7065
  return k.call(
7084
7066
  v.ownerDocument || v,
@@ -7103,13 +7085,13 @@ function Zu() {
7103
7085
  if (_("uponSanitizeElement", v, {
7104
7086
  tagName: $,
7105
7087
  allowedTags: C
7106
- }), v.hasChildNodes() && !m(v.firstElementChild) && qe(/<[/\w]/g, v.innerHTML) && qe(/<[/\w]/g, v.textContent) || v.nodeType === cn.progressingInstruction || $e && v.nodeType === cn.comment && qe(/<[/\w]/g, v.data))
7088
+ }), v.hasChildNodes() && !m(v.firstElementChild) && qe(/<[/\w]/g, v.innerHTML) && qe(/<[/\w]/g, v.textContent) || v.nodeType === cn.progressingInstruction || Pe && v.nodeType === cn.comment && qe(/<[/\w]/g, v.data))
7107
7089
  return st(v), !0;
7108
7090
  if (!C[$] || L[$]) {
7109
7091
  if (!L[$] && Q($) && (N.tagNameCheck instanceof RegExp && qe(N.tagNameCheck, $) || N.tagNameCheck instanceof Function && N.tagNameCheck($)))
7110
7092
  return !1;
7111
7093
  if (Jr && !Nt[$]) {
7112
- const Y = D(v) || v.parentNode, ye = A(v) || v.childNodes;
7094
+ const Y = j(v) || v.parentNode, ye = A(v) || v.childNodes;
7113
7095
  if (ye && Y) {
7114
7096
  const he = ye.length;
7115
7097
  for (let ue = he - 1; ue >= 0; --ue) {
@@ -7176,7 +7158,7 @@ function Zu() {
7176
7158
  value: et
7177
7159
  } = ye, or = ve(he);
7178
7160
  let De = he === "value" ? et : Zg(et);
7179
- if ($.attrName = or, $.attrValue = De, $.keepAttr = !0, $.forceKeepAttr = void 0, _("uponSanitizeAttribute", v, $), De = $.attrValue, $e && qe(/((--!?|])>)|<\/(style|title)/i, De)) {
7161
+ if ($.attrName = or, $.attrValue = De, $.keepAttr = !0, $.forceKeepAttr = void 0, _("uponSanitizeAttribute", v, $), De = $.attrValue, Pe && qe(/((--!?|])>)|<\/(style|title)/i, De)) {
7180
7162
  _r(he, v);
7181
7163
  continue;
7182
7164
  }
@@ -7191,14 +7173,14 @@ function Zu() {
7191
7173
  });
7192
7174
  const ps = ve(v.nodeName);
7193
7175
  if (z(ps, or, De)) {
7194
- if (jn && (or === "id" || or === "name") && (_r(he, v), De = Xr + De), I && typeof y == "object" && typeof y.getAttributeType == "function" && !ue)
7195
- switch (y.getAttributeType(ps, or)) {
7176
+ if (jn && (or === "id" || or === "name") && (_r(he, v), De = Xr + De), D && typeof g == "object" && typeof g.getAttributeType == "function" && !ue)
7177
+ switch (g.getAttributeType(ps, or)) {
7196
7178
  case "TrustedHTML": {
7197
- De = I.createHTML(De);
7179
+ De = D.createHTML(De);
7198
7180
  break;
7199
7181
  }
7200
7182
  case "TrustedScriptURL": {
7201
- De = I.createScriptURL(De);
7183
+ De = D.createScriptURL(De);
7202
7184
  break;
7203
7185
  }
7204
7186
  }
@@ -7235,9 +7217,9 @@ function Zu() {
7235
7217
  } else if (w instanceof s)
7236
7218
  E = Bn("<!---->"), $ = E.ownerDocument.importNode(w, !0), $.nodeType === cn.element && $.nodeName === "BODY" || $.nodeName === "HTML" ? E = $ : E.appendChild($);
7237
7219
  else {
7238
- if (!dt && !P && !j && // eslint-disable-next-line unicorn/prefer-includes
7220
+ if (!dt && !P && !I && // eslint-disable-next-line unicorn/prefer-includes
7239
7221
  w.indexOf("<") === -1)
7240
- return I && Dt ? I.createHTML(w) : w;
7222
+ return D && Dt ? D.createHTML(w) : w;
7241
7223
  if (E = Bn(w), !E)
7242
7224
  return dt ? null : Dt ? x : "";
7243
7225
  }
@@ -7255,11 +7237,11 @@ function Zu() {
7255
7237
  ye = E;
7256
7238
  return (M.shadowroot || M.shadowrootmode) && (ye = _e.call(n, ye, !0)), ye;
7257
7239
  }
7258
- let ue = j ? E.outerHTML : E.innerHTML;
7259
- return j && C["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && qe(Ju, E.ownerDocument.doctype.name) && (ue = "<!DOCTYPE " + E.ownerDocument.doctype.name + `>
7240
+ let ue = I ? E.outerHTML : E.innerHTML;
7241
+ return I && C["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && qe(Ju, E.ownerDocument.doctype.name) && (ue = "<!DOCTYPE " + E.ownerDocument.doctype.name + `>
7260
7242
  ` + ue), P && Qn([te, ce, pe], (et) => {
7261
7243
  ue = an(ue, et, " ");
7262
- }), I && Dt ? I.createHTML(ue) : ue;
7244
+ }), D && Dt ? D.createHTML(ue) : ue;
7263
7245
  }, t.setConfig = function() {
7264
7246
  let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7265
7247
  xr(w), Ge = !0;
@@ -7290,17 +7272,17 @@ const hy = "_field_zdaf7_1", my = "_rtl_zdaf7_7", gy = "_borderRight_zdaf7_12",
7290
7272
  const c = {
7291
7273
  text: { style: { whiteSpace: "nowrap", overflow: "ellipsis" } }
7292
7274
  }, { text: u } = Be("Field", c, l), f = {};
7293
- Object.entries(u).forEach(([g, h]) => {
7294
- typeof h == "function" && (f[g] = h(t));
7275
+ Object.entries(u).forEach(([y, h]) => {
7276
+ typeof h == "function" && (f[y] = h(t));
7295
7277
  });
7296
7278
  let p;
7297
7279
  s && (p = py.sanitize(o));
7298
- const y = ui({
7280
+ const g = ui({
7299
7281
  name: "Field",
7300
7282
  props: l,
7301
7283
  classes: yy
7302
7284
  });
7303
- return /* @__PURE__ */ d.jsx(Pe.Td, { ...y("field"), onClick: a ? () => a(e, t) : null, ...l, children: /* @__PURE__ */ d.jsx(Me, { w: "100%", children: /* @__PURE__ */ d.jsx(Bd, { visible: r, children: i || (typeof o != "object" ? /* @__PURE__ */ d.jsx(nt, { ...u, ...f, children: p || o }) : p || o) }) }) });
7285
+ return /* @__PURE__ */ d.jsx(Re.Td, { ...g("field"), onClick: a ? () => a(e, t) : null, ...l, children: /* @__PURE__ */ d.jsx(Me, { w: "100%", children: /* @__PURE__ */ d.jsx(Bd, { visible: r, children: i || (typeof o != "object" ? /* @__PURE__ */ d.jsx(nt, { ...u, ...f, children: p || o }) : p || o) }) }) });
7304
7286
  }
7305
7287
  );
7306
7288
  io.displayName = "Field";
@@ -7318,7 +7300,7 @@ function xy({ entry: e, selected: t, children: r }) {
7318
7300
  });
7319
7301
  var { className: a, style: i } = n("row");
7320
7302
  return a = `${a} ${t ? xl.selected : ""}`, /* @__PURE__ */ d.jsx(
7321
- Pe.Tr,
7303
+ Re.Tr,
7322
7304
  {
7323
7305
  className: a,
7324
7306
  style: { ...i },
@@ -7333,7 +7315,7 @@ function _y({ bodyCustomizer: e, actionColumn: t, id: r, entry: n }) {
7333
7315
  }
7334
7316
  function Ey({ data: e, loading: t, hideActions: r, hideCheckbox: n, selection: o, toggleRow: a, onClickEntry: i, bodyCustomizer: s }) {
7335
7317
  const l = e.list_columns.includes("actions") ? "_actions" : "actions";
7336
- return /* @__PURE__ */ d.jsx(Pe.Tbody, { children: e.result.length ? e.result.map((c, u) => {
7318
+ return /* @__PURE__ */ d.jsx(Re.Tbody, { children: e.result.length ? e.result.map((c, u) => {
7337
7319
  const f = e.ids[u];
7338
7320
  return /* @__PURE__ */ d.jsxs(xy, { entry: { ...c, id: f }, children: [
7339
7321
  n ? null : /* @__PURE__ */ d.jsx(io, { loading: t, children: /* @__PURE__ */ d.jsx(
@@ -7355,20 +7337,20 @@ function Ey({ data: e, loading: t, hideActions: r, hideCheckbox: n, selection: o
7355
7337
  entry: c
7356
7338
  }
7357
7339
  ) }),
7358
- e.list_columns.map((p, y) => {
7359
- let g = s == null ? void 0 : s[p];
7360
- return typeof g == "function" && (g = g({ id: f, ...c })), g === null ? null : /* @__PURE__ */ d.jsx(
7340
+ e.list_columns.map((p, g) => {
7341
+ let y = s == null ? void 0 : s[p];
7342
+ return typeof y == "function" && (y = y({ id: f, ...c })), y === null ? null : /* @__PURE__ */ d.jsx(
7361
7343
  io,
7362
7344
  {
7363
7345
  id: Ue(f),
7364
7346
  entry: c,
7365
7347
  loading: t,
7366
7348
  onClickEntry: i,
7367
- customElement: g,
7349
+ customElement: y,
7368
7350
  sanitize: !0,
7369
7351
  children: Tu(c, p)
7370
7352
  },
7371
- y
7353
+ g
7372
7354
  );
7373
7355
  })
7374
7356
  ] }, Ue(f));
@@ -7396,50 +7378,50 @@ function wy({
7396
7378
  bodyCustomizer: l,
7397
7379
  ...c
7398
7380
  }) {
7399
- const u = Wd(), f = Pe.extend({
7381
+ const u = Wd(), f = Re.extend({
7400
7382
  highlightOnHover: !0,
7401
7383
  striped: !0,
7402
7384
  horizontalSpacing: "md",
7403
7385
  verticalSpacing: "sm"
7404
- }), p = Be("DatagridTable", f, c), { data: y, info: g } = We(), [h, b] = fe([]), [T, A] = fe(!1), D = (x) => {
7386
+ }), p = Be("DatagridTable", f, c), { data: g, info: y } = We(), [h, b] = fe([]), [T, A] = fe(!1), j = (x) => {
7405
7387
  b((O) => O.includes(x) ? O.filter((k) => k !== x) : [...O, x]);
7406
- }, I = () => {
7407
- b((x) => x.length === y.ids.length ? [] : y.ids.map((O, k) => O));
7388
+ }, D = () => {
7389
+ b((x) => x.length === g.ids.length ? [] : g.ids.map((O, k) => O));
7408
7390
  };
7409
- return ke(() => {
7410
- A(h.length === y.result.length && h.length > 0), n && n(h), e == null || e.setSelectedIds(h.map((x) => x));
7411
- }, [h]), ke(() => {
7391
+ return $e(() => {
7392
+ A(h.length === g.result.length && h.length > 0), n && n(h), e == null || e.setSelectedIds(h.map((x) => x));
7393
+ }, [h]), $e(() => {
7412
7394
  b([]), n && n([]);
7413
- }, [y]), /* @__PURE__ */ d.jsx(
7395
+ }, [g]), /* @__PURE__ */ d.jsx(
7414
7396
  Sn,
7415
7397
  {
7416
7398
  options: { className: u.colorScheme === "dark" ? "os-theme-light" : void 0 },
7417
7399
  style: { flex: 1, flexDirection: "column" },
7418
7400
  classNames: Sy,
7419
- children: /* @__PURE__ */ d.jsxs(Pe, { stickyHeader: !0, ...p, children: [
7401
+ children: /* @__PURE__ */ d.jsxs(Re, { stickyHeader: !0, ...p, children: [
7420
7402
  /* @__PURE__ */ d.jsx(
7421
7403
  Eu,
7422
7404
  {
7423
- data: y,
7424
- info: g,
7405
+ data: g,
7406
+ info: y,
7425
7407
  hideActions: t,
7426
7408
  hideCheckbox: a,
7427
7409
  allChecked: T,
7428
7410
  setSelection: b,
7429
- toggleAll: I,
7411
+ toggleAll: D,
7430
7412
  headerCustomizer: s
7431
7413
  }
7432
7414
  ),
7433
7415
  /* @__PURE__ */ d.jsx(
7434
7416
  Ey,
7435
7417
  {
7436
- data: y,
7418
+ data: g,
7437
7419
  loading: r,
7438
7420
  hideActions: t,
7439
7421
  hideCheckbox: a,
7440
7422
  selection: h,
7441
7423
  setSelection: b,
7442
- toggleRow: D,
7424
+ toggleRow: j,
7443
7425
  onClickEntry: o,
7444
7426
  bodyCustomizer: l
7445
7427
  }
@@ -7454,7 +7436,7 @@ const Qu = Ao(({ ...e }) => {
7454
7436
  { value: "25", label: "25" },
7455
7437
  { value: "50", label: "50" }
7456
7438
  ], a = String(r.page_size), [i, s] = fe(r.page);
7457
- ke(() => {
7439
+ $e(() => {
7458
7440
  s(r.page);
7459
7441
  }, [r.page]);
7460
7442
  const l = (u) => {
@@ -7537,7 +7519,7 @@ const Qu = Ao(({ ...e }) => {
7537
7519
  Qu.displayName = "Pagination";
7538
7520
  function Oy() {
7539
7521
  const { error: e } = We(), [t, r] = fe(!1);
7540
- return ke(() => {
7522
+ return $e(() => {
7541
7523
  e && r(!0);
7542
7524
  }, [e]), /* @__PURE__ */ d.jsx(
7543
7525
  Nr,
@@ -7561,19 +7543,19 @@ const ef = Nc((e, t) => {
7561
7543
  hideSettings: u = !1,
7562
7544
  hideActions: f = !1,
7563
7545
  hidePagination: p = !1,
7564
- hideError: y = !1,
7565
- hideDownload: g = !0,
7546
+ hideError: g = !1,
7547
+ hideDownload: y = !0,
7566
7548
  onSelectCheckbox: h = null,
7567
7549
  onClickEntry: b = null,
7568
7550
  fetchOnMount: T = !0,
7569
7551
  bulkActions: A = null,
7570
- styles: D,
7571
- headerCustomizer: I = {},
7552
+ styles: j,
7553
+ headerCustomizer: D = {},
7572
7554
  bodyCustomizer: x = {},
7573
7555
  toolbarCustomizer: O = {}
7574
7556
  // Add more props here
7575
7557
  } = e;
7576
- if (ke(() => {
7558
+ if ($e(() => {
7577
7559
  !n && T && i({});
7578
7560
  }, [n]), !a)
7579
7561
  return;
@@ -7582,7 +7564,7 @@ const ef = Nc((e, t) => {
7582
7564
  Da,
7583
7565
  {
7584
7566
  ref: t,
7585
- style: { position: "relative", height: "100%", display: "flex", flexDirection: "column", ...D },
7567
+ style: { position: "relative", height: "100%", display: "flex", flexDirection: "column", ...j },
7586
7568
  children: [
7587
7569
  s ? null : /* @__PURE__ */ d.jsx(
7588
7570
  _u,
@@ -7590,7 +7572,7 @@ const ef = Nc((e, t) => {
7590
7572
  hideFilter: l,
7591
7573
  hideAdd: c,
7592
7574
  hideSettings: u,
7593
- hideDownload: g,
7575
+ hideDownload: y,
7594
7576
  toolbarCustomizer: O
7595
7577
  }
7596
7578
  ),
@@ -7603,13 +7585,13 @@ const ef = Nc((e, t) => {
7603
7585
  onSelectCheckbox: h,
7604
7586
  onClickEntry: b,
7605
7587
  hideCheckbox: k,
7606
- hideDownload: g,
7607
- headerCustomizer: I,
7588
+ hideDownload: y,
7589
+ headerCustomizer: D,
7608
7590
  bodyCustomizer: x
7609
7591
  }
7610
7592
  ) : null,
7611
7593
  !p && n ? /* @__PURE__ */ d.jsx(Qu, {}) : null,
7612
- y ? null : /* @__PURE__ */ d.jsx(Oy, {})
7594
+ g ? null : /* @__PURE__ */ d.jsx(Oy, {})
7613
7595
  ]
7614
7596
  }
7615
7597
  );
@@ -7676,7 +7658,7 @@ function By(e) {
7676
7658
  Vy.call(e, r) && r != "constructor" && t.push(r);
7677
7659
  return t;
7678
7660
  }
7679
- var Wy = By, Hy = typeof Re == "object" && Re && Re.Object === Object && Re, rf = Hy, Gy = rf, qy = typeof self == "object" && self && self.Object === Object && self, Yy = Gy || qy || Function("return this")(), Ct = Yy, Ky = Ct, Xy = Ky.Symbol, Vo = Xy, _l = Vo, nf = Object.prototype, Jy = nf.hasOwnProperty, Zy = nf.toString, un = _l ? _l.toStringTag : void 0;
7661
+ var Wy = By, Hy = typeof ke == "object" && ke && ke.Object === Object && ke, rf = Hy, Gy = rf, qy = typeof self == "object" && self && self.Object === Object && self, Yy = Gy || qy || Function("return this")(), Ct = Yy, Ky = Ct, Xy = Ky.Symbol, Vo = Xy, _l = Vo, nf = Object.prototype, Jy = nf.hasOwnProperty, Zy = nf.toString, un = _l ? _l.toStringTag : void 0;
7680
7662
  function Qy(e) {
7681
7663
  var t = Jy.call(e, un), r = e[un];
7682
7664
  try {
@@ -7887,12 +7869,12 @@ function t1(e, t, r) {
7887
7869
  if (typeof e != "function")
7888
7870
  throw new TypeError(Zb);
7889
7871
  t = Dl(t) || 0, Jb(r) && (u = !!r.leading, f = "maxWait" in r, a = f ? Qb(Dl(r.maxWait) || 0, t) : a, p = "trailing" in r ? !!r.trailing : p);
7890
- function y(O) {
7872
+ function g(O) {
7891
7873
  var k = n, J = o;
7892
7874
  return n = o = void 0, c = O, i = e.apply(J, k), i;
7893
7875
  }
7894
- function g(O) {
7895
- return c = O, s = setTimeout(T, t), u ? y(O) : i;
7876
+ function y(O) {
7877
+ return c = O, s = setTimeout(T, t), u ? g(O) : i;
7896
7878
  }
7897
7879
  function h(O) {
7898
7880
  var k = O - l, J = O - c, ee = t - k;
@@ -7909,30 +7891,30 @@ function t1(e, t, r) {
7909
7891
  s = setTimeout(T, h(O));
7910
7892
  }
7911
7893
  function A(O) {
7912
- return s = void 0, p && n ? y(O) : (n = o = void 0, i);
7894
+ return s = void 0, p && n ? g(O) : (n = o = void 0, i);
7913
7895
  }
7914
- function D() {
7896
+ function j() {
7915
7897
  s !== void 0 && clearTimeout(s), c = 0, n = l = o = s = void 0;
7916
7898
  }
7917
- function I() {
7899
+ function D() {
7918
7900
  return s === void 0 ? i : A(Oa());
7919
7901
  }
7920
7902
  function x() {
7921
7903
  var O = Oa(), k = b(O);
7922
7904
  if (n = arguments, o = this, l = O, k) {
7923
7905
  if (s === void 0)
7924
- return g(l);
7906
+ return y(l);
7925
7907
  if (f)
7926
- return clearTimeout(s), s = setTimeout(T, t), y(l);
7908
+ return clearTimeout(s), s = setTimeout(T, t), g(l);
7927
7909
  }
7928
7910
  return s === void 0 && (s = setTimeout(T, t)), i;
7929
7911
  }
7930
- return x.cancel = D, x.flush = I, x;
7912
+ return x.cancel = j, x.flush = D, x;
7931
7913
  }
7932
7914
  var r1 = t1;
7933
7915
  const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
7934
7916
  const [i, s] = fe(r ?? t);
7935
- ke(() => {
7917
+ $e(() => {
7936
7918
  s(r ?? t);
7937
7919
  }, [r]);
7938
7920
  const l = Te(
@@ -7961,7 +7943,7 @@ const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
7961
7943
  path: u,
7962
7944
  required: f,
7963
7945
  hideControls: p
7964
- } = t, [y, g] = o1(l, "", o, u, i1);
7946
+ } = t, [g, y] = o1(l, "", o, u, i1);
7965
7947
  return /* @__PURE__ */ d.jsx(
7966
7948
  Gd,
7967
7949
  {
@@ -7969,8 +7951,8 @@ const n1 = /* @__PURE__ */ Ut(r1), o1 = (e, t, r, n, o, a = 300) => {
7969
7951
  description: a,
7970
7952
  error: i,
7971
7953
  required: f,
7972
- value: y,
7973
- onChange: g,
7954
+ value: g,
7955
+ onChange: y,
7974
7956
  className: n,
7975
7957
  disabled: !s,
7976
7958
  allowDecimal: r,
@@ -8321,8 +8303,8 @@ function YE(e, t, r, n, o, a, i) {
8321
8303
  }
8322
8304
  var u = a ? a(s, l, r + "", e, t, i) : void 0, f = u === void 0;
8323
8305
  if (f) {
8324
- var p = Bl(l), y = !p && VE(l), g = !p && !y && GE(l);
8325
- u = l, p || y || g ? Bl(s) ? u = s : UE(s) ? u = LE(s) : y ? (f = !1, u = NE(l, !0)) : g ? (f = !1, u = FE(l, !0)) : u = [] : HE(l) || Vl(l) ? (u = s, Vl(s) ? u = qE(s) : (!WE(s) || BE(s)) && (u = zE(l))) : f = !1;
8306
+ var p = Bl(l), g = !p && VE(l), y = !p && !g && GE(l);
8307
+ u = l, p || g || y ? Bl(s) ? u = s : UE(s) ? u = LE(s) : g ? (f = !1, u = NE(l, !0)) : y ? (f = !1, u = FE(l, !0)) : u = [] : HE(l) || Vl(l) ? (u = s, Vl(s) ? u = qE(s) : (!WE(s) || BE(s)) && (u = zE(l))) : f = !1;
8326
8308
  }
8327
8309
  f && (i.set(l, u), o(u, l, n, a, i), i.delete(l)), Ul(e, r, u);
8328
8310
  }
@@ -8427,8 +8409,8 @@ const Cf = /* @__PURE__ */ Ut(UT), Af = je.memo(function(t) {
8427
8409
  error: s,
8428
8410
  required: p,
8429
8411
  value: a || "",
8430
- onChange: (g) => {
8431
- u(c, g.currentTarget.value);
8412
+ onChange: (y) => {
8413
+ u(c, y.currentTarget.value);
8432
8414
  },
8433
8415
  className: r,
8434
8416
  disabled: !l,
@@ -8442,8 +8424,8 @@ const Cf = /* @__PURE__ */ Ut(UT), Af = je.memo(function(t) {
8442
8424
  error: s,
8443
8425
  required: p,
8444
8426
  value: a || "",
8445
- onChange: (g) => {
8446
- u(c, g.currentTarget.value);
8427
+ onChange: (y) => {
8428
+ u(c, y.currentTarget.value);
8447
8429
  },
8448
8430
  className: r,
8449
8431
  disabled: !l,
@@ -8993,8 +8975,8 @@ function jC() {
8993
8975
  if (nc)
8994
8976
  return se;
8995
8977
  nc = 1;
8996
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g;
8997
- g = Symbol.for("react.module.reference");
8978
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y;
8979
+ y = Symbol.for("react.module.reference");
8998
8980
  function h(b) {
8999
8981
  if (typeof b == "object" && b !== null) {
9000
8982
  var T = b.$$typeof;
@@ -9054,7 +9036,7 @@ function jC() {
9054
9036
  }, se.isSuspenseList = function(b) {
9055
9037
  return h(b) === u;
9056
9038
  }, se.isValidElementType = function(b) {
9057
- return typeof b == "string" || typeof b == "function" || b === r || b === o || b === n || b === c || b === u || b === y || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === f || b.$$typeof === a || b.$$typeof === i || b.$$typeof === l || b.$$typeof === g || b.getModuleId !== void 0);
9039
+ return typeof b == "string" || typeof b == "function" || b === r || b === o || b === n || b === c || b === u || b === g || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === f || b.$$typeof === a || b.$$typeof === i || b.$$typeof === l || b.$$typeof === y || b.getModuleId !== void 0);
9058
9040
  }, se.typeOf = h, se;
9059
9041
  }
9060
9042
  var le = {};
@@ -9070,21 +9052,21 @@ var le = {};
9070
9052
  var oc;
9071
9053
  function IC() {
9072
9054
  return oc || (oc = 1, process.env.NODE_ENV !== "production" && function() {
9073
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, h = !1, b = !1, T = !1, A = !1, D;
9074
- D = Symbol.for("react.module.reference");
9075
- function I(j) {
9076
- return !!(typeof j == "string" || typeof j == "function" || j === r || j === o || A || j === n || j === c || j === u || T || j === y || g || h || b || typeof j == "object" && j !== null && (j.$$typeof === p || j.$$typeof === f || j.$$typeof === a || j.$$typeof === i || j.$$typeof === l || // This needs to include all possible module reference object
9055
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = !1, h = !1, b = !1, T = !1, A = !1, j;
9056
+ j = Symbol.for("react.module.reference");
9057
+ function D(I) {
9058
+ return !!(typeof I == "string" || typeof I == "function" || I === r || I === o || A || I === n || I === c || I === u || T || I === g || y || h || b || typeof I == "object" && I !== null && (I.$$typeof === p || I.$$typeof === f || I.$$typeof === a || I.$$typeof === i || I.$$typeof === l || // This needs to include all possible module reference object
9077
9059
  // types supported by any Flight configuration anywhere since
9078
9060
  // we don't know which Flight build this will end up being used
9079
9061
  // with.
9080
- j.$$typeof === D || j.getModuleId !== void 0));
9062
+ I.$$typeof === j || I.getModuleId !== void 0));
9081
9063
  }
9082
- function x(j) {
9083
- if (typeof j == "object" && j !== null) {
9084
- var Ge = j.$$typeof;
9064
+ function x(I) {
9065
+ if (typeof I == "object" && I !== null) {
9066
+ var Ge = I.$$typeof;
9085
9067
  switch (Ge) {
9086
9068
  case e:
9087
- var Qe = j.type;
9069
+ var Qe = I.type;
9088
9070
  switch (Qe) {
9089
9071
  case r:
9090
9072
  case o:
@@ -9112,49 +9094,49 @@ function IC() {
9112
9094
  }
9113
9095
  }
9114
9096
  var O = i, k = a, J = e, ee = l, _e = r, F = p, te = f, ce = t, pe = o, He = n, Ae = c, Ze = u, it = !1, xt = !1;
9115
- function S(j) {
9097
+ function S(I) {
9116
9098
  return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
9117
9099
  }
9118
- function C(j) {
9100
+ function C(I) {
9119
9101
  return xt || (xt = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
9120
9102
  }
9121
- function W(j) {
9122
- return x(j) === i;
9103
+ function W(I) {
9104
+ return x(I) === i;
9123
9105
  }
9124
- function M(j) {
9125
- return x(j) === a;
9106
+ function M(I) {
9107
+ return x(I) === a;
9126
9108
  }
9127
- function U(j) {
9128
- return typeof j == "object" && j !== null && j.$$typeof === e;
9109
+ function U(I) {
9110
+ return typeof I == "object" && I !== null && I.$$typeof === e;
9129
9111
  }
9130
- function N(j) {
9131
- return x(j) === l;
9112
+ function N(I) {
9113
+ return x(I) === l;
9132
9114
  }
9133
- function L(j) {
9134
- return x(j) === r;
9115
+ function L(I) {
9116
+ return x(I) === r;
9135
9117
  }
9136
- function B(j) {
9137
- return x(j) === p;
9118
+ function B(I) {
9119
+ return x(I) === p;
9138
9120
  }
9139
- function H(j) {
9140
- return x(j) === f;
9121
+ function H(I) {
9122
+ return x(I) === f;
9141
9123
  }
9142
- function q(j) {
9143
- return x(j) === t;
9124
+ function q(I) {
9125
+ return x(I) === t;
9144
9126
  }
9145
- function G(j) {
9146
- return x(j) === o;
9127
+ function G(I) {
9128
+ return x(I) === o;
9147
9129
  }
9148
- function Ee(j) {
9149
- return x(j) === n;
9130
+ function Ee(I) {
9131
+ return x(I) === n;
9150
9132
  }
9151
- function P(j) {
9152
- return x(j) === c;
9133
+ function P(I) {
9134
+ return x(I) === c;
9153
9135
  }
9154
- function $e(j) {
9155
- return x(j) === u;
9136
+ function Pe(I) {
9137
+ return x(I) === u;
9156
9138
  }
9157
- le.ContextConsumer = O, le.ContextProvider = k, le.Element = J, le.ForwardRef = ee, le.Fragment = _e, le.Lazy = F, le.Memo = te, le.Portal = ce, le.Profiler = pe, le.StrictMode = He, le.Suspense = Ae, le.SuspenseList = Ze, le.isAsyncMode = S, le.isConcurrentMode = C, le.isContextConsumer = W, le.isContextProvider = M, le.isElement = U, le.isForwardRef = N, le.isFragment = L, le.isLazy = B, le.isMemo = H, le.isPortal = q, le.isProfiler = G, le.isStrictMode = Ee, le.isSuspense = P, le.isSuspenseList = $e, le.isValidElementType = I, le.typeOf = x;
9139
+ le.ContextConsumer = O, le.ContextProvider = k, le.Element = J, le.ForwardRef = ee, le.Fragment = _e, le.Lazy = F, le.Memo = te, le.Portal = ce, le.Profiler = pe, le.StrictMode = He, le.Suspense = Ae, le.SuspenseList = Ze, le.isAsyncMode = S, le.isConcurrentMode = C, le.isContextConsumer = W, le.isContextProvider = M, le.isElement = U, le.isForwardRef = N, le.isFragment = L, le.isLazy = B, le.isMemo = H, le.isPortal = q, le.isProfiler = G, le.isStrictMode = Ee, le.isSuspense = P, le.isSuspenseList = Pe, le.isValidElementType = D, le.typeOf = x;
9158
9140
  }()), le;
9159
9141
  }
9160
9142
  process.env.NODE_ENV === "production" ? ri.exports = jC() : ri.exports = IC();
@@ -9282,7 +9264,7 @@ function er(e, t) {
9282
9264
  var r = {};
9283
9265
  for (var n in e)
9284
9266
  if ({}.hasOwnProperty.call(e, n)) {
9285
- if (t.indexOf(n) >= 0)
9267
+ if (t.includes(n))
9286
9268
  continue;
9287
9269
  r[n] = e[n];
9288
9270
  }
@@ -9371,7 +9353,7 @@ function QC() {
9371
9353
  var o = {};
9372
9354
  for (var a in r)
9373
9355
  if ({}.hasOwnProperty.call(r, a)) {
9374
- if (n.indexOf(a) >= 0)
9356
+ if (n.includes(a))
9375
9357
  continue;
9376
9358
  o[a] = r[a];
9377
9359
  }
@@ -9566,8 +9548,8 @@ function bn(e, t, r) {
9566
9548
  case "string":
9567
9549
  if (process.env.NODE_ENV !== "production") {
9568
9550
  var s = [], l = r.replace(sd, function(u, f, p) {
9569
- var y = "animation" + s.length;
9570
- return s.push("const " + y + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + y + "}";
9551
+ var g = "animation" + s.length;
9552
+ return s.push("const " + g + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + g + "}";
9571
9553
  });
9572
9554
  s.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(s, ["`" + l + "`"]).join(`
9573
9555
  `) + `
@@ -9686,39 +9668,39 @@ You may have forgotten to import it.`);
9686
9668
  f.push.apply(f, u);
9687
9669
  else {
9688
9670
  process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(gc), f.push(u[0][0]);
9689
- for (var p = u.length, y = 1; y < p; y++)
9690
- process.env.NODE_ENV !== "production" && u[0][y] === void 0 && console.error(gc), f.push(u[y], u[0][y]);
9671
+ for (var p = u.length, g = 1; g < p; g++)
9672
+ process.env.NODE_ENV !== "production" && u[0][g] === void 0 && console.error(gc), f.push(u[g], u[0][g]);
9691
9673
  }
9692
- var g = up(function(h, b, T) {
9693
- var A = c && h.as || o, D = "", I = [], x = h;
9674
+ var y = up(function(h, b, T) {
9675
+ var A = c && h.as || o, j = "", D = [], x = h;
9694
9676
  if (h.theme == null) {
9695
9677
  x = {};
9696
9678
  for (var O in h)
9697
9679
  x[O] = h[O];
9698
9680
  x.theme = lt.useContext(eu);
9699
9681
  }
9700
- typeof h.className == "string" ? D = nA(b.registered, I, h.className) : h.className != null && (D = h.className + " ");
9701
- var k = mA(f.concat(I), b.registered, x);
9702
- D += b.key + "-" + k.name, i !== void 0 && (D += " " + i);
9682
+ typeof h.className == "string" ? j = nA(b.registered, D, h.className) : h.className != null && (j = h.className + " ");
9683
+ var k = mA(f.concat(D), b.registered, x);
9684
+ j += b.key + "-" + k.name, i !== void 0 && (j += " " + i);
9703
9685
  var J = c && s === void 0 ? hc(A) : l, ee = {};
9704
9686
  for (var _e in h)
9705
9687
  c && _e === "as" || // $FlowFixMe
9706
9688
  J(_e) && (ee[_e] = h[_e]);
9707
- return ee.className = D, ee.ref = T, /* @__PURE__ */ lt.createElement(lt.Fragment, null, /* @__PURE__ */ lt.createElement(_A, {
9689
+ return ee.className = j, ee.ref = T, /* @__PURE__ */ lt.createElement(lt.Fragment, null, /* @__PURE__ */ lt.createElement(_A, {
9708
9690
  cache: b,
9709
9691
  serialized: k,
9710
9692
  isStringTag: typeof A == "string"
9711
9693
  }), /* @__PURE__ */ lt.createElement(A, ee));
9712
9694
  });
9713
- return g.displayName = a !== void 0 ? a : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", g.defaultProps = t.defaultProps, g.__emotion_real = g, g.__emotion_base = o, g.__emotion_styles = f, g.__emotion_forwardProp = s, Object.defineProperty(g, "toString", {
9695
+ return y.displayName = a !== void 0 ? a : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = o, y.__emotion_styles = f, y.__emotion_forwardProp = s, Object.defineProperty(y, "toString", {
9714
9696
  value: function() {
9715
9697
  return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i;
9716
9698
  }
9717
- }), g.withComponent = function(h, b) {
9699
+ }), y.withComponent = function(h, b) {
9718
9700
  return e(h, de({}, r, b, {
9719
- shouldForwardProp: mc(g, b, !0)
9701
+ shouldForwardProp: mc(y, b, !0)
9720
9702
  })).apply(void 0, f);
9721
- }, g;
9703
+ }, y;
9722
9704
  };
9723
9705
  }, TA = [
9724
9706
  "a",
@@ -10048,10 +10030,10 @@ function zA(e) {
10048
10030
  return hd(co("", null, null, null, [""], e = pd(e), 0, [0], e));
10049
10031
  }
10050
10032
  function co(e, t, r, n, o, a, i, s, l) {
10051
- for (var c = 0, u = 0, f = i, p = 0, y = 0, g = 0, h = 1, b = 1, T = 1, A = 0, D = "", I = o, x = a, O = n, k = D; b; )
10052
- switch (g = A, A = ut()) {
10033
+ for (var c = 0, u = 0, f = i, p = 0, g = 0, y = 0, h = 1, b = 1, T = 1, A = 0, j = "", D = o, x = a, O = n, k = j; b; )
10034
+ switch (y = A, A = ut()) {
10053
10035
  case 40:
10054
- if (g != 108 && Ne(k, f - 1) == 58) {
10036
+ if (y != 108 && Ne(k, f - 1) == 58) {
10055
10037
  ai(k += ne(lo(A), "&", "&\f"), "&\f") != -1 && (T = -1);
10056
10038
  break;
10057
10039
  }
@@ -10064,7 +10046,7 @@ function co(e, t, r, n, o, a, i, s, l) {
10064
10046
  case 10:
10065
10047
  case 13:
10066
10048
  case 32:
10067
- k += MA(g);
10049
+ k += MA(y);
10068
10050
  break;
10069
10051
  case 92:
10070
10052
  k += NA(so() - 1, 7);
@@ -10089,30 +10071,30 @@ function co(e, t, r, n, o, a, i, s, l) {
10089
10071
  case 125:
10090
10072
  b = 0;
10091
10073
  case 59 + u:
10092
- T == -1 && (k = ne(k, /\f/g, "")), y > 0 && Pt(k) - f && to(y > 32 ? vc(k + ";", n, r, f - 1) : vc(ne(k, " ", "") + ";", n, r, f - 2), l);
10074
+ T == -1 && (k = ne(k, /\f/g, "")), g > 0 && Pt(k) - f && to(g > 32 ? vc(k + ";", n, r, f - 1) : vc(ne(k, " ", "") + ";", n, r, f - 2), l);
10093
10075
  break;
10094
10076
  case 59:
10095
10077
  k += ";";
10096
10078
  default:
10097
- if (to(O = yc(k, t, r, c, u, o, s, D, I = [], x = [], f), a), A === 123)
10079
+ if (to(O = yc(k, t, r, c, u, o, s, j, D = [], x = [], f), a), A === 123)
10098
10080
  if (u === 0)
10099
- co(k, t, O, O, I, a, f, s, x);
10081
+ co(k, t, O, O, D, a, f, s, x);
10100
10082
  else
10101
10083
  switch (p === 99 && Ne(k, 3) === 110 ? 100 : p) {
10102
10084
  case 100:
10103
10085
  case 108:
10104
10086
  case 109:
10105
10087
  case 115:
10106
- co(e, O, O, n && to(yc(e, O, O, 0, 0, o, s, D, o, I = [], f), x), o, x, f, s, n ? I : x);
10088
+ co(e, O, O, n && to(yc(e, O, O, 0, 0, o, s, j, o, D = [], f), x), o, x, f, s, n ? D : x);
10107
10089
  break;
10108
10090
  default:
10109
10091
  co(k, O, O, O, [""], x, 0, s, x);
10110
10092
  }
10111
10093
  }
10112
- c = u = y = 0, h = T = 1, D = k = "", f = i;
10094
+ c = u = g = 0, h = T = 1, j = k = "", f = i;
10113
10095
  break;
10114
10096
  case 58:
10115
- f = 1 + Pt(k), y = g;
10097
+ f = 1 + Pt(k), g = y;
10116
10098
  default:
10117
10099
  if (h < 1) {
10118
10100
  if (A == 123)
@@ -10128,18 +10110,18 @@ function co(e, t, r, n, o, a, i, s, l) {
10128
10110
  s[c++] = (Pt(k) - 1) * T, T = 1;
10129
10111
  break;
10130
10112
  case 64:
10131
- jt() === 45 && (k += lo(ut())), p = jt(), u = f = Pt(D = k += LA(so())), A++;
10113
+ jt() === 45 && (k += lo(ut())), p = jt(), u = f = Pt(j = k += LA(so())), A++;
10132
10114
  break;
10133
10115
  case 45:
10134
- g === 45 && Pt(k) == 2 && (h = 0);
10116
+ y === 45 && Pt(k) == 2 && (h = 0);
10135
10117
  }
10136
10118
  }
10137
10119
  return a;
10138
10120
  }
10139
10121
  function yc(e, t, r, n, o, a, i, s, l, c, u) {
10140
- for (var f = o - 1, p = o === 0 ? a : [""], y = os(p), g = 0, h = 0, b = 0; g < n; ++g)
10141
- for (var T = 0, A = xn(e, f + 1, f = $A(h = i[g])), D = e; T < y; ++T)
10142
- (D = fd(h > 0 ? p[T] + " " + A : ne(A, /&\f/g, p[T]))) && (l[b++] = D);
10122
+ for (var f = o - 1, p = o === 0 ? a : [""], g = os(p), y = 0, h = 0, b = 0; y < n; ++y)
10123
+ for (var T = 0, A = xn(e, f + 1, f = $A(h = i[y])), j = e; T < g; ++T)
10124
+ (j = fd(h > 0 ? p[T] + " " + A : ne(A, /&\f/g, p[T]))) && (l[b++] = j);
10143
10125
  return Qo(e, t, r, o === 0 ? rs : s, l, c, u);
10144
10126
  }
10145
10127
  function UA(e, t, r) {
@@ -10442,7 +10424,7 @@ If multiple caches share the same key they might "fight" for each other's style
10442
10424
  var l, c = [YA, KA];
10443
10425
  process.env.NODE_ENV !== "production" && c.push(ZA({
10444
10426
  get compat() {
10445
- return g.compat;
10427
+ return y.compat;
10446
10428
  }
10447
10429
  }), e$);
10448
10430
  {
@@ -10450,18 +10432,18 @@ If multiple caches share the same key they might "fight" for each other's style
10450
10432
  h.root || (h.return ? u.insert(h.return) : h.value && h.type !== ts && u.insert(h.value + "{}"));
10451
10433
  } : WA(function(h) {
10452
10434
  u.insert(h);
10453
- })], p = BA(c.concat(o, f)), y = function(b) {
10435
+ })], p = BA(c.concat(o, f)), g = function(b) {
10454
10436
  return jr(zA(b), p);
10455
10437
  };
10456
- l = function(b, T, A, D) {
10438
+ l = function(b, T, A, j) {
10457
10439
  u = A, process.env.NODE_ENV !== "production" && T.map !== void 0 && (u = {
10458
10440
  insert: function(x) {
10459
10441
  A.insert(x + T.map);
10460
10442
  }
10461
- }), y(b ? b + "{" + T.styles + "}" : T.styles), D && (g.inserted[T.name] = !0);
10443
+ }), g(b ? b + "{" + T.styles + "}" : T.styles), j && (y.inserted[T.name] = !0);
10462
10444
  };
10463
10445
  }
10464
- var g = {
10446
+ var y = {
10465
10447
  key: r,
10466
10448
  sheet: new OA({
10467
10449
  key: r,
@@ -10476,7 +10458,7 @@ If multiple caches share the same key they might "fight" for each other's style
10476
10458
  registered: {},
10477
10459
  insert: l
10478
10460
  };
10479
- return g.sheet.hydrate(s), g;
10461
+ return y.sheet.hydrate(s), y;
10480
10462
  };
10481
10463
  let si;
10482
10464
  typeof document == "object" && (si = n$({
@@ -10522,7 +10504,7 @@ process.env.NODE_ENV !== "production" && (vd.propTypes = {
10522
10504
  styles: V.oneOfType([V.array, V.string, V.object, V.func])
10523
10505
  });
10524
10506
  /**
10525
- * @mui/styled-engine v5.15.14
10507
+ * @mui/styled-engine v5.16.1
10526
10508
  *
10527
10509
  * @license MIT
10528
10510
  * This source code is licensed under the MIT license found in the
@@ -10581,16 +10563,16 @@ function bd(e) {
10581
10563
  function l(p) {
10582
10564
  return `@media (max-width:${(typeof t[p] == "number" ? t[p] : p) - n / 100}${r})`;
10583
10565
  }
10584
- function c(p, y) {
10585
- const g = i.indexOf(y);
10586
- return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(g !== -1 && typeof t[i[g]] == "number" ? t[i[g]] : y) - n / 100}${r})`;
10566
+ function c(p, g) {
10567
+ const y = i.indexOf(g);
10568
+ return `@media (min-width:${typeof t[p] == "number" ? t[p] : p}${r}) and (max-width:${(y !== -1 && typeof t[i[y]] == "number" ? t[i[y]] : g) - n / 100}${r})`;
10587
10569
  }
10588
10570
  function u(p) {
10589
10571
  return i.indexOf(p) + 1 < i.length ? c(p, i[i.indexOf(p) + 1]) : s(p);
10590
10572
  }
10591
10573
  function f(p) {
10592
- const y = i.indexOf(p);
10593
- return y === 0 ? s(i[1]) : y === i.length - 1 ? l(i[y]) : c(p, i[i.indexOf(p) + 1]).replace("@media", "@media not all and");
10574
+ const g = i.indexOf(p);
10575
+ return g === 0 ? s(i[1]) : g === i.length - 1 ? l(i[g]) : c(p, i[i.indexOf(p) + 1]).replace("@media", "@media not all and");
10594
10576
  }
10595
10577
  return de({
10596
10578
  keys: i,
@@ -11252,9 +11234,9 @@ function Ed() {
11252
11234
  [r]: n
11253
11235
  };
11254
11236
  const p = ea(o, c) || {};
11255
- return f ? f(i) : zt(i, n, (g) => {
11256
- let h = wo(p, u, g);
11257
- return g === h && typeof g == "string" && (h = wo(p, u, `${r}${g === "default" ? "" : ur(g)}`, g)), l === !1 ? h : {
11237
+ return f ? f(i) : zt(i, n, (y) => {
11238
+ let h = wo(p, u, y);
11239
+ return y === h && typeof y == "string" && (h = wo(p, u, `${r}${y === "default" ? "" : ur(y)}`, y)), l === !1 ? h : {
11258
11240
  [l]: h
11259
11241
  };
11260
11242
  });
@@ -11278,25 +11260,25 @@ function Ed() {
11278
11260
  return null;
11279
11261
  const u = y$(a.breakpoints), f = Object.keys(u);
11280
11262
  let p = u;
11281
- return Object.keys(c).forEach((y) => {
11282
- const g = a2(c[y], a);
11283
- if (g != null)
11284
- if (typeof g == "object")
11285
- if (i[y])
11286
- p = mn(p, e(y, g, a, i));
11263
+ return Object.keys(c).forEach((g) => {
11264
+ const y = a2(c[g], a);
11265
+ if (y != null)
11266
+ if (typeof y == "object")
11267
+ if (i[g])
11268
+ p = mn(p, e(g, y, a, i));
11287
11269
  else {
11288
11270
  const h = zt({
11289
11271
  theme: a
11290
- }, g, (b) => ({
11291
- [y]: b
11272
+ }, y, (b) => ({
11273
+ [g]: b
11292
11274
  }));
11293
- o2(h, g) ? p[y] = t({
11294
- sx: g,
11275
+ o2(h, y) ? p[g] = t({
11276
+ sx: y,
11295
11277
  theme: a
11296
11278
  }) : p = mn(p, h);
11297
11279
  }
11298
11280
  else
11299
- p = mn(p, e(y, g, a, i));
11281
+ p = mn(p, e(g, y, a, i));
11300
11282
  }), v$(f, p);
11301
11283
  }
11302
11284
  return Array.isArray(o) ? o.map(s) : s(o);
@@ -11482,7 +11464,7 @@ function A2(e = {}) {
11482
11464
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
11483
11465
  // For more details: https://github.com/mui/material-ui/pull/37908
11484
11466
  overridesResolver: p = C2(Sc(c))
11485
- } = s, y = (0, li.default)(s, E2), g = u !== void 0 ? u : (
11467
+ } = s, g = (0, li.default)(s, E2), y = u !== void 0 ? u : (
11486
11468
  // TODO v6: remove `Root` in the next major release
11487
11469
  // For more details: https://github.com/mui/material-ui/pull/37908
11488
11470
  c && c !== "Root" && c !== "root" || !1
@@ -11494,15 +11476,15 @@ function A2(e = {}) {
11494
11476
  const A = (0, Tc.default)(i, (0, pt.default)({
11495
11477
  shouldForwardProp: T,
11496
11478
  label: b
11497
- }, y)), D = (x) => typeof x == "function" && x.__emotion_real !== x || (0, m2.isPlainObject)(x) ? (O) => fo(x, (0, pt.default)({}, O, {
11479
+ }, g)), j = (x) => typeof x == "function" && x.__emotion_real !== x || (0, m2.isPlainObject)(x) ? (O) => fo(x, (0, pt.default)({}, O, {
11498
11480
  theme: ro({
11499
11481
  theme: O.theme,
11500
11482
  defaultTheme: r,
11501
11483
  themeId: t
11502
11484
  })
11503
- })) : x, I = (x, ...O) => {
11504
- let k = D(x);
11505
- const J = O ? O.map(D) : [];
11485
+ })) : x, D = (x, ...O) => {
11486
+ let k = j(x);
11487
+ const J = O ? O.map(j) : [];
11506
11488
  l && p && J.push((F) => {
11507
11489
  const te = ro((0, pt.default)({}, F, {
11508
11490
  defaultTheme: r,
@@ -11516,7 +11498,7 @@ function A2(e = {}) {
11516
11498
  theme: te
11517
11499
  }));
11518
11500
  }), p(F, pe);
11519
- }), l && !g && J.push((F) => {
11501
+ }), l && !y && J.push((F) => {
11520
11502
  var te;
11521
11503
  const ce = ro((0, pt.default)({}, F, {
11522
11504
  defaultTheme: r,
@@ -11540,7 +11522,7 @@ function A2(e = {}) {
11540
11522
  }
11541
11523
  return i.muiName && (_e.muiName = i.muiName), _e;
11542
11524
  };
11543
- return A.withConfig && (I.withConfig = A.withConfig), I;
11525
+ return A.withConfig && (D.withConfig = A.withConfig), D;
11544
11526
  };
11545
11527
  }
11546
11528
  function $2(e, t) {
@@ -11992,7 +11974,7 @@ function iP(e) {
11992
11974
  name: b,
11993
11975
  mainShade: T = 500,
11994
11976
  lightShade: A = 300,
11995
- darkShade: D = 700
11977
+ darkShade: j = 700
11996
11978
  }) => {
11997
11979
  if (h = de({}, h), !h.main && h[T] && (h.main = h[T]), !h.hasOwnProperty("main"))
11998
11980
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${b ? ` (${b})` : ""} provided to augmentColor(color) is invalid.
@@ -12012,12 +11994,12 @@ const theme1 = createTheme({ palette: {
12012
11994
  const theme2 = createTheme({ palette: {
12013
11995
  primary: { main: green[500] },
12014
11996
  } });` : vn(12, b ? ` (${b})` : "", JSON.stringify(h.main)));
12015
- return Ac(h, "light", A, n), Ac(h, "dark", D, n), h.contrastText || (h.contrastText = f(h.main)), h;
12016
- }, y = {
11997
+ return Ac(h, "light", A, n), Ac(h, "dark", j, n), h.contrastText || (h.contrastText = f(h.main)), h;
11998
+ }, g = {
12017
11999
  dark: ka,
12018
12000
  light: Cc
12019
12001
  };
12020
- return process.env.NODE_ENV !== "production" && (y[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), kt(de({
12002
+ return process.env.NODE_ENV !== "production" && (g[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), kt(de({
12021
12003
  // A collection of common colors.
12022
12004
  common: de({}, En),
12023
12005
  // prevent mutable object.
@@ -12069,7 +12051,7 @@ const theme2 = createTheme({ palette: {
12069
12051
  // two indexes within its tonal palette.
12070
12052
  // E.g., shift from Red 500 to Red 300 or Red 700.
12071
12053
  tonalOffset: n
12072
- }, y[t]), o);
12054
+ }, g[t]), o);
12073
12055
  }
12074
12056
  const sP = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
12075
12057
  function lP(e) {
@@ -12096,14 +12078,14 @@ function cP(e, t) {
12096
12078
  pxToRem: f
12097
12079
  } = r, p = er(r, sP);
12098
12080
  process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
12099
- const y = o / 14, g = f || ((T) => `${T / c * y}rem`), h = (T, A, D, I, x) => de({
12081
+ const g = o / 14, y = f || ((T) => `${T / c * g}rem`), h = (T, A, j, D, x) => de({
12100
12082
  fontFamily: n,
12101
12083
  fontWeight: T,
12102
- fontSize: g(A),
12084
+ fontSize: y(A),
12103
12085
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
12104
- lineHeight: D
12086
+ lineHeight: j
12105
12087
  }, n === Pc ? {
12106
- letterSpacing: `${lP(I / A)}em`
12088
+ letterSpacing: `${lP(D / A)}em`
12107
12089
  } : {}, x, u), b = {
12108
12090
  h1: h(a, 96, 1.167, -1.5),
12109
12091
  h2: h(a, 60, 1.2, -0.5),
@@ -12129,7 +12111,7 @@ function cP(e, t) {
12129
12111
  };
12130
12112
  return kt(de({
12131
12113
  htmlFontSize: c,
12132
- pxToRem: g,
12114
+ pxToRem: y,
12133
12115
  fontFamily: n,
12134
12116
  fontSize: o,
12135
12117
  fontWeightLight: a,
@@ -12229,27 +12211,27 @@ function TP(e = {}, ...t) {
12229
12211
  zIndex: de({}, _P)
12230
12212
  });
12231
12213
  if (c = kt(c, i), c = t.reduce((u, f) => kt(u, f), c), process.env.NODE_ENV !== "production") {
12232
- const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (p, y) => {
12233
- let g;
12234
- for (g in p) {
12235
- const h = p[g];
12236
- if (u.indexOf(g) !== -1 && Object.keys(h).length > 0) {
12214
+ const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (p, g) => {
12215
+ let y;
12216
+ for (y in p) {
12217
+ const h = p[y];
12218
+ if (u.indexOf(y) !== -1 && Object.keys(h).length > 0) {
12237
12219
  if (process.env.NODE_ENV !== "production") {
12238
- const b = Qi("", g);
12239
- console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${g}\` internal state.`, "You can not override it like this: ", JSON.stringify(p, null, 2), "", `Instead, you need to use the '&.${b}' syntax:`, JSON.stringify({
12220
+ const b = Qi("", y);
12221
+ console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(p, null, 2), "", `Instead, you need to use the '&.${b}' syntax:`, JSON.stringify({
12240
12222
  root: {
12241
12223
  [`&.${b}`]: h
12242
12224
  }
12243
12225
  }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
12244
12226
  `));
12245
12227
  }
12246
- p[g] = {};
12228
+ p[y] = {};
12247
12229
  }
12248
12230
  }
12249
12231
  };
12250
12232
  Object.keys(c.components).forEach((p) => {
12251
- const y = c.components[p].styleOverrides;
12252
- y && p.indexOf("Mui") === 0 && f(y, p);
12233
+ const g = c.components[p].styleOverrides;
12234
+ g && p.indexOf("Mui") === 0 && f(g, p);
12253
12235
  });
12254
12236
  }
12255
12237
  return c.unstable_sxConfig = de({}, Rn, i == null ? void 0 : i.unstable_sxConfig), c.unstable_sx = function(f) {
@@ -12294,7 +12276,7 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12294
12276
  theme: e,
12295
12277
  ownerState: t
12296
12278
  }) => {
12297
- var r, n, o, a, i, s, l, c, u, f, p, y, g;
12279
+ var r, n, o, a, i, s, l, c, u, f, p, g, y;
12298
12280
  return {
12299
12281
  userSelect: "none",
12300
12282
  width: "1em",
@@ -12315,8 +12297,8 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12315
12297
  }[t.fontSize],
12316
12298
  // TODO v5 deprecate, v6 remove for sx
12317
12299
  color: (f = (p = (e.vars || e).palette) == null || (p = p[t.color]) == null ? void 0 : p.main) != null ? f : {
12318
- action: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.active,
12319
- disabled: (g = (e.vars || e).palette) == null || (g = g.action) == null ? void 0 : g.disabled,
12300
+ action: (g = (e.vars || e).palette) == null || (g = g.action) == null ? void 0 : g.active,
12301
+ disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled,
12320
12302
  inherit: void 0
12321
12303
  }[t.color]
12322
12304
  };
@@ -12334,14 +12316,14 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12334
12316
  inheritViewBox: u = !1,
12335
12317
  titleAccess: f,
12336
12318
  viewBox: p = "0 0 24 24"
12337
- } = n, y = er(n, jP), g = /* @__PURE__ */ lt.isValidElement(o) && o.type === "svg", h = de({}, n, {
12319
+ } = n, g = er(n, jP), y = /* @__PURE__ */ lt.isValidElement(o) && o.type === "svg", h = de({}, n, {
12338
12320
  color: i,
12339
12321
  component: s,
12340
12322
  fontSize: l,
12341
12323
  instanceFontSize: t.fontSize,
12342
12324
  inheritViewBox: u,
12343
12325
  viewBox: p,
12344
- hasSvgAsChild: g
12326
+ hasSvgAsChild: y
12345
12327
  }), b = {};
12346
12328
  u || (b.viewBox = p);
12347
12329
  const T = IP(h);
@@ -12353,9 +12335,9 @@ const jP = ["children", "className", "color", "component", "fontSize", "htmlColo
12353
12335
  "aria-hidden": f ? void 0 : !0,
12354
12336
  role: f ? "img" : void 0,
12355
12337
  ref: r
12356
- }, b, y, g && o.props, {
12338
+ }, b, g, y && o.props, {
12357
12339
  ownerState: h,
12358
- children: [g ? o.props.children : o, f ? /* @__PURE__ */ d.jsx("title", {
12340
+ children: [y ? o.props.children : o, f ? /* @__PURE__ */ d.jsx("title", {
12359
12341
  children: f
12360
12342
  }) : null]
12361
12343
  }));
@@ -12451,7 +12433,7 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12451
12433
  d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"
12452
12434
  }), "ArrowUpward"), FP = ds(/* @__PURE__ */ d.jsx("path", {
12453
12435
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
12454
- }), "Delete"), Tn = ({ children: e, ...t }) => /* @__PURE__ */ d.jsx(Pe.Td, { ...t, children: e }), LP = ({ errorMessages: e, id: t }) => /* @__PURE__ */ d.jsx(mt, { id: t, title: e, children: /* @__PURE__ */ d.jsx(ci, { label: e.split(`
12436
+ }), "Delete"), Tn = ({ children: e, ...t }) => /* @__PURE__ */ d.jsx(Re.Td, { ...t, children: e }), LP = ({ errorMessages: e, id: t }) => /* @__PURE__ */ d.jsx(mt, { id: t, title: e, children: /* @__PURE__ */ d.jsx(ci, { label: e.split(`
12455
12437
  `).length, children: /* @__PURE__ */ d.jsx(om, {}) }) }), zP = {
12456
12438
  paddingLeft: 0,
12457
12439
  paddingRight: 0
@@ -12472,7 +12454,7 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12472
12454
  size: "sm",
12473
12455
  c: "gray"
12474
12456
  }, {});
12475
- return /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
12457
+ return /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
12476
12458
  /* @__PURE__ */ d.jsx(Tn, { colSpan: t, children: /* @__PURE__ */ d.jsxs($o, { children: [
12477
12459
  /* @__PURE__ */ d.jsxs(rt, { justify: "flex-start", align: "center", gutter: "sm", children: [
12478
12460
  /* @__PURE__ */ d.jsx(rt.Col, { span: "content", children: /* @__PURE__ */ d.jsx(nt, { children: n }) }),
@@ -12530,8 +12512,8 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12530
12512
  };
12531
12513
  return /* @__PURE__ */ d.jsx(e, { ...a }, r);
12532
12514
  }
12533
- }, Id = (e) => e.type === "object" && typeof e.properties == "object" ? Object.keys(e.properties).filter((t) => e.properties[t].type !== "array") : [""], VP = ({ numColumns: e, translations: t }) => /* @__PURE__ */ d.jsx(Pe.Tr, { children: /* @__PURE__ */ d.jsx(Tn, { colSpan: e, children: /* @__PURE__ */ d.jsx(nt, { align: "center", children: t.noDataMessage }) }) }), BP = je.memo(function({ title: t }) {
12534
- return /* @__PURE__ */ d.jsx(Pe.Th, { children: t });
12515
+ }, Id = (e) => e.type === "object" && typeof e.properties == "object" ? Object.keys(e.properties).filter((t) => e.properties[t].type !== "array") : [""], VP = ({ numColumns: e, translations: t }) => /* @__PURE__ */ d.jsx(Re.Tr, { children: /* @__PURE__ */ d.jsx(Tn, { colSpan: e, children: /* @__PURE__ */ d.jsx(nt, { align: "center", children: t.noDataMessage }) }) }), BP = je.memo(function({ title: t }) {
12516
+ return /* @__PURE__ */ d.jsx(Re.Th, { children: t });
12535
12517
  }), WP = (e, t) => {
12536
12518
  const r = t.rowPath + (t.schema.type === "object" ? "." + t.propName : ""), n = tp(
12537
12519
  rw(rp(r, t.schema, (o) => o === r)(e.core.errors).map((o) => o.message))
@@ -12604,12 +12586,12 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12604
12586
  path: f,
12605
12587
  translations: p
12606
12588
  }) => {
12607
- const g = Be("ActionIcon", {
12589
+ const y = Be("ActionIcon", {
12608
12590
  bg: "transparent",
12609
12591
  size: "sm",
12610
12592
  c: "gray"
12611
12593
  }, {}), h = wt(() => o(f, r), [o, f, r]), b = wt(() => a(f, r), [a, f, r]);
12612
- return /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
12594
+ return /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
12613
12595
  jd(GP, t, e, c, u),
12614
12596
  c ? /* @__PURE__ */ d.jsx(Tn, { style: l ? jc.fixedCell : jc.fixedCellSmall, children: /* @__PURE__ */ d.jsxs(rt, { justify: "flex-end", align: "center", children: [
12615
12597
  l ? /* @__PURE__ */ d.jsxs(Fd, { children: [
@@ -12623,9 +12605,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12623
12605
  children: /* @__PURE__ */ d.jsx(
12624
12606
  gt,
12625
12607
  {
12626
- bg: g.bg,
12627
- size: g.size,
12628
- c: g.c,
12608
+ bg: y.bg,
12609
+ size: y.size,
12610
+ c: y.c,
12629
12611
  "aria-label": p.upAriaLabel,
12630
12612
  onClick: h,
12631
12613
  disabled: !i,
@@ -12644,9 +12626,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12644
12626
  children: /* @__PURE__ */ d.jsx(
12645
12627
  gt,
12646
12628
  {
12647
- bg: g.bg,
12648
- size: g.size,
12649
- c: g.c,
12629
+ bg: y.bg,
12630
+ size: y.size,
12631
+ c: y.c,
12650
12632
  "aria-label": p.downAriaLabel,
12651
12633
  onClick: b,
12652
12634
  disabled: !s,
@@ -12659,9 +12641,9 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12659
12641
  /* @__PURE__ */ d.jsx(rt.Col, { span: "content", children: /* @__PURE__ */ d.jsx(mt, { id: "tooltip-remove", title: p.removeTooltip, position: "bottom", children: /* @__PURE__ */ d.jsx(
12660
12642
  gt,
12661
12643
  {
12662
- bg: g.bg,
12663
- size: g.size,
12664
- c: g.c,
12644
+ bg: y.bg,
12645
+ size: y.size,
12646
+ c: y.c,
12665
12647
  "aria-label": p.removeAriaLabel,
12666
12648
  onClick: () => n(e, r),
12667
12649
  children: /* @__PURE__ */ d.jsx(FP, {})
@@ -12685,26 +12667,26 @@ const MP = ds(/* @__PURE__ */ d.jsx("path", {
12685
12667
  if (e === 0)
12686
12668
  return /* @__PURE__ */ d.jsx(VP, { numColumns: Id(r).length + 1, translations: u });
12687
12669
  const p = Cf({}, s, i.options);
12688
- return /* @__PURE__ */ d.jsx(je.Fragment, { children: PC(e).map((y) => {
12689
- const g = Qc.compose(t, `${y}`);
12670
+ return /* @__PURE__ */ d.jsx(je.Fragment, { children: PC(e).map((g) => {
12671
+ const y = Qc.compose(t, `${g}`);
12690
12672
  return /* @__PURE__ */ d.jsx(
12691
12673
  YP,
12692
12674
  {
12693
- childPath: g,
12694
- rowIndex: y,
12675
+ childPath: y,
12676
+ rowIndex: g,
12695
12677
  schema: r,
12696
12678
  openDeleteDialog: n,
12697
12679
  moveUpCreator: o,
12698
12680
  moveDownCreator: a,
12699
- enableUp: y !== 0,
12700
- enableDown: y !== e - 1,
12681
+ enableUp: g !== 0,
12682
+ enableDown: g !== e - 1,
12701
12683
  showSortButtons: p.showSortButtons || p.showArrayTableSortButtons,
12702
12684
  enabled: l,
12703
12685
  cells: c,
12704
12686
  path: t,
12705
12687
  translations: u
12706
12688
  },
12707
- g
12689
+ y
12708
12690
  );
12709
12691
  }) });
12710
12692
  };
@@ -12726,10 +12708,10 @@ class XP extends je.Component {
12726
12708
  visible: u,
12727
12709
  enabled: f,
12728
12710
  cells: p,
12729
- translations: y
12730
- } = this.props, g = s, h = a.type === "object", b = h ? jd(BP, a, o, f, p) : void 0;
12731
- return u ? /* @__PURE__ */ d.jsxs(Pe, { children: [
12732
- /* @__PURE__ */ d.jsxs(Pe.Thead, { children: [
12711
+ translations: g
12712
+ } = this.props, y = s, h = a.type === "object", b = h ? jd(BP, a, o, f, p) : void 0;
12713
+ return u ? /* @__PURE__ */ d.jsxs(Re, { children: [
12714
+ /* @__PURE__ */ d.jsxs(Re.Thead, { children: [
12733
12715
  /* @__PURE__ */ d.jsx(
12734
12716
  UP,
12735
12717
  {
@@ -12739,19 +12721,19 @@ class XP extends je.Component {
12739
12721
  addItem: this.addItem,
12740
12722
  numColumns: h ? b.length : 1,
12741
12723
  path: o,
12742
- uischema: g,
12724
+ uischema: y,
12743
12725
  schema: a,
12744
12726
  rootSchema: i,
12745
12727
  enabled: f,
12746
- translations: y
12728
+ translations: g
12747
12729
  }
12748
12730
  ),
12749
- h && /* @__PURE__ */ d.jsxs(Pe.Tr, { children: [
12731
+ h && /* @__PURE__ */ d.jsxs(Re.Tr, { children: [
12750
12732
  b,
12751
- f ? /* @__PURE__ */ d.jsx(Pe.Th, {}) : null
12733
+ f ? /* @__PURE__ */ d.jsx(Re.Th, {}) : null
12752
12734
  ] })
12753
12735
  ] }),
12754
- /* @__PURE__ */ d.jsx(Pe.Tbody, { children: /* @__PURE__ */ d.jsx(KP, { openDeleteDialog: c, translations: y, ...this.props }) })
12736
+ /* @__PURE__ */ d.jsx(Re.Tbody, { children: /* @__PURE__ */ d.jsx(KP, { openDeleteDialog: c, translations: g, ...this.props }) })
12755
12737
  ] }) : null;
12756
12738
  }
12757
12739
  }
@@ -12774,13 +12756,13 @@ const JP = je.memo(function({
12774
12756
  ] });
12775
12757
  }), ZP = (e) => {
12776
12758
  const [t, r] = fe(!1), [n, o] = fe(void 0), [a, i] = fe(void 0), { removeItems: s, visible: l } = e, c = Te(
12777
- (y, g) => {
12778
- r(!0), o(y), i(g);
12759
+ (g, y) => {
12760
+ r(!0), o(g), i(y);
12779
12761
  },
12780
12762
  [r, o, i]
12781
12763
  ), u = Te(() => r(!1), [r]), f = Te(() => {
12782
- const y = n.substring(0, n.lastIndexOf("."));
12783
- s(y, [a])(), r(!1);
12764
+ const g = n.substring(0, n.lastIndexOf("."));
12765
+ s(g, [a])(), r(!1);
12784
12766
  }, [r, n, a]), p = Te(() => r(!1), [r]);
12785
12767
  return l ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
12786
12768
  /* @__PURE__ */ d.jsx(XP, { ...e, openDeleteDialog: c }),