@espresso-lab/mantine-data-table 1.10.2 → 1.10.3

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.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ import * as Ie from "react";
2
2
  import Ct, { createContext as Fn, useContext as Pi, useCallback as Le, createElement as jr, useRef as De, useImperativeHandle as ho, useEffect as $e, useState as ve, Fragment as Oi, useMemo as Xe, useLayoutEffect as ji } from "react";
3
3
  import { factory as Be, useProps as We, useStyles as St, createVarsResolver as gr, UnstyledButton as lr, getSize as Lr, Box as je, getSpacing as Rs, getFontSize as Ir, useResolvedStylesApi as Mi, AccordionChevron as fo, useInputProps as Es, Input as Mr, Popover as cr, Alert as Br, Stepper as Er, Group as qe, Button as mt, TextInput as Ai, NumberInput as Ri, Checkbox as Ut, Textarea as Ei, createSafeContext as Ts, rem as Et, Table as $s, ScrollArea as Ns, TableThead as Ls, TableTr as Ft, PopoverTarget as Ti, PopoverDropdown as $i, Stack as dr, TableTfoot as Is, Center as Yt, Loader as Bs, Text as at, parseThemeColor as Ys, TableTh as mr, Flex as zs, ActionIcon as hr, TableTd as Wn, Collapse as Ni, useMantineTheme as Li, Pagination as Ii, useDirection as Fs, Menu as Rt, MenuTarget as Ws, MenuDropdown as Us, MenuItem as qs, Skeleton as zt, Select as po, Divider as go, Tabs as Pn, Modal as fn, Title as Vs } from "@mantine/core";
4
4
  import { useForm as Bi } from "@mantine/form";
5
- import { IconSortAscending as Hs, IconSortDescending as Gs, IconChevronDown as Qs, IconCaretDownFilled as Zs, IconPencil as Ks, IconTrash as Js, IconRefresh as Xs, IconInfoCircle as ea } from "@tabler/icons-react";
5
+ import { IconSortAscending as Hs, IconSortDescending as Gs, IconChevronDown as Qs, IconCaretDownFilled as Ks, IconPencil as Zs, IconTrash as Js, IconRefresh as Xs, IconInfoCircle as ea } from "@tabler/icons-react";
6
6
  import { useUncontrolled as Yi, clamp as ta, useDidUpdate as ra, useClickOutside as zi, useMergedRef as mo, useLocalStorage as Un, useMediaQuery as na, useDisclosure as oa, useTimeout as yo } from "@mantine/hooks";
7
7
  function Fi(t) {
8
8
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -129,10 +129,10 @@ function On(t, e) {
129
129
  if (!r && !(jn(t) && jn(e))) return e;
130
130
  const i = (r ? t : Object.keys(t)).length, l = r ? e : Object.keys(e), u = l.length, a = r ? new Array(u) : {};
131
131
  let m = 0;
132
- for (let y = 0; y < u; y++) {
133
- const _ = r ? y : l[y], O = t[_], S = e[_];
132
+ for (let v = 0; v < u; v++) {
133
+ const _ = r ? v : l[v], O = t[_], S = e[_];
134
134
  if (O === S) {
135
- a[_] = O, (r ? y < i : ha.call(t, _)) && m++;
135
+ a[_] = O, (r ? v < i : ha.call(t, _)) && m++;
136
136
  continue;
137
137
  }
138
138
  if (O === null || S === null || typeof O != "object" || typeof S != "object") {
@@ -496,13 +496,13 @@ var _a = class extends Yr {
496
496
  this.#u && (Cr.clearInterval(this.#u), this.#u = void 0);
497
497
  }
498
498
  createResult(t, e) {
499
- const r = this.#e, n = this.options, i = this.#n, l = this.#o, u = this.#i, m = t !== r ? t.state : this.#r, { state: y } = t;
500
- let _ = { ...y }, O = !1, S;
499
+ const r = this.#e, n = this.options, i = this.#n, l = this.#o, u = this.#i, m = t !== r ? t.state : this.#r, { state: v } = t;
500
+ let _ = { ...v }, O = !1, S;
501
501
  if (e._optimisticResults) {
502
- const Q = this.hasListeners(), q = !Q && Po(t, e), W = Q && Oo(t, r, e, n);
503
- (q || W) && (_ = {
502
+ const Q = this.hasListeners(), q = !Q && Po(t, e), U = Q && Oo(t, r, e, n);
503
+ (q || U) && (_ = {
504
504
  ..._,
505
- ...wa(y.data, t.options)
505
+ ...wa(v.data, t.options)
506
506
  }), e._optimisticResults === "isRestoring" && (_.fetchStatus = "idle");
507
507
  }
508
508
  let { error: C, errorUpdatedAt: k, status: j } = _;
@@ -558,21 +558,21 @@ var _a = class extends Yr {
558
558
  isEnabled: st(e.enabled, t) !== !1
559
559
  };
560
560
  if (this.options.experimental_prefetchInRender) {
561
- const Q = (Z) => {
562
- H.status === "error" ? Z.reject(H.error) : H.data !== void 0 && Z.resolve(H.data);
561
+ const Q = (K) => {
562
+ H.status === "error" ? K.reject(H.error) : H.data !== void 0 && K.resolve(H.data);
563
563
  }, q = () => {
564
- const Z = this.#s = H.promise = ko();
565
- Q(Z);
566
- }, W = this.#s;
567
- switch (W.status) {
564
+ const K = this.#s = H.promise = ko();
565
+ Q(K);
566
+ }, U = this.#s;
567
+ switch (U.status) {
568
568
  case "pending":
569
- t.queryHash === r.queryHash && Q(W);
569
+ t.queryHash === r.queryHash && Q(U);
570
570
  break;
571
571
  case "fulfilled":
572
- (H.status === "error" || H.data !== W.value) && q();
572
+ (H.status === "error" || H.data !== U.value) && q();
573
573
  break;
574
574
  case "rejected":
575
- (H.status !== "error" || H.error !== W.reason) && q();
575
+ (H.status !== "error" || H.error !== U.reason) && q();
576
576
  break;
577
577
  }
578
578
  }
@@ -738,10 +738,10 @@ var Da = class extends Yr {
738
738
  });
739
739
  });
740
740
  }
741
- }, Sr = { exports: {} }, Kt = {};
741
+ }, Sr = { exports: {} }, Zt = {};
742
742
  var jo;
743
743
  function ka() {
744
- if (jo) return Kt;
744
+ if (jo) return Zt;
745
745
  jo = 1;
746
746
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
747
747
  function r(n, i, l) {
@@ -759,7 +759,7 @@ function ka() {
759
759
  props: l
760
760
  };
761
761
  }
762
- return Kt.Fragment = e, Kt.jsx = r, Kt.jsxs = r, Kt;
762
+ return Zt.Fragment = e, Zt.jsx = r, Zt.jsxs = r, Zt;
763
763
  }
764
764
  var Jt = {};
765
765
  var Mo;
@@ -768,7 +768,7 @@ function Pa() {
768
768
  function t(d) {
769
769
  if (d == null) return null;
770
770
  if (typeof d == "function")
771
- return d.$$typeof === Z ? null : d.displayName || d.name || null;
771
+ return d.$$typeof === K ? null : d.displayName || d.name || null;
772
772
  if (typeof d == "string") return d;
773
773
  switch (d) {
774
774
  case $:
@@ -781,7 +781,7 @@ function Pa() {
781
781
  return "Suspense";
782
782
  case H:
783
783
  return "SuspenseList";
784
- case W:
784
+ case U:
785
785
  return "Activity";
786
786
  }
787
787
  if (typeof d == "object")
@@ -795,14 +795,14 @@ function Pa() {
795
795
  case V:
796
796
  return (d._context.displayName || "Context") + ".Consumer";
797
797
  case X:
798
- var v = d.render;
799
- return d = d.displayName, d || (d = v.displayName || v.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
798
+ var y = d.render;
799
+ return d = d.displayName, d || (d = y.displayName || y.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
800
800
  case Q:
801
- return v = d.displayName || null, v !== null ? v : t(d.type) || "Memo";
801
+ return y = d.displayName || null, y !== null ? y : t(d.type) || "Memo";
802
802
  case q:
803
- v = d._payload, d = d._init;
803
+ y = d._payload, d = d._init;
804
804
  try {
805
- return t(d(v));
805
+ return t(d(y));
806
806
  } catch {
807
807
  }
808
808
  }
@@ -814,15 +814,15 @@ function Pa() {
814
814
  function r(d) {
815
815
  try {
816
816
  e(d);
817
- var v = !1;
817
+ var y = !1;
818
818
  } catch {
819
- v = !0;
819
+ y = !0;
820
820
  }
821
- if (v) {
822
- v = console;
823
- var D = v.error, R = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
821
+ if (y) {
822
+ y = console;
823
+ var D = y.error, R = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
824
824
  return D.call(
825
- v,
825
+ y,
826
826
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
827
827
  R
828
828
  ), e(d);
@@ -833,8 +833,8 @@ function Pa() {
833
833
  if (typeof d == "object" && d !== null && d.$$typeof === q)
834
834
  return "<...>";
835
835
  try {
836
- var v = t(d);
837
- return v ? "<" + v + ">" : "<...>";
836
+ var y = t(d);
837
+ return y ? "<" + y + ">" : "<...>";
838
838
  } catch {
839
839
  return "<...>";
840
840
  }
@@ -848,16 +848,16 @@ function Pa() {
848
848
  }
849
849
  function u(d) {
850
850
  if (te.call(d, "key")) {
851
- var v = Object.getOwnPropertyDescriptor(d, "key").get;
852
- if (v && v.isReactWarning) return !1;
851
+ var y = Object.getOwnPropertyDescriptor(d, "key").get;
852
+ if (y && y.isReactWarning) return !1;
853
853
  }
854
854
  return d.key !== void 0;
855
855
  }
856
- function a(d, v) {
856
+ function a(d, y) {
857
857
  function D() {
858
858
  w || (w = !0, console.error(
859
859
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
860
- v
860
+ y
861
861
  ));
862
862
  }
863
863
  D.isReactWarning = !0, Object.defineProperty(d, "key", {
@@ -871,12 +871,12 @@ function Pa() {
871
871
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
872
872
  )), d = this.props.ref, d !== void 0 ? d : null;
873
873
  }
874
- function y(d, v, D, R, U, K) {
874
+ function v(d, y, D, R, W, Z) {
875
875
  var ee = D.ref;
876
876
  return d = {
877
877
  $$typeof: k,
878
878
  type: d,
879
- key: v,
879
+ key: y,
880
880
  props: D,
881
881
  _owner: R
882
882
  }, (ee !== void 0 ? ee : null) !== null ? Object.defineProperty(d, "ref", {
@@ -896,16 +896,16 @@ function Pa() {
896
896
  configurable: !1,
897
897
  enumerable: !1,
898
898
  writable: !0,
899
- value: U
899
+ value: W
900
900
  }), Object.defineProperty(d, "_debugTask", {
901
901
  configurable: !1,
902
902
  enumerable: !1,
903
903
  writable: !0,
904
- value: K
904
+ value: Z
905
905
  }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
906
906
  }
907
- function _(d, v, D, R, U, K) {
908
- var ee = v.children;
907
+ function _(d, y, D, R, W, Z) {
908
+ var ee = y.children;
909
909
  if (ee !== void 0)
910
910
  if (R)
911
911
  if (P(ee)) {
@@ -917,9 +917,9 @@ function Pa() {
917
917
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
918
918
  );
919
919
  else O(ee);
920
- if (te.call(v, "key")) {
920
+ if (te.call(y, "key")) {
921
921
  ee = t(d);
922
- var J = Object.keys(v).filter(function(oe) {
922
+ var J = Object.keys(y).filter(function(oe) {
923
923
  return oe !== "key";
924
924
  });
925
925
  R = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", f[ee + R] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -935,21 +935,21 @@ React keys must be passed directly to JSX without using spread:
935
935
  ee
936
936
  ), f[ee + R] = !0);
937
937
  }
938
- if (ee = null, D !== void 0 && (r(D), ee = "" + D), u(v) && (r(v.key), ee = "" + v.key), "key" in v) {
938
+ if (ee = null, D !== void 0 && (r(D), ee = "" + D), u(y) && (r(y.key), ee = "" + y.key), "key" in y) {
939
939
  D = {};
940
- for (var ie in v)
941
- ie !== "key" && (D[ie] = v[ie]);
942
- } else D = v;
940
+ for (var ie in y)
941
+ ie !== "key" && (D[ie] = y[ie]);
942
+ } else D = y;
943
943
  return ee && a(
944
944
  D,
945
945
  typeof d == "function" ? d.displayName || d.name || "Unknown" : d
946
- ), y(
946
+ ), v(
947
947
  d,
948
948
  ee,
949
949
  D,
950
950
  i(),
951
- U,
952
- K
951
+ W,
952
+ Z
953
953
  );
954
954
  }
955
955
  function O(d) {
@@ -958,7 +958,7 @@ React keys must be passed directly to JSX without using spread:
958
958
  function S(d) {
959
959
  return typeof d == "object" && d !== null && d.$$typeof === k;
960
960
  }
961
- var C = Ct, k = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), F = Symbol.for("react.context"), X = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), ne = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, P = Array.isArray, x = console.createTask ? console.createTask : function() {
961
+ var C = Ct, k = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), F = Symbol.for("react.context"), X = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), ne = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, P = Array.isArray, x = console.createTask ? console.createTask : function() {
962
962
  return null;
963
963
  };
964
964
  C = {
@@ -970,21 +970,21 @@ React keys must be passed directly to JSX without using spread:
970
970
  C,
971
971
  l
972
972
  )(), p = x(n(l)), f = {};
973
- Jt.Fragment = $, Jt.jsx = function(d, v, D) {
973
+ Jt.Fragment = $, Jt.jsx = function(d, y, D) {
974
974
  var R = 1e4 > ne.recentlyCreatedOwnerStacks++;
975
975
  return _(
976
976
  d,
977
- v,
977
+ y,
978
978
  D,
979
979
  !1,
980
980
  R ? Error("react-stack-top-frame") : s,
981
981
  R ? x(n(d)) : p
982
982
  );
983
- }, Jt.jsxs = function(d, v, D) {
983
+ }, Jt.jsxs = function(d, y, D) {
984
984
  var R = 1e4 > ne.recentlyCreatedOwnerStacks++;
985
985
  return _(
986
986
  d,
987
- v,
987
+ y,
988
988
  D,
989
989
  !0,
990
990
  R ? Error("react-stack-top-frame") : s,
@@ -1062,7 +1062,7 @@ function Ba(t, e, r) {
1062
1062
  l,
1063
1063
  u
1064
1064
  )
1065
- ), y = m.getOptimisticResult(u), _ = !n && t.subscribed !== !1;
1065
+ ), v = m.getOptimisticResult(u), _ = !n && t.subscribed !== !1;
1066
1066
  if (Ie.useSyncExternalStore(
1067
1067
  Ie.useCallback(
1068
1068
  (O) => {
@@ -1075,20 +1075,20 @@ function Ba(t, e, r) {
1075
1075
  () => m.getCurrentResult()
1076
1076
  ), Ie.useEffect(() => {
1077
1077
  m.setOptions(u);
1078
- }, [u, m]), Ia(u, y))
1078
+ }, [u, m]), Ia(u, v))
1079
1079
  throw Ro(u, m, i);
1080
1080
  if ($a({
1081
- result: y,
1081
+ result: v,
1082
1082
  errorResetBoundary: i,
1083
1083
  throwOnError: u.throwOnError,
1084
1084
  query: l.getQueryCache().get(u.queryHash),
1085
1085
  suspense: u.suspense
1086
1086
  }))
1087
- throw y.error;
1087
+ throw v.error;
1088
1088
  return l.getDefaultOptions().queries?._experimental_afterQuery?.(
1089
1089
  u,
1090
- y
1091
- ), u.experimental_prefetchInRender && !fr && La(y, n) && (a ? (
1090
+ v
1091
+ ), u.experimental_prefetchInRender && !fr && La(v, n) && (a ? (
1092
1092
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1093
1093
  Ro(u, m, i)
1094
1094
  ) : (
@@ -1096,7 +1096,7 @@ function Ba(t, e, r) {
1096
1096
  l.getQueryCache().get(u.queryHash)?.promise
1097
1097
  ))?.catch(Tr).finally(() => {
1098
1098
  m.updateResult();
1099
- }), u.notifyOnChangeProps ? y : m.trackResult(y);
1099
+ }), u.notifyOnChangeProps ? v : m.trackResult(v);
1100
1100
  }
1101
1101
  function Gi(t, e) {
1102
1102
  return Ba(t, _a);
@@ -1178,7 +1178,7 @@ function za() {
1178
1178
  function t(f) {
1179
1179
  if (f == null) return null;
1180
1180
  if (typeof f == "function")
1181
- return f.$$typeof === W ? null : f.displayName || f.name || null;
1181
+ return f.$$typeof === U ? null : f.displayName || f.name || null;
1182
1182
  if (typeof f == "string") return f;
1183
1183
  switch (f) {
1184
1184
  case j:
@@ -1230,8 +1230,8 @@ function za() {
1230
1230
  }
1231
1231
  if (d) {
1232
1232
  d = console;
1233
- var v = d.error, D = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
1234
- return v.call(
1233
+ var y = d.error, D = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
1234
+ return y.call(
1235
1235
  d,
1236
1236
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1237
1237
  D
@@ -1250,7 +1250,7 @@ function za() {
1250
1250
  }
1251
1251
  }
1252
1252
  function i() {
1253
- var f = Z.A;
1253
+ var f = K.A;
1254
1254
  return f === null ? null : f.getOwner();
1255
1255
  }
1256
1256
  function l() {
@@ -1264,14 +1264,14 @@ function za() {
1264
1264
  return f.key !== void 0;
1265
1265
  }
1266
1266
  function a(f, d) {
1267
- function v() {
1267
+ function y() {
1268
1268
  x || (x = !0, console.error(
1269
1269
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1270
1270
  d
1271
1271
  ));
1272
1272
  }
1273
- v.isReactWarning = !0, Object.defineProperty(f, "key", {
1274
- get: v,
1273
+ y.isReactWarning = !0, Object.defineProperty(f, "key", {
1274
+ get: y,
1275
1275
  configurable: !0
1276
1276
  });
1277
1277
  }
@@ -1281,14 +1281,14 @@ function za() {
1281
1281
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
1282
1282
  )), f = this.props.ref, f !== void 0 ? f : null;
1283
1283
  }
1284
- function y(f, d, v, D, R, U, K, ee) {
1285
- return v = U.ref, f = {
1284
+ function v(f, d, y, D, R, W, Z, ee) {
1285
+ return y = W.ref, f = {
1286
1286
  $$typeof: C,
1287
1287
  type: f,
1288
1288
  key: d,
1289
- props: U,
1289
+ props: W,
1290
1290
  _owner: R
1291
- }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(f, "ref", {
1291
+ }, (y !== void 0 ? y : null) !== null ? Object.defineProperty(f, "ref", {
1292
1292
  enumerable: !1,
1293
1293
  get: m
1294
1294
  }) : Object.defineProperty(f, "ref", { enumerable: !1, value: null }), f._store = {}, Object.defineProperty(f._store, "validated", {
@@ -1305,7 +1305,7 @@ function za() {
1305
1305
  configurable: !1,
1306
1306
  enumerable: !1,
1307
1307
  writable: !0,
1308
- value: K
1308
+ value: Z
1309
1309
  }), Object.defineProperty(f, "_debugTask", {
1310
1310
  configurable: !1,
1311
1311
  enumerable: !1,
@@ -1313,7 +1313,7 @@ function za() {
1313
1313
  value: ee
1314
1314
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
1315
1315
  }
1316
- function _(f, d, v, D, R, U, K, ee) {
1316
+ function _(f, d, y, D, R, W, Z, ee) {
1317
1317
  var J = d.children;
1318
1318
  if (J !== void 0)
1319
1319
  if (D)
@@ -1344,29 +1344,29 @@ React keys must be passed directly to JSX without using spread:
1344
1344
  J
1345
1345
  ), p[J + D] = !0);
1346
1346
  }
1347
- if (J = null, v !== void 0 && (r(v), J = "" + v), u(d) && (r(d.key), J = "" + d.key), "key" in d) {
1348
- v = {};
1347
+ if (J = null, y !== void 0 && (r(y), J = "" + y), u(d) && (r(d.key), J = "" + d.key), "key" in d) {
1348
+ y = {};
1349
1349
  for (var oe in d)
1350
- oe !== "key" && (v[oe] = d[oe]);
1351
- } else v = d;
1350
+ oe !== "key" && (y[oe] = d[oe]);
1351
+ } else y = d;
1352
1352
  return J && a(
1353
- v,
1353
+ y,
1354
1354
  typeof f == "function" ? f.displayName || f.name || "Unknown" : f
1355
- ), y(
1355
+ ), v(
1356
1356
  f,
1357
1357
  J,
1358
- U,
1358
+ W,
1359
1359
  R,
1360
1360
  i(),
1361
- v,
1362
- K,
1361
+ y,
1362
+ Z,
1363
1363
  ee
1364
1364
  );
1365
1365
  }
1366
1366
  function O(f) {
1367
1367
  typeof f == "object" && f !== null && f.$$typeof === C && f._store && (f._store.validated = 1);
1368
1368
  }
1369
- var S = Ct, C = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), V = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), Q = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), Z = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ne = Object.prototype.hasOwnProperty, te = Array.isArray, P = console.createTask ? console.createTask : function() {
1369
+ var S = Ct, C = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), V = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), re = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), Q = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), U = Symbol.for("react.client.reference"), K = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ne = Object.prototype.hasOwnProperty, te = Array.isArray, P = console.createTask ? console.createTask : function() {
1370
1370
  return null;
1371
1371
  };
1372
1372
  S = {
@@ -1378,29 +1378,29 @@ React keys must be passed directly to JSX without using spread:
1378
1378
  S,
1379
1379
  l
1380
1380
  )(), s = P(n(l)), p = {};
1381
- Dr.Fragment = j, Dr.jsx = function(f, d, v, D, R) {
1382
- var U = 1e4 > Z.recentlyCreatedOwnerStacks++;
1381
+ Dr.Fragment = j, Dr.jsx = function(f, d, y, D, R) {
1382
+ var W = 1e4 > K.recentlyCreatedOwnerStacks++;
1383
1383
  return _(
1384
1384
  f,
1385
1385
  d,
1386
- v,
1386
+ y,
1387
1387
  !1,
1388
1388
  D,
1389
1389
  R,
1390
- U ? Error("react-stack-top-frame") : h,
1391
- U ? P(n(f)) : s
1390
+ W ? Error("react-stack-top-frame") : h,
1391
+ W ? P(n(f)) : s
1392
1392
  );
1393
- }, Dr.jsxs = function(f, d, v, D, R) {
1394
- var U = 1e4 > Z.recentlyCreatedOwnerStacks++;
1393
+ }, Dr.jsxs = function(f, d, y, D, R) {
1394
+ var W = 1e4 > K.recentlyCreatedOwnerStacks++;
1395
1395
  return _(
1396
1396
  f,
1397
1397
  d,
1398
- v,
1398
+ y,
1399
1399
  !0,
1400
1400
  D,
1401
1401
  R,
1402
- U ? Error("react-stack-top-frame") : h,
1403
- U ? P(n(f)) : s
1402
+ W ? Error("react-stack-top-frame") : h,
1403
+ W ? P(n(f)) : s
1404
1404
  );
1405
1405
  };
1406
1406
  })()), Dr;
@@ -1445,7 +1445,7 @@ qa();
1445
1445
  var zo = {}, er = {}, Fo;
1446
1446
  function Va() {
1447
1447
  if (Fo) return er;
1448
- Fo = 1, er.byteLength = a, er.toByteArray = y, er.fromByteArray = S;
1448
+ Fo = 1, er.byteLength = a, er.toByteArray = v, er.fromByteArray = S;
1449
1449
  for (var t = [], e = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, l = n.length; i < l; ++i)
1450
1450
  t[i] = n[i], e[n.charCodeAt(i)] = i;
1451
1451
  e[45] = 62, e[95] = 63;
@@ -1465,7 +1465,7 @@ function Va() {
1465
1465
  function m(C, k, j) {
1466
1466
  return (k + j) * 3 / 4 - j;
1467
1467
  }
1468
- function y(C) {
1468
+ function v(C) {
1469
1469
  var k, j = u(C), $ = j[0], z = j[1], L = new r(m(C, $, z)), V = 0, F = z > 0 ? $ - 4 : $, X;
1470
1470
  for (X = 0; X < F; X += 4)
1471
1471
  k = e[C.charCodeAt(X)] << 18 | e[C.charCodeAt(X + 1)] << 12 | e[C.charCodeAt(X + 2)] << 6 | e[C.charCodeAt(X + 3)], L[V++] = k >> 16 & 255, L[V++] = k >> 8 & 255, L[V++] = k & 255;
@@ -1494,24 +1494,24 @@ var bn = {};
1494
1494
  var Wo;
1495
1495
  function Ha() {
1496
1496
  return Wo || (Wo = 1, bn.read = function(t, e, r, n, i) {
1497
- var l, u, a = i * 8 - n - 1, m = (1 << a) - 1, y = m >> 1, _ = -7, O = r ? i - 1 : 0, S = r ? -1 : 1, C = t[e + O];
1497
+ var l, u, a = i * 8 - n - 1, m = (1 << a) - 1, v = m >> 1, _ = -7, O = r ? i - 1 : 0, S = r ? -1 : 1, C = t[e + O];
1498
1498
  for (O += S, l = C & (1 << -_) - 1, C >>= -_, _ += a; _ > 0; l = l * 256 + t[e + O], O += S, _ -= 8)
1499
1499
  ;
1500
1500
  for (u = l & (1 << -_) - 1, l >>= -_, _ += n; _ > 0; u = u * 256 + t[e + O], O += S, _ -= 8)
1501
1501
  ;
1502
1502
  if (l === 0)
1503
- l = 1 - y;
1503
+ l = 1 - v;
1504
1504
  else {
1505
1505
  if (l === m)
1506
1506
  return u ? NaN : (C ? -1 : 1) * (1 / 0);
1507
- u = u + Math.pow(2, n), l = l - y;
1507
+ u = u + Math.pow(2, n), l = l - v;
1508
1508
  }
1509
1509
  return (C ? -1 : 1) * u * Math.pow(2, l - n);
1510
1510
  }, bn.write = function(t, e, r, n, i, l) {
1511
- var u, a, m, y = l * 8 - i - 1, _ = (1 << y) - 1, O = _ >> 1, S = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = n ? 0 : l - 1, k = n ? 1 : -1, j = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
1511
+ var u, a, m, v = l * 8 - i - 1, _ = (1 << v) - 1, O = _ >> 1, S = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = n ? 0 : l - 1, k = n ? 1 : -1, j = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
1512
1512
  for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, u = _) : (u = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -u)) < 1 && (u--, m *= 2), u + O >= 1 ? e += S / m : e += S * Math.pow(2, 1 - O), e * m >= 2 && (u++, m /= 2), u + O >= _ ? (a = 0, u = _) : u + O >= 1 ? (a = (e * m - 1) * Math.pow(2, i), u = u + O) : (a = e * Math.pow(2, O - 1) * Math.pow(2, i), u = 0)); i >= 8; t[r + C] = a & 255, C += k, a /= 256, i -= 8)
1513
1513
  ;
1514
- for (u = u << i | a, y += i; y > 0; t[r + C] = u & 255, C += k, u /= 256, y -= 8)
1514
+ for (u = u << i | a, v += i; v > 0; t[r + C] = u & 255, C += k, u /= 256, v -= 8)
1515
1515
  ;
1516
1516
  t[r + C - k] |= j * 128;
1517
1517
  }), bn;
@@ -1576,20 +1576,20 @@ function Qa() {
1576
1576
  value: null,
1577
1577
  configurable: !0
1578
1578
  }));
1579
- function y(o) {
1579
+ function v(o) {
1580
1580
  if (typeof o != "number")
1581
1581
  throw new TypeError('"size" argument must be a number');
1582
1582
  if (o < 0)
1583
1583
  throw new RangeError('"size" argument must not be negative');
1584
1584
  }
1585
1585
  function _(o, c, g, M) {
1586
- return y(c), c <= 0 ? u(o, c) : g !== void 0 ? typeof M == "string" ? u(o, c).fill(g, M) : u(o, c).fill(g) : u(o, c);
1586
+ return v(c), c <= 0 ? u(o, c) : g !== void 0 ? typeof M == "string" ? u(o, c).fill(g, M) : u(o, c).fill(g) : u(o, c);
1587
1587
  }
1588
1588
  a.alloc = function(o, c, g) {
1589
1589
  return _(null, o, c, g);
1590
1590
  };
1591
1591
  function O(o, c) {
1592
- if (y(c), o = u(o, c < 0 ? 0 : $(c) | 0), !a.TYPED_ARRAY_SUPPORT)
1592
+ if (v(c), o = u(o, c < 0 ? 0 : $(c) | 0), !a.TYPED_ARRAY_SUPPORT)
1593
1593
  for (var g = 0; g < c; ++g)
1594
1594
  o[g] = 0;
1595
1595
  return o;
@@ -1874,10 +1874,10 @@ function Qa() {
1874
1874
  function q(o, c, g, M) {
1875
1875
  return I(N(c), o, g, M);
1876
1876
  }
1877
- function W(o, c, g, M) {
1877
+ function U(o, c, g, M) {
1878
1878
  return q(o, c, g, M);
1879
1879
  }
1880
- function Z(o, c, g, M) {
1880
+ function K(o, c, g, M) {
1881
1881
  return I(B(c), o, g, M);
1882
1882
  }
1883
1883
  function ne(o, c, g, M) {
@@ -1909,9 +1909,9 @@ function Qa() {
1909
1909
  return q(this, o, c, g);
1910
1910
  case "latin1":
1911
1911
  case "binary":
1912
- return W(this, o, c, g);
1912
+ return U(this, o, c, g);
1913
1913
  case "base64":
1914
- return Z(this, o, c, g);
1914
+ return K(this, o, c, g);
1915
1915
  case "ucs2":
1916
1916
  case "ucs-2":
1917
1917
  case "utf16le":
@@ -2063,7 +2063,7 @@ function Qa() {
2063
2063
  }, a.prototype.readDoubleBE = function(o, c) {
2064
2064
  return c || d(o, 8, this.length), r.read(this, o, !1, 52, 8);
2065
2065
  };
2066
- function v(o, c, g, M, T, Y) {
2066
+ function y(o, c, g, M, T, Y) {
2067
2067
  if (!a.isBuffer(o)) throw new TypeError('"buffer" argument must be a Buffer instance');
2068
2068
  if (c > T || c < Y) throw new RangeError('"value" argument is out of bounds');
2069
2069
  if (g + M > o.length) throw new RangeError("Index out of range");
@@ -2071,7 +2071,7 @@ function Qa() {
2071
2071
  a.prototype.writeUIntLE = function(o, c, g, M) {
2072
2072
  if (o = +o, c = c | 0, g = g | 0, !M) {
2073
2073
  var T = Math.pow(2, 8 * g) - 1;
2074
- v(this, o, c, g, T, 0);
2074
+ y(this, o, c, g, T, 0);
2075
2075
  }
2076
2076
  var Y = 1, se = 0;
2077
2077
  for (this[c] = o & 255; ++se < g && (Y *= 256); )
@@ -2080,14 +2080,14 @@ function Qa() {
2080
2080
  }, a.prototype.writeUIntBE = function(o, c, g, M) {
2081
2081
  if (o = +o, c = c | 0, g = g | 0, !M) {
2082
2082
  var T = Math.pow(2, 8 * g) - 1;
2083
- v(this, o, c, g, T, 0);
2083
+ y(this, o, c, g, T, 0);
2084
2084
  }
2085
2085
  var Y = g - 1, se = 1;
2086
2086
  for (this[c + Y] = o & 255; --Y >= 0 && (se *= 256); )
2087
2087
  this[c + Y] = o / se & 255;
2088
2088
  return c + g;
2089
2089
  }, a.prototype.writeUInt8 = function(o, c, g) {
2090
- return o = +o, c = c | 0, g || v(this, o, c, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (o = Math.floor(o)), this[c] = o & 255, c + 1;
2090
+ return o = +o, c = c | 0, g || y(this, o, c, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (o = Math.floor(o)), this[c] = o & 255, c + 1;
2091
2091
  };
2092
2092
  function D(o, c, g, M) {
2093
2093
  c < 0 && (c = 65535 + c + 1);
@@ -2095,9 +2095,9 @@ function Qa() {
2095
2095
  o[g + T] = (c & 255 << 8 * (M ? T : 1 - T)) >>> (M ? T : 1 - T) * 8;
2096
2096
  }
2097
2097
  a.prototype.writeUInt16LE = function(o, c, g) {
2098
- return o = +o, c = c | 0, g || v(this, o, c, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[c] = o & 255, this[c + 1] = o >>> 8) : D(this, o, c, !0), c + 2;
2098
+ return o = +o, c = c | 0, g || y(this, o, c, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[c] = o & 255, this[c + 1] = o >>> 8) : D(this, o, c, !0), c + 2;
2099
2099
  }, a.prototype.writeUInt16BE = function(o, c, g) {
2100
- return o = +o, c = c | 0, g || v(this, o, c, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 8, this[c + 1] = o & 255) : D(this, o, c, !1), c + 2;
2100
+ return o = +o, c = c | 0, g || y(this, o, c, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 8, this[c + 1] = o & 255) : D(this, o, c, !1), c + 2;
2101
2101
  };
2102
2102
  function R(o, c, g, M) {
2103
2103
  c < 0 && (c = 4294967295 + c + 1);
@@ -2105,13 +2105,13 @@ function Qa() {
2105
2105
  o[g + T] = c >>> (M ? T : 3 - T) * 8 & 255;
2106
2106
  }
2107
2107
  a.prototype.writeUInt32LE = function(o, c, g) {
2108
- return o = +o, c = c | 0, g || v(this, o, c, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[c + 3] = o >>> 24, this[c + 2] = o >>> 16, this[c + 1] = o >>> 8, this[c] = o & 255) : R(this, o, c, !0), c + 4;
2108
+ return o = +o, c = c | 0, g || y(this, o, c, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[c + 3] = o >>> 24, this[c + 2] = o >>> 16, this[c + 1] = o >>> 8, this[c] = o & 255) : R(this, o, c, !0), c + 4;
2109
2109
  }, a.prototype.writeUInt32BE = function(o, c, g) {
2110
- return o = +o, c = c | 0, g || v(this, o, c, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 24, this[c + 1] = o >>> 16, this[c + 2] = o >>> 8, this[c + 3] = o & 255) : R(this, o, c, !1), c + 4;
2110
+ return o = +o, c = c | 0, g || y(this, o, c, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 24, this[c + 1] = o >>> 16, this[c + 2] = o >>> 8, this[c + 3] = o & 255) : R(this, o, c, !1), c + 4;
2111
2111
  }, a.prototype.writeIntLE = function(o, c, g, M) {
2112
2112
  if (o = +o, c = c | 0, !M) {
2113
2113
  var T = Math.pow(2, 8 * g - 1);
2114
- v(this, o, c, g, T - 1, -T);
2114
+ y(this, o, c, g, T - 1, -T);
2115
2115
  }
2116
2116
  var Y = 0, se = 1, ue = 0;
2117
2117
  for (this[c] = o & 255; ++Y < g && (se *= 256); )
@@ -2120,37 +2120,37 @@ function Qa() {
2120
2120
  }, a.prototype.writeIntBE = function(o, c, g, M) {
2121
2121
  if (o = +o, c = c | 0, !M) {
2122
2122
  var T = Math.pow(2, 8 * g - 1);
2123
- v(this, o, c, g, T - 1, -T);
2123
+ y(this, o, c, g, T - 1, -T);
2124
2124
  }
2125
2125
  var Y = g - 1, se = 1, ue = 0;
2126
2126
  for (this[c + Y] = o & 255; --Y >= 0 && (se *= 256); )
2127
2127
  o < 0 && ue === 0 && this[c + Y + 1] !== 0 && (ue = 1), this[c + Y] = (o / se >> 0) - ue & 255;
2128
2128
  return c + g;
2129
2129
  }, a.prototype.writeInt8 = function(o, c, g) {
2130
- return o = +o, c = c | 0, g || v(this, o, c, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (o = Math.floor(o)), o < 0 && (o = 255 + o + 1), this[c] = o & 255, c + 1;
2130
+ return o = +o, c = c | 0, g || y(this, o, c, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (o = Math.floor(o)), o < 0 && (o = 255 + o + 1), this[c] = o & 255, c + 1;
2131
2131
  }, a.prototype.writeInt16LE = function(o, c, g) {
2132
- return o = +o, c = c | 0, g || v(this, o, c, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[c] = o & 255, this[c + 1] = o >>> 8) : D(this, o, c, !0), c + 2;
2132
+ return o = +o, c = c | 0, g || y(this, o, c, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[c] = o & 255, this[c + 1] = o >>> 8) : D(this, o, c, !0), c + 2;
2133
2133
  }, a.prototype.writeInt16BE = function(o, c, g) {
2134
- return o = +o, c = c | 0, g || v(this, o, c, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 8, this[c + 1] = o & 255) : D(this, o, c, !1), c + 2;
2134
+ return o = +o, c = c | 0, g || y(this, o, c, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 8, this[c + 1] = o & 255) : D(this, o, c, !1), c + 2;
2135
2135
  }, a.prototype.writeInt32LE = function(o, c, g) {
2136
- return o = +o, c = c | 0, g || v(this, o, c, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[c] = o & 255, this[c + 1] = o >>> 8, this[c + 2] = o >>> 16, this[c + 3] = o >>> 24) : R(this, o, c, !0), c + 4;
2136
+ return o = +o, c = c | 0, g || y(this, o, c, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[c] = o & 255, this[c + 1] = o >>> 8, this[c + 2] = o >>> 16, this[c + 3] = o >>> 24) : R(this, o, c, !0), c + 4;
2137
2137
  }, a.prototype.writeInt32BE = function(o, c, g) {
2138
- return o = +o, c = c | 0, g || v(this, o, c, 4, 2147483647, -2147483648), o < 0 && (o = 4294967295 + o + 1), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 24, this[c + 1] = o >>> 16, this[c + 2] = o >>> 8, this[c + 3] = o & 255) : R(this, o, c, !1), c + 4;
2138
+ return o = +o, c = c | 0, g || y(this, o, c, 4, 2147483647, -2147483648), o < 0 && (o = 4294967295 + o + 1), a.TYPED_ARRAY_SUPPORT ? (this[c] = o >>> 24, this[c + 1] = o >>> 16, this[c + 2] = o >>> 8, this[c + 3] = o & 255) : R(this, o, c, !1), c + 4;
2139
2139
  };
2140
- function U(o, c, g, M, T, Y) {
2140
+ function W(o, c, g, M, T, Y) {
2141
2141
  if (g + M > o.length) throw new RangeError("Index out of range");
2142
2142
  if (g < 0) throw new RangeError("Index out of range");
2143
2143
  }
2144
- function K(o, c, g, M, T) {
2145
- return T || U(o, c, g, 4), r.write(o, c, g, M, 23, 4), g + 4;
2144
+ function Z(o, c, g, M, T) {
2145
+ return T || W(o, c, g, 4), r.write(o, c, g, M, 23, 4), g + 4;
2146
2146
  }
2147
2147
  a.prototype.writeFloatLE = function(o, c, g) {
2148
- return K(this, o, c, !0, g);
2148
+ return Z(this, o, c, !0, g);
2149
2149
  }, a.prototype.writeFloatBE = function(o, c, g) {
2150
- return K(this, o, c, !1, g);
2150
+ return Z(this, o, c, !1, g);
2151
2151
  };
2152
2152
  function ee(o, c, g, M, T) {
2153
- return T || U(o, c, g, 8), r.write(o, c, g, M, 52, 8), g + 8;
2153
+ return T || W(o, c, g, 8), r.write(o, c, g, M, 52, 8), g + 8;
2154
2154
  }
2155
2155
  a.prototype.writeDoubleLE = function(o, c, g) {
2156
2156
  return ee(this, o, c, !0, g);
@@ -2308,7 +2308,7 @@ var An = function(t, e) {
2308
2308
  for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]);
2309
2309
  }, An(t, e);
2310
2310
  };
2311
- function Za(t, e) {
2311
+ function Ka(t, e) {
2312
2312
  An(t, e);
2313
2313
  function r() {
2314
2314
  this.constructor = t;
@@ -2324,7 +2324,7 @@ var Rn = function() {
2324
2324
  return t;
2325
2325
  }, Rn.apply(this, arguments);
2326
2326
  };
2327
- function Ka(t, e) {
2327
+ function Za(t, e) {
2328
2328
  var r = {};
2329
2329
  for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
2330
2330
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2355,22 +2355,22 @@ function tl(t, e, r, n) {
2355
2355
  return new (r || (r = Promise))(function(l, u) {
2356
2356
  function a(_) {
2357
2357
  try {
2358
- y(n.next(_));
2358
+ v(n.next(_));
2359
2359
  } catch (O) {
2360
2360
  u(O);
2361
2361
  }
2362
2362
  }
2363
2363
  function m(_) {
2364
2364
  try {
2365
- y(n.throw(_));
2365
+ v(n.throw(_));
2366
2366
  } catch (O) {
2367
2367
  u(O);
2368
2368
  }
2369
2369
  }
2370
- function y(_) {
2370
+ function v(_) {
2371
2371
  _.done ? l(_.value) : i(_.value).then(a, m);
2372
2372
  }
2373
- y((n = n.apply(t, e || [])).next());
2373
+ v((n = n.apply(t, e || [])).next());
2374
2374
  });
2375
2375
  }
2376
2376
  function rl(t, e) {
@@ -2381,56 +2381,56 @@ function rl(t, e) {
2381
2381
  return u = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
2382
2382
  return this;
2383
2383
  }), u;
2384
- function a(y) {
2384
+ function a(v) {
2385
2385
  return function(_) {
2386
- return m([y, _]);
2386
+ return m([v, _]);
2387
2387
  };
2388
2388
  }
2389
- function m(y) {
2389
+ function m(v) {
2390
2390
  if (n) throw new TypeError("Generator is already executing.");
2391
2391
  for (; r; ) try {
2392
- if (n = 1, i && (l = y[0] & 2 ? i.return : y[0] ? i.throw || ((l = i.return) && l.call(i), 0) : i.next) && !(l = l.call(i, y[1])).done) return l;
2393
- switch (i = 0, l && (y = [y[0] & 2, l.value]), y[0]) {
2392
+ if (n = 1, i && (l = v[0] & 2 ? i.return : v[0] ? i.throw || ((l = i.return) && l.call(i), 0) : i.next) && !(l = l.call(i, v[1])).done) return l;
2393
+ switch (i = 0, l && (v = [v[0] & 2, l.value]), v[0]) {
2394
2394
  case 0:
2395
2395
  case 1:
2396
- l = y;
2396
+ l = v;
2397
2397
  break;
2398
2398
  case 4:
2399
- return r.label++, { value: y[1], done: !1 };
2399
+ return r.label++, { value: v[1], done: !1 };
2400
2400
  case 5:
2401
- r.label++, i = y[1], y = [0];
2401
+ r.label++, i = v[1], v = [0];
2402
2402
  continue;
2403
2403
  case 7:
2404
- y = r.ops.pop(), r.trys.pop();
2404
+ v = r.ops.pop(), r.trys.pop();
2405
2405
  continue;
2406
2406
  default:
2407
- if (l = r.trys, !(l = l.length > 0 && l[l.length - 1]) && (y[0] === 6 || y[0] === 2)) {
2407
+ if (l = r.trys, !(l = l.length > 0 && l[l.length - 1]) && (v[0] === 6 || v[0] === 2)) {
2408
2408
  r = 0;
2409
2409
  continue;
2410
2410
  }
2411
- if (y[0] === 3 && (!l || y[1] > l[0] && y[1] < l[3])) {
2412
- r.label = y[1];
2411
+ if (v[0] === 3 && (!l || v[1] > l[0] && v[1] < l[3])) {
2412
+ r.label = v[1];
2413
2413
  break;
2414
2414
  }
2415
- if (y[0] === 6 && r.label < l[1]) {
2416
- r.label = l[1], l = y;
2415
+ if (v[0] === 6 && r.label < l[1]) {
2416
+ r.label = l[1], l = v;
2417
2417
  break;
2418
2418
  }
2419
2419
  if (l && r.label < l[2]) {
2420
- r.label = l[2], r.ops.push(y);
2420
+ r.label = l[2], r.ops.push(v);
2421
2421
  break;
2422
2422
  }
2423
2423
  l[2] && r.ops.pop(), r.trys.pop();
2424
2424
  continue;
2425
2425
  }
2426
- y = e.call(t, r);
2426
+ v = e.call(t, r);
2427
2427
  } catch (_) {
2428
- y = [6, _], i = 0;
2428
+ v = [6, _], i = 0;
2429
2429
  } finally {
2430
2430
  n = l = 0;
2431
2431
  }
2432
- if (y[0] & 5) throw y[1];
2433
- return { value: y[0] ? y[1] : void 0, done: !0 };
2432
+ if (v[0] & 5) throw v[1];
2433
+ return { value: v[0] ? v[1] : void 0, done: !0 };
2434
2434
  }
2435
2435
  }
2436
2436
  function nl(t, e, r, n) {
@@ -2502,9 +2502,9 @@ function al(t, e, r) {
2502
2502
  }
2503
2503
  }
2504
2504
  function m(S) {
2505
- S.value instanceof pr ? Promise.resolve(S.value.v).then(y, _) : O(l[0][2], S);
2505
+ S.value instanceof pr ? Promise.resolve(S.value.v).then(v, _) : O(l[0][2], S);
2506
2506
  }
2507
- function y(S) {
2507
+ function v(S) {
2508
2508
  a("next", S);
2509
2509
  }
2510
2510
  function _(S) {
@@ -2541,8 +2541,8 @@ function cl(t) {
2541
2541
  };
2542
2542
  }
2543
2543
  function i(l, u, a, m) {
2544
- Promise.resolve(m).then(function(y) {
2545
- l({ value: y, done: a });
2544
+ Promise.resolve(m).then(function(v) {
2545
+ l({ value: v, done: a });
2546
2546
  }, u);
2547
2547
  }
2548
2548
  }
@@ -2583,7 +2583,7 @@ const gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2583
2583
  __createBinding: nl,
2584
2584
  __decorate: Ja,
2585
2585
  __exportStar: ol,
2586
- __extends: Za,
2586
+ __extends: Ka,
2587
2587
  __generator: rl,
2588
2588
  __importDefault: hl,
2589
2589
  __importStar: dl,
@@ -2591,13 +2591,13 @@ const gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2591
2591
  __metadata: el,
2592
2592
  __param: Xa,
2593
2593
  __read: Qi,
2594
- __rest: Ka,
2594
+ __rest: Za,
2595
2595
  __spread: il,
2596
2596
  __spreadArrays: sl,
2597
2597
  __values: En
2598
- }, Symbol.toStringTag, { value: "Module" })), Zi = /* @__PURE__ */ Hn(gl);
2598
+ }, Symbol.toStringTag, { value: "Module" })), Ki = /* @__PURE__ */ Hn(gl);
2599
2599
  var tr = {}, Je = {}, Ho;
2600
- function Ki() {
2600
+ function Zi() {
2601
2601
  return Ho || (Ho = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.MAX_HASHABLE_LENGTH = Je.INIT = Je.KEY = Je.DIGEST_LENGTH = Je.BLOCK_SIZE = void 0, Je.BLOCK_SIZE = 64, Je.DIGEST_LENGTH = 32, Je.KEY = new Uint32Array([
2602
2602
  1116352408,
2603
2603
  1899447441,
@@ -2678,7 +2678,7 @@ var rr = {}, Go;
2678
2678
  function ml() {
2679
2679
  if (Go) return rr;
2680
2680
  Go = 1, Object.defineProperty(rr, "__esModule", { value: !0 }), rr.RawSha256 = void 0;
2681
- var t = Ki(), e = (
2681
+ var t = Zi(), e = (
2682
2682
  /** @class */
2683
2683
  (function() {
2684
2684
  function r() {
@@ -2708,7 +2708,7 @@ function ml() {
2708
2708
  a[u * 4] = this.state[u] >>> 24 & 255, a[u * 4 + 1] = this.state[u] >>> 16 & 255, a[u * 4 + 2] = this.state[u] >>> 8 & 255, a[u * 4 + 3] = this.state[u] >>> 0 & 255;
2709
2709
  return a;
2710
2710
  }, r.prototype.hashBuffer = function() {
2711
- for (var n = this, i = n.buffer, l = n.state, u = l[0], a = l[1], m = l[2], y = l[3], _ = l[4], O = l[5], S = l[6], C = l[7], k = 0; k < t.BLOCK_SIZE; k++) {
2711
+ for (var n = this, i = n.buffer, l = n.state, u = l[0], a = l[1], m = l[2], v = l[3], _ = l[4], O = l[5], S = l[6], C = l[7], k = 0; k < t.BLOCK_SIZE; k++) {
2712
2712
  if (k < 16)
2713
2713
  this.temp[k] = (i[k * 4] & 255) << 24 | (i[k * 4 + 1] & 255) << 16 | (i[k * 4 + 2] & 255) << 8 | i[k * 4 + 3] & 255;
2714
2714
  else {
@@ -2718,9 +2718,9 @@ function ml() {
2718
2718
  this.temp[k] = ($ + this.temp[k - 7] | 0) + (z + this.temp[k - 16] | 0);
2719
2719
  }
2720
2720
  var L = (((_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7)) + (_ & O ^ ~_ & S) | 0) + (C + (t.KEY[k] + this.temp[k] | 0) | 0) | 0, V = ((u >>> 2 | u << 30) ^ (u >>> 13 | u << 19) ^ (u >>> 22 | u << 10)) + (u & a ^ u & m ^ a & m) | 0;
2721
- C = S, S = O, O = _, _ = y + L | 0, y = m, m = a, a = u, u = L + V | 0;
2721
+ C = S, S = O, O = _, _ = v + L | 0, v = m, m = a, a = u, u = L + V | 0;
2722
2722
  }
2723
- l[0] += u, l[1] += a, l[2] += m, l[3] += y, l[4] += _, l[5] += O, l[6] += S, l[7] += C;
2723
+ l[0] += u, l[1] += a, l[2] += m, l[3] += v, l[4] += _, l[5] += O, l[6] += S, l[7] += C;
2724
2724
  }, r;
2725
2725
  })()
2726
2726
  );
@@ -2770,10 +2770,10 @@ const _l = (t) => typeof TextEncoder == "function" ? bl(t) : yl(t), xl = (t) =>
2770
2770
  fromUtf8: _l,
2771
2771
  toUtf8: xl
2772
2772
  }, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Hn(Cl);
2773
- var Zo;
2773
+ var Ko;
2774
2774
  function Dl() {
2775
- if (Zo) return nr;
2776
- Zo = 1, Object.defineProperty(nr, "__esModule", { value: !0 }), nr.convertToBuffer = void 0;
2775
+ if (Ko) return nr;
2776
+ Ko = 1, Object.defineProperty(nr, "__esModule", { value: !0 }), nr.convertToBuffer = void 0;
2777
2777
  var t = Sl, e = typeof Buffer < "u" && Buffer.from ? function(n) {
2778
2778
  return Buffer.from(n, "utf8");
2779
2779
  } : t.fromUtf8;
@@ -2782,10 +2782,10 @@ function Dl() {
2782
2782
  }
2783
2783
  return nr.convertToBuffer = r, nr;
2784
2784
  }
2785
- var or = {}, Ko;
2785
+ var or = {}, Zo;
2786
2786
  function kl() {
2787
- if (Ko) return or;
2788
- Ko = 1, Object.defineProperty(or, "__esModule", { value: !0 }), or.isEmptyData = void 0;
2787
+ if (Zo) return or;
2788
+ Zo = 1, Object.defineProperty(or, "__esModule", { value: !0 }), or.isEmptyData = void 0;
2789
2789
  function t(e) {
2790
2790
  return typeof e == "string" ? e.length === 0 : e.byteLength === 0;
2791
2791
  }
@@ -2845,17 +2845,17 @@ var ti;
2845
2845
  function Ml() {
2846
2846
  if (ti) return tr;
2847
2847
  ti = 1, Object.defineProperty(tr, "__esModule", { value: !0 }), tr.Sha256 = void 0;
2848
- var t = Zi, e = Ki(), r = ml(), n = jl(), i = (
2848
+ var t = Ki, e = Zi(), r = ml(), n = jl(), i = (
2849
2849
  /** @class */
2850
2850
  (function() {
2851
2851
  function u(a) {
2852
2852
  if (this.hash = new r.RawSha256(), a) {
2853
2853
  this.outer = new r.RawSha256();
2854
- var m = l(a), y = new Uint8Array(e.BLOCK_SIZE);
2855
- y.set(m);
2854
+ var m = l(a), v = new Uint8Array(e.BLOCK_SIZE);
2855
+ v.set(m);
2856
2856
  for (var _ = 0; _ < e.BLOCK_SIZE; _++)
2857
- m[_] ^= 54, y[_] ^= 92;
2858
- this.hash.update(m), this.outer.update(y);
2857
+ m[_] ^= 54, v[_] ^= 92;
2858
+ this.hash.update(m), this.outer.update(v);
2859
2859
  for (var _ = 0; _ < m.byteLength; _++)
2860
2860
  m[_] = 0;
2861
2861
  }
@@ -2887,8 +2887,8 @@ function Ml() {
2887
2887
  var m = new r.RawSha256();
2888
2888
  m.update(a), a = m.digest();
2889
2889
  }
2890
- var y = new Uint8Array(e.BLOCK_SIZE);
2891
- return y.set(a), y;
2890
+ var v = new Uint8Array(e.BLOCK_SIZE);
2891
+ return v.set(a), v;
2892
2892
  }
2893
2893
  return tr;
2894
2894
  }
@@ -2896,7 +2896,7 @@ var ri;
2896
2896
  function Al() {
2897
2897
  return ri || (ri = 1, (function(t) {
2898
2898
  Object.defineProperty(t, "__esModule", { value: !0 });
2899
- var e = Zi;
2899
+ var e = Ki;
2900
2900
  (0, e.__exportStar)(Ml(), t);
2901
2901
  })(Vo)), Vo;
2902
2902
  }
@@ -2917,15 +2917,15 @@ function El(t, e, r, n, i, l) {
2917
2917
  }
2918
2918
  function Tl(t, e, r, n, i, l) {
2919
2919
  for (var u = e & 32767, a = e >> 15; --l >= 0; ) {
2920
- var m = this[t] & 32767, y = this[t++] >> 15, _ = a * m + y * u;
2921
- m = u * m + ((_ & 32767) << 15) + r[n] + (i & 1073741823), i = (m >>> 30) + (_ >>> 15) + a * y + (i >>> 30), r[n++] = m & 1073741823;
2920
+ var m = this[t] & 32767, v = this[t++] >> 15, _ = a * m + v * u;
2921
+ m = u * m + ((_ & 32767) << 15) + r[n] + (i & 1073741823), i = (m >>> 30) + (_ >>> 15) + a * v + (i >>> 30), r[n++] = m & 1073741823;
2922
2922
  }
2923
2923
  return i;
2924
2924
  }
2925
2925
  function $l(t, e, r, n, i, l) {
2926
2926
  for (var u = e & 16383, a = e >> 14; --l >= 0; ) {
2927
- var m = this[t] & 16383, y = this[t++] >> 14, _ = a * m + y * u;
2928
- m = u * m + ((_ & 16383) << 14) + r[n] + i, i = (m >> 28) + (_ >> 14) + a * y, r[n++] = m & 268435455;
2927
+ var m = this[t] & 16383, v = this[t++] >> 14, _ = a * m + v * u;
2928
+ m = u * m + ((_ & 16383) << 14) + r[n] + i, i = (m >> 28) + (_ >> 14) + a * v, r[n++] = m & 268435455;
2929
2929
  }
2930
2930
  return i;
2931
2931
  }
@@ -3015,12 +3015,12 @@ function ql(t) {
3015
3015
  for (; --r >= 0; ) if ((e = this[r] - t[r]) != 0) return e;
3016
3016
  return 0;
3017
3017
  }
3018
- function Zn(t) {
3018
+ function Kn(t) {
3019
3019
  var e = 1, r;
3020
3020
  return (r = t >>> 16) != 0 && (t = r, e += 16), (r = t >> 8) != 0 && (t = r, e += 8), (r = t >> 4) != 0 && (t = r, e += 4), (r = t >> 2) != 0 && (t = r, e += 2), (r = t >> 1) != 0 && (t = r, e += 1), e;
3021
3021
  }
3022
3022
  function Vl() {
3023
- return this.t <= 0 ? 0 : this.DB * (this.t - 1) + Zn(this[this.t - 1] ^ this.s & this.DM);
3023
+ return this.t <= 0 ? 0 : this.DB * (this.t - 1) + Kn(this[this.t - 1] ^ this.s & this.DM);
3024
3024
  }
3025
3025
  function Hl(t, e) {
3026
3026
  var r;
@@ -3039,7 +3039,7 @@ function Ql(t, e) {
3039
3039
  for (a = l - 1; a >= 0; --a) e[a] = 0;
3040
3040
  e[l] = u, e.t = this.t + l + 1, e.s = this.s, e.clamp();
3041
3041
  }
3042
- function Zl(t, e) {
3042
+ function Kl(t, e) {
3043
3043
  e.s = this.s;
3044
3044
  var r = Math.floor(t / this.DB);
3045
3045
  if (r >= this.t) {
@@ -3052,7 +3052,7 @@ function Zl(t, e) {
3052
3052
  e[u - r - 1] |= (this[u] & l) << i, e[u - r] = this[u] >> n;
3053
3053
  n > 0 && (e[this.t - r - 1] |= (this.s & l) << i), e.t = this.t - r, e.clamp();
3054
3054
  }
3055
- function Kl(t, e) {
3055
+ function Zl(t, e) {
3056
3056
  for (var r = 0, n = 0, i = Math.min(t.t, this.t); r < i; )
3057
3057
  n += this[r] - t[r], e[r++] = n & this.DM, n >>= this.DB;
3058
3058
  if (t.t < this.t) {
@@ -3089,18 +3089,18 @@ function ec(t, e, r) {
3089
3089
  return;
3090
3090
  }
3091
3091
  r == null && (r = Fe());
3092
- var l = Fe(), u = this.s, a = t.s, m = this.DB - Zn(n[n.t - 1]);
3092
+ var l = Fe(), u = this.s, a = t.s, m = this.DB - Kn(n[n.t - 1]);
3093
3093
  m > 0 ? (n.lShiftTo(m, l), i.lShiftTo(m, r)) : (n.copyTo(l), i.copyTo(r));
3094
- var y = l.t, _ = l[y - 1];
3094
+ var v = l.t, _ = l[v - 1];
3095
3095
  if (_ != 0) {
3096
- var O = _ * (1 << this.F1) + (y > 1 ? l[y - 2] >> this.F2 : 0), S = this.FV / O, C = (1 << this.F1) / O, k = 1 << this.F2, j = r.t, $ = j - y, z = e ?? Fe();
3097
- for (l.dlShiftTo($, z), r.compareTo(z) >= 0 && (r[r.t++] = 1, r.subTo(z, r)), ge.ONE.dlShiftTo(y, z), z.subTo(l, l); l.t < y; ) l[l.t++] = 0;
3096
+ var O = _ * (1 << this.F1) + (v > 1 ? l[v - 2] >> this.F2 : 0), S = this.FV / O, C = (1 << this.F1) / O, k = 1 << this.F2, j = r.t, $ = j - v, z = e ?? Fe();
3097
+ for (l.dlShiftTo($, z), r.compareTo(z) >= 0 && (r[r.t++] = 1, r.subTo(z, r)), ge.ONE.dlShiftTo(v, z), z.subTo(l, l); l.t < v; ) l[l.t++] = 0;
3098
3098
  for (; --$ >= 0; ) {
3099
3099
  var L = r[--j] == _ ? this.DM : Math.floor(r[j] * S + (r[j - 1] + k) * C);
3100
- if ((r[j] += l.am(0, L, r, $, 0, y)) < L)
3100
+ if ((r[j] += l.am(0, L, r, $, 0, v)) < L)
3101
3101
  for (l.dlShiftTo($, z), r.subTo(z, r); r[j] < --L; ) r.subTo(z, r);
3102
3102
  }
3103
- e != null && (r.drShiftTo(y, e), u != a && ge.ZERO.subTo(e, e)), r.t = y, r.clamp(), m > 0 && r.rShiftTo(m, r), u < 0 && ge.ZERO.subTo(r, r);
3103
+ e != null && (r.drShiftTo(v, e), u != a && ge.ZERO.subTo(e, e)), r.t = v, r.clamp(), m > 0 && r.rShiftTo(m, r), u < 0 && ge.ZERO.subTo(r, r);
3104
3104
  }
3105
3105
  }
3106
3106
  }
@@ -3184,15 +3184,15 @@ function pc(t, e, r) {
3184
3184
  var n = t.bitLength(), i, l = Qn(1), u = new Vt(e);
3185
3185
  if (n <= 0) return l;
3186
3186
  n < 18 ? i = 1 : n < 48 ? i = 3 : n < 144 ? i = 4 : n < 768 ? i = 5 : i = 6;
3187
- var a = new Array(), m = 3, y = i - 1, _ = (1 << i) - 1;
3187
+ var a = new Array(), m = 3, v = i - 1, _ = (1 << i) - 1;
3188
3188
  if (a[1] = u.convert(this), i > 1) {
3189
3189
  var O = Fe();
3190
3190
  for (u.sqrTo(a[1], O); m <= _; )
3191
3191
  a[m] = Fe(), u.mulTo(O, a[m - 2], a[m]), m += 2;
3192
3192
  }
3193
3193
  var S = t.t - 1, C, k = !0, j = Fe(), $;
3194
- for (n = Zn(t[S]) - 1; S >= 0; ) {
3195
- for (n >= y ? C = t[S] >> n - y & _ : (C = (t[S] & (1 << n + 1) - 1) << y - n, S > 0 && (C |= t[S - 1] >> this.DB + n - y)), m = i; (C & 1) == 0; )
3194
+ for (n = Kn(t[S]) - 1; S >= 0; ) {
3195
+ for (n >= v ? C = t[S] >> n - v & _ : (C = (t[S] & (1 << n + 1) - 1) << v - n, S > 0 && (C |= t[S - 1] >> this.DB + n - v)), m = i; (C & 1) == 0; )
3196
3196
  C >>= 1, --m;
3197
3197
  if ((n -= m) < 0 && (n += this.DB, --S), k)
3198
3198
  a[C].copyTo(l), k = !1;
@@ -3214,8 +3214,8 @@ ge.prototype.clamp = zl;
3214
3214
  ge.prototype.dlShiftTo = Hl;
3215
3215
  ge.prototype.drShiftTo = Gl;
3216
3216
  ge.prototype.lShiftTo = Ql;
3217
- ge.prototype.rShiftTo = Zl;
3218
- ge.prototype.subTo = Kl;
3217
+ ge.prototype.rShiftTo = Kl;
3218
+ ge.prototype.subTo = Zl;
3219
3219
  ge.prototype.multiplyTo = Jl;
3220
3220
  ge.prototype.squareTo = Xl;
3221
3221
  ge.prototype.divRemTo = ec;
@@ -3254,11 +3254,11 @@ function gc(t, e) {
3254
3254
  return _.toLowerCase() in a;
3255
3255
  } } };
3256
3256
  };
3257
- for (var y in i.open(e.method || "get", t, !0), i.onload = function() {
3257
+ for (var v in i.open(e.method || "get", t, !0), i.onload = function() {
3258
3258
  i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(_, O, S) {
3259
3259
  l.push(O = O.toLowerCase()), u.push([O, S]), a[O] = a[O] ? a[O] + "," + S : S;
3260
3260
  }), r(m());
3261
- }, i.onerror = n, i.withCredentials = e.credentials == "include", e.headers) i.setRequestHeader(y, e.headers[y]);
3261
+ }, i.onerror = n, i.withCredentials = e.credentials == "include", e.headers) i.setRequestHeader(v, e.headers[v]);
3262
3262
  i.send(e.body || null);
3263
3263
  });
3264
3264
  }
@@ -3298,7 +3298,7 @@ function vc() {
3298
3298
  function i(l) {
3299
3299
  function u() {
3300
3300
  }
3301
- function a(y, _, O) {
3301
+ function a(v, _, O) {
3302
3302
  if (!(typeof document > "u")) {
3303
3303
  O = r({
3304
3304
  path: "/"
@@ -3308,14 +3308,14 @@ function vc() {
3308
3308
  /^[\{\[]/.test(S) && (_ = S);
3309
3309
  } catch {
3310
3310
  }
3311
- _ = l.write ? l.write(_, y) : encodeURIComponent(String(_)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), y = encodeURIComponent(String(y)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
3311
+ _ = l.write ? l.write(_, v) : encodeURIComponent(String(_)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent), v = encodeURIComponent(String(v)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
3312
3312
  var C = "";
3313
3313
  for (var k in O)
3314
3314
  O[k] && (C += "; " + k, O[k] !== !0 && (C += "=" + O[k].split(";")[0]));
3315
- return document.cookie = y + "=" + _ + C;
3315
+ return document.cookie = v + "=" + _ + C;
3316
3316
  }
3317
3317
  }
3318
- function m(y, _) {
3318
+ function m(v, _) {
3319
3319
  if (!(typeof document > "u")) {
3320
3320
  for (var O = {}, S = document.cookie ? document.cookie.split("; ") : [], C = 0; C < S.length; C++) {
3321
3321
  var k = S[C].split("="), j = k.slice(1).join("=");
@@ -3327,28 +3327,28 @@ function vc() {
3327
3327
  j = JSON.parse(j);
3328
3328
  } catch {
3329
3329
  }
3330
- if (O[$] = j, y === $)
3330
+ if (O[$] = j, v === $)
3331
3331
  break;
3332
3332
  } catch {
3333
3333
  }
3334
3334
  }
3335
- return y ? O[y] : O;
3335
+ return v ? O[v] : O;
3336
3336
  }
3337
3337
  }
3338
- return u.set = a, u.get = function(y) {
3338
+ return u.set = a, u.get = function(v) {
3339
3339
  return m(
3340
- y,
3340
+ v,
3341
3341
  !1
3342
3342
  /* read as raw */
3343
3343
  );
3344
- }, u.getJSON = function(y) {
3344
+ }, u.getJSON = function(v) {
3345
3345
  return m(
3346
- y,
3346
+ v,
3347
3347
  !0
3348
3348
  /* read as json */
3349
3349
  );
3350
- }, u.remove = function(y, _) {
3351
- a(y, "", r(_, {
3350
+ }, u.remove = function(v, _) {
3351
+ a(v, "", r(_, {
3352
3352
  expires: -1
3353
3353
  }));
3354
3354
  }, u.defaults = {}, u.withConverter = i, u;
@@ -3434,22 +3434,22 @@ function Ec() {
3434
3434
  t.exports = n();
3435
3435
  })(Rc, () => (() => {
3436
3436
  var r = { 873: (u, a) => {
3437
- var m, y, _ = (function() {
3437
+ var m, v, _ = (function() {
3438
3438
  var O = function(P, x) {
3439
- var w = P, h = z[x], s = null, p = 0, f = null, d = [], v = {}, D = function(A, N) {
3439
+ var w = P, h = z[x], s = null, p = 0, f = null, d = [], y = {}, D = function(A, N) {
3440
3440
  s = (function(E) {
3441
3441
  for (var B = new Array(E), I = 0; I < E; I += 1) {
3442
3442
  B[I] = new Array(E);
3443
3443
  for (var le = 0; le < E; le += 1) B[I][le] = null;
3444
3444
  }
3445
3445
  return B;
3446
- })(p = 4 * w + 17), R(0, 0), R(p - 7, 0), R(0, p - 7), K(), U(), J(A, N), w >= 7 && ee(A), f == null && (f = oe(w, h, d)), ie(f, N);
3446
+ })(p = 4 * w + 17), R(0, 0), R(p - 7, 0), R(0, p - 7), Z(), W(), J(A, N), w >= 7 && ee(A), f == null && (f = oe(w, h, d)), ie(f, N);
3447
3447
  }, R = function(A, N) {
3448
3448
  for (var E = -1; E <= 7; E += 1) if (!(A + E <= -1 || p <= A + E)) for (var B = -1; B <= 7; B += 1) N + B <= -1 || p <= N + B || (s[A + E][N + B] = 0 <= E && E <= 6 && (B == 0 || B == 6) || 0 <= B && B <= 6 && (E == 0 || E == 6) || 2 <= E && E <= 4 && 2 <= B && B <= 4);
3449
- }, U = function() {
3449
+ }, W = function() {
3450
3450
  for (var A = 8; A < p - 8; A += 1) s[A][6] == null && (s[A][6] = A % 2 == 0);
3451
3451
  for (var N = 8; N < p - 8; N += 1) s[6][N] == null && (s[6][N] = N % 2 == 0);
3452
- }, K = function() {
3452
+ }, Z = function() {
3453
3453
  for (var A = L.getPatternPosition(w), N = 0; N < A.length; N += 1) for (var E = 0; E < A.length; E += 1) {
3454
3454
  var B = A[N], I = A[E];
3455
3455
  if (s[B][I] == null) for (var le = -2; le <= 2; le += 1) for (var o = -2; o <= 2; o += 1) s[B + le][I + o] = le == -2 || le == 2 || o == -2 || o == 2 || le == 0 && o == 0;
@@ -3508,7 +3508,7 @@ function Ec() {
3508
3508
  return Ne;
3509
3509
  })(I, B);
3510
3510
  };
3511
- v.addData = function(A, N) {
3511
+ y.addData = function(A, N) {
3512
3512
  var E = null;
3513
3513
  switch (N = N || "Byte") {
3514
3514
  case "Numeric":
@@ -3521,18 +3521,18 @@ function Ec() {
3521
3521
  E = q(A);
3522
3522
  break;
3523
3523
  case "Kanji":
3524
- E = W(A);
3524
+ E = U(A);
3525
3525
  break;
3526
3526
  default:
3527
3527
  throw "mode:" + N;
3528
3528
  }
3529
3529
  d.push(E), f = null;
3530
- }, v.isDark = function(A, N) {
3530
+ }, y.isDark = function(A, N) {
3531
3531
  if (A < 0 || p <= A || N < 0 || p <= N) throw A + "," + N;
3532
3532
  return s[A][N];
3533
- }, v.getModuleCount = function() {
3533
+ }, y.getModuleCount = function() {
3534
3534
  return p;
3535
- }, v.make = function() {
3535
+ }, y.make = function() {
3536
3536
  if (w < 1) {
3537
3537
  for (var A = 1; A < 40; A++) {
3538
3538
  for (var N = X.getRSBlocks(A, h), E = re(), B = 0; B < d.length; B++) {
@@ -3548,41 +3548,41 @@ function Ec() {
3548
3548
  D(!1, (function() {
3549
3549
  for (var o = 0, c = 0, g = 0; g < 8; g += 1) {
3550
3550
  D(!0, g);
3551
- var M = L.getLostPoint(v);
3551
+ var M = L.getLostPoint(y);
3552
3552
  (g == 0 || o > M) && (o = M, c = g);
3553
3553
  }
3554
3554
  return c;
3555
3555
  })());
3556
- }, v.createTableTag = function(A, N) {
3556
+ }, y.createTableTag = function(A, N) {
3557
3557
  A = A || 2;
3558
3558
  var E = "";
3559
3559
  E += '<table style="', E += " border-width: 0px; border-style: none;", E += " border-collapse: collapse;", E += " padding: 0px; margin: " + (N = N === void 0 ? 4 * A : N) + "px;", E += '">', E += "<tbody>";
3560
- for (var B = 0; B < v.getModuleCount(); B += 1) {
3560
+ for (var B = 0; B < y.getModuleCount(); B += 1) {
3561
3561
  E += "<tr>";
3562
- for (var I = 0; I < v.getModuleCount(); I += 1) E += '<td style="', E += " border-width: 0px; border-style: none;", E += " border-collapse: collapse;", E += " padding: 0px; margin: 0px;", E += " width: " + A + "px;", E += " height: " + A + "px;", E += " background-color: ", E += v.isDark(B, I) ? "#000000" : "#ffffff", E += ";", E += '"/>';
3562
+ for (var I = 0; I < y.getModuleCount(); I += 1) E += '<td style="', E += " border-width: 0px; border-style: none;", E += " border-collapse: collapse;", E += " padding: 0px; margin: 0px;", E += " width: " + A + "px;", E += " height: " + A + "px;", E += " background-color: ", E += y.isDark(B, I) ? "#000000" : "#ffffff", E += ";", E += '"/>';
3563
3563
  E += "</tr>";
3564
3564
  }
3565
3565
  return (E += "</tbody>") + "</table>";
3566
- }, v.createSvgTag = function(A, N, E, B) {
3566
+ }, y.createSvgTag = function(A, N, E, B) {
3567
3567
  var I = {};
3568
3568
  typeof arguments[0] == "object" && (A = (I = arguments[0]).cellSize, N = I.margin, E = I.alt, B = I.title), A = A || 2, N = N === void 0 ? 4 * A : N, (E = typeof E == "string" ? { text: E } : E || {}).text = E.text || null, E.id = E.text ? E.id || "qrcode-description" : null, (B = typeof B == "string" ? { text: B } : B || {}).text = B.text || null, B.id = B.text ? B.id || "qrcode-title" : null;
3569
- var le, o, c, g, M = v.getModuleCount() * A + 2 * N, T = "";
3570
- for (g = "l" + A + ",0 0," + A + " -" + A + ",0 0,-" + A + "z ", T += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', T += I.scalable ? "" : ' width="' + M + 'px" height="' + M + 'px"', T += ' viewBox="0 0 ' + M + " " + M + '" ', T += ' preserveAspectRatio="xMinYMin meet"', T += B.text || E.text ? ' role="img" aria-labelledby="' + ae([B.id, E.id].join(" ").trim()) + '"' : "", T += ">", T += B.text ? '<title id="' + ae(B.id) + '">' + ae(B.text) + "</title>" : "", T += E.text ? '<description id="' + ae(E.id) + '">' + ae(E.text) + "</description>" : "", T += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', T += '<path d="', o = 0; o < v.getModuleCount(); o += 1) for (c = o * A + N, le = 0; le < v.getModuleCount(); le += 1) v.isDark(o, le) && (T += "M" + (le * A + N) + "," + c + g);
3569
+ var le, o, c, g, M = y.getModuleCount() * A + 2 * N, T = "";
3570
+ for (g = "l" + A + ",0 0," + A + " -" + A + ",0 0,-" + A + "z ", T += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', T += I.scalable ? "" : ' width="' + M + 'px" height="' + M + 'px"', T += ' viewBox="0 0 ' + M + " " + M + '" ', T += ' preserveAspectRatio="xMinYMin meet"', T += B.text || E.text ? ' role="img" aria-labelledby="' + ae([B.id, E.id].join(" ").trim()) + '"' : "", T += ">", T += B.text ? '<title id="' + ae(B.id) + '">' + ae(B.text) + "</title>" : "", T += E.text ? '<description id="' + ae(E.id) + '">' + ae(E.text) + "</description>" : "", T += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', T += '<path d="', o = 0; o < y.getModuleCount(); o += 1) for (c = o * A + N, le = 0; le < y.getModuleCount(); le += 1) y.isDark(o, le) && (T += "M" + (le * A + N) + "," + c + g);
3571
3571
  return (T += '" stroke="transparent" fill="black"/>') + "</svg>";
3572
- }, v.createDataURL = function(A, N) {
3572
+ }, y.createDataURL = function(A, N) {
3573
3573
  A = A || 2, N = N === void 0 ? 4 * A : N;
3574
- var E = v.getModuleCount() * A + 2 * N, B = N, I = E - N;
3574
+ var E = y.getModuleCount() * A + 2 * N, B = N, I = E - N;
3575
3575
  return te(E, E, function(le, o) {
3576
3576
  if (B <= le && le < I && B <= o && o < I) {
3577
3577
  var c = Math.floor((le - B) / A), g = Math.floor((o - B) / A);
3578
- return v.isDark(g, c) ? 0 : 1;
3578
+ return y.isDark(g, c) ? 0 : 1;
3579
3579
  }
3580
3580
  return 1;
3581
3581
  });
3582
- }, v.createImgTag = function(A, N, E) {
3582
+ }, y.createImgTag = function(A, N, E) {
3583
3583
  A = A || 2, N = N === void 0 ? 4 * A : N;
3584
- var B = v.getModuleCount() * A + 2 * N, I = "";
3585
- return I += "<img", I += ' src="', I += v.createDataURL(A, N), I += '"', I += ' width="', I += B, I += '"', I += ' height="', I += B, I += '"', E && (I += ' alt="', I += ae(E), I += '"'), I + "/>";
3584
+ var B = y.getModuleCount() * A + 2 * N, I = "";
3585
+ return I += "<img", I += ' src="', I += y.createDataURL(A, N), I += '"', I += ' width="', I += B, I += '"', I += ' height="', I += B, I += '"', E && (I += ' alt="', I += ae(E), I += '"'), I + "/>";
3586
3586
  };
3587
3587
  var ae = function(A) {
3588
3588
  for (var N = "", E = 0; E < A.length; E += 1) {
@@ -3606,29 +3606,29 @@ function Ec() {
3606
3606
  }
3607
3607
  return N;
3608
3608
  };
3609
- return v.createASCII = function(A, N) {
3609
+ return y.createASCII = function(A, N) {
3610
3610
  if ((A = A || 1) < 2) return (function(ue) {
3611
3611
  ue = ue === void 0 ? 2 : ue;
3612
- var he, G, de, pe, fe, xe = 1 * v.getModuleCount() + 2 * ue, we = ue, ke = xe - ue, He = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, Ne = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, Pe = "";
3612
+ var he, G, de, pe, fe, xe = 1 * y.getModuleCount() + 2 * ue, we = ue, ke = xe - ue, He = { "██": "█", "█ ": "▀", " █": "▄", " ": " " }, Ne = { "██": "▀", "█ ": "▀", " █": " ", " ": " " }, Pe = "";
3613
3613
  for (he = 0; he < xe; he += 2) {
3614
- for (de = Math.floor((he - we) / 1), pe = Math.floor((he + 1 - we) / 1), G = 0; G < xe; G += 1) fe = "█", we <= G && G < ke && we <= he && he < ke && v.isDark(de, Math.floor((G - we) / 1)) && (fe = " "), we <= G && G < ke && we <= he + 1 && he + 1 < ke && v.isDark(pe, Math.floor((G - we) / 1)) ? fe += " " : fe += "█", Pe += ue < 1 && he + 1 >= ke ? Ne[fe] : He[fe];
3614
+ for (de = Math.floor((he - we) / 1), pe = Math.floor((he + 1 - we) / 1), G = 0; G < xe; G += 1) fe = "█", we <= G && G < ke && we <= he && he < ke && y.isDark(de, Math.floor((G - we) / 1)) && (fe = " "), we <= G && G < ke && we <= he + 1 && he + 1 < ke && y.isDark(pe, Math.floor((G - we) / 1)) ? fe += " " : fe += "█", Pe += ue < 1 && he + 1 >= ke ? Ne[fe] : He[fe];
3615
3615
  Pe += `
3616
3616
  `;
3617
3617
  }
3618
3618
  return xe % 2 && ue > 0 ? Pe.substring(0, Pe.length - xe - 1) + Array(xe + 1).join("▀") : Pe.substring(0, Pe.length - 1);
3619
3619
  })(N);
3620
3620
  A -= 1, N = N === void 0 ? 2 * A : N;
3621
- var E, B, I, le, o = v.getModuleCount() * A + 2 * N, c = N, g = o - N, M = Array(A + 1).join("██"), T = Array(A + 1).join(" "), Y = "", se = "";
3621
+ var E, B, I, le, o = y.getModuleCount() * A + 2 * N, c = N, g = o - N, M = Array(A + 1).join("██"), T = Array(A + 1).join(" "), Y = "", se = "";
3622
3622
  for (E = 0; E < o; E += 1) {
3623
- for (I = Math.floor((E - c) / A), se = "", B = 0; B < o; B += 1) le = 1, c <= B && B < g && c <= E && E < g && v.isDark(I, Math.floor((B - c) / A)) && (le = 0), se += le ? M : T;
3623
+ for (I = Math.floor((E - c) / A), se = "", B = 0; B < o; B += 1) le = 1, c <= B && B < g && c <= E && E < g && y.isDark(I, Math.floor((B - c) / A)) && (le = 0), se += le ? M : T;
3624
3624
  for (I = 0; I < A; I += 1) Y += se + `
3625
3625
  `;
3626
3626
  }
3627
3627
  return Y.substring(0, Y.length - 1);
3628
- }, v.renderTo2dContext = function(A, N) {
3628
+ }, y.renderTo2dContext = function(A, N) {
3629
3629
  N = N || 2;
3630
- for (var E = v.getModuleCount(), B = 0; B < E; B++) for (var I = 0; I < E; I++) A.fillStyle = v.isDark(B, I) ? "black" : "white", A.fillRect(B * N, I * N, N, N);
3631
- }, v;
3630
+ for (var E = y.getModuleCount(), B = 0; B < E; B++) for (var I = 0; I < E; I++) A.fillStyle = y.isDark(B, I) ? "black" : "white", A.fillRect(B * N, I * N, N, N);
3631
+ }, y;
3632
3632
  };
3633
3633
  O.stringToBytes = (O.stringToBytesFuncs = { default: function(P) {
3634
3634
  for (var x = [], w = 0; w < P.length; w += 1) {
@@ -3639,14 +3639,14 @@ function Ec() {
3639
3639
  } }).default, O.createStringToBytes = function(P, x) {
3640
3640
  var w = (function() {
3641
3641
  for (var s = ne(P), p = function() {
3642
- var U = s.read();
3643
- if (U == -1) throw "eof";
3644
- return U;
3642
+ var W = s.read();
3643
+ if (W == -1) throw "eof";
3644
+ return W;
3645
3645
  }, f = 0, d = {}; ; ) {
3646
- var v = s.read();
3647
- if (v == -1) break;
3646
+ var y = s.read();
3647
+ if (y == -1) break;
3648
3648
  var D = p(), R = p() << 8 | p();
3649
- d[String.fromCharCode(v << 8 | D)] = R, f += 1;
3649
+ d[String.fromCharCode(y << 8 | D)] = R, f += 1;
3650
3650
  }
3651
3651
  if (f != x) throw f + " != " + x;
3652
3652
  return d;
@@ -3656,8 +3656,8 @@ function Ec() {
3656
3656
  var d = s.charCodeAt(f);
3657
3657
  if (d < 128) p.push(d);
3658
3658
  else {
3659
- var v = w[s.charAt(f)];
3660
- typeof v == "number" ? (255 & v) == v ? p.push(v) : (p.push(v >>> 8), p.push(255 & v)) : p.push(h);
3659
+ var y = w[s.charAt(f)];
3660
+ typeof y == "number" ? (255 & y) == y ? p.push(y) : (p.push(y >>> 8), p.push(255 & y)) : p.push(h);
3661
3661
  }
3662
3662
  }
3663
3663
  return p;
@@ -3755,7 +3755,7 @@ function Ec() {
3755
3755
  }
3756
3756
  }, j.getLostPoint = function(P) {
3757
3757
  for (var x = P.getModuleCount(), w = 0, h = 0; h < x; h += 1) for (var s = 0; s < x; s += 1) {
3758
- for (var p = 0, f = P.isDark(h, s), d = -1; d <= 1; d += 1) if (!(h + d < 0 || x <= h + d)) for (var v = -1; v <= 1; v += 1) s + v < 0 || x <= s + v || d == 0 && v == 0 || f == P.isDark(h + d, s + v) && (p += 1);
3758
+ for (var p = 0, f = P.isDark(h, s), d = -1; d <= 1; d += 1) if (!(h + d < 0 || x <= h + d)) for (var y = -1; y <= 1; y += 1) s + y < 0 || x <= s + y || d == 0 && y == 0 || f == P.isDark(h + d, s + y) && (p += 1);
3759
3759
  p > 5 && (w += 3 + p - 5);
3760
3760
  }
3761
3761
  for (h = 0; h < x - 1; h += 1) for (s = 0; s < x - 1; s += 1) {
@@ -3821,7 +3821,7 @@ function Ec() {
3821
3821
  }
3822
3822
  })(h, s);
3823
3823
  if (p === void 0) throw "bad rs block @ typeNumber:" + h + "/errorCorrectionLevel:" + s;
3824
- for (var f = p.length / 3, d = [], v = 0; v < f; v += 1) for (var D = p[3 * v + 0], R = p[3 * v + 1], U = p[3 * v + 2], K = 0; K < D; K += 1) d.push(x(R, U));
3824
+ for (var f = p.length / 3, d = [], y = 0; y < f; y += 1) for (var D = p[3 * y + 0], R = p[3 * y + 1], W = p[3 * y + 2], Z = 0; Z < D; Z += 1) d.push(x(R, W));
3825
3825
  return d;
3826
3826
  } };
3827
3827
  return w;
@@ -3900,7 +3900,7 @@ function Ec() {
3900
3900
  }, write: function(w) {
3901
3901
  for (var h = 0; h < x.length; h += 1) w.put(x[h], 8);
3902
3902
  } };
3903
- }, W = function(P) {
3903
+ }, U = function(P) {
3904
3904
  var x = O.stringToBytesFuncs.SJIS;
3905
3905
  if (!x) throw "sjis not supported.";
3906
3906
  (function() {
@@ -3924,7 +3924,7 @@ function Ec() {
3924
3924
  if (f < p.length) throw "illegal char at " + (f + 1);
3925
3925
  } };
3926
3926
  return h;
3927
- }, Z = function() {
3927
+ }, K = function() {
3928
3928
  var P = [], x = { writeByte: function(w) {
3929
3929
  P.push(255 & w);
3930
3930
  }, writeShort: function(w) {
@@ -3954,8 +3954,8 @@ function Ec() {
3954
3954
  if (w += 1, d == "=") return s = 0, -1;
3955
3955
  d.match(/^\s$/) || (h = h << 6 | f(d.charCodeAt(0)), s += 6);
3956
3956
  }
3957
- var v = h >>> s - 8 & 255;
3958
- return s -= 8, v;
3957
+ var y = h >>> s - 8 & 255;
3958
+ return s -= 8, y;
3959
3959
  } }, f = function(d) {
3960
3960
  if (65 <= d && d <= 90) return d - 65;
3961
3961
  if (97 <= d && d <= 122) return d - 97 + 26;
@@ -3966,11 +3966,11 @@ function Ec() {
3966
3966
  };
3967
3967
  return p;
3968
3968
  }, te = function(P, x, w) {
3969
- for (var h = (function(R, U) {
3970
- var K = R, ee = U, J = new Array(R * U), ie = { setPixel: function(A, N, E) {
3971
- J[N * K + A] = E;
3969
+ for (var h = (function(R, W) {
3970
+ var Z = R, ee = W, J = new Array(R * W), ie = { setPixel: function(A, N, E) {
3971
+ J[N * Z + A] = E;
3972
3972
  }, write: function(A) {
3973
- A.writeString("GIF87a"), A.writeShort(K), A.writeShort(ee), A.writeByte(128), A.writeByte(0), A.writeByte(0), A.writeByte(0), A.writeByte(0), A.writeByte(0), A.writeByte(255), A.writeByte(255), A.writeByte(255), A.writeString(","), A.writeShort(0), A.writeShort(0), A.writeShort(K), A.writeShort(ee), A.writeByte(0);
3973
+ A.writeString("GIF87a"), A.writeShort(Z), A.writeShort(ee), A.writeByte(128), A.writeByte(0), A.writeByte(0), A.writeByte(0), A.writeByte(0), A.writeByte(0), A.writeByte(255), A.writeByte(255), A.writeByte(255), A.writeString(","), A.writeShort(0), A.writeShort(0), A.writeShort(Z), A.writeShort(ee), A.writeByte(0);
3974
3974
  var N = oe(2);
3975
3975
  A.writeByte(2);
3976
3976
  for (var E = 0; N.length - E > 255; ) A.writeByte(255), A.writeBytes(N, E, 255), E += 255;
@@ -3978,7 +3978,7 @@ function Ec() {
3978
3978
  } }, oe = function(A) {
3979
3979
  for (var N = 1 << A, E = 1 + (1 << A), B = A + 1, I = ae(), le = 0; le < N; le += 1) I.add(String.fromCharCode(le));
3980
3980
  I.add(String.fromCharCode(N)), I.add(String.fromCharCode(E));
3981
- var o, c, g, M = Z(), T = (o = M, c = 0, g = 0, { write: function(he, G) {
3981
+ var o, c, g, M = K(), T = (o = M, c = 0, g = 0, { write: function(he, G) {
3982
3982
  if (he >>> G) throw "length over";
3983
3983
  for (; c + G >= 8; ) o.writeByte(255 & (he << c | g)), G -= 8 - c, he >>>= 8 - c, g = 0, c = 0;
3984
3984
  g |= he << c, c += G;
@@ -4007,10 +4007,10 @@ function Ec() {
4007
4007
  };
4008
4008
  return ie;
4009
4009
  })(P, x), s = 0; s < x; s += 1) for (var p = 0; p < P; p += 1) h.setPixel(p, s, w(p, s));
4010
- var f = Z();
4010
+ var f = K();
4011
4011
  h.write(f);
4012
4012
  for (var d = (function() {
4013
- var R = 0, U = 0, K = 0, ee = "", J = {}, ie = function(ae) {
4013
+ var R = 0, W = 0, Z = 0, ee = "", J = {}, ie = function(ae) {
4014
4014
  ee += String.fromCharCode(oe(63 & ae));
4015
4015
  }, oe = function(ae) {
4016
4016
  if (!(ae < 0)) {
@@ -4023,13 +4023,13 @@ function Ec() {
4023
4023
  throw "n:" + ae;
4024
4024
  };
4025
4025
  return J.writeByte = function(ae) {
4026
- for (R = R << 8 | 255 & ae, U += 8, K += 1; U >= 6; ) ie(R >>> U - 6), U -= 6;
4026
+ for (R = R << 8 | 255 & ae, W += 8, Z += 1; W >= 6; ) ie(R >>> W - 6), W -= 6;
4027
4027
  }, J.flush = function() {
4028
- if (U > 0 && (ie(R << 6 - U), R = 0, U = 0), K % 3 != 0) for (var ae = 3 - K % 3, A = 0; A < ae; A += 1) ee += "=";
4028
+ if (W > 0 && (ie(R << 6 - W), R = 0, W = 0), Z % 3 != 0) for (var ae = 3 - Z % 3, A = 0; A < ae; A += 1) ee += "=";
4029
4029
  }, J.toString = function() {
4030
4030
  return ee;
4031
4031
  }, J;
4032
- })(), v = f.toByteArray(), D = 0; D < v.length; D += 1) d.writeByte(v[D]);
4032
+ })(), y = f.toByteArray(), D = 0; D < y.length; D += 1) d.writeByte(y[D]);
4033
4033
  return d.flush(), "data:image/gif;base64," + d;
4034
4034
  };
4035
4035
  return O;
@@ -4042,9 +4042,9 @@ function Ec() {
4042
4042
  }
4043
4043
  return C;
4044
4044
  })(O);
4045
- }, (y = typeof (m = function() {
4045
+ }, (v = typeof (m = function() {
4046
4046
  return _;
4047
- }) == "function" ? m.apply(a, []) : m) === void 0 || (u.exports = y);
4047
+ }) == "function" ? m.apply(a, []) : m) === void 0 || (u.exports = v);
4048
4048
  } }, n = {};
4049
4049
  function i(u) {
4050
4050
  var a = n[u];
@@ -4074,7 +4074,7 @@ function Ec() {
4074
4074
  const s = document.createElement("a");
4075
4075
  s.download = h, s.href = w, document.body.appendChild(s), s.click(), document.body.removeChild(s);
4076
4076
  }
4077
- const y = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
4077
+ const v = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
4078
4078
  class _ {
4079
4079
  constructor({ svg: h, type: s, window: p }) {
4080
4080
  this._svg = h, this._type = s, this._window = p;
@@ -4103,9 +4103,9 @@ function Ec() {
4103
4103
  d.call(this, { x: h, y: s, size: p, getNeighbor: f });
4104
4104
  }
4105
4105
  _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: d }) {
4106
- var v;
4106
+ var y;
4107
4107
  const D = h + p / 2, R = s + p / 2;
4108
- d(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4108
+ d(), (y = this._element) === null || y === void 0 || y.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4109
4109
  }
4110
4110
  _basicDot(h) {
4111
4111
  const { size: s, x: p, y: f } = h;
@@ -4150,42 +4150,42 @@ function Ec() {
4150
4150
  this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4151
4151
  }
4152
4152
  _drawRounded({ x: h, y: s, size: p, getNeighbor: f }) {
4153
- const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, U = d + v + D + R;
4154
- if (U !== 0) if (U > 2 || d && v || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4153
+ const d = f ? +f(-1, 0) : 0, y = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, W = d + y + D + R;
4154
+ if (W !== 0) if (W > 2 || d && y || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4155
4155
  else {
4156
- if (U === 2) {
4157
- let K = 0;
4158
- return d && D ? K = Math.PI / 2 : D && v ? K = Math.PI : v && R && (K = -Math.PI / 2), void this._basicCornerRounded({ x: h, y: s, size: p, rotation: K });
4156
+ if (W === 2) {
4157
+ let Z = 0;
4158
+ return d && D ? Z = Math.PI / 2 : D && y ? Z = Math.PI : y && R && (Z = -Math.PI / 2), void this._basicCornerRounded({ x: h, y: s, size: p, rotation: Z });
4159
4159
  }
4160
- if (U === 1) {
4161
- let K = 0;
4162
- return D ? K = Math.PI / 2 : v ? K = Math.PI : R && (K = -Math.PI / 2), void this._basicSideRounded({ x: h, y: s, size: p, rotation: K });
4160
+ if (W === 1) {
4161
+ let Z = 0;
4162
+ return D ? Z = Math.PI / 2 : y ? Z = Math.PI : R && (Z = -Math.PI / 2), void this._basicSideRounded({ x: h, y: s, size: p, rotation: Z });
4163
4163
  }
4164
4164
  }
4165
4165
  else this._basicDot({ x: h, y: s, size: p, rotation: 0 });
4166
4166
  }
4167
4167
  _drawExtraRounded({ x: h, y: s, size: p, getNeighbor: f }) {
4168
- const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, U = d + v + D + R;
4169
- if (U !== 0) if (U > 2 || d && v || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4168
+ const d = f ? +f(-1, 0) : 0, y = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, W = d + y + D + R;
4169
+ if (W !== 0) if (W > 2 || d && y || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4170
4170
  else {
4171
- if (U === 2) {
4172
- let K = 0;
4173
- return d && D ? K = Math.PI / 2 : D && v ? K = Math.PI : v && R && (K = -Math.PI / 2), void this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: K });
4171
+ if (W === 2) {
4172
+ let Z = 0;
4173
+ return d && D ? Z = Math.PI / 2 : D && y ? Z = Math.PI : y && R && (Z = -Math.PI / 2), void this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: Z });
4174
4174
  }
4175
- if (U === 1) {
4176
- let K = 0;
4177
- return D ? K = Math.PI / 2 : v ? K = Math.PI : R && (K = -Math.PI / 2), void this._basicSideRounded({ x: h, y: s, size: p, rotation: K });
4175
+ if (W === 1) {
4176
+ let Z = 0;
4177
+ return D ? Z = Math.PI / 2 : y ? Z = Math.PI : R && (Z = -Math.PI / 2), void this._basicSideRounded({ x: h, y: s, size: p, rotation: Z });
4178
4178
  }
4179
4179
  }
4180
4180
  else this._basicDot({ x: h, y: s, size: p, rotation: 0 });
4181
4181
  }
4182
4182
  _drawClassy({ x: h, y: s, size: p, getNeighbor: f }) {
4183
- const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4184
- d + v + D + R !== 0 ? d || D ? v || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4183
+ const d = f ? +f(-1, 0) : 0, y = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4184
+ d + y + D + R !== 0 ? d || D ? y || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4185
4185
  }
4186
4186
  _drawClassyRounded({ x: h, y: s, size: p, getNeighbor: f }) {
4187
- const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4188
- d + v + D + R !== 0 ? d || D ? v || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4187
+ const d = f ? +f(-1, 0) : 0, y = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4188
+ d + y + D + R !== 0 ? d || D ? y || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4189
4189
  }
4190
4190
  }
4191
4191
  const O = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, S = Object.values(O);
@@ -4208,9 +4208,9 @@ function Ec() {
4208
4208
  d.call(this, { x: h, y: s, size: p, rotation: f });
4209
4209
  }
4210
4210
  _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: d }) {
4211
- var v;
4211
+ var y;
4212
4212
  const D = h + p / 2, R = s + p / 2;
4213
- d(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4213
+ d(), (y = this._element) === null || y === void 0 || y.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4214
4214
  }
4215
4215
  _basicDot(h) {
4216
4216
  const { size: s, x: p, y: f } = h, d = s / 7;
@@ -4250,9 +4250,9 @@ function Ec() {
4250
4250
  d = this._type === k.square ? this._drawSquare : this._drawDot, d.call(this, { x: h, y: s, size: p, rotation: f });
4251
4251
  }
4252
4252
  _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: d }) {
4253
- var v;
4253
+ var y;
4254
4254
  const D = h + p / 2, R = s + p / 2;
4255
- d(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4255
+ d(), (y = this._element) === null || y === void 0 || y.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4256
4256
  }
4257
4257
  _basicDot(h) {
4258
4258
  const { size: s, x: p, y: f } = h;
@@ -4289,31 +4289,31 @@ function Ec() {
4289
4289
  }
4290
4290
  async drawQR(h) {
4291
4291
  const s = h.getModuleCount(), p = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, f = this._options.shape === z ? p / Math.sqrt(2) : p, d = this._roundSize(f / s);
4292
- let v = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
4292
+ let y = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
4293
4293
  if (this._qr = h, this._options.image) {
4294
4294
  if (await this.loadImage(), !this._image) return;
4295
- const { imageOptions: D, qrOptions: R } = this._options, U = D.imageSize * y[R.errorCorrectionLevel], K = Math.floor(U * s * s);
4296
- v = (function({ originalHeight: ee, originalWidth: J, maxHiddenDots: ie, maxHiddenAxisDots: oe, dotSize: ae }) {
4295
+ const { imageOptions: D, qrOptions: R } = this._options, W = D.imageSize * v[R.errorCorrectionLevel], Z = Math.floor(W * s * s);
4296
+ y = (function({ originalHeight: ee, originalWidth: J, maxHiddenDots: ie, maxHiddenAxisDots: oe, dotSize: ae }) {
4297
4297
  const A = { x: 0, y: 0 }, N = { x: 0, y: 0 };
4298
4298
  if (ee <= 0 || J <= 0 || ie <= 0 || ae <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
4299
4299
  const E = ee / J;
4300
4300
  return A.x = Math.floor(Math.sqrt(ie / E)), A.x <= 0 && (A.x = 1), oe && oe < A.x && (A.x = oe), A.x % 2 == 0 && A.x--, N.x = A.x * ae, A.y = 1 + 2 * Math.ceil((A.x * E - 1) / 2), N.y = Math.round(N.x * E), (A.y * A.x > ie || oe && oe < A.y) && (oe && oe < A.y ? (A.y = oe, A.y % 2 == 0 && A.x--) : A.y -= 2, N.y = A.y * ae, A.x = 1 + 2 * Math.ceil((A.y / E - 1) / 2), N.x = Math.round(N.y / E)), { height: N.y, width: N.x, hideYDots: A.y, hideXDots: A.x };
4301
- })({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: K, maxHiddenAxisDots: s - 14, dotSize: d });
4301
+ })({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: Z, maxHiddenAxisDots: s - 14, dotSize: d });
4302
4302
  }
4303
4303
  this.drawBackground(), this.drawDots((D, R) => {
4304
- var U, K, ee, J, ie, oe;
4305
- return !(this._options.imageOptions.hideBackgroundDots && D >= (s - v.hideYDots) / 2 && D < (s + v.hideYDots) / 2 && R >= (s - v.hideXDots) / 2 && R < (s + v.hideXDots) / 2 || !((U = L[D]) === null || U === void 0) && U[R] || !((K = L[D - s + 7]) === null || K === void 0) && K[R] || !((ee = L[D]) === null || ee === void 0) && ee[R - s + 7] || !((J = V[D]) === null || J === void 0) && J[R] || !((ie = V[D - s + 7]) === null || ie === void 0) && ie[R] || !((oe = V[D]) === null || oe === void 0) && oe[R - s + 7]);
4306
- }), this.drawCorners(), this._options.image && await this.drawImage({ width: v.width, height: v.height, count: s, dotSize: d });
4304
+ var W, Z, ee, J, ie, oe;
4305
+ return !(this._options.imageOptions.hideBackgroundDots && D >= (s - y.hideYDots) / 2 && D < (s + y.hideYDots) / 2 && R >= (s - y.hideXDots) / 2 && R < (s + y.hideXDots) / 2 || !((W = L[D]) === null || W === void 0) && W[R] || !((Z = L[D - s + 7]) === null || Z === void 0) && Z[R] || !((ee = L[D]) === null || ee === void 0) && ee[R - s + 7] || !((J = V[D]) === null || J === void 0) && J[R] || !((ie = V[D - s + 7]) === null || ie === void 0) && ie[R] || !((oe = V[D]) === null || oe === void 0) && oe[R - s + 7]);
4306
+ }), this.drawCorners(), this._options.image && await this.drawImage({ width: y.width, height: y.height, count: s, dotSize: d });
4307
4307
  }
4308
4308
  drawBackground() {
4309
4309
  var h, s, p;
4310
4310
  const f = this._element, d = this._options;
4311
4311
  if (f) {
4312
- const v = (h = d.backgroundOptions) === null || h === void 0 ? void 0 : h.gradient, D = (s = d.backgroundOptions) === null || s === void 0 ? void 0 : s.color;
4313
- let R = d.height, U = d.width;
4314
- if (v || D) {
4315
- const K = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
4316
- this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((p = d.backgroundOptions) === null || p === void 0) && p.round && (R = U = Math.min(d.width, d.height), K.setAttribute("rx", String(R / 2 * d.backgroundOptions.round))), K.setAttribute("x", String(this._roundSize((d.width - U) / 2))), K.setAttribute("y", String(this._roundSize((d.height - R) / 2))), K.setAttribute("width", String(U)), K.setAttribute("height", String(R)), this._backgroundClipPath.appendChild(K), this._createColor({ options: v, color: D, additionalRotation: 0, x: 0, y: 0, height: d.height, width: d.width, name: `background-color-${this._instanceId}` });
4312
+ const y = (h = d.backgroundOptions) === null || h === void 0 ? void 0 : h.gradient, D = (s = d.backgroundOptions) === null || s === void 0 ? void 0 : s.color;
4313
+ let R = d.height, W = d.width;
4314
+ if (y || D) {
4315
+ const Z = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
4316
+ this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((p = d.backgroundOptions) === null || p === void 0) && p.round && (R = W = Math.min(d.width, d.height), Z.setAttribute("rx", String(R / 2 * d.backgroundOptions.round))), Z.setAttribute("x", String(this._roundSize((d.width - W) / 2))), Z.setAttribute("y", String(this._roundSize((d.height - R) / 2))), Z.setAttribute("width", String(W)), Z.setAttribute("height", String(R)), this._backgroundClipPath.appendChild(Z), this._createColor({ options: y, color: D, additionalRotation: 0, x: 0, y: 0, height: d.height, width: d.width, name: `background-color-${this._instanceId}` });
4317
4317
  }
4318
4318
  }
4319
4319
  }
@@ -4322,11 +4322,11 @@ function Ec() {
4322
4322
  if (!this._qr) throw "QR code is not defined";
4323
4323
  const f = this._options, d = this._qr.getModuleCount();
4324
4324
  if (d > f.width || d > f.height) throw "The canvas is too small.";
4325
- const v = Math.min(f.width, f.height) - 2 * f.margin, D = f.shape === z ? v / Math.sqrt(2) : v, R = this._roundSize(D / d), U = this._roundSize((f.width - d * R) / 2), K = this._roundSize((f.height - d * R) / 2), ee = new _({ svg: this._element, type: f.dotsOptions.type, window: this._window });
4325
+ const y = Math.min(f.width, f.height) - 2 * f.margin, D = f.shape === z ? y / Math.sqrt(2) : y, R = this._roundSize(D / d), W = this._roundSize((f.width - d * R) / 2), Z = this._roundSize((f.height - d * R) / 2), ee = new _({ svg: this._element, type: f.dotsOptions.type, window: this._window });
4326
4326
  this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (s = f.dotsOptions) === null || s === void 0 ? void 0 : s.gradient, color: f.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: f.height, width: f.width, name: `dot-color-${this._instanceId}` });
4327
- for (let J = 0; J < d; J++) for (let ie = 0; ie < d; ie++) h && !h(J, ie) || !((p = this._qr) === null || p === void 0) && p.isDark(J, ie) && (ee.draw(U + ie * R, K + J * R, R, (oe, ae) => !(ie + oe < 0 || J + ae < 0 || ie + oe >= d || J + ae >= d) && !(h && !h(J + ae, ie + oe)) && !!this._qr && this._qr.isDark(J + ae, ie + oe)), ee._element && this._dotsClipPath && this._dotsClipPath.appendChild(ee._element));
4327
+ for (let J = 0; J < d; J++) for (let ie = 0; ie < d; ie++) h && !h(J, ie) || !((p = this._qr) === null || p === void 0) && p.isDark(J, ie) && (ee.draw(W + ie * R, Z + J * R, R, (oe, ae) => !(ie + oe < 0 || J + ae < 0 || ie + oe >= d || J + ae >= d) && !(h && !h(J + ae, ie + oe)) && !!this._qr && this._qr.isDark(J + ae, ie + oe)), ee._element && this._dotsClipPath && this._dotsClipPath.appendChild(ee._element));
4328
4328
  if (f.shape === z) {
4329
- const J = this._roundSize((v / R - d) / 2), ie = d + 2 * J, oe = U - J * R, ae = K - J * R, A = [], N = this._roundSize(ie / 2);
4329
+ const J = this._roundSize((y / R - d) / 2), ie = d + 2 * J, oe = W - J * R, ae = Z - J * R, A = [], N = this._roundSize(ie / 2);
4330
4330
  for (let E = 0; E < ie; E++) {
4331
4331
  A[E] = [];
4332
4332
  for (let B = 0; B < ie; B++) E >= J - 1 && E <= ie - J && B >= J - 1 && B <= ie - J || Math.sqrt((E - N) * (E - N) + (B - N) * (B - N)) > N ? A[E][B] = 0 : A[E][B] = this._qr.isDark(B - 2 * J < 0 ? B : B >= d ? B - 2 * J : B - J, E - 2 * J < 0 ? E : E >= d ? E - 2 * J : E - J) ? 1 : 0;
@@ -4341,27 +4341,27 @@ function Ec() {
4341
4341
  if (!this._qr) throw "QR code is not defined";
4342
4342
  const h = this._element, s = this._options;
4343
4343
  if (!h) throw "Element code is not defined";
4344
- const p = this._qr.getModuleCount(), f = Math.min(s.width, s.height) - 2 * s.margin, d = s.shape === z ? f / Math.sqrt(2) : f, v = this._roundSize(d / p), D = 7 * v, R = 3 * v, U = this._roundSize((s.width - p * v) / 2), K = this._roundSize((s.height - p * v) / 2);
4344
+ const p = this._qr.getModuleCount(), f = Math.min(s.width, s.height) - 2 * s.margin, d = s.shape === z ? f / Math.sqrt(2) : f, y = this._roundSize(d / p), D = 7 * y, R = 3 * y, W = this._roundSize((s.width - p * y) / 2), Z = this._roundSize((s.height - p * y) / 2);
4345
4345
  [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([ee, J, ie]) => {
4346
4346
  var oe, ae, A, N, E, B, I, le, o, c, g, M, T, Y;
4347
- const se = U + ee * v * (p - 7), ue = K + J * v * (p - 7);
4347
+ const se = W + ee * y * (p - 7), ue = Z + J * y * (p - 7);
4348
4348
  let he = this._dotsClipPath, G = this._dotsClipPath;
4349
4349
  if ((!((oe = s.cornersSquareOptions) === null || oe === void 0) && oe.gradient || !((ae = s.cornersSquareOptions) === null || ae === void 0) && ae.color) && (he = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), he.setAttribute("id", `clip-path-corners-square-color-${ee}-${J}-${this._instanceId}`), this._defs.appendChild(he), this._cornersSquareClipPath = this._cornersDotClipPath = G = he, this._createColor({ options: (A = s.cornersSquareOptions) === null || A === void 0 ? void 0 : A.gradient, color: (N = s.cornersSquareOptions) === null || N === void 0 ? void 0 : N.color, additionalRotation: ie, x: se, y: ue, height: D, width: D, name: `corners-square-color-${ee}-${J}-${this._instanceId}` })), ((E = s.cornersSquareOptions) === null || E === void 0 ? void 0 : E.type) && S.includes(s.cornersSquareOptions.type)) {
4350
4350
  const de = new C({ svg: this._element, type: s.cornersSquareOptions.type, window: this._window });
4351
4351
  de.draw(se, ue, D, ie), de._element && he && he.appendChild(de._element);
4352
4352
  } else {
4353
4353
  const de = new _({ svg: this._element, type: ((B = s.cornersSquareOptions) === null || B === void 0 ? void 0 : B.type) || s.dotsOptions.type, window: this._window });
4354
- for (let pe = 0; pe < L.length; pe++) for (let fe = 0; fe < L[pe].length; fe++) !((I = L[pe]) === null || I === void 0) && I[fe] && (de.draw(se + fe * v, ue + pe * v, v, (xe, we) => {
4354
+ for (let pe = 0; pe < L.length; pe++) for (let fe = 0; fe < L[pe].length; fe++) !((I = L[pe]) === null || I === void 0) && I[fe] && (de.draw(se + fe * y, ue + pe * y, y, (xe, we) => {
4355
4355
  var ke;
4356
4356
  return !!(!((ke = L[pe + we]) === null || ke === void 0) && ke[fe + xe]);
4357
4357
  }), de._element && he && he.appendChild(de._element));
4358
4358
  }
4359
- if ((!((le = s.cornersDotOptions) === null || le === void 0) && le.gradient || !((o = s.cornersDotOptions) === null || o === void 0) && o.color) && (G = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), G.setAttribute("id", `clip-path-corners-dot-color-${ee}-${J}-${this._instanceId}`), this._defs.appendChild(G), this._cornersDotClipPath = G, this._createColor({ options: (c = s.cornersDotOptions) === null || c === void 0 ? void 0 : c.gradient, color: (g = s.cornersDotOptions) === null || g === void 0 ? void 0 : g.color, additionalRotation: ie, x: se + 2 * v, y: ue + 2 * v, height: R, width: R, name: `corners-dot-color-${ee}-${J}-${this._instanceId}` })), ((M = s.cornersDotOptions) === null || M === void 0 ? void 0 : M.type) && j.includes(s.cornersDotOptions.type)) {
4359
+ if ((!((le = s.cornersDotOptions) === null || le === void 0) && le.gradient || !((o = s.cornersDotOptions) === null || o === void 0) && o.color) && (G = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), G.setAttribute("id", `clip-path-corners-dot-color-${ee}-${J}-${this._instanceId}`), this._defs.appendChild(G), this._cornersDotClipPath = G, this._createColor({ options: (c = s.cornersDotOptions) === null || c === void 0 ? void 0 : c.gradient, color: (g = s.cornersDotOptions) === null || g === void 0 ? void 0 : g.color, additionalRotation: ie, x: se + 2 * y, y: ue + 2 * y, height: R, width: R, name: `corners-dot-color-${ee}-${J}-${this._instanceId}` })), ((M = s.cornersDotOptions) === null || M === void 0 ? void 0 : M.type) && j.includes(s.cornersDotOptions.type)) {
4360
4360
  const de = new $({ svg: this._element, type: s.cornersDotOptions.type, window: this._window });
4361
- de.draw(se + 2 * v, ue + 2 * v, R, ie), de._element && G && G.appendChild(de._element);
4361
+ de.draw(se + 2 * y, ue + 2 * y, R, ie), de._element && G && G.appendChild(de._element);
4362
4362
  } else {
4363
4363
  const de = new _({ svg: this._element, type: ((T = s.cornersDotOptions) === null || T === void 0 ? void 0 : T.type) || s.dotsOptions.type, window: this._window });
4364
- for (let pe = 0; pe < V.length; pe++) for (let fe = 0; fe < V[pe].length; fe++) !((Y = V[pe]) === null || Y === void 0) && Y[fe] && (de.draw(se + fe * v, ue + pe * v, v, (xe, we) => {
4364
+ for (let pe = 0; pe < V.length; pe++) for (let fe = 0; fe < V[pe].length; fe++) !((Y = V[pe]) === null || Y === void 0) && Y[fe] && (de.draw(se + fe * y, ue + pe * y, y, (xe, we) => {
4365
4365
  var ke;
4366
4366
  return !!(!((ke = V[pe + we]) === null || ke === void 0) && ke[fe + xe]);
4367
4367
  }), de._element && G && G.appendChild(de._element));
@@ -4374,9 +4374,9 @@ function Ec() {
4374
4374
  const f = this._options;
4375
4375
  if (!f.image) return s("Image is not defined");
4376
4376
  if (!((p = f.nodeCanvas) === null || p === void 0) && p.loadImage) f.nodeCanvas.loadImage(f.image).then((d) => {
4377
- var v, D;
4377
+ var y, D;
4378
4378
  if (this._image = d, this._options.imageOptions.saveAsBlob) {
4379
- const R = (v = f.nodeCanvas) === null || v === void 0 ? void 0 : v.createCanvas(this._image.width, this._image.height);
4379
+ const R = (y = f.nodeCanvas) === null || y === void 0 ? void 0 : y.createCanvas(this._image.width, this._image.height);
4380
4380
  (D = R?.getContext("2d")) === null || D === void 0 || D.drawImage(d, 0, 0), this._imageUri = R?.toDataURL();
4381
4381
  }
4382
4382
  h();
@@ -4384,15 +4384,15 @@ function Ec() {
4384
4384
  else {
4385
4385
  const d = new this._window.Image();
4386
4386
  typeof f.imageOptions.crossOrigin == "string" && (d.crossOrigin = f.imageOptions.crossOrigin), this._image = d, d.onload = async () => {
4387
- this._options.imageOptions.saveAsBlob && (this._imageUri = await (async function(v, D) {
4387
+ this._options.imageOptions.saveAsBlob && (this._imageUri = await (async function(y, D) {
4388
4388
  return new Promise((R) => {
4389
- const U = new D.XMLHttpRequest();
4390
- U.onload = function() {
4391
- const K = new D.FileReader();
4392
- K.onloadend = function() {
4393
- R(K.result);
4394
- }, K.readAsDataURL(U.response);
4395
- }, U.open("GET", v), U.responseType = "blob", U.send();
4389
+ const W = new D.XMLHttpRequest();
4390
+ W.onload = function() {
4391
+ const Z = new D.FileReader();
4392
+ Z.onloadend = function() {
4393
+ R(Z.result);
4394
+ }, Z.readAsDataURL(W.response);
4395
+ }, W.open("GET", y), W.responseType = "blob", W.send();
4396
4396
  });
4397
4397
  })(f.image || "", this._window)), h();
4398
4398
  }, d.src = f.image;
@@ -4400,25 +4400,25 @@ function Ec() {
4400
4400
  });
4401
4401
  }
4402
4402
  async drawImage({ width: h, height: s, count: p, dotSize: f }) {
4403
- const d = this._options, v = this._roundSize((d.width - p * f) / 2), D = this._roundSize((d.height - p * f) / 2), R = v + this._roundSize(d.imageOptions.margin + (p * f - h) / 2), U = D + this._roundSize(d.imageOptions.margin + (p * f - s) / 2), K = h - 2 * d.imageOptions.margin, ee = s - 2 * d.imageOptions.margin, J = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
4404
- J.setAttribute("href", this._imageUri || ""), J.setAttribute("xlink:href", this._imageUri || ""), J.setAttribute("x", String(R)), J.setAttribute("y", String(U)), J.setAttribute("width", `${K}px`), J.setAttribute("height", `${ee}px`), this._element.appendChild(J);
4403
+ const d = this._options, y = this._roundSize((d.width - p * f) / 2), D = this._roundSize((d.height - p * f) / 2), R = y + this._roundSize(d.imageOptions.margin + (p * f - h) / 2), W = D + this._roundSize(d.imageOptions.margin + (p * f - s) / 2), Z = h - 2 * d.imageOptions.margin, ee = s - 2 * d.imageOptions.margin, J = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
4404
+ J.setAttribute("href", this._imageUri || ""), J.setAttribute("xlink:href", this._imageUri || ""), J.setAttribute("x", String(R)), J.setAttribute("y", String(W)), J.setAttribute("width", `${Z}px`), J.setAttribute("height", `${ee}px`), this._element.appendChild(J);
4405
4405
  }
4406
- _createColor({ options: h, color: s, additionalRotation: p, x: f, y: d, height: v, width: D, name: R }) {
4407
- const U = D > v ? D : v, K = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
4408
- if (K.setAttribute("x", String(f)), K.setAttribute("y", String(d)), K.setAttribute("height", String(v)), K.setAttribute("width", String(D)), K.setAttribute("clip-path", `url('#clip-path-${R}')`), h) {
4406
+ _createColor({ options: h, color: s, additionalRotation: p, x: f, y: d, height: y, width: D, name: R }) {
4407
+ const W = D > y ? D : y, Z = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
4408
+ if (Z.setAttribute("x", String(f)), Z.setAttribute("y", String(d)), Z.setAttribute("height", String(y)), Z.setAttribute("width", String(D)), Z.setAttribute("clip-path", `url('#clip-path-${R}')`), h) {
4409
4409
  let ee;
4410
- if (h.type === "radial") ee = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ee.setAttribute("id", R), ee.setAttribute("gradientUnits", "userSpaceOnUse"), ee.setAttribute("fx", String(f + D / 2)), ee.setAttribute("fy", String(d + v / 2)), ee.setAttribute("cx", String(f + D / 2)), ee.setAttribute("cy", String(d + v / 2)), ee.setAttribute("r", String(U / 2));
4410
+ if (h.type === "radial") ee = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ee.setAttribute("id", R), ee.setAttribute("gradientUnits", "userSpaceOnUse"), ee.setAttribute("fx", String(f + D / 2)), ee.setAttribute("fy", String(d + y / 2)), ee.setAttribute("cx", String(f + D / 2)), ee.setAttribute("cy", String(d + y / 2)), ee.setAttribute("r", String(W / 2));
4411
4411
  else {
4412
4412
  const J = ((h.rotation || 0) + p) % (2 * Math.PI), ie = (J + 2 * Math.PI) % (2 * Math.PI);
4413
- let oe = f + D / 2, ae = d + v / 2, A = f + D / 2, N = d + v / 2;
4414
- ie >= 0 && ie <= 0.25 * Math.PI || ie > 1.75 * Math.PI && ie <= 2 * Math.PI ? (oe -= D / 2, ae -= v / 2 * Math.tan(J), A += D / 2, N += v / 2 * Math.tan(J)) : ie > 0.25 * Math.PI && ie <= 0.75 * Math.PI ? (ae -= v / 2, oe -= D / 2 / Math.tan(J), N += v / 2, A += D / 2 / Math.tan(J)) : ie > 0.75 * Math.PI && ie <= 1.25 * Math.PI ? (oe += D / 2, ae += v / 2 * Math.tan(J), A -= D / 2, N -= v / 2 * Math.tan(J)) : ie > 1.25 * Math.PI && ie <= 1.75 * Math.PI && (ae += v / 2, oe += D / 2 / Math.tan(J), N -= v / 2, A -= D / 2 / Math.tan(J)), ee = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), ee.setAttribute("id", R), ee.setAttribute("gradientUnits", "userSpaceOnUse"), ee.setAttribute("x1", String(Math.round(oe))), ee.setAttribute("y1", String(Math.round(ae))), ee.setAttribute("x2", String(Math.round(A))), ee.setAttribute("y2", String(Math.round(N)));
4413
+ let oe = f + D / 2, ae = d + y / 2, A = f + D / 2, N = d + y / 2;
4414
+ ie >= 0 && ie <= 0.25 * Math.PI || ie > 1.75 * Math.PI && ie <= 2 * Math.PI ? (oe -= D / 2, ae -= y / 2 * Math.tan(J), A += D / 2, N += y / 2 * Math.tan(J)) : ie > 0.25 * Math.PI && ie <= 0.75 * Math.PI ? (ae -= y / 2, oe -= D / 2 / Math.tan(J), N += y / 2, A += D / 2 / Math.tan(J)) : ie > 0.75 * Math.PI && ie <= 1.25 * Math.PI ? (oe += D / 2, ae += y / 2 * Math.tan(J), A -= D / 2, N -= y / 2 * Math.tan(J)) : ie > 1.25 * Math.PI && ie <= 1.75 * Math.PI && (ae += y / 2, oe += D / 2 / Math.tan(J), N -= y / 2, A -= D / 2 / Math.tan(J)), ee = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), ee.setAttribute("id", R), ee.setAttribute("gradientUnits", "userSpaceOnUse"), ee.setAttribute("x1", String(Math.round(oe))), ee.setAttribute("y1", String(Math.round(ae))), ee.setAttribute("x2", String(Math.round(A))), ee.setAttribute("y2", String(Math.round(N)));
4415
4415
  }
4416
4416
  h.colorStops.forEach(({ offset: J, color: ie }) => {
4417
4417
  const oe = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop");
4418
4418
  oe.setAttribute("offset", 100 * J + "%"), oe.setAttribute("stop-color", ie), ee.appendChild(oe);
4419
- }), K.setAttribute("fill", `url('#${R}')`), this._defs.appendChild(ee);
4420
- } else s && K.setAttribute("fill", s);
4421
- this._element.appendChild(K);
4419
+ }), Z.setAttribute("fill", `url('#${R}')`), this._defs.appendChild(ee);
4420
+ } else s && Z.setAttribute("fill", s);
4421
+ this._element.appendChild(Z);
4422
4422
  }
4423
4423
  }
4424
4424
  F.instanceCount = 0;
@@ -4430,11 +4430,11 @@ function Ec() {
4430
4430
  if (!h.colorStops || !h.colorStops.length) throw "Field 'colorStops' is required in gradient";
4431
4431
  return h.rotation ? h.rotation = Number(h.rotation) : h.rotation = 0, h.colorStops = h.colorStops.map((s) => Object.assign(Object.assign({}, s), { offset: Number(s.offset) })), h;
4432
4432
  }
4433
- function W(w) {
4433
+ function U(w) {
4434
4434
  const h = Object.assign({}, w);
4435
4435
  return h.width = Number(h.width), h.height = Number(h.height), h.margin = Number(h.margin), h.imageOptions = Object.assign(Object.assign({}, h.imageOptions), { hideBackgroundDots: !!h.imageOptions.hideBackgroundDots, imageSize: Number(h.imageOptions.imageSize), margin: Number(h.imageOptions.margin) }), h.margin > Math.min(h.width, h.height) && (h.margin = Math.min(h.width, h.height)), h.dotsOptions = Object.assign({}, h.dotsOptions), h.dotsOptions.gradient && (h.dotsOptions.gradient = q(h.dotsOptions.gradient)), h.cornersSquareOptions && (h.cornersSquareOptions = Object.assign({}, h.cornersSquareOptions), h.cornersSquareOptions.gradient && (h.cornersSquareOptions.gradient = q(h.cornersSquareOptions.gradient))), h.cornersDotOptions && (h.cornersDotOptions = Object.assign({}, h.cornersDotOptions), h.cornersDotOptions.gradient && (h.cornersDotOptions.gradient = q(h.cornersDotOptions.gradient))), h.backgroundOptions && (h.backgroundOptions = Object.assign({}, h.backgroundOptions), h.backgroundOptions.gradient && (h.backgroundOptions.gradient = q(h.backgroundOptions.gradient))), h;
4436
4436
  }
4437
- var Z = i(873), ne = i.n(Z);
4437
+ var K = i(873), ne = i.n(K);
4438
4438
  function te(w) {
4439
4439
  if (!w) throw new Error("Extension must be defined");
4440
4440
  w[0] === "." && (w = w.substring(1));
@@ -4444,7 +4444,7 @@ function Ec() {
4444
4444
  }
4445
4445
  class P {
4446
4446
  constructor(h) {
4447
- h != null && h.jsdom ? this._window = new h.jsdom("", { resources: "usable" }).window : this._window = window, this._options = h ? W(a(Q, h)) : Q, this.update();
4447
+ h != null && h.jsdom ? this._window = new h.jsdom("", { resources: "usable" }).window : this._window = window, this._options = h ? U(a(Q, h)) : Q, this.update();
4448
4448
  }
4449
4449
  static _clearContainer(h) {
4450
4450
  h && (h.innerHTML = "");
@@ -4462,17 +4462,17 @@ function Ec() {
4462
4462
  this._qr && (!((h = this._options.nodeCanvas) === null || h === void 0) && h.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (s = this._svgDrawingPromise) === null || s === void 0 ? void 0 : s.then(() => {
4463
4463
  var p;
4464
4464
  if (!this._svg) return;
4465
- const f = this._svg, d = new this._window.XMLSerializer().serializeToString(f), v = btoa(d), D = `data:${te("svg")};base64,${v}`;
4465
+ const f = this._svg, d = new this._window.XMLSerializer().serializeToString(f), y = btoa(d), D = `data:${te("svg")};base64,${y}`;
4466
4466
  if (!((p = this._options.nodeCanvas) === null || p === void 0) && p.loadImage) return this._options.nodeCanvas.loadImage(D).then((R) => {
4467
- var U, K;
4468
- R.width = this._options.width, R.height = this._options.height, (K = (U = this._nodeCanvas) === null || U === void 0 ? void 0 : U.getContext("2d")) === null || K === void 0 || K.drawImage(R, 0, 0);
4467
+ var W, Z;
4468
+ R.width = this._options.width, R.height = this._options.height, (Z = (W = this._nodeCanvas) === null || W === void 0 ? void 0 : W.getContext("2d")) === null || Z === void 0 || Z.drawImage(R, 0, 0);
4469
4469
  });
4470
4470
  {
4471
4471
  const R = new this._window.Image();
4472
- return new Promise((U) => {
4472
+ return new Promise((W) => {
4473
4473
  R.onload = () => {
4474
- var K, ee;
4475
- (ee = (K = this._domCanvas) === null || K === void 0 ? void 0 : K.getContext("2d")) === null || ee === void 0 || ee.drawImage(R, 0, 0), U();
4474
+ var Z, ee;
4475
+ (ee = (Z = this._domCanvas) === null || Z === void 0 ? void 0 : Z.getContext("2d")) === null || ee === void 0 || ee.drawImage(R, 0, 0), W();
4476
4476
  }, R.src = D;
4477
4477
  });
4478
4478
  }
@@ -4483,7 +4483,7 @@ function Ec() {
4483
4483
  return h.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
4484
4484
  }
4485
4485
  update(h) {
4486
- P._clearContainer(this._container), this._options = h ? W(a(this._options, h)) : this._options, this._options.data && (this._qr = ne()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(s) {
4486
+ P._clearContainer(this._container), this._options = h ? U(a(this._options, h)) : this._options, this._options.data && (this._qr = ne()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(s) {
4487
4487
  switch (!0) {
4488
4488
  case /^[0-9]*$/.test(s):
4489
4489
  return "Numeric";
@@ -4569,7 +4569,7 @@ function $t() {
4569
4569
  throw new Error("useDataTable must be used within a DataTableProvider");
4570
4570
  return t;
4571
4571
  }
4572
- function Kn(t) {
4572
+ function Zn(t) {
4573
4573
  if (typeof t == "string")
4574
4574
  try {
4575
4575
  const e = JSON.parse(t);
@@ -4663,8 +4663,8 @@ function Yc(t, e, r) {
4663
4663
  } = $t();
4664
4664
  let l;
4665
4665
  if (n[0] !== r || n[1] !== e) {
4666
- let y;
4667
- n[3] !== r ? (y = r?.toString(), n[3] = r, n[4] = y) : y = n[4], l = [...e.map(zc), String(y)], n[0] = r, n[1] = e, n[2] = l;
4666
+ let v;
4667
+ n[3] !== r ? (v = r?.toString(), n[3] = r, n[4] = v) : v = n[4], l = [...e.map(zc), String(v)], n[0] = r, n[1] = e, n[2] = l;
4668
4668
  } else
4669
4669
  l = n[2];
4670
4670
  let u;
@@ -4717,7 +4717,7 @@ function Uc(t, e) {
4717
4717
  });
4718
4718
  },
4719
4719
  onError(m) {
4720
- Kn(m);
4720
+ Zn(m);
4721
4721
  }
4722
4722
  }, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], Vn(a);
4723
4723
  }
@@ -4746,7 +4746,7 @@ function Xi(t, e) {
4746
4746
  });
4747
4747
  },
4748
4748
  onError(m) {
4749
- Kn(m);
4749
+ Zn(m);
4750
4750
  }
4751
4751
  }, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], Vn(a);
4752
4752
  }
@@ -4762,7 +4762,7 @@ function Qc(t, e) {
4762
4762
  queryClient: i
4763
4763
  } = $t();
4764
4764
  let l;
4765
- r[0] !== e ? (l = [...e.map(Kc)], r[0] = e, r[1] = l) : l = r[1];
4765
+ r[0] !== e ? (l = [...e.map(Zc)], r[0] = e, r[1] = l) : l = r[1];
4766
4766
  let u;
4767
4767
  r[2] !== t || r[3] !== n ? (u = (m) => Lc(`${n}${t}`, m), r[2] = t, r[3] = n, r[4] = u) : u = r[4];
4768
4768
  let a;
@@ -4771,18 +4771,18 @@ function Qc(t, e) {
4771
4771
  mutationFn: u,
4772
4772
  onSettled() {
4773
4773
  return i.invalidateQueries({
4774
- queryKey: [...e.map(Zc)]
4774
+ queryKey: [...e.map(Kc)]
4775
4775
  });
4776
4776
  },
4777
4777
  onError(m) {
4778
- Kn(m);
4778
+ Zn(m);
4779
4779
  }
4780
4780
  }, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], Vn(a);
4781
4781
  }
4782
- function Zc(t) {
4782
+ function Kc(t) {
4783
4783
  return t.toString();
4784
4784
  }
4785
- function Kc(t) {
4785
+ function Zc(t) {
4786
4786
  return t.toString();
4787
4787
  }
4788
4788
  var Ar = { exports: {} }, Jc = Ar.exports, pi;
@@ -4791,7 +4791,7 @@ function Xc() {
4791
4791
  (function(r, n) {
4792
4792
  t.exports = n();
4793
4793
  })(Jc, (function() {
4794
- var r = 1e3, n = 6e4, i = 36e5, l = "millisecond", u = "second", a = "minute", m = "hour", y = "day", _ = "week", O = "month", S = "quarter", C = "year", k = "date", j = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
4794
+ var r = 1e3, n = 6e4, i = 36e5, l = "millisecond", u = "second", a = "minute", m = "hour", v = "day", _ = "week", O = "month", S = "quarter", C = "year", k = "date", j = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
4795
4795
  var x = ["th", "st", "nd", "rd"], w = P % 100;
4796
4796
  return "[" + P + (x[(w - 20) % 10] || x[w] || x[0]) + "]";
4797
4797
  } }, V = function(P, x, w) {
@@ -4807,7 +4807,7 @@ function Xc() {
4807
4807
  }, a: function(P) {
4808
4808
  return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
4809
4809
  }, p: function(P) {
4810
- return { M: O, y: C, w: _, d: y, D: k, h: m, m: a, s: u, ms: l, Q: S }[P] || String(P || "").toLowerCase().replace(/s$/, "");
4810
+ return { M: O, y: C, w: _, d: v, D: k, h: m, m: a, s: u, ms: l, Q: S }[P] || String(P || "").toLowerCase().replace(/s$/, "");
4811
4811
  }, u: function(P) {
4812
4812
  return P === void 0;
4813
4813
  } }, X = "en", re = {};
@@ -4827,13 +4827,13 @@ function Xc() {
4827
4827
  re[d] = x, s = d;
4828
4828
  }
4829
4829
  return !h && s && (X = s), s || !h && X;
4830
- }, W = function(P, x) {
4830
+ }, U = function(P, x) {
4831
4831
  if (Q(P)) return P.clone();
4832
4832
  var w = typeof x == "object" ? x : {};
4833
4833
  return w.date = P, w.args = arguments, new ne(w);
4834
- }, Z = F;
4835
- Z.l = q, Z.i = Q, Z.w = function(P, x) {
4836
- return W(P, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset });
4834
+ }, K = F;
4835
+ K.l = q, K.i = Q, K.w = function(P, x) {
4836
+ return U(P, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset });
4837
4837
  };
4838
4838
  var ne = (function() {
4839
4839
  function P(w) {
@@ -4844,13 +4844,13 @@ function Xc() {
4844
4844
  this.$d = (function(h) {
4845
4845
  var s = h.date, p = h.utc;
4846
4846
  if (s === null) return /* @__PURE__ */ new Date(NaN);
4847
- if (Z.u(s)) return /* @__PURE__ */ new Date();
4847
+ if (K.u(s)) return /* @__PURE__ */ new Date();
4848
4848
  if (s instanceof Date) return new Date(s);
4849
4849
  if (typeof s == "string" && !/Z$/i.test(s)) {
4850
4850
  var f = s.match($);
4851
4851
  if (f) {
4852
- var d = f[2] - 1 || 0, v = (f[7] || "0").substring(0, 3);
4853
- return p ? new Date(Date.UTC(f[1], d, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v)) : new Date(f[1], d, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v);
4852
+ var d = f[2] - 1 || 0, y = (f[7] || "0").substring(0, 3);
4853
+ return p ? new Date(Date.UTC(f[1], d, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, y)) : new Date(f[1], d, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, y);
4854
4854
  }
4855
4855
  }
4856
4856
  return new Date(s);
@@ -4859,29 +4859,29 @@ function Xc() {
4859
4859
  var w = this.$d;
4860
4860
  this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
4861
4861
  }, x.$utils = function() {
4862
- return Z;
4862
+ return K;
4863
4863
  }, x.isValid = function() {
4864
4864
  return this.$d.toString() !== j;
4865
4865
  }, x.isSame = function(w, h) {
4866
- var s = W(w);
4866
+ var s = U(w);
4867
4867
  return this.startOf(h) <= s && s <= this.endOf(h);
4868
4868
  }, x.isAfter = function(w, h) {
4869
- return W(w) < this.startOf(h);
4869
+ return U(w) < this.startOf(h);
4870
4870
  }, x.isBefore = function(w, h) {
4871
- return this.endOf(h) < W(w);
4871
+ return this.endOf(h) < U(w);
4872
4872
  }, x.$g = function(w, h, s) {
4873
- return Z.u(w) ? this[h] : this.set(s, w);
4873
+ return K.u(w) ? this[h] : this.set(s, w);
4874
4874
  }, x.unix = function() {
4875
4875
  return Math.floor(this.valueOf() / 1e3);
4876
4876
  }, x.valueOf = function() {
4877
4877
  return this.$d.getTime();
4878
4878
  }, x.startOf = function(w, h) {
4879
- var s = this, p = !!Z.u(h) || h, f = Z.p(w), d = function(ie, oe) {
4880
- var ae = Z.w(s.$u ? Date.UTC(s.$y, oe, ie) : new Date(s.$y, oe, ie), s);
4881
- return p ? ae : ae.endOf(y);
4882
- }, v = function(ie, oe) {
4883
- return Z.w(s.toDate()[ie].apply(s.toDate("s"), (p ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(oe)), s);
4884
- }, D = this.$W, R = this.$M, U = this.$D, K = "set" + (this.$u ? "UTC" : "");
4879
+ var s = this, p = !!K.u(h) || h, f = K.p(w), d = function(ie, oe) {
4880
+ var ae = K.w(s.$u ? Date.UTC(s.$y, oe, ie) : new Date(s.$y, oe, ie), s);
4881
+ return p ? ae : ae.endOf(v);
4882
+ }, y = function(ie, oe) {
4883
+ return K.w(s.toDate()[ie].apply(s.toDate("s"), (p ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(oe)), s);
4884
+ }, D = this.$W, R = this.$M, W = this.$D, Z = "set" + (this.$u ? "UTC" : "");
4885
4885
  switch (f) {
4886
4886
  case C:
4887
4887
  return p ? d(1, 0) : d(31, 11);
@@ -4889,55 +4889,55 @@ function Xc() {
4889
4889
  return p ? d(1, R) : d(0, R + 1);
4890
4890
  case _:
4891
4891
  var ee = this.$locale().weekStart || 0, J = (D < ee ? D + 7 : D) - ee;
4892
- return d(p ? U - J : U + (6 - J), R);
4893
- case y:
4892
+ return d(p ? W - J : W + (6 - J), R);
4893
+ case v:
4894
4894
  case k:
4895
- return v(K + "Hours", 0);
4895
+ return y(Z + "Hours", 0);
4896
4896
  case m:
4897
- return v(K + "Minutes", 1);
4897
+ return y(Z + "Minutes", 1);
4898
4898
  case a:
4899
- return v(K + "Seconds", 2);
4899
+ return y(Z + "Seconds", 2);
4900
4900
  case u:
4901
- return v(K + "Milliseconds", 3);
4901
+ return y(Z + "Milliseconds", 3);
4902
4902
  default:
4903
4903
  return this.clone();
4904
4904
  }
4905
4905
  }, x.endOf = function(w) {
4906
4906
  return this.startOf(w, !1);
4907
4907
  }, x.$set = function(w, h) {
4908
- var s, p = Z.p(w), f = "set" + (this.$u ? "UTC" : ""), d = (s = {}, s[y] = f + "Date", s[k] = f + "Date", s[O] = f + "Month", s[C] = f + "FullYear", s[m] = f + "Hours", s[a] = f + "Minutes", s[u] = f + "Seconds", s[l] = f + "Milliseconds", s)[p], v = p === y ? this.$D + (h - this.$W) : h;
4908
+ var s, p = K.p(w), f = "set" + (this.$u ? "UTC" : ""), d = (s = {}, s[v] = f + "Date", s[k] = f + "Date", s[O] = f + "Month", s[C] = f + "FullYear", s[m] = f + "Hours", s[a] = f + "Minutes", s[u] = f + "Seconds", s[l] = f + "Milliseconds", s)[p], y = p === v ? this.$D + (h - this.$W) : h;
4909
4909
  if (p === O || p === C) {
4910
4910
  var D = this.clone().set(k, 1);
4911
- D.$d[d](v), D.init(), this.$d = D.set(k, Math.min(this.$D, D.daysInMonth())).$d;
4912
- } else d && this.$d[d](v);
4911
+ D.$d[d](y), D.init(), this.$d = D.set(k, Math.min(this.$D, D.daysInMonth())).$d;
4912
+ } else d && this.$d[d](y);
4913
4913
  return this.init(), this;
4914
4914
  }, x.set = function(w, h) {
4915
4915
  return this.clone().$set(w, h);
4916
4916
  }, x.get = function(w) {
4917
- return this[Z.p(w)]();
4917
+ return this[K.p(w)]();
4918
4918
  }, x.add = function(w, h) {
4919
4919
  var s, p = this;
4920
4920
  w = Number(w);
4921
- var f = Z.p(h), d = function(R) {
4922
- var U = W(p);
4923
- return Z.w(U.date(U.date() + Math.round(R * w)), p);
4921
+ var f = K.p(h), d = function(R) {
4922
+ var W = U(p);
4923
+ return K.w(W.date(W.date() + Math.round(R * w)), p);
4924
4924
  };
4925
4925
  if (f === O) return this.set(O, this.$M + w);
4926
4926
  if (f === C) return this.set(C, this.$y + w);
4927
- if (f === y) return d(1);
4927
+ if (f === v) return d(1);
4928
4928
  if (f === _) return d(7);
4929
- var v = (s = {}, s[a] = n, s[m] = i, s[u] = r, s)[f] || 1, D = this.$d.getTime() + w * v;
4930
- return Z.w(D, this);
4929
+ var y = (s = {}, s[a] = n, s[m] = i, s[u] = r, s)[f] || 1, D = this.$d.getTime() + w * y;
4930
+ return K.w(D, this);
4931
4931
  }, x.subtract = function(w, h) {
4932
4932
  return this.add(-1 * w, h);
4933
4933
  }, x.format = function(w) {
4934
4934
  var h = this, s = this.$locale();
4935
4935
  if (!this.isValid()) return s.invalidDate || j;
4936
- var p = w || "YYYY-MM-DDTHH:mm:ssZ", f = Z.z(this), d = this.$H, v = this.$m, D = this.$M, R = s.weekdays, U = s.months, K = s.meridiem, ee = function(oe, ae, A, N) {
4936
+ var p = w || "YYYY-MM-DDTHH:mm:ssZ", f = K.z(this), d = this.$H, y = this.$m, D = this.$M, R = s.weekdays, W = s.months, Z = s.meridiem, ee = function(oe, ae, A, N) {
4937
4937
  return oe && (oe[ae] || oe(h, p)) || A[ae].slice(0, N);
4938
4938
  }, J = function(oe) {
4939
- return Z.s(d % 12 || 12, oe, "0");
4940
- }, ie = K || function(oe, ae, A) {
4939
+ return K.s(d % 12 || 12, oe, "0");
4940
+ }, ie = Z || function(oe, ae, A) {
4941
4941
  var N = oe < 12 ? "AM" : "PM";
4942
4942
  return A ? N.toLowerCase() : N;
4943
4943
  };
@@ -4947,19 +4947,19 @@ function Xc() {
4947
4947
  case "YY":
4948
4948
  return String(h.$y).slice(-2);
4949
4949
  case "YYYY":
4950
- return Z.s(h.$y, 4, "0");
4950
+ return K.s(h.$y, 4, "0");
4951
4951
  case "M":
4952
4952
  return D + 1;
4953
4953
  case "MM":
4954
- return Z.s(D + 1, 2, "0");
4954
+ return K.s(D + 1, 2, "0");
4955
4955
  case "MMM":
4956
- return ee(s.monthsShort, D, U, 3);
4956
+ return ee(s.monthsShort, D, W, 3);
4957
4957
  case "MMMM":
4958
- return ee(U, D);
4958
+ return ee(W, D);
4959
4959
  case "D":
4960
4960
  return h.$D;
4961
4961
  case "DD":
4962
- return Z.s(h.$D, 2, "0");
4962
+ return K.s(h.$D, 2, "0");
4963
4963
  case "d":
4964
4964
  return String(h.$W);
4965
4965
  case "dd":
@@ -4971,25 +4971,25 @@ function Xc() {
4971
4971
  case "H":
4972
4972
  return String(d);
4973
4973
  case "HH":
4974
- return Z.s(d, 2, "0");
4974
+ return K.s(d, 2, "0");
4975
4975
  case "h":
4976
4976
  return J(1);
4977
4977
  case "hh":
4978
4978
  return J(2);
4979
4979
  case "a":
4980
- return ie(d, v, !0);
4980
+ return ie(d, y, !0);
4981
4981
  case "A":
4982
- return ie(d, v, !1);
4982
+ return ie(d, y, !1);
4983
4983
  case "m":
4984
- return String(v);
4984
+ return String(y);
4985
4985
  case "mm":
4986
- return Z.s(v, 2, "0");
4986
+ return K.s(y, 2, "0");
4987
4987
  case "s":
4988
4988
  return String(h.$s);
4989
4989
  case "ss":
4990
- return Z.s(h.$s, 2, "0");
4990
+ return K.s(h.$s, 2, "0");
4991
4991
  case "SSS":
4992
- return Z.s(h.$ms, 3, "0");
4992
+ return K.s(h.$ms, 3, "0");
4993
4993
  case "Z":
4994
4994
  return f;
4995
4995
  }
@@ -4999,23 +4999,23 @@ function Xc() {
4999
4999
  }, x.utcOffset = function() {
5000
5000
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5001
5001
  }, x.diff = function(w, h, s) {
5002
- var p, f = this, d = Z.p(h), v = W(w), D = (v.utcOffset() - this.utcOffset()) * n, R = this - v, U = function() {
5003
- return Z.m(f, v);
5002
+ var p, f = this, d = K.p(h), y = U(w), D = (y.utcOffset() - this.utcOffset()) * n, R = this - y, W = function() {
5003
+ return K.m(f, y);
5004
5004
  };
5005
5005
  switch (d) {
5006
5006
  case C:
5007
- p = U() / 12;
5007
+ p = W() / 12;
5008
5008
  break;
5009
5009
  case O:
5010
- p = U();
5010
+ p = W();
5011
5011
  break;
5012
5012
  case S:
5013
- p = U() / 3;
5013
+ p = W() / 3;
5014
5014
  break;
5015
5015
  case _:
5016
5016
  p = (R - D) / 6048e5;
5017
5017
  break;
5018
- case y:
5018
+ case v:
5019
5019
  p = (R - D) / 864e5;
5020
5020
  break;
5021
5021
  case m:
@@ -5030,7 +5030,7 @@ function Xc() {
5030
5030
  default:
5031
5031
  p = R;
5032
5032
  }
5033
- return s ? p : Z.a(p);
5033
+ return s ? p : K.a(p);
5034
5034
  }, x.daysInMonth = function() {
5035
5035
  return this.endOf(O).$D;
5036
5036
  }, x.$locale = function() {
@@ -5040,7 +5040,7 @@ function Xc() {
5040
5040
  var s = this.clone(), p = q(w, h, !0);
5041
5041
  return p && (s.$L = p), s;
5042
5042
  }, x.clone = function() {
5043
- return Z.w(this.$d, this);
5043
+ return K.w(this.$d, this);
5044
5044
  }, x.toDate = function() {
5045
5045
  return new Date(this.valueOf());
5046
5046
  }, x.toJSON = function() {
@@ -5051,15 +5051,15 @@ function Xc() {
5051
5051
  return this.$d.toUTCString();
5052
5052
  }, P;
5053
5053
  })(), te = ne.prototype;
5054
- return W.prototype = te, [["$ms", l], ["$s", u], ["$m", a], ["$H", m], ["$W", y], ["$M", O], ["$y", C], ["$D", k]].forEach((function(P) {
5054
+ return U.prototype = te, [["$ms", l], ["$s", u], ["$m", a], ["$H", m], ["$W", v], ["$M", O], ["$y", C], ["$D", k]].forEach((function(P) {
5055
5055
  te[P[1]] = function(x) {
5056
5056
  return this.$g(x, P[0], P[1]);
5057
5057
  };
5058
- })), W.extend = function(P, x) {
5059
- return P.$i || (P(x, ne, W), P.$i = !0), W;
5060
- }, W.locale = q, W.isDayjs = Q, W.unix = function(P) {
5061
- return W(1e3 * P);
5062
- }, W.en = re[X], W.Ls = re, W.p = {}, W;
5058
+ })), U.extend = function(P, x) {
5059
+ return P.$i || (P(x, ne, U), P.$i = !0), U;
5060
+ }, U.locale = q, U.isDayjs = Q, U.unix = function(P) {
5061
+ return U(1e3 * P);
5062
+ }, U.en = re[X], U.Ls = re, U.p = {}, U;
5063
5063
  }));
5064
5064
  })(Ar)), Ar.exports;
5065
5065
  }
@@ -5258,7 +5258,7 @@ const au = gr((t, { size: e }) => ({
5258
5258
  styles: u,
5259
5259
  unstyled: a,
5260
5260
  vars: m,
5261
- date: y,
5261
+ date: v,
5262
5262
  disabled: _,
5263
5263
  __staticSelector: O,
5264
5264
  weekend: S,
@@ -5294,7 +5294,7 @@ const au = gr((t, { size: e }) => ({
5294
5294
  component: F ? "div" : "button",
5295
5295
  ref: e,
5296
5296
  disabled: _,
5297
- "data-today": ce(y).isSame(/* @__PURE__ */ new Date(), "day") || void 0,
5297
+ "data-today": ce(v).isSame(/* @__PURE__ */ new Date(), "day") || void 0,
5298
5298
  "data-hidden": V || void 0,
5299
5299
  "data-highlight-today": X || void 0,
5300
5300
  "data-disabled": _ || void 0,
@@ -5307,7 +5307,7 @@ const au = gr((t, { size: e }) => ({
5307
5307
  "data-static": F || void 0,
5308
5308
  unstyled: a,
5309
5309
  ...H,
5310
- children: j?.(y) || ce(y).date()
5310
+ children: j?.(v) || ce(v).date()
5311
5311
  }
5312
5312
  );
5313
5313
  });
@@ -5337,7 +5337,7 @@ const cu = gr((t, { size: e }) => ({
5337
5337
  styles: u,
5338
5338
  unstyled: a,
5339
5339
  vars: m,
5340
- locale: y,
5340
+ locale: v,
5341
5341
  firstDayOfWeek: _,
5342
5342
  weekdayFormat: O,
5343
5343
  cellComponent: S = "th",
@@ -5359,7 +5359,7 @@ const cu = gr((t, { size: e }) => ({
5359
5359
  varsResolver: cu,
5360
5360
  rootSelector: "weekdaysRow"
5361
5361
  }), L = Dt(), V = lu({
5362
- locale: L.getLocale(y),
5362
+ locale: L.getLocale(v),
5363
5363
  format: O,
5364
5364
  firstDayOfWeek: L.getFirstDayOfWeek(_)
5365
5365
  }).map((F, X) => /* @__PURE__ */ b.jsx(S, { ...z("weekday"), children: F }, X));
@@ -5391,11 +5391,11 @@ function hu({
5391
5391
  consistentWeeks: r
5392
5392
  }) {
5393
5393
  const n = ce(t).subtract(ce(t).date() - 1, "day"), i = ce(n.format("YYYY-M-D")), l = i.format("YYYY-MM-DD"), u = i.add(+i.daysInMonth() - 1, "day").format("YYYY-MM-DD"), a = uu(u, e), m = [];
5394
- let y = ce(du(l, e));
5395
- for (; ce(y).isBefore(a, "day"); ) {
5394
+ let v = ce(du(l, e));
5395
+ for (; ce(v).isBefore(a, "day"); ) {
5396
5396
  const _ = [];
5397
5397
  for (let O = 0; O < 7; O += 1)
5398
- _.push(y.format("YYYY-MM-DD")), y = y.add(1, "day");
5398
+ _.push(v.format("YYYY-MM-DD")), v = v.add(1, "day");
5399
5399
  m.push(_);
5400
5400
  }
5401
5401
  if (r && m.length < 6) {
@@ -5433,8 +5433,8 @@ function fu({
5433
5433
  ), m = a.find((_) => n?.(_)?.selected);
5434
5434
  if (m)
5435
5435
  return m;
5436
- const y = a.find((_) => ce().isSame(_, "date"));
5437
- return y || a[0];
5436
+ const v = a.find((_) => ce().isSame(_, "date"));
5437
+ return v || a[0];
5438
5438
  }
5439
5439
  var Rr = { exports: {} }, pu = Rr.exports, gi;
5440
5440
  function gu() {
@@ -5444,22 +5444,22 @@ function gu() {
5444
5444
  })(pu, (function() {
5445
5445
  var r = "day";
5446
5446
  return function(n, i, l) {
5447
- var u = function(y) {
5448
- return y.add(4 - y.isoWeekday(), r);
5447
+ var u = function(v) {
5448
+ return v.add(4 - v.isoWeekday(), r);
5449
5449
  }, a = i.prototype;
5450
5450
  a.isoWeekYear = function() {
5451
5451
  return u(this).year();
5452
- }, a.isoWeek = function(y) {
5453
- if (!this.$utils().u(y)) return this.add(7 * (y - this.isoWeek()), r);
5452
+ }, a.isoWeek = function(v) {
5453
+ if (!this.$utils().u(v)) return this.add(7 * (v - this.isoWeek()), r);
5454
5454
  var _, O, S, C, k = u(this), j = (_ = this.isoWeekYear(), O = this.$u, S = (O ? l.utc : l)().year(_).startOf("year"), C = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (C += 7), S.add(C, r));
5455
5455
  return k.diff(j, "week") + 1;
5456
- }, a.isoWeekday = function(y) {
5457
- return this.$utils().u(y) ? this.day() || 7 : this.day(this.day() % 7 ? y : y - 7);
5456
+ }, a.isoWeekday = function(v) {
5457
+ return this.$utils().u(v) ? this.day() || 7 : this.day(this.day() % 7 ? v : v - 7);
5458
5458
  };
5459
5459
  var m = a.startOf;
5460
- a.startOf = function(y, _) {
5460
+ a.startOf = function(v, _) {
5461
5461
  var O = this.$utils(), S = !!O.u(_) || _;
5462
- return O.p(y) === "isoweek" ? S ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : m.bind(this)(y, _);
5462
+ return O.p(v) === "isoweek" ? S ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : m.bind(this)(v, _);
5463
5463
  };
5464
5464
  };
5465
5465
  }));
@@ -5488,7 +5488,7 @@ const bu = {
5488
5488
  styles: u,
5489
5489
  unstyled: a,
5490
5490
  vars: m,
5491
- __staticSelector: y,
5491
+ __staticSelector: v,
5492
5492
  locale: _,
5493
5493
  firstDayOfWeek: O,
5494
5494
  weekdayFormat: S,
@@ -5505,8 +5505,8 @@ const bu = {
5505
5505
  static: H,
5506
5506
  __getDayRef: Q,
5507
5507
  __onDayKeyDown: q,
5508
- __onDayClick: W,
5509
- __onDayMouseEnter: Z,
5508
+ __onDayClick: U,
5509
+ __onDayMouseEnter: K,
5510
5510
  __preventFocus: ne,
5511
5511
  __stopPropagation: te,
5512
5512
  withCellSpacing: P,
@@ -5516,7 +5516,7 @@ const bu = {
5516
5516
  attributes: s,
5517
5517
  ...p
5518
5518
  } = r, f = St({
5519
- name: y || "Month",
5519
+ name: v || "Month",
5520
5520
  classes: ls,
5521
5521
  props: r,
5522
5522
  className: i,
@@ -5528,23 +5528,23 @@ const bu = {
5528
5528
  vars: m,
5529
5529
  varsResolver: wu,
5530
5530
  rootSelector: "month"
5531
- }), d = Dt(), v = hu({
5531
+ }), d = Dt(), y = hu({
5532
5532
  month: C,
5533
5533
  firstDayOfWeek: d.getFirstDayOfWeek(O),
5534
5534
  consistentWeeks: d.consistentWeeks
5535
5535
  }), D = fu({
5536
- dates: v,
5536
+ dates: y,
5537
5537
  minDate: tt(z),
5538
5538
  maxDate: tt(L),
5539
5539
  getDayProps: j,
5540
5540
  excludeDate: $,
5541
5541
  hideOutsideDates: F,
5542
5542
  month: C
5543
- }), { resolvedClassNames: R, resolvedStyles: U } = Mi({
5543
+ }), { resolvedClassNames: R, resolvedStyles: W } = Mi({
5544
5544
  classNames: n,
5545
5545
  styles: u,
5546
5546
  props: r
5547
- }), K = v.map((ee, J) => {
5547
+ }), Z = y.map((ee, J) => {
5548
5548
  const ie = ee.map((oe, ae) => {
5549
5549
  const A = !to(oe, C), N = re?.(oe) || ce(oe).locale(_ || d.locale).format("D MMMM YYYY"), E = j?.(oe), B = ce(oe).isSame(D, "date");
5550
5550
  return /* @__PURE__ */ b.jsx(
@@ -5555,9 +5555,9 @@ const bu = {
5555
5555
  children: /* @__PURE__ */ b.jsx(
5556
5556
  Xn,
5557
5557
  {
5558
- __staticSelector: y || "Month",
5558
+ __staticSelector: v || "Month",
5559
5559
  classNames: R,
5560
- styles: U,
5560
+ styles: W,
5561
5561
  unstyled: a,
5562
5562
  "data-mantine-stop-propagation": te || void 0,
5563
5563
  highlightToday: w,
@@ -5578,10 +5578,10 @@ const bu = {
5578
5578
  E?.onKeyDown?.(I), q?.(I, { rowIndex: J, cellIndex: ae, date: oe });
5579
5579
  },
5580
5580
  onMouseEnter: (I) => {
5581
- E?.onMouseEnter?.(I), Z?.(I, oe);
5581
+ E?.onMouseEnter?.(I), K?.(I, oe);
5582
5582
  },
5583
5583
  onClick: (I) => {
5584
- E?.onClick?.(I), W?.(I, oe);
5584
+ E?.onClick?.(I), U?.(I, oe);
5585
5585
  },
5586
5586
  onMouseDown: (I) => {
5587
5587
  E?.onMouseDown?.(I), ne && I.preventDefault();
@@ -5602,18 +5602,18 @@ const bu = {
5602
5602
  !X && /* @__PURE__ */ b.jsx("thead", { ...f("monthThead"), children: /* @__PURE__ */ b.jsx(
5603
5603
  eo,
5604
5604
  {
5605
- __staticSelector: y || "Month",
5605
+ __staticSelector: v || "Month",
5606
5606
  locale: _,
5607
5607
  firstDayOfWeek: O,
5608
5608
  weekdayFormat: S,
5609
5609
  size: x,
5610
5610
  classNames: R,
5611
- styles: U,
5611
+ styles: W,
5612
5612
  unstyled: a,
5613
5613
  withWeekNumbers: h
5614
5614
  }
5615
5615
  ) }),
5616
- /* @__PURE__ */ b.jsx("tbody", { ...f("monthTbody"), children: K })
5616
+ /* @__PURE__ */ b.jsx("tbody", { ...f("monthTbody"), children: Z })
5617
5617
  ] });
5618
5618
  });
5619
5619
  Ur.classes = ls;
@@ -5632,7 +5632,7 @@ const _u = gr((t, { size: e }) => ({
5632
5632
  styles: u,
5633
5633
  unstyled: a,
5634
5634
  vars: m,
5635
- firstInRange: y,
5635
+ firstInRange: v,
5636
5636
  lastInRange: _,
5637
5637
  inRange: O,
5638
5638
  __staticSelector: S,
@@ -5664,7 +5664,7 @@ const _u = gr((t, { size: e }) => ({
5664
5664
  "data-selected": C && !k || void 0,
5665
5665
  "data-disabled": k || void 0,
5666
5666
  "data-in-range": O && !k && !C || void 0,
5667
- "data-first-in-range": y && !k || void 0,
5667
+ "data-first-in-range": v && !k || void 0,
5668
5668
  "data-last-in-range": _ && !k || void 0,
5669
5669
  disabled: k,
5670
5670
  ...$
@@ -5713,7 +5713,7 @@ const Cu = {
5713
5713
  styles: u,
5714
5714
  unstyled: a,
5715
5715
  vars: m,
5716
- decade: y,
5716
+ decade: v,
5717
5717
  yearsListFormat: _,
5718
5718
  locale: O,
5719
5719
  minDate: S,
@@ -5730,7 +5730,7 @@ const Cu = {
5730
5730
  size: H,
5731
5731
  attributes: Q,
5732
5732
  ...q
5733
- } = r, W = St({
5733
+ } = r, U = St({
5734
5734
  name: j || "YearsList",
5735
5735
  classes: hs,
5736
5736
  props: r,
@@ -5742,7 +5742,7 @@ const Cu = {
5742
5742
  attributes: Q,
5743
5743
  vars: m,
5744
5744
  rootSelector: "yearsList"
5745
- }), Z = Dt(), ne = ds(y), te = xu({
5745
+ }), K = Dt(), ne = ds(v), te = xu({
5746
5746
  years: ne,
5747
5747
  minDate: S,
5748
5748
  maxDate: C,
@@ -5753,43 +5753,43 @@ const Cu = {
5753
5753
  return /* @__PURE__ */ b.jsx(
5754
5754
  "td",
5755
5755
  {
5756
- ...W("yearsListCell"),
5756
+ ...U("yearsListCell"),
5757
5757
  "data-with-spacing": re || void 0,
5758
5758
  children: /* @__PURE__ */ b.jsx(
5759
5759
  qr,
5760
5760
  {
5761
- ...W("yearsListControl"),
5761
+ ...U("yearsListControl"),
5762
5762
  size: H,
5763
5763
  unstyled: a,
5764
5764
  "data-mantine-stop-propagation": X || void 0,
5765
5765
  disabled: us({ year: s, minDate: S, maxDate: C }),
5766
- ref: (v) => {
5767
- v && $?.(w, p, v);
5766
+ ref: (y) => {
5767
+ y && $?.(w, p, y);
5768
5768
  },
5769
5769
  ...f,
5770
- onKeyDown: (v) => {
5771
- f?.onKeyDown?.(v), z?.(v, { rowIndex: w, cellIndex: p, date: s });
5770
+ onKeyDown: (y) => {
5771
+ f?.onKeyDown?.(y), z?.(y, { rowIndex: w, cellIndex: p, date: s });
5772
5772
  },
5773
- onClick: (v) => {
5774
- f?.onClick?.(v), L?.(v, s);
5773
+ onClick: (y) => {
5774
+ f?.onClick?.(y), L?.(y, s);
5775
5775
  },
5776
- onMouseEnter: (v) => {
5777
- f?.onMouseEnter?.(v), V?.(v, s);
5776
+ onMouseEnter: (y) => {
5777
+ f?.onMouseEnter?.(y), V?.(y, s);
5778
5778
  },
5779
- onMouseDown: (v) => {
5780
- f?.onMouseDown?.(v), F && v.preventDefault();
5779
+ onMouseDown: (y) => {
5780
+ f?.onMouseDown?.(y), F && y.preventDefault();
5781
5781
  },
5782
5782
  tabIndex: F || !d ? -1 : 0,
5783
- children: ce(s).locale(Z.getLocale(O)).format(_)
5783
+ children: ce(s).locale(K.getLocale(O)).format(_)
5784
5784
  }
5785
5785
  )
5786
5786
  },
5787
5787
  p
5788
5788
  );
5789
5789
  });
5790
- return /* @__PURE__ */ b.jsx("tr", { ...W("yearsListRow"), children: h }, w);
5790
+ return /* @__PURE__ */ b.jsx("tr", { ...U("yearsListRow"), children: h }, w);
5791
5791
  });
5792
- return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...W("yearsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5792
+ return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...U("yearsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5793
5793
  });
5794
5794
  Vr.classes = hs;
5795
5795
  Vr.displayName = "@mantine/dates/YearsList";
@@ -5830,7 +5830,7 @@ const ku = {
5830
5830
  styles: u,
5831
5831
  unstyled: a,
5832
5832
  vars: m,
5833
- __staticSelector: y,
5833
+ __staticSelector: v,
5834
5834
  year: _,
5835
5835
  monthsListFormat: O,
5836
5836
  locale: S,
@@ -5847,8 +5847,8 @@ const ku = {
5847
5847
  size: H,
5848
5848
  attributes: Q,
5849
5849
  ...q
5850
- } = r, W = St({
5851
- name: y || "MonthsList",
5850
+ } = r, U = St({
5851
+ name: v || "MonthsList",
5852
5852
  classes: ps,
5853
5853
  props: r,
5854
5854
  className: i,
@@ -5859,7 +5859,7 @@ const ku = {
5859
5859
  attributes: Q,
5860
5860
  vars: m,
5861
5861
  rootSelector: "monthsList"
5862
- }), Z = Dt(), ne = Du(_), te = Su({
5862
+ }), K = Dt(), ne = Du(_), te = Su({
5863
5863
  months: ne,
5864
5864
  minDate: tt(C),
5865
5865
  maxDate: tt(k),
@@ -5870,48 +5870,48 @@ const ku = {
5870
5870
  return /* @__PURE__ */ b.jsx(
5871
5871
  "td",
5872
5872
  {
5873
- ...W("monthsListCell"),
5873
+ ...U("monthsListCell"),
5874
5874
  "data-with-spacing": re || void 0,
5875
5875
  children: /* @__PURE__ */ b.jsx(
5876
5876
  qr,
5877
5877
  {
5878
- ...W("monthsListControl"),
5878
+ ...U("monthsListControl"),
5879
5879
  size: H,
5880
5880
  unstyled: a,
5881
- __staticSelector: y || "MonthsList",
5881
+ __staticSelector: v || "MonthsList",
5882
5882
  "data-mantine-stop-propagation": X || void 0,
5883
5883
  disabled: fs({
5884
5884
  month: s,
5885
5885
  minDate: tt(C),
5886
5886
  maxDate: tt(k)
5887
5887
  }),
5888
- ref: (v) => {
5889
- v && $?.(w, p, v);
5888
+ ref: (y) => {
5889
+ y && $?.(w, p, y);
5890
5890
  },
5891
5891
  ...f,
5892
- onKeyDown: (v) => {
5893
- f?.onKeyDown?.(v), z?.(v, { rowIndex: w, cellIndex: p, date: s });
5892
+ onKeyDown: (y) => {
5893
+ f?.onKeyDown?.(y), z?.(y, { rowIndex: w, cellIndex: p, date: s });
5894
5894
  },
5895
- onClick: (v) => {
5896
- f?.onClick?.(v), L?.(v, s);
5895
+ onClick: (y) => {
5896
+ f?.onClick?.(y), L?.(y, s);
5897
5897
  },
5898
- onMouseEnter: (v) => {
5899
- f?.onMouseEnter?.(v), V?.(v, s);
5898
+ onMouseEnter: (y) => {
5899
+ f?.onMouseEnter?.(y), V?.(y, s);
5900
5900
  },
5901
- onMouseDown: (v) => {
5902
- f?.onMouseDown?.(v), F && v.preventDefault();
5901
+ onMouseDown: (y) => {
5902
+ f?.onMouseDown?.(y), F && y.preventDefault();
5903
5903
  },
5904
5904
  tabIndex: F || !d ? -1 : 0,
5905
- children: ce(s).locale(Z.getLocale(S)).format(O)
5905
+ children: ce(s).locale(K.getLocale(S)).format(O)
5906
5906
  }
5907
5907
  )
5908
5908
  },
5909
5909
  p
5910
5910
  );
5911
5911
  });
5912
- return /* @__PURE__ */ b.jsx("tr", { ...W("monthsListRow"), children: h }, w);
5912
+ return /* @__PURE__ */ b.jsx("tr", { ...U("monthsListRow"), children: h }, w);
5913
5913
  });
5914
- return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...W("monthsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5914
+ return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...U("monthsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5915
5915
  });
5916
5916
  Hr.classes = ps;
5917
5917
  Hr.displayName = "@mantine/dates/MonthsList";
@@ -5934,7 +5934,7 @@ const Pu = {
5934
5934
  styles: u,
5935
5935
  unstyled: a,
5936
5936
  vars: m,
5937
- nextIcon: y,
5937
+ nextIcon: v,
5938
5938
  previousIcon: _,
5939
5939
  nextLabel: O,
5940
5940
  previousLabel: S,
@@ -5951,8 +5951,8 @@ const Pu = {
5951
5951
  headerControlsOrder: H,
5952
5952
  __staticSelector: Q,
5953
5953
  __preventFocus: q,
5954
- __stopPropagation: W,
5955
- attributes: Z,
5954
+ __stopPropagation: U,
5955
+ attributes: K,
5956
5956
  ...ne
5957
5957
  } = r, te = St({
5958
5958
  name: Q || "CalendarHeader",
@@ -5963,7 +5963,7 @@ const Pu = {
5963
5963
  classNames: n,
5964
5964
  styles: u,
5965
5965
  unstyled: a,
5966
- attributes: Z,
5966
+ attributes: K,
5967
5967
  vars: m,
5968
5968
  varsResolver: Ou,
5969
5969
  rootSelector: "calendarHeader"
@@ -5980,7 +5980,7 @@ const Pu = {
5980
5980
  disabled: L,
5981
5981
  "data-disabled": L || void 0,
5982
5982
  tabIndex: q || L ? -1 : 0,
5983
- "data-mantine-stop-propagation": W || void 0
5983
+ "data-mantine-stop-propagation": U || void 0
5984
5984
  },
5985
5985
  _ || /* @__PURE__ */ b.jsx(
5986
5986
  fo,
@@ -6003,7 +6003,7 @@ const Pu = {
6003
6003
  "data-static": !V || void 0,
6004
6004
  "aria-label": F,
6005
6005
  tabIndex: q || !V ? -1 : 0,
6006
- "data-mantine-stop-propagation": W || void 0
6006
+ "data-mantine-stop-propagation": U || void 0
6007
6007
  },
6008
6008
  $
6009
6009
  ), h = X && /* @__PURE__ */ jr(
@@ -6019,9 +6019,9 @@ const Pu = {
6019
6019
  disabled: z,
6020
6020
  "data-disabled": z || void 0,
6021
6021
  tabIndex: q || z ? -1 : 0,
6022
- "data-mantine-stop-propagation": W || void 0
6022
+ "data-mantine-stop-propagation": U || void 0
6023
6023
  },
6024
- y || /* @__PURE__ */ b.jsx(
6024
+ v || /* @__PURE__ */ b.jsx(
6025
6025
  fo,
6026
6026
  {
6027
6027
  ...te("calendarHeaderControlIcon"),
@@ -6049,7 +6049,7 @@ const Mu = {
6049
6049
  maxDate: u,
6050
6050
  yearsListFormat: a,
6051
6051
  getYearControlProps: m,
6052
- __getControlRef: y,
6052
+ __getControlRef: v,
6053
6053
  __onControlKeyDown: _,
6054
6054
  __onControlClick: O,
6055
6055
  __onControlMouseEnter: S,
@@ -6067,9 +6067,9 @@ const Mu = {
6067
6067
  levelControlAriaLabel: H,
6068
6068
  withNext: Q,
6069
6069
  withPrevious: q,
6070
- headerControlsOrder: W,
6070
+ headerControlsOrder: U,
6071
6071
  // Other props
6072
- decadeLabelFormat: Z,
6072
+ decadeLabelFormat: K,
6073
6073
  classNames: ne,
6074
6074
  styles: te,
6075
6075
  unstyled: P,
@@ -6078,21 +6078,21 @@ const Mu = {
6078
6078
  size: h,
6079
6079
  attributes: s,
6080
6080
  ...p
6081
- } = r, f = Dt(), [d, v] = ju(n), D = {
6081
+ } = r, f = Dt(), [d, y] = ju(n), D = {
6082
6082
  __staticSelector: x || "DecadeLevel",
6083
6083
  classNames: ne,
6084
6084
  styles: te,
6085
6085
  unstyled: P,
6086
6086
  size: h,
6087
6087
  attributes: s
6088
- }, R = typeof X == "boolean" ? X : u ? !ce(v).endOf("year").isBefore(u) : !1, U = typeof re == "boolean" ? re : l ? !ce(d).startOf("year").isAfter(l) : !1, K = (ee, J) => ce(ee).locale(i || f.locale).format(J);
6088
+ }, R = typeof X == "boolean" ? X : u ? !ce(y).endOf("year").isBefore(u) : !1, W = typeof re == "boolean" ? re : l ? !ce(d).startOf("year").isAfter(l) : !1, Z = (ee, J) => ce(ee).locale(i || f.locale).format(J);
6089
6089
  return /* @__PURE__ */ b.jsxs(je, { "data-decade-level": !0, size: h, ref: e, ...p, children: [
6090
6090
  /* @__PURE__ */ b.jsx(
6091
6091
  kt,
6092
6092
  {
6093
- label: typeof Z == "function" ? Z(d, v) : `${K(d, Z)} – ${K(
6094
- v,
6095
- Z
6093
+ label: typeof K == "function" ? K(d, y) : `${Z(d, K)} – ${Z(
6094
+ y,
6095
+ K
6096
6096
  )}`,
6097
6097
  __preventFocus: k,
6098
6098
  __stopPropagation: w,
@@ -6103,12 +6103,12 @@ const Mu = {
6103
6103
  onNext: V,
6104
6104
  onPrevious: F,
6105
6105
  nextDisabled: R,
6106
- previousDisabled: U,
6106
+ previousDisabled: W,
6107
6107
  hasNextLevel: !1,
6108
6108
  levelControlAriaLabel: H,
6109
6109
  withNext: Q,
6110
6110
  withPrevious: q,
6111
- headerControlsOrder: W,
6111
+ headerControlsOrder: U,
6112
6112
  ...D
6113
6113
  }
6114
6114
  ),
@@ -6121,7 +6121,7 @@ const Mu = {
6121
6121
  maxDate: u,
6122
6122
  yearsListFormat: a,
6123
6123
  getYearControlProps: m,
6124
- __getControlRef: y,
6124
+ __getControlRef: v,
6125
6125
  __onControlKeyDown: _,
6126
6126
  __onControlClick: O,
6127
6127
  __onControlMouseEnter: S,
@@ -6146,7 +6146,7 @@ const Au = {
6146
6146
  maxDate: u,
6147
6147
  monthsListFormat: a,
6148
6148
  getMonthControlProps: m,
6149
- __getControlRef: y,
6149
+ __getControlRef: v,
6150
6150
  __onControlKeyDown: _,
6151
6151
  __onControlClick: O,
6152
6152
  __onControlMouseEnter: S,
@@ -6164,8 +6164,8 @@ const Au = {
6164
6164
  previousDisabled: H,
6165
6165
  hasNextLevel: Q,
6166
6166
  levelControlAriaLabel: q,
6167
- withNext: W,
6168
- withPrevious: Z,
6167
+ withNext: U,
6168
+ withPrevious: K,
6169
6169
  headerControlsOrder: ne,
6170
6170
  // Other props
6171
6171
  yearLabelFormat: te,
@@ -6177,19 +6177,19 @@ const Au = {
6177
6177
  unstyled: p,
6178
6178
  attributes: f,
6179
6179
  ...d
6180
- } = r, v = Dt(), D = {
6180
+ } = r, y = Dt(), D = {
6181
6181
  __staticSelector: P || "YearLevel",
6182
6182
  classNames: h,
6183
6183
  styles: s,
6184
6184
  unstyled: p,
6185
6185
  size: w,
6186
6186
  attributes: f
6187
- }, R = typeof re == "boolean" ? re : u ? !ce(n).endOf("year").isBefore(u) : !1, U = typeof H == "boolean" ? H : l ? !ce(n).startOf("year").isAfter(l) : !1;
6187
+ }, R = typeof re == "boolean" ? re : u ? !ce(n).endOf("year").isBefore(u) : !1, W = typeof H == "boolean" ? H : l ? !ce(n).startOf("year").isAfter(l) : !1;
6188
6188
  return /* @__PURE__ */ b.jsxs(je, { "data-year-level": !0, size: w, ref: e, ...d, children: [
6189
6189
  /* @__PURE__ */ b.jsx(
6190
6190
  kt,
6191
6191
  {
6192
- label: typeof te == "function" ? te(n) : ce(n).locale(i || v.locale).format(te),
6192
+ label: typeof te == "function" ? te(n) : ce(n).locale(i || y.locale).format(te),
6193
6193
  __preventFocus: k,
6194
6194
  __stopPropagation: x,
6195
6195
  nextIcon: j,
@@ -6200,11 +6200,11 @@ const Au = {
6200
6200
  onPrevious: F,
6201
6201
  onLevelClick: X,
6202
6202
  nextDisabled: R,
6203
- previousDisabled: U,
6203
+ previousDisabled: W,
6204
6204
  hasNextLevel: Q,
6205
6205
  levelControlAriaLabel: q,
6206
- withNext: W,
6207
- withPrevious: Z,
6206
+ withNext: U,
6207
+ withPrevious: K,
6208
6208
  headerControlsOrder: ne,
6209
6209
  ...D
6210
6210
  }
@@ -6218,7 +6218,7 @@ const Au = {
6218
6218
  maxDate: u,
6219
6219
  monthsListFormat: a,
6220
6220
  getMonthControlProps: m,
6221
- __getControlRef: y,
6221
+ __getControlRef: v,
6222
6222
  __onControlKeyDown: _,
6223
6223
  __onControlClick: O,
6224
6224
  __onControlMouseEnter: S,
@@ -6234,7 +6234,7 @@ Qr.classes = { ...kt.classes, ...Hr.classes };
6234
6234
  Qr.displayName = "@mantine/dates/YearLevel";
6235
6235
  const Ru = {
6236
6236
  monthLabelFormat: "MMMM YYYY"
6237
- }, Zr = Be((t, e) => {
6237
+ }, Kr = Be((t, e) => {
6238
6238
  const r = We("MonthLevel", Ru, t), {
6239
6239
  // Month settings
6240
6240
  month: n,
@@ -6243,7 +6243,7 @@ const Ru = {
6243
6243
  weekdayFormat: u,
6244
6244
  weekendDays: a,
6245
6245
  getDayProps: m,
6246
- excludeDate: y,
6246
+ excludeDate: v,
6247
6247
  minDate: _,
6248
6248
  maxDate: O,
6249
6249
  renderDay: S,
@@ -6261,8 +6261,8 @@ const Ru = {
6261
6261
  __preventFocus: H,
6262
6262
  __stopPropagation: Q,
6263
6263
  nextIcon: q,
6264
- previousIcon: W,
6265
- nextLabel: Z,
6264
+ previousIcon: U,
6265
+ nextLabel: K,
6266
6266
  previousLabel: ne,
6267
6267
  onNext: te,
6268
6268
  onPrevious: P,
@@ -6273,12 +6273,12 @@ const Ru = {
6273
6273
  levelControlAriaLabel: p,
6274
6274
  withNext: f,
6275
6275
  withPrevious: d,
6276
- headerControlsOrder: v,
6276
+ headerControlsOrder: y,
6277
6277
  // Other props
6278
6278
  monthLabelFormat: D,
6279
6279
  classNames: R,
6280
- styles: U,
6281
- unstyled: K,
6280
+ styles: W,
6281
+ unstyled: Z,
6282
6282
  __staticSelector: ee,
6283
6283
  size: J,
6284
6284
  static: ie,
@@ -6287,8 +6287,8 @@ const Ru = {
6287
6287
  } = r, A = Dt(), N = {
6288
6288
  __staticSelector: ee || "MonthLevel",
6289
6289
  classNames: R,
6290
- styles: U,
6291
- unstyled: K,
6290
+ styles: W,
6291
+ unstyled: Z,
6292
6292
  size: J,
6293
6293
  attributes: oe
6294
6294
  }, E = typeof w == "boolean" ? w : O ? !ce(n).endOf("month").isBefore(O) : !1, B = typeof h == "boolean" ? h : _ ? !ce(n).startOf("month").isAfter(_) : !1;
@@ -6300,8 +6300,8 @@ const Ru = {
6300
6300
  __preventFocus: H,
6301
6301
  __stopPropagation: Q,
6302
6302
  nextIcon: q,
6303
- previousIcon: W,
6304
- nextLabel: Z,
6303
+ previousIcon: U,
6304
+ nextLabel: K,
6305
6305
  previousLabel: ne,
6306
6306
  onNext: te,
6307
6307
  onPrevious: P,
@@ -6312,7 +6312,7 @@ const Ru = {
6312
6312
  levelControlAriaLabel: p,
6313
6313
  withNext: f,
6314
6314
  withPrevious: d,
6315
- headerControlsOrder: v,
6315
+ headerControlsOrder: y,
6316
6316
  ...N
6317
6317
  }
6318
6318
  ),
@@ -6325,7 +6325,7 @@ const Ru = {
6325
6325
  weekdayFormat: u,
6326
6326
  weekendDays: a,
6327
6327
  getDayProps: m,
6328
- excludeDate: y,
6328
+ excludeDate: v,
6329
6329
  minDate: _,
6330
6330
  maxDate: O,
6331
6331
  renderDay: S,
@@ -6347,8 +6347,8 @@ const Ru = {
6347
6347
  )
6348
6348
  ] });
6349
6349
  });
6350
- Zr.classes = { ...Ur.classes, ...kt.classes };
6351
- Zr.displayName = "@mantine/dates/MonthLevel";
6350
+ Kr.classes = { ...Ur.classes, ...kt.classes };
6351
+ Kr.displayName = "@mantine/dates/MonthLevel";
6352
6352
  var ms = { levelsGroup: "m_30b26e33" };
6353
6353
  const Pt = Be((t, e) => {
6354
6354
  const r = We("LevelsGroup", null, t), {
@@ -6358,11 +6358,11 @@ const Pt = Be((t, e) => {
6358
6358
  styles: u,
6359
6359
  unstyled: a,
6360
6360
  vars: m,
6361
- __staticSelector: y,
6361
+ __staticSelector: v,
6362
6362
  attributes: _,
6363
6363
  ...O
6364
6364
  } = r, S = St({
6365
- name: y || "LevelsGroup",
6365
+ name: v || "LevelsGroup",
6366
6366
  classes: ms,
6367
6367
  props: r,
6368
6368
  className: i,
@@ -6380,7 +6380,7 @@ Pt.classes = ms;
6380
6380
  Pt.displayName = "@mantine/dates/LevelsGroup";
6381
6381
  const Eu = {
6382
6382
  numberOfColumns: 1
6383
- }, Kr = Be((t, e) => {
6383
+ }, Zr = Be((t, e) => {
6384
6384
  const r = We("DecadeLevelGroup", Eu, t), {
6385
6385
  // DecadeLevel settings
6386
6386
  decade: n,
@@ -6389,7 +6389,7 @@ const Eu = {
6389
6389
  maxDate: u,
6390
6390
  yearsListFormat: a,
6391
6391
  getYearControlProps: m,
6392
- __onControlClick: y,
6392
+ __onControlClick: v,
6393
6393
  __onControlMouseEnter: _,
6394
6394
  withCellSpacing: O,
6395
6395
  // CalendarHeader settings
@@ -6408,26 +6408,26 @@ const Eu = {
6408
6408
  styles: H,
6409
6409
  unstyled: Q,
6410
6410
  __staticSelector: q,
6411
- __stopPropagation: W,
6412
- numberOfColumns: Z,
6411
+ __stopPropagation: U,
6412
+ numberOfColumns: K,
6413
6413
  levelControlAriaLabel: ne,
6414
6414
  decadeLabelFormat: te,
6415
6415
  size: P,
6416
6416
  vars: x,
6417
6417
  attributes: w,
6418
6418
  ...h
6419
- } = r, s = De([]), p = Array(Z).fill(0).map((f, d) => {
6420
- const v = ce(n).add(d * 10, "years").format("YYYY-MM-DD");
6419
+ } = r, s = De([]), p = Array(K).fill(0).map((f, d) => {
6420
+ const y = ce(n).add(d * 10, "years").format("YYYY-MM-DD");
6421
6421
  return /* @__PURE__ */ b.jsx(
6422
6422
  Gr,
6423
6423
  {
6424
6424
  size: P,
6425
6425
  yearsListFormat: a,
6426
- decade: v,
6427
- withNext: d === Z - 1,
6426
+ decade: y,
6427
+ withNext: d === K - 1,
6428
6428
  withPrevious: d === 0,
6429
6429
  decadeLabelFormat: te,
6430
- __onControlClick: y,
6430
+ __onControlClick: v,
6431
6431
  __onControlMouseEnter: _,
6432
6432
  __onControlKeyDown: (D, R) => Jn({
6433
6433
  levelIndex: d,
@@ -6436,15 +6436,15 @@ const Eu = {
6436
6436
  event: D,
6437
6437
  controlsRef: s
6438
6438
  }),
6439
- __getControlRef: (D, R, U) => {
6440
- Array.isArray(s.current[d]) || (s.current[d] = []), Array.isArray(s.current[d][D]) || (s.current[d][D] = []), s.current[d][D][R] = U;
6439
+ __getControlRef: (D, R, W) => {
6440
+ Array.isArray(s.current[d]) || (s.current[d] = []), Array.isArray(s.current[d][D]) || (s.current[d][D] = []), s.current[d][D][R] = W;
6441
6441
  },
6442
- levelControlAriaLabel: typeof ne == "function" ? ne(v) : ne,
6442
+ levelControlAriaLabel: typeof ne == "function" ? ne(y) : ne,
6443
6443
  locale: i,
6444
6444
  minDate: l,
6445
6445
  maxDate: u,
6446
6446
  __preventFocus: S,
6447
- __stopPropagation: W,
6447
+ __stopPropagation: U,
6448
6448
  nextIcon: C,
6449
6449
  previousIcon: k,
6450
6450
  nextLabel: j,
@@ -6480,8 +6480,8 @@ const Eu = {
6480
6480
  }
6481
6481
  );
6482
6482
  });
6483
- Kr.classes = { ...Pt.classes, ...Gr.classes };
6484
- Kr.displayName = "@mantine/dates/DecadeLevelGroup";
6483
+ Zr.classes = { ...Pt.classes, ...Gr.classes };
6484
+ Zr.displayName = "@mantine/dates/DecadeLevelGroup";
6485
6485
  const Tu = {
6486
6486
  numberOfColumns: 1
6487
6487
  }, Jr = Be((t, e) => {
@@ -6493,7 +6493,7 @@ const Tu = {
6493
6493
  maxDate: u,
6494
6494
  monthsListFormat: a,
6495
6495
  getMonthControlProps: m,
6496
- __onControlClick: y,
6496
+ __onControlClick: v,
6497
6497
  __onControlMouseEnter: _,
6498
6498
  withCellSpacing: O,
6499
6499
  // CalendarHeader settings
@@ -6512,8 +6512,8 @@ const Tu = {
6512
6512
  // Other settings
6513
6513
  classNames: Q,
6514
6514
  styles: q,
6515
- unstyled: W,
6516
- __staticSelector: Z,
6515
+ unstyled: U,
6516
+ __staticSelector: K,
6517
6517
  __stopPropagation: ne,
6518
6518
  numberOfColumns: te,
6519
6519
  levelControlAriaLabel: P,
@@ -6522,7 +6522,7 @@ const Tu = {
6522
6522
  vars: h,
6523
6523
  attributes: s,
6524
6524
  ...p
6525
- } = r, f = De([]), d = Array(te).fill(0).map((v, D) => {
6525
+ } = r, f = De([]), d = Array(te).fill(0).map((y, D) => {
6526
6526
  const R = ce(n).add(D, "years").format("YYYY-MM-DD");
6527
6527
  return /* @__PURE__ */ b.jsx(
6528
6528
  Qr,
@@ -6534,17 +6534,17 @@ const Tu = {
6534
6534
  withPrevious: D === 0,
6535
6535
  yearLabelFormat: x,
6536
6536
  __stopPropagation: ne,
6537
- __onControlClick: y,
6537
+ __onControlClick: v,
6538
6538
  __onControlMouseEnter: _,
6539
- __onControlKeyDown: (U, K) => Jn({
6539
+ __onControlKeyDown: (W, Z) => Jn({
6540
6540
  levelIndex: D,
6541
- rowIndex: K.rowIndex,
6542
- cellIndex: K.cellIndex,
6543
- event: U,
6541
+ rowIndex: Z.rowIndex,
6542
+ cellIndex: Z.cellIndex,
6543
+ event: W,
6544
6544
  controlsRef: f
6545
6545
  }),
6546
- __getControlRef: (U, K, ee) => {
6547
- Array.isArray(f.current[D]) || (f.current[D] = []), Array.isArray(f.current[D][U]) || (f.current[D][U] = []), f.current[D][U][K] = ee;
6546
+ __getControlRef: (W, Z, ee) => {
6547
+ Array.isArray(f.current[D]) || (f.current[D] = []), Array.isArray(f.current[D][W]) || (f.current[D][W] = []), f.current[D][W][Z] = ee;
6548
6548
  },
6549
6549
  levelControlAriaLabel: typeof P == "function" ? P(R) : P,
6550
6550
  locale: i,
@@ -6564,8 +6564,8 @@ const Tu = {
6564
6564
  getMonthControlProps: m,
6565
6565
  classNames: Q,
6566
6566
  styles: q,
6567
- unstyled: W,
6568
- __staticSelector: Z || "YearLevelGroup",
6567
+ unstyled: U,
6568
+ __staticSelector: K || "YearLevelGroup",
6569
6569
  withCellSpacing: O,
6570
6570
  headerControlsOrder: H,
6571
6571
  attributes: s
@@ -6578,10 +6578,10 @@ const Tu = {
6578
6578
  {
6579
6579
  classNames: Q,
6580
6580
  styles: q,
6581
- __staticSelector: Z || "YearLevelGroup",
6581
+ __staticSelector: K || "YearLevelGroup",
6582
6582
  ref: e,
6583
6583
  size: w,
6584
- unstyled: W,
6584
+ unstyled: U,
6585
6585
  attributes: s,
6586
6586
  ...p,
6587
6587
  children: d
@@ -6601,7 +6601,7 @@ const $u = {
6601
6601
  weekdayFormat: u,
6602
6602
  weekendDays: a,
6603
6603
  getDayProps: m,
6604
- excludeDate: y,
6604
+ excludeDate: v,
6605
6605
  minDate: _,
6606
6606
  maxDate: O,
6607
6607
  renderDay: S,
@@ -6619,8 +6619,8 @@ const $u = {
6619
6619
  previousIcon: H,
6620
6620
  nextLabel: Q,
6621
6621
  previousLabel: q,
6622
- onNext: W,
6623
- onPrevious: Z,
6622
+ onNext: U,
6623
+ onPrevious: K,
6624
6624
  onLevelClick: ne,
6625
6625
  nextDisabled: te,
6626
6626
  previousDisabled: P,
@@ -6632,23 +6632,23 @@ const $u = {
6632
6632
  unstyled: p,
6633
6633
  numberOfColumns: f,
6634
6634
  levelControlAriaLabel: d,
6635
- monthLabelFormat: v,
6635
+ monthLabelFormat: y,
6636
6636
  __staticSelector: D,
6637
6637
  __stopPropagation: R,
6638
- size: U,
6639
- static: K,
6638
+ size: W,
6639
+ static: Z,
6640
6640
  vars: ee,
6641
6641
  attributes: J,
6642
6642
  ...ie
6643
6643
  } = r, oe = De([]), ae = Array(f).fill(0).map((A, N) => {
6644
6644
  const E = ce(n).add(N, "months").format("YYYY-MM-DD");
6645
6645
  return /* @__PURE__ */ b.jsx(
6646
- Zr,
6646
+ Kr,
6647
6647
  {
6648
6648
  month: E,
6649
6649
  withNext: N === f - 1,
6650
6650
  withPrevious: N === 0,
6651
- monthLabelFormat: v,
6651
+ monthLabelFormat: y,
6652
6652
  __stopPropagation: R,
6653
6653
  __onDayClick: $,
6654
6654
  __onDayMouseEnter: z,
@@ -6668,7 +6668,7 @@ const $u = {
6668
6668
  weekdayFormat: u,
6669
6669
  weekendDays: a,
6670
6670
  getDayProps: m,
6671
- excludeDate: y,
6671
+ excludeDate: v,
6672
6672
  minDate: _,
6673
6673
  maxDate: O,
6674
6674
  renderDay: S,
@@ -6680,8 +6680,8 @@ const $u = {
6680
6680
  previousIcon: H,
6681
6681
  nextLabel: Q,
6682
6682
  previousLabel: q,
6683
- onNext: W,
6684
- onPrevious: Z,
6683
+ onNext: U,
6684
+ onPrevious: K,
6685
6685
  onLevelClick: ne,
6686
6686
  nextDisabled: te,
6687
6687
  previousDisabled: P,
@@ -6690,8 +6690,8 @@ const $u = {
6690
6690
  styles: s,
6691
6691
  unstyled: p,
6692
6692
  __staticSelector: D || "MonthLevelGroup",
6693
- size: U,
6694
- static: K,
6693
+ size: W,
6694
+ static: Z,
6695
6695
  withCellSpacing: L,
6696
6696
  highlightToday: V,
6697
6697
  withWeekNumbers: F,
@@ -6708,14 +6708,14 @@ const $u = {
6708
6708
  styles: s,
6709
6709
  __staticSelector: D || "MonthLevelGroup",
6710
6710
  ref: e,
6711
- size: U,
6711
+ size: W,
6712
6712
  attributes: J,
6713
6713
  ...ie,
6714
6714
  children: ae
6715
6715
  }
6716
6716
  );
6717
6717
  });
6718
- Xr.classes = { ...Pt.classes, ...Zr.classes };
6718
+ Xr.classes = { ...Pt.classes, ...Kr.classes };
6719
6719
  Xr.displayName = "@mantine/dates/MonthLevelGroup";
6720
6720
  const mi = (t) => t === "range" ? [null, null] : t === "multiple" ? [] : null, yi = (t, e) => {
6721
6721
  const r = e ? ts : tt;
@@ -6734,8 +6734,8 @@ function Bn({
6734
6734
  finalValue: mi(t),
6735
6735
  onChange: n
6736
6736
  });
6737
- let y = u;
6738
- return l.current !== t && (l.current = t, e === void 0 && (y = r !== void 0 ? r : mi(t), a(y))), [y, a, m];
6737
+ let v = u;
6738
+ return l.current !== t && (l.current = t, e === void 0 && (v = r !== void 0 ? r : mi(t), a(v))), [v, a, m];
6739
6739
  }
6740
6740
  function Cn(t, e) {
6741
6741
  return t ? t === "month" ? 0 : t === "year" ? 1 : 2 : e || 0;
@@ -6767,7 +6767,7 @@ const Lu = {
6767
6767
  defaultLevel: u,
6768
6768
  level: a,
6769
6769
  onLevelChange: m,
6770
- date: y,
6770
+ date: v,
6771
6771
  defaultDate: _,
6772
6772
  onDateChange: O,
6773
6773
  numberOfColumns: S,
@@ -6785,8 +6785,8 @@ const Lu = {
6785
6785
  __setDateRef: Q,
6786
6786
  __setLevelRef: q,
6787
6787
  // MonthLevelGroup props
6788
- firstDayOfWeek: W,
6789
- weekdayFormat: Z,
6788
+ firstDayOfWeek: U,
6789
+ weekdayFormat: K,
6790
6790
  weekendDays: ne,
6791
6791
  getDayProps: te,
6792
6792
  excludeDate: P,
@@ -6797,11 +6797,11 @@ const Lu = {
6797
6797
  monthLabelFormat: p,
6798
6798
  nextIcon: f,
6799
6799
  previousIcon: d,
6800
- __onDayClick: v,
6800
+ __onDayClick: y,
6801
6801
  __onDayMouseEnter: D,
6802
6802
  withCellSpacing: R,
6803
- highlightToday: U,
6804
- withWeekNumbers: K,
6803
+ highlightToday: W,
6804
+ withWeekNumbers: Z,
6805
6805
  // YearLevelGroup props
6806
6806
  monthsListFormat: ee,
6807
6807
  getMonthControlProps: J,
@@ -6842,7 +6842,7 @@ const Lu = {
6842
6842
  onChange: m
6843
6843
  }), [Ot, Ee] = Bn({
6844
6844
  type: "default",
6845
- value: tt(y),
6845
+ value: tt(v),
6846
6846
  defaultValue: tt(_),
6847
6847
  onChange: O
6848
6848
  });
@@ -6870,7 +6870,7 @@ const Lu = {
6870
6870
  }, Qe = () => {
6871
6871
  const me = ce(Te).subtract(Ye, "year").format("YYYY-MM-DD");
6872
6872
  he?.(me), Ee(me);
6873
- }, Ze = () => {
6873
+ }, Ke = () => {
6874
6874
  const me = ce(Te).add(10 * Ye, "year").format("YYYY-MM-DD");
6875
6875
  Y?.(me), Ee(me);
6876
6876
  }, ht = () => {
@@ -6889,7 +6889,7 @@ const Lu = {
6889
6889
  nt && vt ? (Oe.preventDefault(), ht()) : nt && (Oe.preventDefault(), Qe());
6890
6890
  break;
6891
6891
  case "ArrowDown":
6892
- nt && vt ? (Oe.preventDefault(), Ze()) : nt && (Oe.preventDefault(), Ge());
6892
+ nt && vt ? (Oe.preventDefault(), Ke()) : nt && (Oe.preventDefault(), Ge());
6893
6893
  break;
6894
6894
  case "y":
6895
6895
  case "Y":
@@ -6906,7 +6906,7 @@ const Lu = {
6906
6906
  Ne,
6907
6907
  Ge,
6908
6908
  Qe,
6909
- Ze,
6909
+ Ke,
6910
6910
  ht
6911
6911
  ]);
6912
6912
  const ft = (me) => {
@@ -6919,8 +6919,8 @@ const Lu = {
6919
6919
  month: Te,
6920
6920
  minDate: I,
6921
6921
  maxDate: le,
6922
- firstDayOfWeek: W,
6923
- weekdayFormat: Z,
6922
+ firstDayOfWeek: U,
6923
+ weekdayFormat: K,
6924
6924
  weekendDays: ne,
6925
6925
  getDayProps: te,
6926
6926
  excludeDate: P,
@@ -6940,14 +6940,14 @@ const Lu = {
6940
6940
  previousLabel: k?.previousMonth ?? $,
6941
6941
  previousIcon: d,
6942
6942
  monthLabelFormat: p,
6943
- __onDayClick: v,
6943
+ __onDayClick: y,
6944
6944
  __onDayMouseEnter: D,
6945
6945
  __preventFocus: M,
6946
6946
  __stopPropagation: T,
6947
6947
  static: pe,
6948
6948
  withCellSpacing: R,
6949
- highlightToday: U,
6950
- withWeekNumbers: K,
6949
+ highlightToday: W,
6950
+ withWeekNumbers: Z,
6951
6951
  headerControlsOrder: X,
6952
6952
  ...lt
6953
6953
  }
@@ -6984,7 +6984,7 @@ const Lu = {
6984
6984
  }
6985
6985
  ),
6986
6986
  Ne === "decade" && /* @__PURE__ */ b.jsx(
6987
- Kr,
6987
+ Zr,
6988
6988
  {
6989
6989
  decade: Te,
6990
6990
  minDate: I,
@@ -6992,7 +6992,7 @@ const Lu = {
6992
6992
  yearsListFormat: oe,
6993
6993
  getYearControlProps: ae,
6994
6994
  locale: o,
6995
- onNext: Ze,
6995
+ onNext: Ke,
6996
6996
  onPrevious: ht,
6997
6997
  numberOfColumns: S,
6998
6998
  nextLabel: k?.nextDecade ?? j,
@@ -7014,7 +7014,7 @@ const Lu = {
7014
7014
  ] });
7015
7015
  });
7016
7016
  en.classes = {
7017
- ...Kr.classes,
7017
+ ...Zr.classes,
7018
7018
  ...Jr.classes,
7019
7019
  ...Xr.classes
7020
7020
  };
@@ -7029,7 +7029,7 @@ function Iu(t) {
7029
7029
  nextIcon: u,
7030
7030
  previousIcon: a,
7031
7031
  date: m,
7032
- defaultDate: y,
7032
+ defaultDate: v,
7033
7033
  onDateChange: _,
7034
7034
  numberOfColumns: O,
7035
7035
  columnsToScroll: S,
@@ -7046,8 +7046,8 @@ function Iu(t) {
7046
7046
  onPreviousYear: H,
7047
7047
  onNextDecade: Q,
7048
7048
  onPreviousDecade: q,
7049
- withCellSpacing: W,
7050
- highlightToday: Z,
7049
+ withCellSpacing: U,
7050
+ highlightToday: K,
7051
7051
  __updateDateOnYearSelect: ne,
7052
7052
  __updateDateOnMonthSelect: te,
7053
7053
  __setDateRef: P,
@@ -7059,11 +7059,11 @@ function Iu(t) {
7059
7059
  weekdayFormat: p,
7060
7060
  weekendDays: f,
7061
7061
  getDayProps: d,
7062
- excludeDate: v,
7062
+ excludeDate: y,
7063
7063
  renderDay: D,
7064
7064
  hideOutsideDates: R,
7065
- hideWeekdays: U,
7066
- getDayAriaLabel: K,
7065
+ hideWeekdays: W,
7066
+ getDayAriaLabel: Z,
7067
7067
  monthLabelFormat: ee,
7068
7068
  // YearLevelGroup props
7069
7069
  monthsListFormat: J,
@@ -7092,7 +7092,7 @@ function Iu(t) {
7092
7092
  nextIcon: u,
7093
7093
  previousIcon: a,
7094
7094
  date: m,
7095
- defaultDate: y,
7095
+ defaultDate: v,
7096
7096
  onDateChange: _,
7097
7097
  numberOfColumns: O,
7098
7098
  columnsToScroll: S,
@@ -7109,8 +7109,8 @@ function Iu(t) {
7109
7109
  onPreviousYear: H,
7110
7110
  onNextDecade: Q,
7111
7111
  onPreviousDecade: q,
7112
- withCellSpacing: W,
7113
- highlightToday: Z,
7112
+ withCellSpacing: U,
7113
+ highlightToday: K,
7114
7114
  __updateDateOnYearSelect: ne,
7115
7115
  __updateDateOnMonthSelect: te,
7116
7116
  __setDateRef: P,
@@ -7121,11 +7121,11 @@ function Iu(t) {
7121
7121
  weekdayFormat: p,
7122
7122
  weekendDays: f,
7123
7123
  getDayProps: d,
7124
- excludeDate: v,
7124
+ excludeDate: y,
7125
7125
  renderDay: D,
7126
7126
  hideOutsideDates: R,
7127
- hideWeekdays: U,
7128
- getDayAriaLabel: K,
7127
+ hideWeekdays: W,
7128
+ getDayAriaLabel: Z,
7129
7129
  monthLabelFormat: ee,
7130
7130
  // YearLevelGroup props
7131
7131
  monthsListFormat: J,
@@ -7167,7 +7167,7 @@ const zu = {
7167
7167
  defaultValue: u,
7168
7168
  onChange: a,
7169
7169
  clearable: m,
7170
- clearButtonProps: y,
7170
+ clearButtonProps: v,
7171
7171
  popoverProps: _,
7172
7172
  getDayProps: O,
7173
7173
  locale: S,
@@ -7184,8 +7184,8 @@ const zu = {
7184
7184
  name: H,
7185
7185
  form: Q,
7186
7186
  rightSection: q,
7187
- unstyled: W,
7188
- classNames: Z,
7187
+ unstyled: U,
7188
+ classNames: K,
7189
7189
  styles: ne,
7190
7190
  allowDeselect: te,
7191
7191
  date: P,
@@ -7195,7 +7195,7 @@ const zu = {
7195
7195
  getYearControlProps: s,
7196
7196
  disabled: p,
7197
7197
  ...f
7198
- } = r, d = De(null), v = De(null), [D, R] = ve(!1), { calendarProps: U, others: K } = Iu(f), ee = Dt(), ie = k || ((G) => {
7198
+ } = r, d = De(null), y = De(null), [D, R] = ve(!1), { calendarProps: W, others: Z } = Iu(f), ee = Dt(), ie = k || ((G) => {
7199
7199
  const de = ce(G, C, ee.getLocale(S)).toDate();
7200
7200
  return Number.isNaN(de.getTime()) ? Bu(G) : ce(de).format("YYYY-MM-DD");
7201
7201
  }), oe = te !== void 0 ? te : m, ae = (G) => G ? ce(G).locale(ee.getLocale(S)).format(C) : "", [A, N, E] = Bn({
@@ -7246,15 +7246,15 @@ const zu = {
7246
7246
  onClick: () => {
7247
7247
  N(null), !E && o(""), R(!1);
7248
7248
  },
7249
- unstyled: W,
7250
- ...y
7249
+ unstyled: U,
7250
+ ...v
7251
7251
  }
7252
7252
  ), he = m && !!A && !re && !p;
7253
7253
  return ra(() => {
7254
7254
  A !== void 0 && !D && o(ae(A));
7255
7255
  }, [A]), zi(() => R(!1), void 0, [
7256
7256
  d.current,
7257
- v.current
7257
+ y.current
7258
7258
  ]), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
7259
7259
  /* @__PURE__ */ b.jsx(Mr.Wrapper, { ...i, __staticSelector: "DateInput", ref: d, children: /* @__PURE__ */ b.jsxs(
7260
7260
  cr,
@@ -7264,7 +7264,7 @@ const zu = {
7264
7264
  position: "bottom-start",
7265
7265
  disabled: re || p,
7266
7266
  withRoles: !1,
7267
- unstyled: W,
7267
+ unstyled: U,
7268
7268
  ..._,
7269
7269
  children: [
7270
7270
  /* @__PURE__ */ b.jsx(cr.Target, { children: /* @__PURE__ */ b.jsx(
@@ -7285,7 +7285,7 @@ const zu = {
7285
7285
  __clearSection: ue,
7286
7286
  __clearable: he,
7287
7287
  ...n,
7288
- ...K,
7288
+ ...Z,
7289
7289
  disabled: p,
7290
7290
  __staticSelector: "DateInput"
7291
7291
  }
@@ -7295,15 +7295,15 @@ const zu = {
7295
7295
  {
7296
7296
  onMouseDown: (G) => G.preventDefault(),
7297
7297
  "data-dates-dropdown": !0,
7298
- ref: v,
7298
+ ref: y,
7299
7299
  children: /* @__PURE__ */ b.jsx(
7300
7300
  en,
7301
7301
  {
7302
7302
  __staticSelector: "DateInput",
7303
- ...U,
7304
- classNames: Z,
7303
+ ...W,
7304
+ classNames: K,
7305
7305
  styles: ne,
7306
- unstyled: W,
7306
+ unstyled: U,
7307
7307
  __preventFocus: !0,
7308
7308
  minDate: j,
7309
7309
  maxDate: $,
@@ -7341,7 +7341,7 @@ function Fu(t) {
7341
7341
  apiPath: l,
7342
7342
  steps: u,
7343
7343
  onCreated: a
7344
- } = t, [m, y] = ve(0), [_, O] = ve(!1), [S, C] = ve(), {
7344
+ } = t, [m, v] = ve(0), [_, O] = ve(!1), [S, C] = ve(), {
7345
7345
  mutateAsync: k,
7346
7346
  isError: j,
7347
7347
  error: $,
@@ -7360,35 +7360,35 @@ function Fu(t) {
7360
7360
  return typeof D.required == "function" ? D.required(R ?? {}) : !!D.required;
7361
7361
  }, e[4] = Q) : Q = e[4];
7362
7362
  const q = Q;
7363
- let W;
7364
- e[5] !== r ? (W = r.reduce(Uu, {}), e[5] = r, e[6] = W) : W = e[6];
7365
- let Z;
7363
+ let U;
7364
+ e[5] !== r ? (U = r.reduce(Uu, {}), e[5] = r, e[6] = U) : U = e[6];
7365
+ let K;
7366
7366
  if (e[7] !== r) {
7367
- let v;
7368
- e[9] === Symbol.for("react.memo_cache_sentinel") ? (v = (D, R) => (D[R.id] = (U, K) => R.conditional && !R.conditional(K) || !q(R, K) || U ? null : "Pflichtfeld", D), e[9] = v) : v = e[9], Z = r.filter(Wu).reduce(v, {}), e[7] = r, e[8] = Z;
7367
+ let y;
7368
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (y = (D, R) => (D[R.id] = (W, Z) => R.conditional && !R.conditional(Z) || !q(R, Z) || W ? null : "Pflichtfeld", D), e[9] = y) : y = e[9], K = r.filter(Wu).reduce(y, {}), e[7] = r, e[8] = K;
7369
7369
  } else
7370
- Z = e[8];
7370
+ K = e[8];
7371
7371
  let ne;
7372
- e[10] !== W || e[11] !== Z ? (ne = {
7372
+ e[10] !== U || e[11] !== K ? (ne = {
7373
7373
  mode: "uncontrolled",
7374
- initialValues: W,
7375
- validate: Z
7376
- }, e[10] = W, e[11] = Z, e[12] = ne) : ne = e[12];
7374
+ initialValues: U,
7375
+ validate: K
7376
+ }, e[10] = U, e[11] = K, e[12] = ne) : ne = e[12];
7377
7377
  const te = Bi(ne);
7378
7378
  let P;
7379
7379
  e[13] !== te || e[14] !== S ? (P = function(D) {
7380
7380
  const R = te.getValues();
7381
7381
  if (D.conditional && !D.conditional(R))
7382
7382
  return null;
7383
- const U = q(D, R);
7383
+ const W = q(D, R);
7384
7384
  return /* @__PURE__ */ b.jsxs(Oi, { children: [
7385
- (D.type === void 0 || D.type == "text") && /* @__PURE__ */ b.jsx(Ai, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), type: D.id.includes("email") ? "email" : void 0, required: U }, te.key(D.id)),
7386
- D.type === "number" && /* @__PURE__ */ b.jsx(Ri, { decimalSeparator: ",", label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), required: U }, te.key(D.id)),
7387
- D.type === "date" && /* @__PURE__ */ b.jsx(tn, { label: D.column.title, placeholder: D.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...te.getInputProps(D.id), required: U }, te.key(D.id)),
7385
+ (D.type === void 0 || D.type == "text") && /* @__PURE__ */ b.jsx(Ai, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), type: D.id.includes("email") ? "email" : void 0, required: W }, te.key(D.id)),
7386
+ D.type === "number" && /* @__PURE__ */ b.jsx(Ri, { decimalSeparator: ",", label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), required: W }, te.key(D.id)),
7387
+ D.type === "date" && /* @__PURE__ */ b.jsx(tn, { label: D.column.title, placeholder: D.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...te.getInputProps(D.id), required: W }, te.key(D.id)),
7388
7388
  D.type === "boolean" && /* @__PURE__ */ b.jsx(Ut, { mt: "md", label: D.column.title, ...te.getInputProps(D.id, {
7389
7389
  type: "checkbox"
7390
- }), required: U }, te.key(D.id)),
7391
- D.type === "textarea" && /* @__PURE__ */ b.jsx(Ei, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), minRows: 3, autosize: !0, required: U }, te.key(D.id)),
7390
+ }), required: W }, te.key(D.id)),
7391
+ D.type === "textarea" && /* @__PURE__ */ b.jsx(Ei, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), minRows: 3, autosize: !0, required: W }, te.key(D.id)),
7392
7392
  D.type === "custom" && D.render && D.render({
7393
7393
  ...te.getValues(),
7394
7394
  ...S && {
@@ -7396,7 +7396,7 @@ function Fu(t) {
7396
7396
  }
7397
7397
  }, te.setValues, O, {
7398
7398
  error: te.getInputProps(D.id).error,
7399
- required: U
7399
+ required: W
7400
7400
  })
7401
7401
  ] }, D.id);
7402
7402
  }, e[13] = te, e[14] = S, e[15] = P) : P = e[15];
@@ -7404,25 +7404,25 @@ function Fu(t) {
7404
7404
  let w;
7405
7405
  e[16] !== $?.message || e[17] !== $?.name || e[18] !== j ? (w = j && /* @__PURE__ */ b.jsx(Br, { variant: "outline", color: "red", title: $?.name ?? "Fehler aufgetreten", mb: "lg", children: $?.message ?? "Fehler aufgetreten" }), e[16] = $?.message, e[17] = $?.name, e[18] = j, e[19] = w) : w = e[19];
7406
7406
  let h;
7407
- e[20] !== m || e[21] !== k || e[22] !== te || e[23] !== j || e[24] !== n || e[25] !== a || e[26] !== S || e[27] !== H.length || e[28] !== L ? (h = te.onSubmit(async (v) => {
7407
+ e[20] !== m || e[21] !== k || e[22] !== te || e[23] !== j || e[24] !== n || e[25] !== a || e[26] !== S || e[27] !== H.length || e[28] !== L ? (h = te.onSubmit(async (y) => {
7408
7408
  if (S)
7409
7409
  await L({
7410
- ...v,
7410
+ ...y,
7411
7411
  id: S
7412
7412
  });
7413
7413
  else {
7414
- const D = await k(v);
7414
+ const D = await k(y);
7415
7415
  C(D.id), a?.(D.id);
7416
7416
  }
7417
- H.length && m < H.length - 1 ? j || y(m + 1) : j || (te.setInitialValues(v), te.reset(), n());
7417
+ H.length && m < H.length - 1 ? j || v(m + 1) : j || (te.setInitialValues(y), te.reset(), n());
7418
7418
  }), e[20] = m, e[21] = k, e[22] = te, e[23] = j, e[24] = n, e[25] = a, e[26] = S, e[27] = H.length, e[28] = L, e[29] = h) : h = e[29];
7419
7419
  let s;
7420
- e[30] !== m || e[31] !== r || e[32] !== x || e[33] !== u || e[34] !== H ? (s = H.length ? /* @__PURE__ */ b.jsx(Er, { active: m, size: "sm", children: H.map((v) => /* @__PURE__ */ b.jsx(Er.Step, { ...u && u[v - 1] ? {
7421
- label: u[v - 1].label
7422
- } : {}, children: r.filter((D) => D.step === v).map((D) => x(D)) }, v)) }) : r.map((v) => x(v)), e[30] = m, e[31] = r, e[32] = x, e[33] = u, e[34] = H, e[35] = s) : s = e[35];
7420
+ e[30] !== m || e[31] !== r || e[32] !== x || e[33] !== u || e[34] !== H ? (s = H.length ? /* @__PURE__ */ b.jsx(Er, { active: m, size: "sm", children: H.map((y) => /* @__PURE__ */ b.jsx(Er.Step, { ...u && u[y - 1] ? {
7421
+ label: u[y - 1].label
7422
+ } : {}, children: r.filter((D) => D.step === y).map((D) => x(D)) }, y)) }) : r.map((y) => x(y)), e[30] = m, e[31] = r, e[32] = x, e[33] = u, e[34] = H, e[35] = s) : s = e[35];
7423
7423
  let p;
7424
7424
  e[36] !== m || e[37] !== _ || e[38] !== F || e[39] !== n || e[40] !== H.length ? (p = !_ && /* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
7425
- /* @__PURE__ */ b.jsx(mt, { onClick: () => H.length ? m === 0 ? n() : y(m - 1) : n(), variant: "outline", children: H.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
7425
+ /* @__PURE__ */ b.jsx(mt, { onClick: () => H.length ? m === 0 ? n() : v(m - 1) : n(), variant: "outline", children: H.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
7426
7426
  /* @__PURE__ */ b.jsx(mt, { type: "submit", loading: F, children: H.length ? m === H.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
7427
7427
  ] }), e[36] = m, e[37] = _, e[38] = F, e[39] = n, e[40] = H.length, e[41] = p) : p = e[41];
7428
7428
  let f;
@@ -7449,7 +7449,7 @@ function Vu(t) {
7449
7449
  return typeof t.step == "number";
7450
7450
  }
7451
7451
  var [Hu, ro] = Ts("useDataTableColumnsContext must be used within DataTableColumnProvider"), vi = (t) => {
7452
- let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: l, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ } = t, [O, S] = ve(""), [C, k] = ve("");
7452
+ let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: l, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: v, resetColumnsWidth: _ } = t, [O, S] = ve(""), [C, k] = ve("");
7453
7453
  return b.jsx(Hu, { value: { sourceColumn: O, setSourceColumn: S, targetColumn: C, setTargetColumn: k, columnsToggle: i, setColumnsToggle: l, swapColumns: () => {
7454
7454
  if (!r || !n || !O || !C) return;
7455
7455
  let j = r.indexOf(O), $ = r.indexOf(C);
@@ -7457,7 +7457,7 @@ var [Hu, ro] = Ts("useDataTableColumnsContext must be used within DataTableColum
7457
7457
  let z = r.splice(j, 1)[0];
7458
7458
  r.splice($, 0, z), n([...r]);
7459
7459
  }
7460
- }, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ }, children: e });
7460
+ }, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: v, resetColumnsWidth: _ }, children: e });
7461
7461
  };
7462
7462
  function Gu() {
7463
7463
  return b.jsx("tr", { className: "mantine-datatable-empty-row", children: b.jsx("td", {}) });
@@ -7465,10 +7465,10 @@ function Gu() {
7465
7465
  function Qu() {
7466
7466
  return b.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" }), b.jsx("path", { d: "M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" }), b.jsx("path", { d: "M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" }), b.jsx("path", { d: "M3 3l18 18" })] });
7467
7467
  }
7468
- function Zu({ icon: t, text: e, active: r, children: n }) {
7468
+ function Ku({ icon: t, text: e, active: r, children: n }) {
7469
7469
  return b.jsx(Yt, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: n || b.jsxs(b.Fragment, { children: [t || b.jsx("div", { className: "mantine-datatable-empty-state-icon", children: b.jsx(Qu, {}) }), b.jsx(at, { component: "div", size: "sm", c: "dimmed", children: e })] }) });
7470
7470
  }
7471
- function Ku({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7471
+ function Zu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7472
7472
  function n(O, S) {
7473
7473
  let C = [];
7474
7474
  return O.forEach((k) => {
@@ -7485,32 +7485,32 @@ function Ku({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7485
7485
  a(i);
7486
7486
  };
7487
7487
  if (!t) return { columnsOrder: l, setColumnsOrder: a, resetColumnsOrder: m };
7488
- let y = n(l, e), _ = JSON.stringify(l);
7489
- return JSON.stringify(y) !== _ && a(y), { columnsOrder: y, setColumnsOrder: a, resetColumnsOrder: m };
7488
+ let v = n(l, e), _ = JSON.stringify(l);
7489
+ return JSON.stringify(v) !== _ && a(v), { columnsOrder: v, setColumnsOrder: a, resetColumnsOrder: m };
7490
7490
  }
7491
7491
  function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, onFixedLayoutChange: i }) {
7492
- let l = De(!1), u = De({}), [a, m] = ve(!0), y = Xe(() => e.some((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), _ = Xe(() => e.filter((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), O = Xe(() => _.some((q) => q.width === void 0 || q.width === "" || q.width === "initial"), [_]), S = Le(() => e.filter((q) => q.accessor !== "__selection__").map((q) => ({ [q.accessor]: q.width ?? "auto" })), [e]), [C, k] = Un({ key: t ? `${t}-columns-width` : "", defaultValue: t ? S() : void 0, getInitialValueInEffect: !1 }), [j, $] = ve(() => S());
7492
+ let l = De(!1), u = De({}), [a, m] = ve(!0), v = Xe(() => e.some((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), _ = Xe(() => e.filter((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), O = Xe(() => _.some((q) => q.width === void 0 || q.width === "" || q.width === "initial"), [_]), S = Le(() => e.filter((q) => q.accessor !== "__selection__").map((q) => ({ [q.accessor]: q.width ?? "auto" })), [e]), [C, k] = Un({ key: t ? `${t}-columns-width` : "", defaultValue: t ? S() : void 0, getInitialValueInEffect: !1 }), [j, $] = ve(() => S());
7493
7493
  $e(() => {
7494
7494
  m(!1);
7495
7495
  }, []);
7496
7496
  let z = Le(() => {
7497
7497
  if (!n?.current || a) return {};
7498
- let q = n.current, W = Array.from(q.querySelectorAll("th[data-accessor]")), Z = {};
7499
- return W.forEach((ne) => {
7498
+ let q = n.current, U = Array.from(q.querySelectorAll("th[data-accessor]")), K = {};
7499
+ return U.forEach((ne) => {
7500
7500
  let te = ne.getAttribute("data-accessor");
7501
7501
  if (!te || te === "__selection__") return;
7502
7502
  let P = _.find((x) => x.accessor === te);
7503
7503
  if (P && (P.width === void 0 || P.width === "" || P.width === "initial")) {
7504
7504
  let x = ne.getBoundingClientRect();
7505
- Z[te] = Math.round(x.width);
7505
+ K[te] = Math.round(x.width);
7506
7506
  }
7507
- }), Z;
7507
+ }), K;
7508
7508
  }, [n, _, a]), L = Le((q) => {
7509
- let W = q.filter((ne) => ne.accessor !== "__selection__"), Z = j.map((ne) => {
7510
- let te = Object.keys(ne)[0], P = W.find((x) => x.accessor === te);
7509
+ let U = q.filter((ne) => ne.accessor !== "__selection__"), K = j.map((ne) => {
7510
+ let te = Object.keys(ne)[0], P = U.find((x) => x.accessor === te);
7511
7511
  return P ? { [te]: P.width } : ne;
7512
7512
  });
7513
- $(Z), t && k(Z);
7513
+ $(K), t && k(K);
7514
7514
  }, [j, t, k]), V = Le((q) => {
7515
7515
  L(q);
7516
7516
  }, [L]), F = Le(() => {
@@ -7518,24 +7518,24 @@ function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
7518
7518
  requestAnimationFrame(() => {
7519
7519
  let q = z();
7520
7520
  u.current = { ...u.current, ...q };
7521
- let W = e.filter((Z) => Z.accessor !== "__selection__").map((Z) => {
7522
- let ne = Z.accessor, te = C?.find((x) => Object.keys(x)[0] === ne);
7521
+ let U = e.filter((K) => K.accessor !== "__selection__").map((K) => {
7522
+ let ne = K.accessor, te = C?.find((x) => Object.keys(x)[0] === ne);
7523
7523
  if (te && te[ne] !== "auto") return { [ne]: te[ne] };
7524
7524
  let P = q[ne];
7525
- return P ? { [ne]: `${P}px` } : { [ne]: Z.width ?? "auto" };
7525
+ return P ? { [ne]: `${P}px` } : { [ne]: K.width ?? "auto" };
7526
7526
  });
7527
- $(W), setTimeout(() => {
7527
+ $(U), setTimeout(() => {
7528
7528
  i(!0), l.current = !0;
7529
7529
  }, 10);
7530
7530
  });
7531
7531
  });
7532
7532
  else {
7533
- let q = e.filter((W) => W.accessor !== "__selection__").map((W) => ({ [W.accessor]: W.width ?? "auto" }));
7533
+ let q = e.filter((U) => U.accessor !== "__selection__").map((U) => ({ [U.accessor]: U.width ?? "auto" }));
7534
7534
  $(q), i(!0), l.current = !0;
7535
7535
  }
7536
7536
  }, [n, i, a, O, z, e, C]), X = F;
7537
7537
  $e(() => {
7538
- if (!y || !i || a) {
7538
+ if (!v || !i || a) {
7539
7539
  i?.(!1);
7540
7540
  return;
7541
7541
  }
@@ -7544,23 +7544,23 @@ function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
7544
7544
  F();
7545
7545
  }, 50);
7546
7546
  return () => clearTimeout(q);
7547
- }, [y, i, a, F]), $e(() => {
7547
+ }, [v, i, a, F]), $e(() => {
7548
7548
  a || !t || !r || C && C.length > 0 && $(C);
7549
7549
  }, [a, t, r, C]);
7550
7550
  let re = Le(() => {
7551
7551
  t && k(S()), u.current = {}, l.current = !1, i && (i(!1), setTimeout(() => {
7552
7552
  F();
7553
7553
  }, 10));
7554
- }, [t, k, S, i, F]), H = Le((q, W) => {
7555
- L([{ accessor: q, width: W }]);
7556
- }, [L]), Q = Xe(() => y ? j.filter((q) => {
7557
- let W = Object.keys(q)[0];
7558
- return _.some((Z) => Z.accessor === W);
7554
+ }, [t, k, S, i, F]), H = Le((q, U) => {
7555
+ L([{ accessor: q, width: U }]);
7556
+ }, [L]), Q = Xe(() => v ? j.filter((q) => {
7557
+ let U = Object.keys(q)[0];
7558
+ return _.some((K) => K.accessor === U);
7559
7559
  }).every((q) => {
7560
- let W = Object.values(q)[0];
7561
- return W === "auto" || W === "initial";
7562
- }) : !1, [y, j, _]);
7563
- return { columnsWidth: j, setColumnsWidth: L, setColumnWidth: H, setMultipleColumnWidths: V, resetColumnsWidth: re, hasResizableColumns: y, allResizableWidthsInitial: Q, measureAndSetColumnWidths: X };
7560
+ let U = Object.values(q)[0];
7561
+ return U === "auto" || U === "initial";
7562
+ }) : !1, [v, j, _]);
7563
+ return { columnsWidth: j, setColumnsWidth: L, setColumnWidth: H, setMultipleColumnWidths: V, resetColumnsWidth: re, hasResizableColumns: v, allResizableWidthsInitial: Q, measureAndSetColumnWidths: X };
7564
7564
  }
7565
7565
  function Xu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7566
7566
  function n(O, S) {
@@ -7579,12 +7579,12 @@ function Xu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7579
7579
  a(i);
7580
7580
  };
7581
7581
  if (!t) return { columnsToggle: l, setColumnsToggle: a, resetColumnsToggle: m };
7582
- let y = n(l, e), _ = JSON.stringify(l);
7583
- return JSON.stringify(y) !== _ && a(y), { columnsToggle: y, setColumnsToggle: a, resetColumnsToggle: m };
7582
+ let v = n(l, e), _ = JSON.stringify(l);
7583
+ return JSON.stringify(v) !== _ && a(v), { columnsToggle: v, setColumnsToggle: a, resetColumnsToggle: m };
7584
7584
  }
7585
7585
  var ed = ({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, scrollViewportRef: i, onFixedLayoutChange: l }) => {
7586
- let { columnsOrder: u, setColumnsOrder: a, resetColumnsOrder: m } = Ku({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O } = Xu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V } = Ju({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: l });
7587
- return { effectiveColumns: Xe(() => u ? u.map((F) => e.find((X) => X.accessor === F)).map((F) => ({ ...F, hidden: F?.hidden || !y.find((X) => X.accessor === F?.accessor)?.toggled })).map((F) => F?.accessor === "__selection__" ? F : { ...F, width: S.find((X) => X[F?.accessor])?.[F?.accessor] }) : e, [e, u, y, S]), setColumnsOrder: a, columnsOrder: u, resetColumnsOrder: m, columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O, columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V };
7586
+ let { columnsOrder: u, setColumnsOrder: a, resetColumnsOrder: m } = Zu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: v, setColumnsToggle: _, resetColumnsToggle: O } = Xu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V } = Ju({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: l });
7587
+ return { effectiveColumns: Xe(() => u ? u.map((F) => e.find((X) => X.accessor === F)).map((F) => ({ ...F, hidden: F?.hidden || !v.find((X) => X.accessor === F?.accessor)?.toggled })).map((F) => F?.accessor === "__selection__" ? F : { ...F, width: S.find((X) => X[F?.accessor])?.[F?.accessor] }) : e, [e, u, v, S]), setColumnsOrder: a, columnsOrder: u, resetColumnsOrder: m, columnsToggle: v, setColumnsToggle: _, resetColumnsToggle: O, columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V };
7588
7588
  }, bi = typeof window < "u" ? ji : $e;
7589
7589
  function wi(t) {
7590
7590
  let e = De(t);
@@ -7610,7 +7610,7 @@ function Sn(t, e, r) {
7610
7610
  }
7611
7611
  }
7612
7612
  function td({ scrollCallbacks: t, withRowBorders: e }) {
7613
- let r = { root: De(null), table: De(null), scrollViewport: De(null), header: De(null), footer: De(null), selectionColumnHeader: De(null) }, { root: n, table: i, scrollViewport: l, header: u, footer: a, selectionColumnHeader: m } = r, y = wi({ withRowBorders: e }), _ = wi(t), O = De(() => {
7613
+ let r = { root: De(null), table: De(null), scrollViewport: De(null), header: De(null), footer: De(null), selectionColumnHeader: De(null) }, { root: n, table: i, scrollViewport: l, header: u, footer: a, selectionColumnHeader: m } = r, v = wi({ withRowBorders: e }), _ = wi(t), O = De(() => {
7614
7614
  }), S = De(() => {
7615
7615
  }), C = Le((k) => {
7616
7616
  _.current.onScroll?.(k), O.current();
@@ -7633,12 +7633,12 @@ function td({ scrollCallbacks: t, withRowBorders: e }) {
7633
7633
  ot(n.current, "--mantine-datatable-footer-position", H ? "relative" : "sticky"), ot(n.current, "--mantine-datatable-footer-bottom", H ? `${re}px` : "0");
7634
7634
  }
7635
7635
  function V() {
7636
- y.current.withRowBorders && j.height < $.height ? ot(n.current, Si, `${Et("1px")} solid var(--mantine-datatable-border-color)`) : ot(n.current, Si, "unset");
7636
+ v.current.withRowBorders && j.height < $.height ? ot(n.current, Si, `${Et("1px")} solid var(--mantine-datatable-border-color)`) : ot(n.current, Si, "unset");
7637
7637
  }
7638
7638
  S.current = V;
7639
7639
  function F() {
7640
- let re = _.current, H = l.current, Q = H?.scrollTop ?? 0, q = H?.scrollLeft ?? 0, W = Q === 0, Z = j.height - Q - $.height < 1, ne = z("top", W), te = z("bottom", Z);
7641
- W && W !== ne && re.onScrollToTop?.(), Z && Z !== te && re.onScrollToBottom?.();
7640
+ let re = _.current, H = l.current, Q = H?.scrollTop ?? 0, q = H?.scrollLeft ?? 0, U = Q === 0, K = j.height - Q - $.height < 1, ne = z("top", U), te = z("bottom", K);
7641
+ U && U !== ne && re.onScrollToTop?.(), K && K !== te && re.onScrollToBottom?.();
7642
7642
  let P = H ? getComputedStyle(H).direction === "rtl" : !1, x = (H?.scrollWidth ?? 0) - $.width, w, h;
7643
7643
  if (P) {
7644
7644
  let f = Math.abs(q);
@@ -7746,17 +7746,17 @@ function ld(t, e, r) {
7746
7746
  function cd({ rowExpansion: t, records: e, idAccessor: r }) {
7747
7747
  let n = [];
7748
7748
  if (t && e) {
7749
- let { trigger: a, allowMultiple: m, initiallyExpanded: y } = t;
7750
- e && a === "always" ? n = e.map((_) => ze(_, r)) : y && (n = e.filter((_, O) => y({ record: _, index: O })).map((_) => ze(_, r)), m || (n = [n[0]]));
7749
+ let { trigger: a, allowMultiple: m, initiallyExpanded: v } = t;
7750
+ e && a === "always" ? n = e.map((_) => ze(_, r)) : v && (n = e.filter((_, O) => v({ record: _, index: O })).map((_) => ze(_, r)), m || (n = [n[0]]));
7751
7751
  }
7752
7752
  let i, l, u = ve(n);
7753
7753
  if (t) {
7754
- let { expandable: a, trigger: m, allowMultiple: y, collapseProps: _, content: O } = t;
7754
+ let { expandable: a, trigger: m, allowMultiple: v, collapseProps: _, content: O } = t;
7755
7755
  t.expanded ? { recordIds: i, onRecordIdsChange: l } = t.expanded : [i, l] = u;
7756
7756
  let S = (C) => l?.(i.filter((k) => k !== ze(C, r)));
7757
7757
  return { expandOnClick: m !== "always" && m !== "never", isRowExpanded: (C) => m === "always" ? !0 : i.includes(ze(C, r)), isExpandable: ({ record: C, index: k }) => a ? a({ record: C, index: k }) : !0, expandRow: (C) => {
7758
7758
  let k = ze(C, r);
7759
- l?.(y ? [...i, k] : [k]);
7759
+ l?.(v ? [...i, k] : [k]);
7760
7760
  }, collapseRow: S, collapseProps: _, content: ({ record: C, index: k }) => () => O({ record: C, index: k, collapse: () => S(C) }) };
7761
7761
  }
7762
7762
  }
@@ -7776,12 +7776,12 @@ function fd({ shadowVisible: t }) {
7776
7776
  function pd({ className: t, style: e, columns: r, defaultColumnProps: n, selectionVisible: i, selectorCellShadowVisible: l, ref: u }) {
7777
7777
  return b.jsx(Is, { ref: u, className: Me("mantine-datatable-footer", t), style: e, children: b.jsxs(Ft, { children: [i && b.jsx(fd, { shadowVisible: l }), r.map(({ hidden: a, ...m }) => {
7778
7778
  if (a) return null;
7779
- let { accessor: y, visibleMediaQuery: _, textAlign: O, width: S, footer: C, footerClassName: k, footerStyle: j, noWrap: $, ellipsis: z } = { ...n, ...m };
7780
- return b.jsx(hd, { className: k, style: j, visibleMediaQuery: _, textAlign: O, width: S, title: C, noWrap: $, ellipsis: z }, y);
7779
+ let { accessor: v, visibleMediaQuery: _, textAlign: O, width: S, footer: C, footerClassName: k, footerStyle: j, noWrap: $, ellipsis: z } = { ...n, ...m };
7780
+ return b.jsx(hd, { className: k, style: j, visibleMediaQuery: _, textAlign: O, width: S, title: C, noWrap: $, ellipsis: z }, v);
7781
7781
  })] }) });
7782
7782
  }
7783
- function gd({ group: { id: t, columns: e, groups: r, title: n, textAlign: i, className: l, style: u }, maxDepth: a, currentDepth: m, previousGroups: y, isLastGroup: _, withColumnBorders: O = !1, totalTableColumns: S }) {
7784
- let C = Xe(() => e && e.length > 0 ? e : r && r.length > 0 ? oo([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), k = Xe(() => C.map(({ visibleMediaQuery: X }) => X), [C]), j = sd(k), $ = Xe(() => zn({ columns: e, groups: r }, j), [t, e, r, j]), z = Xe(() => y.reduce((X, re) => X + zn(re, j), 0), [y, j]), L = r && r.length > 0 ? 1 : a - m, V = z + $ < S, F = ld(_, V, O);
7783
+ function gd({ group: { id: t, columns: e, groups: r, title: n, textAlign: i, className: l, style: u }, maxDepth: a, currentDepth: m, previousGroups: v, isLastGroup: _, withColumnBorders: O = !1, totalTableColumns: S }) {
7784
+ let C = Xe(() => e && e.length > 0 ? e : r && r.length > 0 ? oo([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), k = Xe(() => C.map(({ visibleMediaQuery: X }) => X), [C]), j = sd(k), $ = Xe(() => zn({ columns: e, groups: r }, j), [t, e, r, j]), z = Xe(() => v.reduce((X, re) => X + zn(re, j), 0), [v, j]), L = r && r.length > 0 ? 1 : a - m, V = z + $ < S, F = ld(_, V, O);
7785
7785
  return $ > 0 ? b.jsx(mr, { colSpan: $, rowSpan: L > 1 ? L : void 0, className: Me("mantine-datatable-column-group-header-cell", { [nn]: i === "left", [on]: i === "center", [sn]: i === "right", "mantine-datatable-column-group-header-cell--needs-border": F }, l), style: u, children: n ?? no(t) }) : null;
7786
7786
  }
7787
7787
  function md() {
@@ -7792,12 +7792,12 @@ function yd() {
7792
7792
  }
7793
7793
  function vd({ children: t, isActive: e, filterPopoverProps: r, filterPopoverDisableClickOutside: n }) {
7794
7794
  let [i, { close: l, toggle: u }] = oa(!1), a = e ? yd : md, m = zi(l);
7795
- return n && (m = void 0), b.jsxs(cr, { withArrow: !0, shadow: "md", opened: i, onClose: l, trapFocus: !0, ...r, children: [b.jsx(Ti, { children: b.jsx(hr, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": e || void 0, size: "sm", variant: "default", onClick: (y) => {
7796
- y.preventDefault(), u();
7797
- }, onKeyDown: (y) => y.stopPropagation(), children: b.jsx(a, {}) }) }), b.jsx($i, { ref: m, onClick: (y) => y.stopPropagation(), onKeyDown: (y) => y.stopPropagation(), children: typeof t == "function" ? t({ close: l }) : t })] });
7795
+ return n && (m = void 0), b.jsxs(cr, { withArrow: !0, shadow: "md", opened: i, onClose: l, trapFocus: !0, ...r, children: [b.jsx(Ti, { children: b.jsx(hr, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": e || void 0, size: "sm", variant: "default", onClick: (v) => {
7796
+ v.preventDefault(), u();
7797
+ }, onKeyDown: (v) => v.stopPropagation(), children: b.jsx(a, {}) }) }), b.jsx($i, { ref: m, onClick: (v) => v.stopPropagation(), onKeyDown: (v) => v.stopPropagation(), children: typeof t == "function" ? t({ close: l }) : t })] });
7798
7798
  }
7799
7799
  var bd = (t) => {
7800
- let { accessor: e, columnRef: r } = t, [n, i] = ve(!1), l = De(0), u = De({ current: 0, next: 0 }), { dir: a } = Fs(), m = a === "rtl", { setMultipleColumnWidths: y } = ro(), _ = Le((S) => {
7800
+ let { accessor: e, columnRef: r } = t, [n, i] = ve(!1), l = De(0), u = De({ current: 0, next: 0 }), { dir: a } = Fs(), m = a === "rtl", { setMultipleColumnWidths: v } = ro(), _ = Le((S) => {
7801
7801
  if (S.preventDefault(), S.stopPropagation(), !r.current) return;
7802
7802
  let C = r.current, k = C.nextElementSibling;
7803
7803
  for (; k; ) {
@@ -7818,7 +7818,7 @@ var bd = (t) => {
7818
7818
  if (!H) return;
7819
7819
  let Q = X.clientX - l.current;
7820
7820
  m && (Q = -Q);
7821
- let q = 50, W = u.current.current - q, Z = u.current.next - q, ne = Math.max(-W, Math.min(Q, Z)), te = u.current.current + ne, P = u.current.next - ne;
7821
+ let q = 50, U = u.current.current - q, K = u.current.next - q, ne = Math.max(-U, Math.min(Q, K)), te = u.current.current + ne, P = u.current.next - ne;
7822
7822
  re.style.width = `${te}px`, H.style.width = `${P}px`, re.style.minWidth = `${te}px`, re.style.maxWidth = `${te}px`, H.style.minWidth = `${P}px`, H.style.maxWidth = `${P}px`;
7823
7823
  }, F = () => {
7824
7824
  if (!r.current) return;
@@ -7826,15 +7826,15 @@ var bd = (t) => {
7826
7826
  i(!1), document.body.style.cursor = "initial", document.body.style.userSelect = "initial";
7827
7827
  let H = parseInt(X.style.width) || X.offsetWidth, Q = re ? parseInt(re.style.width) || re.offsetWidth : 0, q = [{ accessor: e, width: `${H}px` }];
7828
7828
  if (re && !$) {
7829
- let W = re.getAttribute("data-accessor");
7830
- W && q.push({ accessor: W, width: `${Q}px` });
7829
+ let U = re.getAttribute("data-accessor");
7830
+ U && q.push({ accessor: U, width: `${Q}px` });
7831
7831
  }
7832
7832
  setTimeout(() => {
7833
- y(q);
7833
+ v(q);
7834
7834
  }, 0), document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", F);
7835
7835
  };
7836
7836
  document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", document.addEventListener("mousemove", V), document.addEventListener("mouseup", F);
7837
- }, [e, r, m, y]), O = Le(() => {
7837
+ }, [e, r, m, v]), O = Le(() => {
7838
7838
  if (!r.current) return;
7839
7839
  let S = r.current, C = S.nextElementSibling;
7840
7840
  S.style.width = "", S.style.minWidth = "", S.style.maxWidth = "";
@@ -7845,9 +7845,9 @@ var bd = (t) => {
7845
7845
  j && j !== "__selection__" && k.push({ accessor: j, width: "auto" });
7846
7846
  }
7847
7847
  setTimeout(() => {
7848
- y(k);
7848
+ v(k);
7849
7849
  }, 0);
7850
- }, [e, r, y]);
7850
+ }, [e, r, v]);
7851
7851
  return b.jsx("div", { className: "mantine-datatable-header-resizable-handle", style: { cursor: n ? "col-resize" : void 0 }, onMouseDown: _, onDoubleClick: O, onClick: (S) => S.stopPropagation(), title: "Drag to resize column, double-click to reset" });
7852
7852
  };
7853
7853
  function wd() {
@@ -7862,10 +7862,10 @@ function xd() {
7862
7862
  function Cd() {
7863
7863
  return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M18 6l-12 12" }), b.jsx("path", { d: "M6 6l12 12" })] });
7864
7864
  }
7865
- function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title: i, sortable: l, draggable: u, toggleable: a, resizable: m, sortIcons: y, textAlign: _, width: O, sortStatus: S, onSortStatusChange: C, filter: k, filterPopoverProps: j, filterPopoverDisableClickOutside: $, filtering: z, sortKey: L }) {
7865
+ function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title: i, sortable: l, draggable: u, toggleable: a, resizable: m, sortIcons: v, textAlign: _, width: O, sortStatus: S, onSortStatusChange: C, filter: k, filterPopoverProps: j, filterPopoverDisableClickOutside: $, filtering: z, sortKey: L }) {
7866
7866
  let { setSourceColumn: V, setTargetColumn: F, swapColumns: X, setColumnsToggle: re } = ro(), [H, Q] = ve(!1), q = De(null);
7867
7867
  if (!rn(n)) return null;
7868
- let W = i ?? no(r), Z = typeof W == "string" ? W : void 0, ne = l && C ? (p) => {
7868
+ let U = i ?? no(r), K = typeof U == "string" ? U : void 0, ne = l && C ? (p) => {
7869
7869
  p?.defaultPrevented || C({ sortKey: L, columnAccessor: r, direction: S?.columnAccessor === r ? S.direction === "asc" ? "desc" : "asc" : S?.direction ?? "asc" });
7870
7870
  } : void 0, te = (p) => {
7871
7871
  p.stopPropagation(), V(r), Q(!1);
@@ -7882,24 +7882,24 @@ function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title:
7882
7882
  };
7883
7883
  return b.jsxs(mr, { "data-accessor": r, className: Me({ "mantine-datatable-header-cell-sortable": l, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": m }, t), style: [{ width: O, ...m ? {} : { minWidth: O, maxWidth: O } }, e], role: l ? "button" : void 0, tabIndex: l ? 0 : void 0, onClick: ne, onKeyDown: (p) => p.key === "Enter" && ne?.(), ref: q, children: [b.jsxs(qe, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [b.jsxs(zs, { align: "center", w: "100%", className: Me({ "mantine-datatable-header-cell-draggable": u, "mantine-datatable-header-cell-drag-over": H }), draggable: u, onDragStart: u ? te : void 0, onDragEnter: u ? w : void 0, onDragOver: u ? P : void 0, onDrop: u ? x : void 0, onDragLeave: u ? h : void 0, children: [u ? b.jsx(Yt, { role: "img", "aria-label": "Drag column", children: b.jsx(hr, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (p) => {
7884
7884
  p.stopPropagation();
7885
- }, children: b.jsx(xd, {}) }) }) : null, b.jsx(je, { className: Me("mantine-datatable-header-cell-sortable-text", { [nn]: _ === "left", [on]: _ === "center", [sn]: _ === "right" }, io, so), title: Z, children: W })] }), a ? b.jsx(Yt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: b.jsx(hr, { size: "xs", variant: "light", onClick: s, children: b.jsx(Cd, {}) }) }) : null, l || S?.columnAccessor === r ? b.jsx(b.Fragment, { children: S?.columnAccessor === r ? b.jsx(Yt, { className: Me("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": S.direction === "desc" }), role: "img", "aria-label": `Sorted ${S.direction === "desc" ? "descending" : "ascending"}`, children: y?.sorted || b.jsx(wd, {}) }) : b.jsx(Yt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: y?.unsorted || b.jsx(_d, {}) }) }) : null, k ? b.jsx(vd, { filterPopoverProps: j, isActive: !!z, filterPopoverDisableClickOutside: $, children: k }) : null] }), m && r !== "__selection__" ? b.jsx(bd, { accessor: r, columnRef: q }) : null] });
7885
+ }, children: b.jsx(xd, {}) }) }) : null, b.jsx(je, { className: Me("mantine-datatable-header-cell-sortable-text", { [nn]: _ === "left", [on]: _ === "center", [sn]: _ === "right" }, io, so), title: K, children: U })] }), a ? b.jsx(Yt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: b.jsx(hr, { size: "xs", variant: "light", onClick: s, children: b.jsx(Cd, {}) }) }) : null, l || S?.columnAccessor === r ? b.jsx(b.Fragment, { children: S?.columnAccessor === r ? b.jsx(Yt, { className: Me("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": S.direction === "desc" }), role: "img", "aria-label": `Sorted ${S.direction === "desc" ? "descending" : "ascending"}`, children: v?.sorted || b.jsx(wd, {}) }) : b.jsx(Yt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: v?.unsorted || b.jsx(_d, {}) }) }) : null, k ? b.jsx(vd, { filterPopoverProps: j, isActive: !!z, filterPopoverDisableClickOutside: $, children: k }) : null] }), m && r !== "__selection__" ? b.jsx(bd, { accessor: r, columnRef: q }) : null] });
7886
7886
  }
7887
- function Dd({ className: t, style: e, trigger: r, shadowVisible: n, checked: i, indeterminate: l, checkboxProps: u, onChange: a, rowSpan: m, ref: y }) {
7887
+ function Dd({ className: t, style: e, trigger: r, shadowVisible: n, checked: i, indeterminate: l, checkboxProps: u, onChange: a, rowSpan: m, ref: v }) {
7888
7888
  let _ = !u.disabled;
7889
- return b.jsx(mr, { ref: y, className: Me("mantine-datatable-header-selector-cell", { [Wt]: r === "cell" && _ }, t), style: e, rowSpan: m, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: b.jsx(Ut, { classNames: _ ? { input: Wt } : void 0, checked: i, indeterminate: l, onChange: a, ...u, disabled: !(a || u.onChange) || u.disabled }) });
7889
+ return b.jsx(mr, { ref: v, className: Me("mantine-datatable-header-selector-cell", { [Wt]: r === "cell" && _ }, t), style: e, rowSpan: m, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: b.jsx(Ut, { classNames: _ ? { input: Wt } : void 0, checked: i, indeterminate: l, onChange: a, ...u, disabled: !(a || u.onChange) || u.disabled }) });
7890
7890
  }
7891
- function kd({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: i, onSortStatusChange: l, columns: u, defaultColumnProps: a, groups: m, selectionTrigger: y, selectionVisible: _, selectionChecked: O, selectionIndeterminate: S, onSelectionChange: C, selectionCheckboxProps: k, selectorCellShadowVisible: j, selectionColumnClassName: $, selectionColumnStyle: z, withColumnBorders: L = !1, ref: V }) {
7892
- let F = m ? vs(m) : 0, X = F > 0 ? F + 1 : 1, re = _ ? b.jsx(Dd, { ref: t, className: $, style: z, trigger: y, shadowVisible: j, checked: O, indeterminate: S, checkboxProps: k, onChange: C, rowSpan: m ? X : void 0 }) : null, { columnsToggle: H, setColumnsToggle: Q } = ro(), [q, W] = ve(!1), Z = u.some((P) => P.toggleable), ne = Z ? Object.fromEntries(u.map(({ accessor: P, title: x }) => [P, x ?? no(String(P))])) : void 0, te = b.jsxs(Ls, { className: Me("mantine-datatable-header", e), style: r, ref: V, onContextMenu: Z ? (P) => {
7893
- P.preventDefault(), W((x) => !x);
7891
+ function kd({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: i, onSortStatusChange: l, columns: u, defaultColumnProps: a, groups: m, selectionTrigger: v, selectionVisible: _, selectionChecked: O, selectionIndeterminate: S, onSelectionChange: C, selectionCheckboxProps: k, selectorCellShadowVisible: j, selectionColumnClassName: $, selectionColumnStyle: z, withColumnBorders: L = !1, ref: V }) {
7892
+ let F = m ? vs(m) : 0, X = F > 0 ? F + 1 : 1, re = _ ? b.jsx(Dd, { ref: t, className: $, style: z, trigger: v, shadowVisible: j, checked: O, indeterminate: S, checkboxProps: k, onChange: C, rowSpan: m ? X : void 0 }) : null, { columnsToggle: H, setColumnsToggle: Q } = ro(), [q, U] = ve(!1), K = u.some((P) => P.toggleable), ne = K ? Object.fromEntries(u.map(({ accessor: P, title: x }) => [P, x ?? no(String(P))])) : void 0, te = b.jsxs(Ls, { className: Me("mantine-datatable-header", e), style: r, ref: V, onContextMenu: K ? (P) => {
7893
+ P.preventDefault(), U((x) => !x);
7894
7894
  } : void 0, children: [m && Array.from({ length: F }, (P, x) => {
7895
7895
  let w = bs(m, x);
7896
7896
  return b.jsxs(Ft, { children: [x === 0 && re, w.map((h, s) => b.jsx(gd, { group: h, maxDepth: F, currentDepth: x, previousGroups: w.slice(0, s), isLastGroup: s === w.length - 1, withColumnBorders: L, totalTableColumns: u.length }, h.id))] }, `group-depth-${x}`);
7897
7897
  }), b.jsxs(Ft, { children: [!m && re, u.map(({ hidden: P, ...x }, w) => {
7898
7898
  if (P) return null;
7899
- let { accessor: h, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: v, draggable: D, toggleable: R, resizable: U, titleClassName: K, titleStyle: ee, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae, sortKey: A } = { ...a, ...x };
7900
- return b.jsx(Sd, { accessor: h, className: K, style: ee, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: v, draggable: D, toggleable: R, resizable: U && w < u.length - 1, sortStatus: n, sortIcons: i, sortKey: A, onSortStatusChange: l, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae }, h);
7899
+ let { accessor: h, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: y, draggable: D, toggleable: R, resizable: W, titleClassName: Z, titleStyle: ee, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae, sortKey: A } = { ...a, ...x };
7900
+ return b.jsx(Sd, { accessor: h, className: Z, style: ee, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: y, draggable: D, toggleable: R, resizable: W && w < u.length - 1, sortStatus: n, sortIcons: i, sortKey: A, onSortStatusChange: l, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae }, h);
7901
7901
  })] })] });
7902
- return Z ? b.jsxs(cr, { position: "bottom", withArrow: !0, shadow: "md", opened: q, onChange: W, children: [b.jsx(Ti, { children: te }), b.jsx($i, { children: b.jsx(dr, { children: H.filter((P) => P.toggleable).map((P) => b.jsx(qe, { children: b.jsx(Ut, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: ne[P.accessor], checked: P.toggled, onChange: (x) => {
7902
+ return K ? b.jsxs(cr, { position: "bottom", withArrow: !0, shadow: "md", opened: q, onChange: U, children: [b.jsx(Ti, { children: te }), b.jsx($i, { children: b.jsx(dr, { children: H.filter((P) => P.toggleable).map((P) => b.jsx(qe, { children: b.jsx(Ut, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: ne[P.accessor], checked: P.toggled, onChange: (x) => {
7903
7903
  Q(H.map((w) => w.accessor === P.accessor ? { ...w, toggled: x.currentTarget.checked } : w));
7904
7904
  } }) }, P.accessor)) }) })] }) : te;
7905
7905
  }
@@ -7925,56 +7925,56 @@ var Di = { xs: Et(22), sm: Et(26), md: Et(32), lg: Et(38), xl: Et(44) };
7925
7925
  function Ad({ size: t, label: e, values: r, value: n, activeTextColor: i, activeBackgroundColor: l, onChange: u }) {
7926
7926
  return b.jsxs(qe, { gap: "xs", children: [b.jsx(at, { component: "div", size: t, children: e }), b.jsxs(Rt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [b.jsx(Ws, { children: b.jsx(mt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: b.jsx(Md, {}), style: [{ fontWeight: "normal" }, (a) => ({ height: Di[t], paddingLeft: a.spacing[t], paddingRight: a.spacing[t] })], children: n }) }), b.jsx(Us, { children: r.map((a) => {
7927
7927
  let m = a === n;
7928
- return b.jsx(qs, { className: Me({ "mantine-datatable-page-size-selector-active": m }), style: [{ height: Di[t] }, m && (i || l) ? (y) => _s({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: l }) : void 0], disabled: m, onClick: () => u(a), children: b.jsx(at, { component: "div", size: t, children: a }) }, a);
7928
+ return b.jsx(qs, { className: Me({ "mantine-datatable-page-size-selector-active": m }), style: [{ height: Di[t] }, m && (i || l) ? (v) => _s({ theme: v, paginationActiveTextColor: i, paginationActiveBackgroundColor: l }) : void 0], disabled: m, onClick: () => u(a), children: b.jsx(at, { component: "div", size: t, children: a }) }, a);
7929
7929
  }) })] })] });
7930
7930
  }
7931
- function Rd({ className: t, style: e, fetching: r, page: n, onPageChange: i, paginationWithEdges: l, paginationWithControls: u, paginationActiveTextColor: a, paginationActiveBackgroundColor: m, paginationSize: y, loadingText: _, noRecordsText: O, paginationText: S, totalRecords: C, recordsPerPage: k, onRecordsPerPageChange: j, recordsPerPageLabel: $, recordsPerPageOptions: z, recordsLength: L, horizontalSpacing: V, paginationWrapBreakpoint: F, getPaginationControlProps: X, getPaginationItemProps: re, renderPagination: H }) {
7931
+ function Rd({ className: t, style: e, fetching: r, page: n, onPageChange: i, paginationWithEdges: l, paginationWithControls: u, paginationActiveTextColor: a, paginationActiveBackgroundColor: m, paginationSize: v, loadingText: _, noRecordsText: O, paginationText: S, totalRecords: C, recordsPerPage: k, onRecordsPerPageChange: j, recordsPerPageLabel: $, recordsPerPageOptions: z, recordsLength: L, horizontalSpacing: V, paginationWrapBreakpoint: F, getPaginationControlProps: X, getPaginationItemProps: re, renderPagination: H }) {
7932
7932
  let Q;
7933
7933
  if (C) {
7934
7934
  let x = (n - 1) * k + 1, w = x + (L || 0) - 1;
7935
7935
  Q = S({ from: x, to: w, totalRecords: C });
7936
7936
  } else Q = r ? _ : O;
7937
- let q = C && k ? Math.max(1, Math.ceil(C / k)) : 1, W = C ? (n - 1) * (k ?? 0) + 1 : void 0, Z = C ? (W ?? 1) + (L ?? 0) - 1 : void 0, ne = !rn(({ breakpoints: x }) => `(min-width: ${typeof F == "number" ? `${Et(F)}rem` : x[F] || F})`), te = { Text: (x) => b.jsx(at, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: Q }), PageSizeSelector: (x) => z ? b.jsx(Ad, { activeTextColor: a, activeBackgroundColor: m, size: y, label: $, values: z, value: k, onChange: j, ...x }) : b.jsx(b.Fragment, {}), Pagination: (x) => b.jsx(Ii, { classNames: { root: Me("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !L }), control: "mantine-datatable-pagination-pages-control" }, style: a || m ? (w) => _s({ theme: w, paginationActiveTextColor: a, paginationActiveBackgroundColor: m }) : void 0, withEdges: l, withControls: u, value: n, onChange: i, size: y, total: q, getControlProps: X, getItemProps: re, ...x }) }, P = { state: { paginationSize: y, page: n, totalPages: q, totalRecords: C, recordsPerPage: k, recordsLength: L, fetching: r, from: W, to: Z, isWrapped: ne }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: j ? (x) => j(x) : void 0 }, Controls: te };
7937
+ let q = C && k ? Math.max(1, Math.ceil(C / k)) : 1, U = C ? (n - 1) * (k ?? 0) + 1 : void 0, K = C ? (U ?? 1) + (L ?? 0) - 1 : void 0, ne = !rn(({ breakpoints: x }) => `(min-width: ${typeof F == "number" ? `${Et(F)}rem` : x[F] || F})`), te = { Text: (x) => b.jsx(at, { component: "div", className: "mantine-datatable-pagination-text", size: v, ...x, children: Q }), PageSizeSelector: (x) => z ? b.jsx(Ad, { activeTextColor: a, activeBackgroundColor: m, size: v, label: $, values: z, value: k, onChange: j, ...x }) : b.jsx(b.Fragment, {}), Pagination: (x) => b.jsx(Ii, { classNames: { root: Me("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !L }), control: "mantine-datatable-pagination-pages-control" }, style: a || m ? (w) => _s({ theme: w, paginationActiveTextColor: a, paginationActiveBackgroundColor: m }) : void 0, withEdges: l, withControls: u, value: n, onChange: i, size: v, total: q, getControlProps: X, getItemProps: re, ...x }) }, P = { state: { paginationSize: v, page: n, totalPages: q, totalRecords: C, recordsPerPage: k, recordsLength: L, fetching: r, from: U, to: K, isWrapped: ne }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: j ? (x) => j(x) : void 0 }, Controls: te };
7938
7938
  return b.jsx(je, { px: V ?? "xs", py: "xs", className: Me("mantine-datatable-pagination", t), style: [{ flexDirection: ne ? "column" : "row" }, e], children: typeof H == "function" ? H(P) : b.jsxs(b.Fragment, { children: [b.jsx(te.Text, {}), b.jsx(te.PageSizeSelector, {}), b.jsx(te.Pagination, {})] }) });
7939
7939
  }
7940
- function Ed({ className: t, style: e, visibleMediaQuery: r, record: n, index: i, onClick: l, onDoubleClick: u, onContextMenu: a, noWrap: m, ellipsis: y, textAlign: _, width: O, accessor: S, render: C, defaultRender: k, customCellAttributes: j }) {
7941
- return rn(r) ? b.jsx(Wn, { className: Me({ [io]: m || y, [so]: y, [Wt]: l || u, [ws]: a, [nn]: _ === "left", [on]: _ === "center", [sn]: _ === "right" }, t), style: [{ width: O, minWidth: O, maxWidth: O }, e], onClick: l, onDoubleClick: u, onContextMenu: a, ...j?.(n, i), children: C ? C(n, i) : k ? k(n, i, S) : ys(n, S) }) : null;
7940
+ function Ed({ className: t, style: e, visibleMediaQuery: r, record: n, index: i, onClick: l, onDoubleClick: u, onContextMenu: a, noWrap: m, ellipsis: v, textAlign: _, width: O, accessor: S, render: C, defaultRender: k, customCellAttributes: j }) {
7941
+ return rn(r) ? b.jsx(Wn, { className: Me({ [io]: m || v, [so]: v, [Wt]: l || u, [ws]: a, [nn]: _ === "left", [on]: _ === "center", [sn]: _ === "right" }, t), style: [{ width: O, minWidth: O, maxWidth: O }, e], onClick: l, onDoubleClick: u, onContextMenu: a, ...j?.(n, i), children: C ? C(n, i) : k ? k(n, i, S) : ys(n, S) }) : null;
7942
7942
  }
7943
7943
  function Td({ open: t, colSpan: e, content: r, collapseProps: n }) {
7944
7944
  let { expanded: i, visible: l } = ud(t, n?.transitionDuration);
7945
7945
  return l ? b.jsxs(b.Fragment, { children: [b.jsx(Ft, {}), b.jsx(Ft, { children: b.jsx(Wn, { className: "mantine-datatable-row-expansion-cell", colSpan: e, children: b.jsx(Ni, { in: i, ...n, children: b.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
7946
7946
  }
7947
- function $d({ className: t, style: e, record: r, index: n, trigger: i, onChange: l, withRightShadow: u, checkboxProps: a, getCheckboxProps: m, ...y }) {
7948
- let _ = { ...a, ...m(r, n) }, O = !y.disabled && !_.disabled, S = (C) => {
7947
+ function $d({ className: t, style: e, record: r, index: n, trigger: i, onChange: l, withRightShadow: u, checkboxProps: a, getCheckboxProps: m, ...v }) {
7948
+ let _ = { ...a, ...m(r, n) }, O = !v.disabled && !_.disabled, S = (C) => {
7949
7949
  C.stopPropagation(), i === "cell" && O && l?.(C);
7950
7950
  };
7951
- return b.jsx(Wn, { className: Me("mantine-datatable-row-selector-cell", { [Wt]: i === "cell" && O }, t), style: e, "data-shadow-visible": u || void 0, onClick: S, children: b.jsx(Ut, { classNames: O ? { input: Wt } : void 0, onChange: l, ...y, ..._ }) });
7951
+ return b.jsx(Wn, { className: Me("mantine-datatable-row-selector-cell", { [Wt]: i === "cell" && O }, t), style: e, "data-shadow-visible": u || void 0, onClick: S, children: b.jsx(Ut, { classNames: O ? { input: Wt } : void 0, onChange: l, ...v, ..._ }) });
7952
7952
  }
7953
- function Nd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: i, selectionTrigger: l, selectionVisible: u, selectionChecked: a, onSelectionChange: m, isRecordSelectable: y, selectionCheckboxProps: _, getSelectionCheckboxProps: O, onClick: S, onDoubleClick: C, onContextMenu: k, onCellClick: j, onCellDoubleClick: $, onCellContextMenu: z, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H, selectorCellShadowVisible: Q, selectionColumnClassName: q, selectionColumnStyle: W, rowFactory: Z }) {
7954
- let ne = b.jsxs(b.Fragment, { children: [u && b.jsx($d, { className: q, style: W, record: t, index: e, trigger: l, withRightShadow: Q, checked: a, disabled: !m || (y ? !y(t, e) : !1), onChange: m, checkboxProps: _, getCheckboxProps: O }), r.map(({ hidden: x, hiddenContent: w, ...h }, s) => {
7953
+ function Nd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: i, selectionTrigger: l, selectionVisible: u, selectionChecked: a, onSelectionChange: m, isRecordSelectable: v, selectionCheckboxProps: _, getSelectionCheckboxProps: O, onClick: S, onDoubleClick: C, onContextMenu: k, onCellClick: j, onCellDoubleClick: $, onCellContextMenu: z, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H, selectorCellShadowVisible: Q, selectionColumnClassName: q, selectionColumnStyle: U, rowFactory: K }) {
7954
+ let ne = b.jsxs(b.Fragment, { children: [u && b.jsx($d, { className: q, style: U, record: t, index: e, trigger: l, withRightShadow: Q, checked: a, disabled: !m || (v ? !v(t, e) : !1), onChange: m, checkboxProps: _, getCheckboxProps: O }), r.map(({ hidden: x, hiddenContent: w, ...h }, s) => {
7955
7955
  if (x || w) return null;
7956
- let { accessor: p, visibleMediaQuery: f, textAlign: d, noWrap: v, ellipsis: D, width: R, render: U, cellsClassName: K, cellsStyle: ee, customCellAttributes: J } = { ...n, ...h };
7957
- return b.jsx(Ed, { className: typeof K == "function" ? K(t, e) : K, style: ee?.(t, e), visibleMediaQuery: f, record: t, index: e, onClick: j ? (ie) => j({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onDoubleClick: $ ? (ie) => $({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onContextMenu: z ? (ie) => z({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, accessor: p, textAlign: d, noWrap: v, ellipsis: D, width: R, render: U, defaultRender: i, customCellAttributes: J }, p);
7956
+ let { accessor: p, visibleMediaQuery: f, textAlign: d, noWrap: y, ellipsis: D, width: R, render: W, cellsClassName: Z, cellsStyle: ee, customCellAttributes: J } = { ...n, ...h };
7957
+ return b.jsx(Ed, { className: typeof Z == "function" ? Z(t, e) : Z, style: ee?.(t, e), visibleMediaQuery: f, record: t, index: e, onClick: j ? (ie) => j({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onDoubleClick: $ ? (ie) => $({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onContextMenu: z ? (ie) => z({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, accessor: p, textAlign: d, noWrap: y, ellipsis: D, width: R, render: W, defaultRender: i, customCellAttributes: J }, p);
7958
7958
  })] }), te = L && b.jsx(Td, { colSpan: r.filter(({ hidden: x }) => !x).length + (u ? 1 : 0), open: L.isRowExpanded(t), content: L.content({ record: t, index: e }), collapseProps: L.collapseProps }), P = Ld({ record: t, index: e, selectionChecked: a, onClick: S, onDoubleClick: C, onContextMenu: k, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H });
7959
- return Z ? Z({ record: t, index: e, rowProps: P, children: ne, expandedElement: te }) : b.jsxs(b.Fragment, { children: [b.jsx(Ft, { ...P, children: ne }), te] });
7959
+ return K ? K({ record: t, index: e, rowProps: P, children: ne, expandedElement: te }) : b.jsxs(b.Fragment, { children: [b.jsx(Ft, { ...P, children: ne }), te] });
7960
7960
  }
7961
- function Ld({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: i, onContextMenu: l, expansion: u, customAttributes: a, color: m, backgroundColor: y, className: _, style: O }) {
7961
+ function Ld({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: i, onContextMenu: l, expansion: u, customAttributes: a, color: m, backgroundColor: v, className: _, style: O }) {
7962
7962
  return { className: Me("mantine-datatable-row", { [Wt]: n || i || u?.isExpandable({ record: t, index: e }) && u?.expandOnClick }, { [ws]: l }, typeof _ == "function" ? _(t, e) : _), "data-selected": r || void 0, onClick: (S) => {
7963
7963
  if (u) {
7964
7964
  let { isExpandable: C, isRowExpanded: k, expandOnClick: j, expandRow: $, collapseRow: z } = u;
7965
7965
  C({ record: t, index: e }) && j && (k(t) ? z(t) : $(t));
7966
7966
  }
7967
7967
  n?.({ event: S, record: t, index: e });
7968
- }, onDoubleClick: i ? (S) => i({ event: S, record: t, index: e }) : void 0, onContextMenu: l ? (S) => l({ event: S, record: t, index: e }) : void 0, style: [m || y ? (S) => {
7969
- let C = m?.(t, e), k = y?.(t, e);
7968
+ }, onDoubleClick: i ? (S) => i({ event: S, record: t, index: e }) : void 0, onContextMenu: l ? (S) => l({ event: S, record: t, index: e }) : void 0, style: [m || v ? (S) => {
7969
+ let C = m?.(t, e), k = v?.(t, e);
7970
7970
  return jd({ theme: S, color: C, backgroundColor: k });
7971
7971
  } : void 0, O?.(t, e)], ...a?.(t, e) ?? {} };
7972
7972
  }
7973
7973
  function Id({ leftShadowBehind: t, rightShadowBehind: e, onScrollPositionChange: r, children: n, viewportRef: i, scrollAreaProps: l }) {
7974
7974
  return b.jsxs(Ns, { ...l, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, b.jsx(je, { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), b.jsx("div", { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), b.jsx("div", { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), b.jsx(je, { className: Me("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
7975
7975
  }
7976
- function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: l, shadow: u, verticalAlign: a = "center", fetching: m, columns: y, storeColumnsKey: _, groups: O, pinFirstColumn: S, pinLastColumn: C, defaultColumnProps: k, defaultColumnRender: j, idAccessor: $ = "id", records: z, selectionTrigger: L = "checkbox", selectedRecords: V, onSelectedRecordsChange: F, selectionColumnClassName: X, selectionColumnStyle: re, isRecordSelectable: H, selectionCheckboxProps: Q, allRecordsSelectionCheckboxProps: q = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: W = (_e, be) => ({ "aria-label": `Select record ${be + 1}` }), sortStatus: Z, sortIcons: ne, onSortStatusChange: te, horizontalSpacing: P, page: x, onPageChange: w, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d = "Records per page", paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K = "sm", paginationText: ee = ({ from: _e, to: be, totalRecords: Ue }) => `${_e} - ${be} / ${Ue}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: ie = (_e) => _e === "previous" ? { "aria-label": "Previous page" } : _e === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: A, customLoader: N, loaderSize: E, loaderType: B, loaderColor: I, loadingText: le = "...", emptyState: o, noRecordsText: c = "No records", noRecordsIcon: g, highlightOnHover: M, striped: T, noHeader: Y, onRowClick: se, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: G, onCellDoubleClick: de, onCellContextMenu: pe, onScroll: fe, onScrollToTop: xe, onScrollToBottom: we, onScrollToLeft: ke, onScrollToRight: He, c: Ne, backgroundColor: Pe, borderColor: Ot, rowBorderColor: Ee, stripedColor: lt, highlightOnHoverColor: Ye, rowColor: rt, rowBackgroundColor: ct, rowExpansion: Te, rowClassName: ut, rowStyle: dt, customRowAttributes: Ge, scrollViewportRef: Qe, scrollAreaProps: Ze, tableRef: ht, bodyRef: yt, m: ft, my: me, mx: Oe, mt: nt, mb: vt, ml: Qt, mr: Nt, className: bt, classNames: Ke, style: wt, styles: pt, rowFactory: Ce, tableWrapper: Se, ...gt }) {
7977
- let _e = Xe(() => O ? oo(O) : y, [y, O]), [be, Ue] = ve(!1), { refs: Ae, onScroll: Lt } = td({ scrollCallbacks: { onScroll: fe, onScrollToTop: xe, onScrollToBottom: we, onScrollToLeft: ke, onScrollToRight: He }, withRowBorders: gt.withRowBorders }), an = ed({ key: _, columns: _e, headerRef: Ae.header, scrollViewportRef: Ae.scrollViewport, onFixedLayoutChange: Ue }), xs = mo(Ae.table, ht), Cs = mo(Ae.scrollViewport, Qe), Ss = cd({ rowExpansion: Te, records: z, idAccessor: $ }), yr = De(!1), ao = De(x), ln = De(z), Ds = Le((ye) => {
7976
+ function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: l, shadow: u, verticalAlign: a = "center", fetching: m, columns: v, storeColumnsKey: _, groups: O, pinFirstColumn: S, pinLastColumn: C, defaultColumnProps: k, defaultColumnRender: j, idAccessor: $ = "id", records: z, selectionTrigger: L = "checkbox", selectedRecords: V, onSelectedRecordsChange: F, selectionColumnClassName: X, selectionColumnStyle: re, isRecordSelectable: H, selectionCheckboxProps: Q, allRecordsSelectionCheckboxProps: q = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: U = (_e, be) => ({ "aria-label": `Select record ${be + 1}` }), sortStatus: K, sortIcons: ne, onSortStatusChange: te, horizontalSpacing: P, page: x, onPageChange: w, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d = "Records per page", paginationWithEdges: y, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: W, paginationSize: Z = "sm", paginationText: ee = ({ from: _e, to: be, totalRecords: Ue }) => `${_e} - ${be} / ${Ue}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: ie = (_e) => _e === "previous" ? { "aria-label": "Previous page" } : _e === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: A, customLoader: N, loaderSize: E, loaderType: B, loaderColor: I, loadingText: le = "...", emptyState: o, noRecordsText: c = "No records", noRecordsIcon: g, highlightOnHover: M, striped: T, noHeader: Y, onRowClick: se, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: G, onCellDoubleClick: de, onCellContextMenu: pe, onScroll: fe, onScrollToTop: xe, onScrollToBottom: we, onScrollToLeft: ke, onScrollToRight: He, c: Ne, backgroundColor: Pe, borderColor: Ot, rowBorderColor: Ee, stripedColor: lt, highlightOnHoverColor: Ye, rowColor: rt, rowBackgroundColor: ct, rowExpansion: Te, rowClassName: ut, rowStyle: dt, customRowAttributes: Ge, scrollViewportRef: Qe, scrollAreaProps: Ke, tableRef: ht, bodyRef: yt, m: ft, my: me, mx: Oe, mt: nt, mb: vt, ml: Qt, mr: Nt, className: bt, classNames: Ze, style: wt, styles: pt, rowFactory: Ce, tableWrapper: Se, ...gt }) {
7977
+ let _e = Xe(() => O ? oo(O) : v, [v, O]), [be, Ue] = ve(!1), { refs: Ae, onScroll: Lt } = td({ scrollCallbacks: { onScroll: fe, onScrollToTop: xe, onScrollToBottom: we, onScrollToLeft: ke, onScrollToRight: He }, withRowBorders: gt.withRowBorders }), an = ed({ key: _, columns: _e, headerRef: Ae.header, scrollViewportRef: Ae.scrollViewport, onFixedLayoutChange: Ue }), xs = mo(Ae.table, ht), Cs = mo(Ae.scrollViewport, Qe), Ss = cd({ rowExpansion: Te, records: z, idAccessor: $ }), yr = De(!1), ao = De(x), ln = De(z), Ds = Le((ye) => {
7978
7978
  yr.current = !0, ln.current = z, w(ye);
7979
7979
  }, [w, z]);
7980
7980
  $e(() => {
@@ -7990,19 +7990,19 @@ function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, hei
7990
7990
  });
7991
7991
  return () => cancelAnimationFrame(jt);
7992
7992
  }, [m, z, Ae.scrollViewport]);
7993
- let lo = z?.map((ye) => ze(ye, $)), It = !!V, Zt = V?.map((ye) => ze(ye, $)), co = lo !== void 0 && Zt !== void 0 && Zt.length > 0, cn = H ? z?.filter(H) : z, br = cn?.map((ye) => ze(ye, $)), wr = co && br.every((ye) => Zt.includes(ye)), ks = co && br.some((ye) => Zt.includes(ye)), Ps = Le(() => {
7993
+ let lo = z?.map((ye) => ze(ye, $)), It = !!V, Kt = V?.map((ye) => ze(ye, $)), co = lo !== void 0 && Kt !== void 0 && Kt.length > 0, cn = H ? z?.filter(H) : z, br = cn?.map((ye) => ze(ye, $)), wr = co && br.every((ye) => Kt.includes(ye)), ks = co && br.some((ye) => Kt.includes(ye)), Ps = Le(() => {
7994
7994
  V && F && F(wr ? V.filter((ye) => !br.includes(ze(ye, $))) : Dn([...V, ...cn], (ye) => ze(ye, $)));
7995
7995
  }, [wr, $, F, br, cn, V]), { lastSelectionChangeIndex: _r, setLastSelectionChangeIndex: Os } = rd(lo), un = It && !S, js = { m: ft, my: me, mx: Oe, mt: nt, mb: vt, ml: Qt, mr: Nt }, Ms = Le(({ children: ye }) => Se ? Se({ children: ye }) : ye, [Se]);
7996
- return b.jsx(vi, { ...an, children: b.jsxs(je, { ref: Ae.root, ...js, className: Me("mantine-datatable", { "mantine-datatable-with-border": t }, bt, Ke?.root), style: [(ye) => ({ ...Od({ theme: ye, c: Ne, backgroundColor: Pe, borderColor: Ot, rowBorderColor: Ee, stripedColor: lt, highlightOnHoverColor: Ye }), borderRadius: ye.radius[e] || e, boxShadow: ye.shadows[u] || u, height: n, minHeight: i, maxHeight: l }), wt, pt?.root, { position: "relative" }], children: [b.jsx(Id, { viewportRef: Cs, leftShadowBehind: It || !!S, rightShadowBehind: C, onScrollPositionChange: Lt, scrollAreaProps: Ze, children: b.jsx(Ms, { children: b.jsxs($s, { ref: xs, horizontalSpacing: P, className: Me("mantine-datatable-table", { [dd]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": C, "mantine-datatable-selection-column-visible": It, "mantine-datatable-pin-first-column": S, "mantine-datatable-resizable-columns": an.hasResizableColumns && be }, Ke?.table), style: { ...pt?.table }, "data-striped": vr && T || void 0, "data-highlight-on-hover": M || void 0, ...gt, children: [Y ? null : b.jsx(vi, { ...an, children: b.jsx(kd, { ref: Ae.header, selectionColumnHeaderRef: Ae.selectionColumnHeader, className: Ke?.header, style: pt?.header, columns: _e, defaultColumnProps: k, groups: O, sortStatus: Z, sortIcons: ne, onSortStatusChange: te, selectionTrigger: L, selectionVisible: It, selectionChecked: wr, selectionIndeterminate: ks && !wr, onSelectionChange: Ps, selectionCheckboxProps: { ...Q, ...q }, selectorCellShadowVisible: un, selectionColumnClassName: X, selectionColumnStyle: re, withColumnBorders: gt.withColumnBorders }) }), b.jsx("tbody", { ref: yt, children: vr ? z.map((ye, jt) => {
7997
- let dn = ze(ye, $), hn = Zt?.includes(dn) || !1, uo;
7996
+ return b.jsx(vi, { ...an, children: b.jsxs(je, { ref: Ae.root, ...js, className: Me("mantine-datatable", { "mantine-datatable-with-border": t }, bt, Ze?.root), style: [(ye) => ({ ...Od({ theme: ye, c: Ne, backgroundColor: Pe, borderColor: Ot, rowBorderColor: Ee, stripedColor: lt, highlightOnHoverColor: Ye }), borderRadius: ye.radius[e] || e, boxShadow: ye.shadows[u] || u, height: n, minHeight: i, maxHeight: l }), wt, pt?.root, { position: "relative" }], children: [b.jsx(Id, { viewportRef: Cs, leftShadowBehind: It || !!S, rightShadowBehind: C, onScrollPositionChange: Lt, scrollAreaProps: Ke, children: b.jsx(Ms, { children: b.jsxs($s, { ref: xs, horizontalSpacing: P, className: Me("mantine-datatable-table", { [dd]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": C, "mantine-datatable-selection-column-visible": It, "mantine-datatable-pin-first-column": S, "mantine-datatable-resizable-columns": an.hasResizableColumns && be }, Ze?.table), style: { ...pt?.table }, "data-striped": vr && T || void 0, "data-highlight-on-hover": M || void 0, ...gt, children: [Y ? null : b.jsx(vi, { ...an, children: b.jsx(kd, { ref: Ae.header, selectionColumnHeaderRef: Ae.selectionColumnHeader, className: Ze?.header, style: pt?.header, columns: _e, defaultColumnProps: k, groups: O, sortStatus: K, sortIcons: ne, onSortStatusChange: te, selectionTrigger: L, selectionVisible: It, selectionChecked: wr, selectionIndeterminate: ks && !wr, onSelectionChange: Ps, selectionCheckboxProps: { ...Q, ...q }, selectorCellShadowVisible: un, selectionColumnClassName: X, selectionColumnStyle: re, withColumnBorders: gt.withColumnBorders }) }), b.jsx("tbody", { ref: yt, children: vr ? z.map((ye, jt) => {
7997
+ let dn = ze(ye, $), hn = Kt?.includes(dn) || !1, uo;
7998
7998
  return F && V && (uo = (As) => {
7999
7999
  if (As.nativeEvent.shiftKey && _r !== null) {
8000
8000
  let Bt = z.filter(jt > _r ? (Mt, At) => At >= _r && At <= jt && (H ? H(Mt, At) : !0) : (Mt, At) => At >= jt && At <= _r && (H ? H(Mt, At) : !0));
8001
8001
  F(hn ? ad(V, Bt, (Mt) => ze(Mt, $)) : Dn([...V, ...Bt], (Mt) => ze(Mt, $)));
8002
8002
  } else F(hn ? V.filter((Bt) => ze(Bt, $) !== dn) : Dn([...V, ye], (Bt) => ze(Bt, $)));
8003
8003
  Os(jt);
8004
- }), b.jsx(Nd, { record: ye, index: jt, columns: _e, defaultColumnProps: k, defaultColumnRender: j, selectionTrigger: L, selectionVisible: It, selectionChecked: hn, onSelectionChange: uo, isRecordSelectable: H, selectionCheckboxProps: Q, getSelectionCheckboxProps: W, onClick: se, onDoubleClick: ue, onCellClick: G, onCellDoubleClick: de, onContextMenu: he, onCellContextMenu: pe, expansion: Ss, color: rt, backgroundColor: ct, className: ut, style: dt, customAttributes: Ge, selectorCellShadowVisible: un, selectionColumnClassName: X, selectionColumnStyle: re, idAccessor: $, rowFactory: Ce }, dn);
8005
- }) : b.jsx(Gu, {}) }), _e.some(({ footer: ye }) => ye) && b.jsx(pd, { ref: Ae.footer, className: Ke?.footer, style: pt?.footer, columns: _e, defaultColumnProps: k, selectionVisible: It, selectorCellShadowVisible: un })] }) }) }), x && b.jsx(Rd, { className: Ke?.pagination, style: pt?.pagination, horizontalSpacing: P, fetching: m, page: x, onPageChange: Ds, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d, paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K, paginationText: ee, paginationWrapBreakpoint: J, getPaginationControlProps: ie, getPaginationItemProps: oe, noRecordsText: c, loadingText: le, recordsLength: vr, renderPagination: ae }), b.jsx(Pd, { fetching: m, backgroundBlur: A, customContent: N, size: E, type: B, color: I }), b.jsx(Zu, { icon: g, text: c, active: !m && !vr, children: o })] }) });
8004
+ }), b.jsx(Nd, { record: ye, index: jt, columns: _e, defaultColumnProps: k, defaultColumnRender: j, selectionTrigger: L, selectionVisible: It, selectionChecked: hn, onSelectionChange: uo, isRecordSelectable: H, selectionCheckboxProps: Q, getSelectionCheckboxProps: U, onClick: se, onDoubleClick: ue, onCellClick: G, onCellDoubleClick: de, onContextMenu: he, onCellContextMenu: pe, expansion: Ss, color: rt, backgroundColor: ct, className: ut, style: dt, customAttributes: Ge, selectorCellShadowVisible: un, selectionColumnClassName: X, selectionColumnStyle: re, idAccessor: $, rowFactory: Ce }, dn);
8005
+ }) : b.jsx(Gu, {}) }), _e.some(({ footer: ye }) => ye) && b.jsx(pd, { ref: Ae.footer, className: Ze?.footer, style: pt?.footer, columns: _e, defaultColumnProps: k, selectionVisible: It, selectorCellShadowVisible: un })] }) }) }), x && b.jsx(Rd, { className: Ze?.pagination, style: pt?.pagination, horizontalSpacing: P, fetching: m, page: x, onPageChange: Ds, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d, paginationWithEdges: y, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: W, paginationSize: Z, paginationText: ee, paginationWrapBreakpoint: J, getPaginationControlProps: ie, getPaginationItemProps: oe, noRecordsText: c, loadingText: le, recordsLength: vr, renderPagination: ae }), b.jsx(Pd, { fetching: m, backgroundBlur: A, customContent: N, size: E, type: B, color: I }), b.jsx(Ku, { icon: g, text: c, active: !m && !vr, children: o })] }) });
8006
8006
  }
8007
8007
  function Yd(t) {
8008
8008
  const e = Ve.c(42), {
@@ -8012,7 +8012,7 @@ function Yd(t) {
8012
8012
  apiPath: l,
8013
8013
  id: u,
8014
8014
  steps: a
8015
- } = t, [m, y] = ve(0), [_, O] = ve(!1), {
8015
+ } = t, [m, v] = ve(0), [_, O] = ve(!1), {
8016
8016
  data: S,
8017
8017
  isLoading: C
8018
8018
  } = Yc(l, i, u), {
@@ -8049,13 +8049,13 @@ function Yd(t) {
8049
8049
  }), Q.initialize(s), Q.setValues(s);
8050
8050
  }
8051
8051
  }, e[11] = S, e[12] = r, e[13] = Q, e[14] = q) : q = e[14];
8052
- let W;
8053
- e[15] !== S ? (W = [S], e[15] = S, e[16] = W) : W = e[16], $e(q, W);
8054
- let Z;
8055
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (Z = function(p, f) {
8052
+ let U;
8053
+ e[15] !== S ? (U = [S], e[15] = S, e[16] = U) : U = e[16], $e(q, U);
8054
+ let K;
8055
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (K = function(p, f) {
8056
8056
  return typeof p.required == "function" ? p.required(f ?? {}) : !!p.required;
8057
- }, e[17] = Z) : Z = e[17];
8058
- const ne = Z;
8057
+ }, e[17] = K) : K = e[17];
8058
+ const ne = K;
8059
8059
  let te;
8060
8060
  e[18] !== Q || e[19] !== u ? (te = function(p) {
8061
8061
  const f = Q.getValues();
@@ -8094,13 +8094,13 @@ function Yd(t) {
8094
8094
  await k({
8095
8095
  ...s,
8096
8096
  id: u
8097
- }), F.length && m < F.length - 1 ? j || y(m + 1) : j || (Q.setInitialValues(s), Q.reset(), n());
8097
+ }), F.length && m < F.length - 1 ? j || v(m + 1) : j || (Q.setInitialValues(s), Q.reset(), n());
8098
8098
  }), children: [
8099
8099
  F.length ? /* @__PURE__ */ b.jsx(Er, { active: m, size: "sm", children: F.map((s) => /* @__PURE__ */ b.jsx(Er.Step, { ...a && a[s - 1] ? {
8100
8100
  label: a[s - 1].label
8101
8101
  } : {}, children: r.filter((p) => p.step === s).map((p) => P(p)) }, s)) }) : r.map((s) => P(s)),
8102
8102
  !_ && /* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
8103
- /* @__PURE__ */ b.jsx(mt, { onClick: () => F.length ? m === 0 ? n() : y(m - 1) : n(), variant: "outline", children: F.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
8103
+ /* @__PURE__ */ b.jsx(mt, { onClick: () => F.length ? m === 0 ? n() : v(m - 1) : n(), variant: "outline", children: F.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
8104
8104
  /* @__PURE__ */ b.jsx(mt, { type: "submit", loading: z, children: F.length ? m === F.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
8105
8105
  ] })
8106
8106
  ] }), e[25] = m, e[26] = r, e[27] = Q, e[28] = _, e[29] = u, e[30] = C, e[31] = z, e[32] = j, e[33] = n, e[34] = P, e[35] = a, e[36] = F, e[37] = k, e[38] = w) : w = e[38];
@@ -8139,7 +8139,7 @@ function Hd({
8139
8139
  isError: l,
8140
8140
  error: u,
8141
8141
  isPending: a
8142
- } = Qc(e, t), [m, y] = ve(n), [_, O] = ve(!1), S = _ || a;
8142
+ } = Qc(e, t), [m, v] = ve(n), [_, O] = ve(!1), S = _ || a;
8143
8143
  return $e(() => {
8144
8144
  m.length || r();
8145
8145
  }, [r, m]), m.length ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
@@ -8150,7 +8150,7 @@ function Hd({
8150
8150
  /* @__PURE__ */ b.jsx(mt, { color: "red", loading: S, onClick: async () => {
8151
8151
  O(!0);
8152
8152
  try {
8153
- await Promise.all(m.map((C) => i(C.id))), y([]);
8153
+ await Promise.all(m.map((C) => i(C.id))), v([]);
8154
8154
  } finally {
8155
8155
  O(!1);
8156
8156
  }
@@ -8162,13 +8162,13 @@ function Gd(t, e) {
8162
8162
  const r = Ve.c(8);
8163
8163
  let n;
8164
8164
  r[0] !== t || r[1] !== e ? (n = () => {
8165
- const y = localStorage.getItem(`use_persistent_storage_${e}`);
8166
- return y ? JSON.parse(y) : t;
8165
+ const v = localStorage.getItem(`use_persistent_storage_${e}`);
8166
+ return v ? JSON.parse(v) : t;
8167
8167
  }, r[0] = t, r[1] = e, r[2] = n) : n = r[2];
8168
8168
  const [i, l] = ve(n);
8169
8169
  let u;
8170
- r[3] !== e ? (u = (y) => {
8171
- l(y), localStorage.setItem(`use_persistent_storage_${e}`, JSON.stringify(y));
8170
+ r[3] !== e ? (u = (v) => {
8171
+ l(v), localStorage.setItem(`use_persistent_storage_${e}`, JSON.stringify(v));
8172
8172
  }, r[3] = e, r[4] = u) : u = r[4];
8173
8173
  const a = u;
8174
8174
  let m;
@@ -8195,13 +8195,13 @@ const Qd = (t, e) => {
8195
8195
  if (typeof m == "number")
8196
8196
  l.number++;
8197
8197
  else if (typeof m == "string") {
8198
- const y = m.trim();
8199
- if (y !== "" && !isNaN(Number(y)) && !isNaN(parseFloat(y))) {
8198
+ const v = m.trim();
8199
+ if (v !== "" && !isNaN(Number(v)) && !isNaN(parseFloat(v))) {
8200
8200
  l.number++;
8201
8201
  return;
8202
8202
  }
8203
- if (u.some((_) => _.test(y))) {
8204
- const _ = new Date(y);
8203
+ if (u.some((_) => _.test(v))) {
8204
+ const _ = new Date(v);
8205
8205
  if (!isNaN(_.getTime())) {
8206
8206
  l.date++;
8207
8207
  return;
@@ -8212,12 +8212,12 @@ const Qd = (t, e) => {
8212
8212
  });
8213
8213
  const a = l.string + l.number + l.date;
8214
8214
  return l.date / a >= 0.6 ? "date" : l.number / a >= 0.6 ? "number" : l.string / a >= 0.6 ? "string" : "mixed";
8215
- }, ki = /* @__PURE__ */ new Map(), Zd = (t, e, r = "asc") => {
8215
+ }, ki = /* @__PURE__ */ new Map(), Kd = (t, e, r = "asc") => {
8216
8216
  if (!t || t.length === 0) return [];
8217
8217
  const n = `${String(e)}_${t.length}`;
8218
8218
  let i = ki.get(n);
8219
8219
  return i || (i = Qd(t, e), ki.set(n, i)), [...t].sort((u, a) => {
8220
- const m = u[e], y = a[e], _ = m == null || m === "", O = y == null || y === "";
8220
+ const m = u[e], v = a[e], _ = m == null || m === "", O = v == null || v === "";
8221
8221
  if (_ && O) return 0;
8222
8222
  if (_) return r === "asc" ? -1 : 1;
8223
8223
  if (O) return r === "asc" ? 1 : -1;
@@ -8228,10 +8228,10 @@ const Qd = (t, e) => {
8228
8228
  const L = new Date(m.trim());
8229
8229
  S = isNaN(L.getTime()) ? null : L.getTime();
8230
8230
  } else m instanceof Date ? S = m.getTime() : S = null;
8231
- if (typeof y == "string") {
8232
- const L = new Date(y.trim());
8231
+ if (typeof v == "string") {
8232
+ const L = new Date(v.trim());
8233
8233
  C = isNaN(L.getTime()) ? null : L.getTime();
8234
- } else y instanceof Date ? C = y.getTime() : C = null;
8234
+ } else v instanceof Date ? C = v.getTime() : C = null;
8235
8235
  break;
8236
8236
  case "number":
8237
8237
  if (typeof m == "number")
@@ -8240,27 +8240,27 @@ const Qd = (t, e) => {
8240
8240
  const L = String(m).trim(), V = parseFloat(L);
8241
8241
  S = isNaN(V) ? null : V;
8242
8242
  }
8243
- if (typeof y == "number")
8244
- C = y;
8243
+ if (typeof v == "number")
8244
+ C = v;
8245
8245
  else {
8246
- const L = String(y).trim(), V = parseFloat(L);
8246
+ const L = String(v).trim(), V = parseFloat(L);
8247
8247
  C = isNaN(V) ? null : V;
8248
8248
  }
8249
8249
  break;
8250
8250
  case "string":
8251
- const k = typeof m == "string" ? m : String(m), j = typeof y == "string" ? y : String(y);
8251
+ const k = typeof m == "string" ? m : String(m), j = typeof v == "string" ? v : String(v);
8252
8252
  S = k.toLowerCase().trim(), C = j.toLowerCase().trim();
8253
8253
  break;
8254
8254
  case "mixed":
8255
8255
  default:
8256
- const $ = String(m), z = String(y);
8256
+ const $ = String(m), z = String(v);
8257
8257
  S = $.toLowerCase().trim(), C = z.toLowerCase().trim();
8258
8258
  break;
8259
8259
  }
8260
8260
  return S === null && C === null ? 0 : S === null ? r === "asc" ? 1 : -1 : C === null || S < C ? r === "asc" ? -1 : 1 : S > C ? r === "asc" ? 1 : -1 : 0;
8261
8261
  });
8262
8262
  };
8263
- function Kd(t, e) {
8263
+ function Zd(t, e) {
8264
8264
  return e.split(".").reduce((r, n) => {
8265
8265
  if (r && typeof r == "object" && n in r)
8266
8266
  return r[n];
@@ -8270,7 +8270,7 @@ function Jd(t, e) {
8270
8270
  const r = e.column;
8271
8271
  if (r.render)
8272
8272
  return r.render(t, 0);
8273
- const n = r.accessor ?? e.id, i = Kd(t, n);
8273
+ const n = r.accessor ?? e.id, i = Zd(t, n);
8274
8274
  return i == null ? /* @__PURE__ */ b.jsx(at, { c: "dimmed", children: "–" }) : typeof i == "boolean" ? /* @__PURE__ */ b.jsx(at, { fz: "sm", children: i ? "Ja" : "Nein" }) : /* @__PURE__ */ b.jsx(at, { fz: "sm", children: String(i) });
8275
8275
  }
8276
8276
  function Xd(t) {
@@ -8283,9 +8283,9 @@ function Xd(t) {
8283
8283
  let u;
8284
8284
  e[2] !== r || e[3] !== n ? (u = Jd(n, r), e[2] = r, e[3] = n, e[4] = u) : u = e[4];
8285
8285
  let a;
8286
- e[5] !== u ? (a = /* @__PURE__ */ b.jsx(je, { ta: "right", children: u }), e[5] = u, e[6] = a) : a = e[6];
8286
+ e[5] !== u ? (a = /* @__PURE__ */ b.jsx(je, { ta: "right", fz: "sm", children: u }), e[5] = u, e[6] = a) : a = e[6];
8287
8287
  let m;
8288
- return e[7] !== l || e[8] !== a ? (m = /* @__PURE__ */ b.jsxs(qe, { wrap: "nowrap", justify: "space-between", py: "xs", px: "sm", children: [
8288
+ return e[7] !== l || e[8] !== a ? (m = /* @__PURE__ */ b.jsxs(qe, { wrap: "nowrap", justify: "space-between", align: "center", py: "xs", px: "sm", children: [
8289
8289
  l,
8290
8290
  a
8291
8291
  ] }), e[7] = l, e[8] = a, e[9] = m) : m = e[9], m;
@@ -8299,7 +8299,7 @@ function eh(t) {
8299
8299
  onSelectedRecordsChange: u,
8300
8300
  onRowClick: a,
8301
8301
  pagination: m,
8302
- sort: y,
8302
+ sort: v,
8303
8303
  rowExpansion: _
8304
8304
  } = t;
8305
8305
  let O;
@@ -8309,18 +8309,18 @@ function eh(t) {
8309
8309
  e[2] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ new Set(), e[2] = C) : C = e[2];
8310
8310
  const [k, j] = ve(C);
8311
8311
  let $;
8312
- e[3] === Symbol.for("react.memo_cache_sentinel") ? ($ = (W) => {
8313
- j((Z) => {
8314
- const ne = new Set(Z);
8315
- return ne.has(W) ? ne.delete(W) : ne.add(W), ne;
8312
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? ($ = (U) => {
8313
+ j((K) => {
8314
+ const ne = new Set(K);
8315
+ return ne.has(U) ? ne.delete(U) : ne.add(U), ne;
8316
8316
  });
8317
8317
  }, e[3] = $) : $ = e[3];
8318
8318
  const z = $;
8319
8319
  let L, V, F, X, re, H;
8320
- if (e[4] !== k || e[5] !== n || e[6] !== a || e[7] !== u || e[8] !== r || e[9] !== _ || e[10] !== S || e[11] !== i || e[12] !== y) {
8320
+ if (e[4] !== k || e[5] !== n || e[6] !== a || e[7] !== u || e[8] !== r || e[9] !== _ || e[10] !== S || e[11] !== i || e[12] !== v) {
8321
8321
  H = Symbol.for("react.early_return_sentinel");
8322
8322
  e: {
8323
- const W = n.filter(ih), Z = W.filter(oh).map(nh);
8323
+ const U = n.filter(ih), K = U.filter(oh).map(nh);
8324
8324
  let ne;
8325
8325
  e[19] !== S ? (ne = (s) => S.some((p) => p.id === s.id), e[19] = S, e[20] = ne) : ne = e[20];
8326
8326
  const te = ne;
@@ -8343,21 +8343,21 @@ function eh(t) {
8343
8343
  e[29] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ b.jsx(at, { c: "dimmed", ta: "center", py: "xl", children: "Keine Einträge gefunden" }), e[29] = s) : s = e[29], H = s;
8344
8344
  break e;
8345
8345
  }
8346
- L = dr, V = "sm", F = "md", X = y && Z.length > 0 && /* @__PURE__ */ b.jsxs(qe, { gap: "xs", wrap: "nowrap", children: [
8347
- /* @__PURE__ */ b.jsx(po, { data: Z, value: y.field, onChange: (s) => s && y.onSortChange(s, y.direction), allowDeselect: !1, style: {
8346
+ L = dr, V = "sm", F = "md", X = v && K.length > 0 && /* @__PURE__ */ b.jsxs(qe, { gap: "xs", wrap: "nowrap", children: [
8347
+ /* @__PURE__ */ b.jsx(po, { data: K, value: v.field, onChange: (s) => s && v.onSortChange(s, v.direction), allowDeselect: !1, style: {
8348
8348
  flex: 1
8349
8349
  } }),
8350
- /* @__PURE__ */ b.jsx(hr, { variant: "filled", size: "input-sm", onClick: () => y.onSortChange(y.field, y.direction === "asc" ? "desc" : "asc"), children: y.direction === "asc" ? /* @__PURE__ */ b.jsx(Hs, { size: 18 }) : /* @__PURE__ */ b.jsx(Gs, { size: 18 }) })
8350
+ /* @__PURE__ */ b.jsx(hr, { variant: "filled", size: "input-sm", onClick: () => v.onSortChange(v.field, v.direction === "asc" ? "desc" : "asc"), children: v.direction === "asc" ? /* @__PURE__ */ b.jsx(Hs, { size: 18 }) : /* @__PURE__ */ b.jsx(Gs, { size: 18 }) })
8351
8351
  ] }), re = r.map((s, p) => {
8352
- const f = te(s), d = !!a || !!i, v = k.has(s.id);
8352
+ const f = te(s), d = !!a || !!i, y = s.id ?? p, D = k.has(y);
8353
8353
  return /* @__PURE__ */ b.jsx(Ct.Fragment, { children: /* @__PURE__ */ b.jsxs(je, { bg: f ? "var(--mantine-primary-color-light)" : p % 2 === 0 ? "var(--mantine-color-gray-0)" : "white", bd: f ? void 0 : "1px solid var(--mantine-color-gray-2)", style: {
8354
8354
  borderRadius: "var(--mantine-radius-md)",
8355
8355
  overflow: "hidden"
8356
8356
  }, children: [
8357
8357
  /* @__PURE__ */ b.jsxs(je, { w: "100%", style: {
8358
8358
  cursor: d || _ ? "pointer" : "default"
8359
- }, onClick: (D) => {
8360
- _ && !a ? z(s.id) : h(s, p, D);
8359
+ }, onClick: (R) => {
8360
+ _ && !a ? z(y) : h(s, p, R);
8361
8361
  }, children: [
8362
8362
  (i || _) && /* @__PURE__ */ b.jsxs(qe, { px: "sm", pt: "sm", justify: "space-between", children: [
8363
8363
  i ? /* @__PURE__ */ b.jsx(Ut, { checked: f, onChange: () => x(s), onClick: rh }) : /* @__PURE__ */ b.jsx("span", {}),
@@ -8365,26 +8365,26 @@ function eh(t) {
8365
8365
  cursor: "pointer",
8366
8366
  display: "flex",
8367
8367
  alignItems: "center"
8368
- }, onClick: (D) => {
8369
- D.stopPropagation(), z(s.id);
8368
+ }, onClick: (R) => {
8369
+ R.stopPropagation(), z(y);
8370
8370
  }, children: /* @__PURE__ */ b.jsx(Qs, { size: 16, style: {
8371
- transform: v ? "rotate(180deg)" : "rotate(0deg)",
8371
+ transform: D ? "rotate(180deg)" : "rotate(0deg)",
8372
8372
  transition: "transform 200ms"
8373
8373
  } }) })
8374
8374
  ] }),
8375
- W.map((D, R) => /* @__PURE__ */ b.jsxs(Ct.Fragment, { children: [
8376
- R > 0 && /* @__PURE__ */ b.jsx(go, {}),
8377
- /* @__PURE__ */ b.jsx(Xd, { field: D, record: s })
8378
- ] }, D.id))
8375
+ U.map((R, W) => /* @__PURE__ */ b.jsxs(Ct.Fragment, { children: [
8376
+ W > 0 && /* @__PURE__ */ b.jsx(go, {}),
8377
+ /* @__PURE__ */ b.jsx(Xd, { field: R, record: s })
8378
+ ] }, R.id))
8379
8379
  ] }),
8380
- _ && /* @__PURE__ */ b.jsxs(Ni, { in: v, children: [
8380
+ _ && /* @__PURE__ */ b.jsxs(Ni, { in: D, children: [
8381
8381
  /* @__PURE__ */ b.jsx(go, {}),
8382
8382
  /* @__PURE__ */ b.jsx(je, { px: "sm", py: "sm", children: _.content(s) })
8383
8383
  ] })
8384
- ] }) }, s.id);
8384
+ ] }) }, y);
8385
8385
  });
8386
8386
  }
8387
- e[4] = k, e[5] = n, e[6] = a, e[7] = u, e[8] = r, e[9] = _, e[10] = S, e[11] = i, e[12] = y, e[13] = L, e[14] = V, e[15] = F, e[16] = X, e[17] = re, e[18] = H;
8387
+ e[4] = k, e[5] = n, e[6] = a, e[7] = u, e[8] = r, e[9] = _, e[10] = S, e[11] = i, e[12] = v, e[13] = L, e[14] = V, e[15] = F, e[16] = X, e[17] = re, e[18] = H;
8388
8388
  } else
8389
8389
  L = e[13], V = e[14], F = e[15], X = e[16], re = e[17], H = e[18];
8390
8390
  if (H !== Symbol.for("react.early_return_sentinel"))
@@ -8394,7 +8394,7 @@ function eh(t) {
8394
8394
  /* @__PURE__ */ b.jsx(qe, { justify: "center", children: /* @__PURE__ */ b.jsx(Ii, { total: Math.ceil(m.totalRecords / m.recordsPerPage), value: m.page, onChange: m.onPageChange, size: "sm" }) }),
8395
8395
  m.recordsPerPageOptions && m.onRecordsPerPageChange && /* @__PURE__ */ b.jsxs(qe, { justify: "center", gap: "xs", children: [
8396
8396
  /* @__PURE__ */ b.jsx(at, { fz: "xs", c: "dimmed", children: "Einträge pro Seite:" }),
8397
- /* @__PURE__ */ b.jsx(po, { data: m.recordsPerPageOptions.map(th), value: String(m.recordsPerPage), onChange: (W) => W && m.onRecordsPerPageChange(Number(W)), allowDeselect: !1, size: "xs", w: 70 })
8397
+ /* @__PURE__ */ b.jsx(po, { data: m.recordsPerPageOptions.map(th), value: String(m.recordsPerPage), onChange: (U) => U && m.onRecordsPerPageChange(Number(U)), allowDeselect: !1, size: "xs", w: 70 })
8398
8398
  ] })
8399
8399
  ] }), e[30] = m, e[31] = Q) : Q = e[31];
8400
8400
  let q;
@@ -8435,7 +8435,7 @@ function sh(t) {
8435
8435
  mutationApiPath: u,
8436
8436
  buttons: a,
8437
8437
  fields: m,
8438
- selection: y,
8438
+ selection: v,
8439
8439
  pagination: _,
8440
8440
  filters: O,
8441
8441
  actions: S,
@@ -8452,9 +8452,9 @@ function sh(t) {
8452
8452
  canDelete: H,
8453
8453
  showRefresh: Q,
8454
8454
  rowExpansion: q,
8455
- onRowClick: W,
8456
- mobileCards: Z
8457
- } = t, ne = Q === void 0 ? !0 : Q, te = Z === void 0 ? !1 : Z, [P, x] = ve(V || (L && L.length > 0 ? L[0].value : null)), w = F !== void 0 ? F : P;
8455
+ onRowClick: U,
8456
+ mobileCards: K
8457
+ } = t, ne = Q === void 0 ? !0 : Q, te = K === void 0 ? !1 : K, [P, x] = ve(V || (L && L.length > 0 ? L[0].value : null)), w = F !== void 0 ? F : P;
8458
8458
  let h;
8459
8459
  e[0] !== F || e[1] !== X ? (h = (Ce) => {
8460
8460
  F === void 0 && x(Ce), X && X(Ce);
@@ -8463,12 +8463,12 @@ function sh(t) {
8463
8463
  ...z,
8464
8464
  ...p
8465
8465
  }, d = f ? "?" + Object.entries(f).filter(yh).map(mh).join("&") : "";
8466
- let v;
8467
- e[3] !== w || e[4] !== n ? (v = w ? [...n, w] : n, e[3] = w, e[4] = n, e[5] = v) : v = e[5];
8468
- const D = v, {
8466
+ let y;
8467
+ e[3] !== w || e[4] !== n ? (y = w ? [...n, w] : n, e[3] = w, e[4] = n, e[5] = y) : y = e[5];
8468
+ const D = y, {
8469
8469
  data: R,
8470
- isLoading: U,
8471
- isError: K,
8470
+ isLoading: W,
8471
+ isError: Z,
8472
8472
  isRefetching: ee,
8473
8473
  refetch: J
8474
8474
  } = Fc(l + d, D), {
@@ -8532,7 +8532,7 @@ function sh(t) {
8532
8532
  e[14] !== j ? (o = (Ce) => {
8533
8533
  le(Ce), j && j(String(Ce.columnAccessor), Ce.direction);
8534
8534
  }, e[14] = j, e[15] = o) : o = e[15];
8535
- const c = o, g = Zd(A, I.columnAccessor, I.direction), [M, T] = Gd(kn[1], "mantine-table-page-size"), [Y, se] = ve(1), ue = _ ? g.slice((Y - 1) * M, Y * M) : g;
8535
+ const c = o, g = Kd(A, I.columnAccessor, I.direction), [M, T] = Gd(kn[1], "mantine-table-page-size"), [Y, se] = ve(1), ue = _ ? g.slice((Y - 1) * M, Y * M) : g;
8536
8536
  let he;
8537
8537
  e[16] === Symbol.for("react.memo_cache_sentinel") ? (he = [], e[16] = he) : he = e[16];
8538
8538
  const [G, de] = ve(he);
@@ -8552,21 +8552,21 @@ function sh(t) {
8552
8552
  let Ye;
8553
8553
  e[23] !== J || e[24] !== ne ? (Ye = ne && /* @__PURE__ */ b.jsx(hr, { variant: "subtle", onClick: () => J(), "aria-label": "Neuladen", children: /* @__PURE__ */ b.jsx(Xs, {}) }), e[23] = J, e[24] = ne, e[25] = Ye) : Ye = e[25];
8554
8554
  let rt;
8555
- e[26] !== S || e[27] !== H || e[28] !== re || e[29] !== m || e[30] !== G || e[31] !== y ? (rt = (m.some(gh) || y) && (() => {
8555
+ e[26] !== S || e[27] !== H || e[28] !== re || e[29] !== m || e[30] !== G || e[31] !== v ? (rt = (m.some(gh) || v) && (() => {
8556
8556
  const Ce = m.find(ph) && (!re || G.length > 0 && re(G[0])), Se = m.find(fh) && (!H || G.length > 0 && H(G[0])), gt = (S ?? []).length > 0, _e = Ce || Se || gt;
8557
8557
  return /* @__PURE__ */ b.jsxs(Rt, { shadow: "md", children: [
8558
- /* @__PURE__ */ b.jsx(Rt.Target, { children: /* @__PURE__ */ b.jsx(mt, { variant: "outline", rightSection: /* @__PURE__ */ b.jsx(Zs, { size: 14 }), disabled: !G.length || !_e, children: "Aktionen" }) }),
8558
+ /* @__PURE__ */ b.jsx(Rt.Target, { children: /* @__PURE__ */ b.jsx(mt, { variant: "outline", rightSection: /* @__PURE__ */ b.jsx(Ks, { size: 14 }), disabled: !G.length || !_e, children: "Aktionen" }) }),
8559
8559
  /* @__PURE__ */ b.jsxs(Rt.Dropdown, { children: [
8560
- Ce && /* @__PURE__ */ b.jsx(Rt.Item, { leftSection: /* @__PURE__ */ b.jsx(Ks, { size: 14 }), onClick: () => He(!0), disabled: G.length !== 1, children: "Bearbeiten" }),
8560
+ Ce && /* @__PURE__ */ b.jsx(Rt.Item, { leftSection: /* @__PURE__ */ b.jsx(Zs, { size: 14 }), onClick: () => He(!0), disabled: G.length !== 1, children: "Bearbeiten" }),
8561
8561
  (S ?? []).map((be, Ue) => /* @__PURE__ */ jr(Rt.Item, { ...be.icon && {
8562
8562
  leftSection: be.icon
8563
8563
  }, key: `custom_action_${Ue}`, onClick: () => be.onClick(G) }, be.label)),
8564
8564
  Se && /* @__PURE__ */ b.jsx(Rt.Item, { leftSection: /* @__PURE__ */ b.jsx(Js, { size: 14 }), onClick: () => Pe(!0), color: "red", children: "Löschen" })
8565
8565
  ] })
8566
8566
  ] });
8567
- })(), e[26] = S, e[27] = H, e[28] = re, e[29] = m, e[30] = G, e[31] = y, e[32] = rt) : rt = e[32];
8567
+ })(), e[26] = S, e[27] = H, e[28] = re, e[29] = m, e[30] = G, e[31] = v, e[32] = rt) : rt = e[32];
8568
8568
  let ct;
8569
- e[33] !== $ || e[34] !== m || e[35] !== U ? (ct = m.find(hh) && /* @__PURE__ */ b.jsx(mt, { onClick: () => we(!0), disabled: U, children: $ ?? "Erstellen" }), e[33] = $, e[34] = m, e[35] = U, e[36] = ct) : ct = e[36];
8569
+ e[33] !== $ || e[34] !== m || e[35] !== W ? (ct = m.find(hh) && /* @__PURE__ */ b.jsx(mt, { onClick: () => we(!0), disabled: W, children: $ ?? "Erstellen" }), e[33] = $, e[34] = m, e[35] = W, e[36] = ct) : ct = e[36];
8570
8570
  let Te;
8571
8571
  e[37] !== a || e[38] !== Ye || e[39] !== rt || e[40] !== ct ? (Te = /* @__PURE__ */ b.jsxs(qe, { align: "center", gap: "xs", wrap: "wrap", justify: "end", style: lt, children: [
8572
8572
  Ye,
@@ -8582,17 +8582,17 @@ function sh(t) {
8582
8582
  let dt;
8583
8583
  e[46] !== w || e[47] !== s || e[48] !== L ? (dt = L && L.length > 0 && /* @__PURE__ */ b.jsx(Pn, { value: w, onChange: s, mt: "md", children: /* @__PURE__ */ b.jsx(Pn.List, { children: L.map(dh) }) }), e[46] = w, e[47] = s, e[48] = L, e[49] = dt) : dt = e[49];
8584
8584
  let Ge;
8585
- e[50] !== K ? (Ge = K && /* @__PURE__ */ b.jsx(Br, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ b.jsx(ea, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[50] = K, e[51] = Ge) : Ge = e[51];
8585
+ e[50] !== Z ? (Ge = Z && /* @__PURE__ */ b.jsx(Br, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ b.jsx(ea, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[50] = Z, e[51] = Ge) : Ge = e[51];
8586
8586
  let Qe;
8587
- e[52] !== U || e[53] !== ee ? (Qe = (U || ee) && /* @__PURE__ */ b.jsxs(dr, { my: "md", children: [
8587
+ e[52] !== W || e[53] !== ee ? (Qe = (W || ee) && /* @__PURE__ */ b.jsxs(dr, { my: "md", children: [
8588
8588
  /* @__PURE__ */ b.jsx(zt, { height: 40 }),
8589
8589
  Array(5).fill(0).map(uh)
8590
- ] }), e[52] = U, e[53] = ee, e[54] = Qe) : Qe = e[54];
8591
- let Ze;
8592
- e[55] !== m || e[56] !== c || e[57] !== K || e[58] !== U || e[59] !== ee || e[60] !== te || e[61] !== W || e[62] !== Y || e[63] !== M || e[64] !== _ || e[65] !== ue || e[66] !== q || e[67] !== G || e[68] !== y || e[69] !== se || e[70] !== T || e[71] !== I || e[72] !== g ? (Ze = !U && !ee && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
8590
+ ] }), e[52] = W, e[53] = ee, e[54] = Qe) : Qe = e[54];
8591
+ let Ke;
8592
+ e[55] !== m || e[56] !== c || e[57] !== Z || e[58] !== W || e[59] !== ee || e[60] !== te || e[61] !== U || e[62] !== Y || e[63] !== M || e[64] !== _ || e[65] !== ue || e[66] !== q || e[67] !== G || e[68] !== v || e[69] !== se || e[70] !== T || e[71] !== I || e[72] !== g ? (Ke = !W && !ee && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
8593
8593
  /* @__PURE__ */ b.jsx(je, { ...te ? {
8594
8594
  visibleFrom: "sm"
8595
- } : {}, children: /* @__PURE__ */ b.jsx(Bd, { my: "md", striped: !0, highlightOnHover: !0, minHeight: 150, fetching: K, records: ue, sortStatus: I, onSortStatusChange: c, ...y && {
8595
+ } : {}, children: /* @__PURE__ */ b.jsx(Bd, { my: "md", striped: !0, highlightOnHover: !0, minHeight: 150, fetching: Z, records: ue, sortStatus: I, onSortStatusChange: c, ...v && {
8596
8596
  selectedRecords: G,
8597
8597
  onSelectedRecordsChange: de
8598
8598
  }, ..._ && ue.length && {
@@ -8616,12 +8616,12 @@ function sh(t) {
8616
8616
  expanded: q.expanded
8617
8617
  }
8618
8618
  }
8619
- }, columns: m.map(ch), noRecordsText: "Keine Einträge gefunden", onRowClick: W, ...W && {
8619
+ }, columns: m.map(ch), noRecordsText: "Keine Einträge gefunden", onRowClick: U, ...U && {
8620
8620
  style: {
8621
8621
  cursor: "pointer"
8622
8622
  }
8623
8623
  } }) }),
8624
- te && /* @__PURE__ */ b.jsx(je, { hiddenFrom: "sm", children: /* @__PURE__ */ b.jsx(eh, { records: ue, fields: m, selection: y, selectedRecords: G, onSelectedRecordsChange: de, onRowClick: W, sort: {
8624
+ te && /* @__PURE__ */ b.jsx(je, { hiddenFrom: "sm", children: /* @__PURE__ */ b.jsx(eh, { records: ue, fields: m, selection: v, selectedRecords: G, onSelectedRecordsChange: de, onRowClick: U, sort: {
8625
8625
  field: String(I.columnAccessor),
8626
8626
  direction: I.direction,
8627
8627
  onSortChange: (Ce, Se) => {
@@ -8646,7 +8646,7 @@ function sh(t) {
8646
8646
  content: q.content
8647
8647
  }
8648
8648
  } }) })
8649
- ] }), e[55] = m, e[56] = c, e[57] = K, e[58] = U, e[59] = ee, e[60] = te, e[61] = W, e[62] = Y, e[63] = M, e[64] = _, e[65] = ue, e[66] = q, e[67] = G, e[68] = y, e[69] = se, e[70] = T, e[71] = I, e[72] = g, e[73] = Ze) : Ze = e[73];
8649
+ ] }), e[55] = m, e[56] = c, e[57] = Z, e[58] = W, e[59] = ee, e[60] = te, e[61] = U, e[62] = Y, e[63] = M, e[64] = _, e[65] = ue, e[66] = q, e[67] = G, e[68] = v, e[69] = se, e[70] = T, e[71] = I, e[72] = g, e[73] = Ke) : Ke = e[73];
8650
8650
  let ht;
8651
8651
  e[74] === Symbol.for("react.memo_cache_sentinel") ? (ht = () => {
8652
8652
  He(!1), de([]);
@@ -8675,21 +8675,21 @@ function sh(t) {
8675
8675
  }, e[95] = Nt) : Nt = e[95];
8676
8676
  let bt;
8677
8677
  e[96] !== m ? (bt = m.filter(ah), e[96] = m, e[97] = bt) : bt = e[97];
8678
- let Ke;
8679
- e[98] !== n || e[99] !== C || e[100] !== Qt || e[101] !== bt ? (Ke = /* @__PURE__ */ b.jsx(Fu, { queryKey: n, apiPath: Qt, onClose: Nt, fields: bt, steps: C }), e[98] = n, e[99] = C, e[100] = Qt, e[101] = bt, e[102] = Ke) : Ke = e[102];
8678
+ let Ze;
8679
+ e[98] !== n || e[99] !== C || e[100] !== Qt || e[101] !== bt ? (Ze = /* @__PURE__ */ b.jsx(Fu, { queryKey: n, apiPath: Qt, onClose: Nt, fields: bt, steps: C }), e[98] = n, e[99] = C, e[100] = Qt, e[101] = bt, e[102] = Ze) : Ze = e[102];
8680
8680
  let wt;
8681
- e[103] !== xe || e[104] !== vt || e[105] !== Ke ? (wt = /* @__PURE__ */ b.jsx(fn, { opened: xe, onClose: nt, title: vt, children: Ke }), e[103] = xe, e[104] = vt, e[105] = Ke, e[106] = wt) : wt = e[106];
8681
+ e[103] !== xe || e[104] !== vt || e[105] !== Ze ? (wt = /* @__PURE__ */ b.jsx(fn, { opened: xe, onClose: nt, title: vt, children: Ze }), e[103] = xe, e[104] = vt, e[105] = Ze, e[106] = wt) : wt = e[106];
8682
8682
  let pt;
8683
- return e[107] !== ut || e[108] !== dt || e[109] !== Ge || e[110] !== Qe || e[111] !== Ze || e[112] !== me || e[113] !== Oe || e[114] !== wt ? (pt = /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
8683
+ return e[107] !== ut || e[108] !== dt || e[109] !== Ge || e[110] !== Qe || e[111] !== Ke || e[112] !== me || e[113] !== Oe || e[114] !== wt ? (pt = /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
8684
8684
  ut,
8685
8685
  dt,
8686
8686
  Ge,
8687
8687
  Qe,
8688
- Ze,
8688
+ Ke,
8689
8689
  me,
8690
8690
  Oe,
8691
8691
  wt
8692
- ] }), e[107] = ut, e[108] = dt, e[109] = Ge, e[110] = Qe, e[111] = Ze, e[112] = me, e[113] = Oe, e[114] = wt, e[115] = pt) : pt = e[115], pt;
8692
+ ] }), e[107] = ut, e[108] = dt, e[109] = Ge, e[110] = Qe, e[111] = Ke, e[112] = me, e[113] = Oe, e[114] = wt, e[115] = pt) : pt = e[115], pt;
8693
8693
  }
8694
8694
  function ah(t) {
8695
8695
  return t.create;
@@ -8748,7 +8748,7 @@ export {
8748
8748
  $c as getAll,
8749
8749
  Gt as getApiHeaders,
8750
8750
  Nc as getOne,
8751
- Zd as sortData,
8751
+ Kd as sortData,
8752
8752
  Bc as updateOne,
8753
8753
  Uc as useAddOne,
8754
8754
  $t as useDataTable,