pankosmia-rcl 0.8.20 → 0.8.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,8 @@ var Lc = Object.defineProperty;
2
2
  var Vc = (e, t, r) => t in e ? Lc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var Pr = (e, t, r) => Vc(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import * as B from "react";
5
- import Jr, { createContext as Ke, useContext as ie, useEffect as ae, useState as X, useMemo as xt, useRef as Ne, useCallback as zc, forwardRef as Wc } from "react";
6
- import { Dialog as Hn, DialogTitle as os, DialogContent as ss, DialogContentText as ua, Typography as ue, DialogActions as Qr, Button as wt, Tooltip as is, IconButton as at, Box as ee, Grid as $e, Drawer as da, List as mr, Stack as St, ListItem as _t, ListItemButton as ot, ListItemText as Ie, Collapse as Uc, Switch as On, ThemeProvider as as, AppBar as cs, Toolbar as Zr, TableHead as qc, TableRow as Bo, TableCell as Lr, Checkbox as xr, TableSortLabel as Yc, Popover as Hc, TextField as We, Chip as fa, TableContainer as Kc, Paper as Gc, Table as Xc, TableBody as Jc, CircularProgress as Kn, Autocomplete as Qc, useTheme as Kt, ListSubheader as pa, CssBaseline as Zc, FormControl as vr, InputLabel as ha, Select as ma, MenuItem as Je, FormHelperText as el, FormGroup as Fo, FormControlLabel as Xe, Stepper as tl, Step as rl, StepLabel as nl, LinearProgress as ol, Divider as Pn, useMediaQuery as nr, SwipeableDrawer as sl, MenuList as il, Menu as al, SvgIcon as ga, ListItemIcon as gt, Tabs as cl, Tab as vo, FormLabel as wn, RadioGroup as In, Radio as vt, InputAdornment as ll } from "@mui/material";
5
+ import Jr, { createContext as Ke, useContext as ie, useEffect as ae, useState as J, useMemo as vt, useRef as Ne, useCallback as zc, forwardRef as Wc } from "react";
6
+ import { Dialog as Hn, DialogTitle as os, DialogContent as ss, DialogContentText as ua, Typography as ue, DialogActions as Qr, Button as at, Tooltip as is, IconButton as ct, Box as ee, Grid as Ee, Drawer as da, List as mr, Stack as St, ListItem as _t, ListItemButton as ot, ListItemText as Ie, Collapse as Uc, Switch as On, ThemeProvider as as, AppBar as cs, Toolbar as Zr, TableHead as qc, TableRow as Bo, TableCell as Lr, Checkbox as xr, TableSortLabel as Yc, Popover as Hc, TextField as We, Chip as fa, TableContainer as Kc, Paper as Gc, Table as Xc, TableBody as Jc, CircularProgress as Kn, Autocomplete as Qc, useTheme as Kt, ListSubheader as pa, CssBaseline as Zc, FormControl as vr, InputLabel as ha, Select as ma, MenuItem as Je, FormHelperText as el, FormGroup as Fo, FormControlLabel as Xe, Stepper as tl, Step as rl, StepLabel as nl, LinearProgress as ol, Divider as Pn, useMediaQuery as nr, SwipeableDrawer as sl, MenuList as il, Menu as al, SvgIcon as ga, ListItemIcon as yt, Tabs as cl, Tab as vo, FormLabel as wn, RadioGroup as In, Radio as Ct, InputAdornment as ll } from "@mui/material";
7
7
  import ul from "@emotion/styled";
8
8
  import { Global as dl, ThemeContext as ya, css as Mn, keyframes as en, CacheProvider as fl } from "@emotion/react";
9
9
  import { enqueueSnackbar as Rt, useSnackbar as pl, MaterialDesignContent as hl, SnackbarProvider as ba } from "notistack";
@@ -110,8 +110,8 @@ function gl() {
110
110
  }
111
111
  if (W) {
112
112
  W = console;
113
- var H = W.error, P = typeof Symbol == "function" && Symbol.toStringTag && S[Symbol.toStringTag] || S.constructor.name || "Object";
114
- return H.call(
113
+ var Y = W.error, P = typeof Symbol == "function" && Symbol.toStringTag && S[Symbol.toStringTag] || S.constructor.name || "Object";
114
+ return Y.call(
115
115
  W,
116
116
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
117
117
  P
@@ -144,30 +144,30 @@ function gl() {
144
144
  return S.key !== void 0;
145
145
  }
146
146
  function c(S, W) {
147
- function H() {
148
- Y || (Y = !0, console.error(
147
+ function Y() {
148
+ q || (q = !0, console.error(
149
149
  "%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)",
150
150
  W
151
151
  ));
152
152
  }
153
- H.isReactWarning = !0, Object.defineProperty(S, "key", {
154
- get: H,
153
+ Y.isReactWarning = !0, Object.defineProperty(S, "key", {
154
+ get: Y,
155
155
  configurable: !0
156
156
  });
157
157
  }
158
158
  function l() {
159
159
  var S = e(this.type);
160
- return J[S] || (J[S] = !0, console.error(
160
+ return Q[S] || (Q[S] = !0, console.error(
161
161
  "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."
162
162
  )), S = this.props.ref, S !== void 0 ? S : null;
163
163
  }
164
- function f(S, W, H, P, G, A) {
165
- var $ = H.ref;
164
+ function f(S, W, Y, P, G, A) {
165
+ var $ = Y.ref;
166
166
  return S = {
167
167
  $$typeof: b,
168
168
  type: S,
169
169
  key: W,
170
- props: H,
170
+ props: Y,
171
171
  _owner: P
172
172
  }, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(S, "ref", {
173
173
  enumerable: !1,
@@ -194,7 +194,7 @@ function gl() {
194
194
  value: A
195
195
  }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
196
196
  }
197
- function d(S, W, H, P, G, A) {
197
+ function d(S, W, Y, P, G, A) {
198
198
  var $ = W.children;
199
199
  if ($ !== void 0)
200
200
  if (P)
@@ -209,8 +209,8 @@ function gl() {
209
209
  else m($);
210
210
  if (I.call(W, "key")) {
211
211
  $ = e(S);
212
- var V = Object.keys(W).filter(function(te) {
213
- return te !== "key";
212
+ var V = Object.keys(W).filter(function(H) {
213
+ return H !== "key";
214
214
  });
215
215
  P = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", F[$ + P] || (V = 0 < V.length ? "{" + V.join(": ..., ") + ": ...}" : "{}", console.error(
216
216
  `A props object containing a "key" prop is being spread into JSX:
@@ -225,18 +225,18 @@ React keys must be passed directly to JSX without using spread:
225
225
  $
226
226
  ), F[$ + P] = !0);
227
227
  }
228
- if ($ = null, H !== void 0 && (r(H), $ = "" + H), a(W) && (r(W.key), $ = "" + W.key), "key" in W) {
229
- H = {};
230
- for (var K in W)
231
- K !== "key" && (H[K] = W[K]);
232
- } else H = W;
228
+ if ($ = null, Y !== void 0 && (r(Y), $ = "" + Y), a(W) && (r(W.key), $ = "" + W.key), "key" in W) {
229
+ Y = {};
230
+ for (var X in W)
231
+ X !== "key" && (Y[X] = W[X]);
232
+ } else Y = W;
233
233
  return $ && c(
234
- H,
234
+ Y,
235
235
  typeof S == "function" ? S.displayName || S.name || "Unknown" : S
236
236
  ), f(
237
237
  S,
238
238
  $,
239
- H,
239
+ Y,
240
240
  o(),
241
241
  G,
242
242
  A
@@ -256,28 +256,28 @@ React keys must be passed directly to JSX without using spread:
256
256
  return S();
257
257
  }
258
258
  };
259
- var Y, J = {}, ne = h.react_stack_bottom_frame.bind(
259
+ var q, Q = {}, re = h.react_stack_bottom_frame.bind(
260
260
  h,
261
261
  s
262
262
  )(), se = N(n(s)), F = {};
263
- Mr.Fragment = x, Mr.jsx = function(S, W, H) {
263
+ Mr.Fragment = x, Mr.jsx = function(S, W, Y) {
264
264
  var P = 1e4 > u.recentlyCreatedOwnerStacks++;
265
265
  return d(
266
266
  S,
267
267
  W,
268
- H,
268
+ Y,
269
269
  !1,
270
- P ? Error("react-stack-top-frame") : ne,
270
+ P ? Error("react-stack-top-frame") : re,
271
271
  P ? N(n(S)) : se
272
272
  );
273
- }, Mr.jsxs = function(S, W, H) {
273
+ }, Mr.jsxs = function(S, W, Y) {
274
274
  var P = 1e4 > u.recentlyCreatedOwnerStacks++;
275
275
  return d(
276
276
  S,
277
277
  W,
278
- H,
278
+ Y,
279
279
  !0,
280
- P ? Error("react-stack-top-frame") : ne,
280
+ P ? Error("react-stack-top-frame") : re,
281
281
  P ? N(n(S)) : se
282
282
  );
283
283
  };
@@ -288,7 +288,7 @@ function yl() {
288
288
  return qs || (qs = 1, process.env.NODE_ENV === "production" ? fn.exports = ml() : fn.exports = gl()), fn.exports;
289
289
  }
290
290
  var i = yl();
291
- async function _e(e, t = !1) {
291
+ async function $e(e, t = !1) {
292
292
  try {
293
293
  const r = await fetch(e);
294
294
  if (!r.ok) {
@@ -318,7 +318,7 @@ async function _e(e, t = !1) {
318
318
  }
319
319
  }
320
320
  const An = async ({ url: e, setter: t, debug: r = !1 }) => {
321
- const n = await _e(e, r);
321
+ const n = await $e(e, r);
322
322
  if (n.ok)
323
323
  t(n.json);
324
324
  else
@@ -419,9 +419,9 @@ function xa({
419
419
  /* @__PURE__ */ i.jsx(os, { children: /* @__PURE__ */ i.jsx("b", { children: z("components:header:internet_question_label", n.current) }) }),
420
420
  /* @__PURE__ */ i.jsx(ss, { children: /* @__PURE__ */ i.jsx(ua, { children: /* @__PURE__ */ i.jsx(ue, { children: z("components:header:internet_question", n.current) }) }) }),
421
421
  /* @__PURE__ */ i.jsxs(Qr, { children: [
422
- /* @__PURE__ */ i.jsx(wt, { onClick: a, children: z("components:header:cancel", n.current) }),
422
+ /* @__PURE__ */ i.jsx(at, { onClick: a, children: z("components:header:cancel", n.current) }),
423
423
  /* @__PURE__ */ i.jsx(
424
- wt,
424
+ at,
425
425
  {
426
426
  onClick: () => {
427
427
  c(), r(!1);
@@ -522,16 +522,16 @@ var Hs;
522
522
  function vl() {
523
523
  return Hs || (Hs = 1, process.env.NODE_ENV !== "production" && (function() {
524
524
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
525
- function w(U) {
526
- return typeof U == "string" || typeof U == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
527
- U === n || U === f || U === s || U === o || U === m || U === y || typeof U == "object" && U !== null && (U.$$typeof === b || U.$$typeof === h || U.$$typeof === a || U.$$typeof === c || U.$$typeof === d || U.$$typeof === x || U.$$typeof === k || U.$$typeof === C || U.$$typeof === p);
528
- }
529
- function _(U) {
530
- if (typeof U == "object" && U !== null) {
531
- var Ee = U.$$typeof;
532
- switch (Ee) {
525
+ function w(K) {
526
+ return typeof K == "string" || typeof K == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
527
+ K === n || K === f || K === s || K === o || K === m || K === y || typeof K == "object" && K !== null && (K.$$typeof === b || K.$$typeof === h || K.$$typeof === a || K.$$typeof === c || K.$$typeof === d || K.$$typeof === x || K.$$typeof === k || K.$$typeof === C || K.$$typeof === p);
528
+ }
529
+ function _(K) {
530
+ if (typeof K == "object" && K !== null) {
531
+ var Re = K.$$typeof;
532
+ switch (Re) {
533
533
  case t:
534
- var Be = U.type;
534
+ var Be = K.type;
535
535
  switch (Be) {
536
536
  case l:
537
537
  case f:
@@ -541,64 +541,64 @@ function vl() {
541
541
  case m:
542
542
  return Be;
543
543
  default:
544
- var dt = Be && Be.$$typeof;
545
- switch (dt) {
544
+ var ft = Be && Be.$$typeof;
545
+ switch (ft) {
546
546
  case c:
547
547
  case d:
548
548
  case b:
549
549
  case h:
550
550
  case a:
551
- return dt;
551
+ return ft;
552
552
  default:
553
- return Ee;
553
+ return Re;
554
554
  }
555
555
  }
556
556
  case r:
557
- return Ee;
557
+ return Re;
558
558
  }
559
559
  }
560
560
  }
561
- var T = l, R = f, E = c, j = a, M = t, L = d, v = n, u = b, I = h, O = r, N = s, Y = o, J = m, ne = !1;
562
- function se(U) {
563
- return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(U) || _(U) === l;
561
+ var T = l, R = f, E = c, j = a, M = t, L = d, v = n, u = b, I = h, O = r, N = s, q = o, Q = m, re = !1;
562
+ function se(K) {
563
+ return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(K) || _(K) === l;
564
564
  }
565
- function F(U) {
566
- return _(U) === f;
565
+ function F(K) {
566
+ return _(K) === f;
567
567
  }
568
- function S(U) {
569
- return _(U) === c;
568
+ function S(K) {
569
+ return _(K) === c;
570
570
  }
571
- function W(U) {
572
- return _(U) === a;
571
+ function W(K) {
572
+ return _(K) === a;
573
573
  }
574
- function H(U) {
575
- return typeof U == "object" && U !== null && U.$$typeof === t;
574
+ function Y(K) {
575
+ return typeof K == "object" && K !== null && K.$$typeof === t;
576
576
  }
577
- function P(U) {
578
- return _(U) === d;
577
+ function P(K) {
578
+ return _(K) === d;
579
579
  }
580
- function G(U) {
581
- return _(U) === n;
580
+ function G(K) {
581
+ return _(K) === n;
582
582
  }
583
- function A(U) {
584
- return _(U) === b;
583
+ function A(K) {
584
+ return _(K) === b;
585
585
  }
586
- function $(U) {
587
- return _(U) === h;
586
+ function $(K) {
587
+ return _(K) === h;
588
588
  }
589
- function V(U) {
590
- return _(U) === r;
589
+ function V(K) {
590
+ return _(K) === r;
591
591
  }
592
- function K(U) {
593
- return _(U) === s;
592
+ function X(K) {
593
+ return _(K) === s;
594
594
  }
595
- function te(U) {
596
- return _(U) === o;
595
+ function H(K) {
596
+ return _(K) === o;
597
597
  }
598
- function Z(U) {
599
- return _(U) === m;
598
+ function ne(K) {
599
+ return _(K) === m;
600
600
  }
601
- me.AsyncMode = T, me.ConcurrentMode = R, me.ContextConsumer = E, me.ContextProvider = j, me.Element = M, me.ForwardRef = L, me.Fragment = v, me.Lazy = u, me.Memo = I, me.Portal = O, me.Profiler = N, me.StrictMode = Y, me.Suspense = J, me.isAsyncMode = se, me.isConcurrentMode = F, me.isContextConsumer = S, me.isContextProvider = W, me.isElement = H, me.isForwardRef = P, me.isFragment = G, me.isLazy = A, me.isMemo = $, me.isPortal = V, me.isProfiler = K, me.isStrictMode = te, me.isSuspense = Z, me.isValidElementType = w, me.typeOf = _;
601
+ me.AsyncMode = T, me.ConcurrentMode = R, me.ContextConsumer = E, me.ContextProvider = j, me.Element = M, me.ForwardRef = L, me.Fragment = v, me.Lazy = u, me.Memo = I, me.Portal = O, me.Profiler = N, me.StrictMode = q, me.Suspense = Q, me.isAsyncMode = se, me.isConcurrentMode = F, me.isContextConsumer = S, me.isContextProvider = W, me.isElement = Y, me.isForwardRef = P, me.isFragment = G, me.isLazy = A, me.isMemo = $, me.isPortal = V, me.isProfiler = X, me.isStrictMode = H, me.isSuspense = ne, me.isValidElementType = w, me.typeOf = _;
602
602
  })()), me;
603
603
  }
604
604
  var Ks;
@@ -771,33 +771,33 @@ function Sl() {
771
771
  function x(F) {
772
772
  if (process.env.NODE_ENV !== "production")
773
773
  var S = {}, W = 0;
774
- function H(G, A, $, V, K, te, Z) {
775
- if (V = V || y, te = te || $, Z !== r) {
774
+ function Y(G, A, $, V, X, H, ne) {
775
+ if (V = V || y, H = H || $, ne !== r) {
776
776
  if (l) {
777
- var U = new Error(
777
+ var K = new Error(
778
778
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
779
779
  );
780
- throw U.name = "Invariant Violation", U;
780
+ throw K.name = "Invariant Violation", K;
781
781
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
782
- var Ee = V + ":" + $;
783
- !S[Ee] && // Avoid spamming the console because they are often not actionable except for lib authors
782
+ var Re = V + ":" + $;
783
+ !S[Re] && // Avoid spamming the console because they are often not actionable except for lib authors
784
784
  W < 3 && (s(
785
- "You are manually calling a React.PropTypes validation function for the `" + te + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
786
- ), S[Ee] = !0, W++);
785
+ "You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
786
+ ), S[Re] = !0, W++);
787
787
  }
788
788
  }
789
- return A[$] == null ? G ? A[$] === null ? new p("The " + K + " `" + te + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new p("The " + K + " `" + te + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : F(A, $, V, K, te);
789
+ return A[$] == null ? G ? A[$] === null ? new p("The " + X + " `" + H + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new p("The " + X + " `" + H + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : F(A, $, V, X, H);
790
790
  }
791
- var P = H.bind(null, !1);
792
- return P.isRequired = H.bind(null, !0), P;
791
+ var P = Y.bind(null, !1);
792
+ return P.isRequired = Y.bind(null, !0), P;
793
793
  }
794
794
  function k(F) {
795
- function S(W, H, P, G, A, $) {
796
- var V = W[H], K = Y(V);
797
- if (K !== F) {
798
- var te = J(V);
795
+ function S(W, Y, P, G, A, $) {
796
+ var V = W[Y], X = q(V);
797
+ if (X !== F) {
798
+ var H = Q(V);
799
799
  return new p(
800
- "Invalid " + G + " `" + A + "` of type " + ("`" + te + "` supplied to `" + P + "`, expected ") + ("`" + F + "`."),
800
+ "Invalid " + G + " `" + A + "` of type " + ("`" + H + "` supplied to `" + P + "`, expected ") + ("`" + F + "`."),
801
801
  { expectedType: F }
802
802
  );
803
803
  }
@@ -809,49 +809,49 @@ function Sl() {
809
809
  return x(a);
810
810
  }
811
811
  function w(F) {
812
- function S(W, H, P, G, A) {
812
+ function S(W, Y, P, G, A) {
813
813
  if (typeof F != "function")
814
814
  return new p("Property `" + A + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
815
- var $ = W[H];
815
+ var $ = W[Y];
816
816
  if (!Array.isArray($)) {
817
- var V = Y($);
817
+ var V = q($);
818
818
  return new p("Invalid " + G + " `" + A + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected an array."));
819
819
  }
820
- for (var K = 0; K < $.length; K++) {
821
- var te = F($, K, P, G, A + "[" + K + "]", r);
822
- if (te instanceof Error)
823
- return te;
820
+ for (var X = 0; X < $.length; X++) {
821
+ var H = F($, X, P, G, A + "[" + X + "]", r);
822
+ if (H instanceof Error)
823
+ return H;
824
824
  }
825
825
  return null;
826
826
  }
827
827
  return x(S);
828
828
  }
829
829
  function _() {
830
- function F(S, W, H, P, G) {
830
+ function F(S, W, Y, P, G) {
831
831
  var A = S[W];
832
832
  if (!c(A)) {
833
- var $ = Y(A);
834
- return new p("Invalid " + P + " `" + G + "` of type " + ("`" + $ + "` supplied to `" + H + "`, expected a single ReactElement."));
833
+ var $ = q(A);
834
+ return new p("Invalid " + P + " `" + G + "` of type " + ("`" + $ + "` supplied to `" + Y + "`, expected a single ReactElement."));
835
835
  }
836
836
  return null;
837
837
  }
838
838
  return x(F);
839
839
  }
840
840
  function T() {
841
- function F(S, W, H, P, G) {
841
+ function F(S, W, Y, P, G) {
842
842
  var A = S[W];
843
843
  if (!e.isValidElementType(A)) {
844
- var $ = Y(A);
845
- return new p("Invalid " + P + " `" + G + "` of type " + ("`" + $ + "` supplied to `" + H + "`, expected a single ReactElement type."));
844
+ var $ = q(A);
845
+ return new p("Invalid " + P + " `" + G + "` of type " + ("`" + $ + "` supplied to `" + Y + "`, expected a single ReactElement type."));
846
846
  }
847
847
  return null;
848
848
  }
849
849
  return x(F);
850
850
  }
851
851
  function R(F) {
852
- function S(W, H, P, G, A) {
853
- if (!(W[H] instanceof F)) {
854
- var $ = F.name || y, V = se(W[H]);
852
+ function S(W, Y, P, G, A) {
853
+ if (!(W[Y] instanceof F)) {
854
+ var $ = F.name || y, V = se(W[Y]);
855
855
  return new p("Invalid " + G + " `" + A + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected ") + ("instance of `" + $ + "`."));
856
856
  }
857
857
  return null;
@@ -863,30 +863,30 @@ function Sl() {
863
863
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
864
864
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
865
865
  ) : s("Invalid argument supplied to oneOf, expected an array.")), a;
866
- function S(W, H, P, G, A) {
867
- for (var $ = W[H], V = 0; V < F.length; V++)
866
+ function S(W, Y, P, G, A) {
867
+ for (var $ = W[Y], V = 0; V < F.length; V++)
868
868
  if (b($, F[V]))
869
869
  return null;
870
- var K = JSON.stringify(F, function(Z, U) {
871
- var Ee = J(U);
872
- return Ee === "symbol" ? String(U) : U;
870
+ var X = JSON.stringify(F, function(ne, K) {
871
+ var Re = Q(K);
872
+ return Re === "symbol" ? String(K) : K;
873
873
  });
874
- return new p("Invalid " + G + " `" + A + "` of value `" + String($) + "` " + ("supplied to `" + P + "`, expected one of " + K + "."));
874
+ return new p("Invalid " + G + " `" + A + "` of value `" + String($) + "` " + ("supplied to `" + P + "`, expected one of " + X + "."));
875
875
  }
876
876
  return x(S);
877
877
  }
878
878
  function j(F) {
879
- function S(W, H, P, G, A) {
879
+ function S(W, Y, P, G, A) {
880
880
  if (typeof F != "function")
881
881
  return new p("Property `" + A + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
882
- var $ = W[H], V = Y($);
882
+ var $ = W[Y], V = q($);
883
883
  if (V !== "object")
884
884
  return new p("Invalid " + G + " `" + A + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected an object."));
885
- for (var K in $)
886
- if (n($, K)) {
887
- var te = F($, K, P, G, A + "." + K, r);
888
- if (te instanceof Error)
889
- return te;
885
+ for (var X in $)
886
+ if (n($, X)) {
887
+ var H = F($, X, P, G, A + "." + X, r);
888
+ if (H instanceof Error)
889
+ return H;
890
890
  }
891
891
  return null;
892
892
  }
@@ -899,67 +899,67 @@ function Sl() {
899
899
  var W = F[S];
900
900
  if (typeof W != "function")
901
901
  return s(
902
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(W) + " at index " + S + "."
902
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(W) + " at index " + S + "."
903
903
  ), a;
904
904
  }
905
- function H(P, G, A, $, V) {
906
- for (var K = [], te = 0; te < F.length; te++) {
907
- var Z = F[te], U = Z(P, G, A, $, V, r);
908
- if (U == null)
905
+ function Y(P, G, A, $, V) {
906
+ for (var X = [], H = 0; H < F.length; H++) {
907
+ var ne = F[H], K = ne(P, G, A, $, V, r);
908
+ if (K == null)
909
909
  return null;
910
- U.data && n(U.data, "expectedType") && K.push(U.data.expectedType);
910
+ K.data && n(K.data, "expectedType") && X.push(K.data.expectedType);
911
911
  }
912
- var Ee = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
913
- return new p("Invalid " + $ + " `" + V + "` supplied to " + ("`" + A + "`" + Ee + "."));
912
+ var Re = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
913
+ return new p("Invalid " + $ + " `" + V + "` supplied to " + ("`" + A + "`" + Re + "."));
914
914
  }
915
- return x(H);
915
+ return x(Y);
916
916
  }
917
917
  function L() {
918
- function F(S, W, H, P, G) {
919
- return O(S[W]) ? null : new p("Invalid " + P + " `" + G + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
918
+ function F(S, W, Y, P, G) {
919
+ return O(S[W]) ? null : new p("Invalid " + P + " `" + G + "` supplied to " + ("`" + Y + "`, expected a ReactNode."));
920
920
  }
921
921
  return x(F);
922
922
  }
923
- function v(F, S, W, H, P) {
923
+ function v(F, S, W, Y, P) {
924
924
  return new p(
925
- (F || "React class") + ": " + S + " type `" + W + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
925
+ (F || "React class") + ": " + S + " type `" + W + "." + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
926
926
  );
927
927
  }
928
928
  function u(F) {
929
- function S(W, H, P, G, A) {
930
- var $ = W[H], V = Y($);
929
+ function S(W, Y, P, G, A) {
930
+ var $ = W[Y], V = q($);
931
931
  if (V !== "object")
932
932
  return new p("Invalid " + G + " `" + A + "` of type `" + V + "` " + ("supplied to `" + P + "`, expected `object`."));
933
- for (var K in F) {
934
- var te = F[K];
935
- if (typeof te != "function")
936
- return v(P, G, A, K, J(te));
937
- var Z = te($, K, P, G, A + "." + K, r);
938
- if (Z)
939
- return Z;
933
+ for (var X in F) {
934
+ var H = F[X];
935
+ if (typeof H != "function")
936
+ return v(P, G, A, X, Q(H));
937
+ var ne = H($, X, P, G, A + "." + X, r);
938
+ if (ne)
939
+ return ne;
940
940
  }
941
941
  return null;
942
942
  }
943
943
  return x(S);
944
944
  }
945
945
  function I(F) {
946
- function S(W, H, P, G, A) {
947
- var $ = W[H], V = Y($);
946
+ function S(W, Y, P, G, A) {
947
+ var $ = W[Y], V = q($);
948
948
  if (V !== "object")
949
949
  return new p("Invalid " + G + " `" + A + "` of type `" + V + "` " + ("supplied to `" + P + "`, expected `object`."));
950
- var K = t({}, W[H], F);
951
- for (var te in K) {
952
- var Z = F[te];
953
- if (n(F, te) && typeof Z != "function")
954
- return v(P, G, A, te, J(Z));
955
- if (!Z)
950
+ var X = t({}, W[Y], F);
951
+ for (var H in X) {
952
+ var ne = F[H];
953
+ if (n(F, H) && typeof ne != "function")
954
+ return v(P, G, A, H, Q(ne));
955
+ if (!ne)
956
956
  return new p(
957
- "Invalid " + G + " `" + A + "` key `" + te + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(W[H], null, " ") + `
957
+ "Invalid " + G + " `" + A + "` key `" + H + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(W[Y], null, " ") + `
958
958
  Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
959
959
  );
960
- var U = Z($, te, P, G, A + "." + te, r);
961
- if (U)
962
- return U;
960
+ var K = ne($, H, P, G, A + "." + H, r);
961
+ if (K)
962
+ return K;
963
963
  }
964
964
  return null;
965
965
  }
@@ -980,14 +980,14 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
980
980
  return !0;
981
981
  var S = m(F);
982
982
  if (S) {
983
- var W = S.call(F), H;
983
+ var W = S.call(F), Y;
984
984
  if (S !== F.entries) {
985
- for (; !(H = W.next()).done; )
986
- if (!O(H.value))
985
+ for (; !(Y = W.next()).done; )
986
+ if (!O(Y.value))
987
987
  return !1;
988
988
  } else
989
- for (; !(H = W.next()).done; ) {
990
- var P = H.value;
989
+ for (; !(Y = W.next()).done; ) {
990
+ var P = Y.value;
991
991
  if (P && !O(P[1]))
992
992
  return !1;
993
993
  }
@@ -1001,14 +1001,14 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
1001
1001
  function N(F, S) {
1002
1002
  return F === "symbol" ? !0 : S ? S["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && S instanceof Symbol : !1;
1003
1003
  }
1004
- function Y(F) {
1004
+ function q(F) {
1005
1005
  var S = typeof F;
1006
1006
  return Array.isArray(F) ? "array" : F instanceof RegExp ? "object" : N(S, F) ? "symbol" : S;
1007
1007
  }
1008
- function J(F) {
1008
+ function Q(F) {
1009
1009
  if (typeof F > "u" || F === null)
1010
1010
  return "" + F;
1011
- var S = Y(F);
1011
+ var S = q(F);
1012
1012
  if (S === "object") {
1013
1013
  if (F instanceof Date)
1014
1014
  return "date";
@@ -1017,8 +1017,8 @@ Valid keys: ` + JSON.stringify(Object.keys(F), null, " ")
1017
1017
  }
1018
1018
  return S;
1019
1019
  }
1020
- function ne(F) {
1021
- var S = J(F);
1020
+ function re(F) {
1021
+ var S = Q(F);
1022
1022
  switch (S) {
1023
1023
  case "array":
1024
1024
  case "object":
@@ -1415,7 +1415,7 @@ function ka(e) {
1415
1415
  t[r] = ka(e[r]);
1416
1416
  }), t;
1417
1417
  }
1418
- function ct(e, t, r = {
1418
+ function lt(e, t, r = {
1419
1419
  clone: !0
1420
1420
  }) {
1421
1421
  const n = r.clone ? {
@@ -1423,7 +1423,7 @@ function ct(e, t, r = {
1423
1423
  } : e;
1424
1424
  return Ot(e) && Ot(t) && Object.keys(t).forEach((o) => {
1425
1425
  /* @__PURE__ */ B.isValidElement(t[o]) || Wr.isValidElementType(t[o]) ? n[o] = t[o] : Ot(t[o]) && // Avoid prototype pollution
1426
- Object.prototype.hasOwnProperty.call(e, o) && Ot(e[o]) ? n[o] = ct(e[o], t[o], r) : r.clone ? n[o] = Ot(t[o]) ? ka(t[o]) : t[o] : n[o] = t[o];
1426
+ Object.prototype.hasOwnProperty.call(e, o) && Ot(e[o]) ? n[o] = lt(e[o], t[o], r) : r.clone ? n[o] = Ot(t[o]) ? ka(t[o]) : t[o] : n[o] = t[o];
1427
1427
  }), n;
1428
1428
  }
1429
1429
  const ii = /min-width:\s*([0-9.]+)/;
@@ -1650,7 +1650,7 @@ function li(e, t, r = void 0) {
1650
1650
  }
1651
1651
  return o;
1652
1652
  }
1653
- function Re(e) {
1653
+ function _e(e) {
1654
1654
  const {
1655
1655
  prop: t,
1656
1656
  cssProperty: r = e.prop,
@@ -1763,14 +1763,14 @@ function eo(...e) {
1763
1763
  function st(e) {
1764
1764
  return typeof e != "number" ? e : `${e}px solid`;
1765
1765
  }
1766
- function ut(e, t) {
1767
- return Re({
1766
+ function dt(e, t) {
1767
+ return _e({
1768
1768
  prop: e,
1769
1769
  themeKey: "borders",
1770
1770
  transform: t
1771
1771
  });
1772
1772
  }
1773
- const Xl = ut("border", st), Jl = ut("borderTop", st), Ql = ut("borderRight", st), Zl = ut("borderBottom", st), eu = ut("borderLeft", st), tu = ut("borderColor"), ru = ut("borderTopColor"), nu = ut("borderRightColor"), ou = ut("borderBottomColor"), su = ut("borderLeftColor"), iu = ut("outline", st), au = ut("outlineColor"), to = (e) => {
1773
+ const Xl = dt("border", st), Jl = dt("borderTop", st), Ql = dt("borderRight", st), Zl = dt("borderBottom", st), eu = dt("borderLeft", st), tu = dt("borderColor"), ru = dt("borderTopColor"), nu = dt("borderRightColor"), ou = dt("borderBottomColor"), su = dt("borderLeftColor"), iu = dt("outline", st), au = dt("outlineColor"), to = (e) => {
1774
1774
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1775
1775
  const t = rn(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
1776
1776
  borderRadius: nn(t, n)
@@ -1823,39 +1823,39 @@ oo.propTypes = process.env.NODE_ENV !== "production" ? {
1823
1823
  rowGap: Xt
1824
1824
  } : {};
1825
1825
  oo.filterProps = ["rowGap"];
1826
- const cu = Re({
1826
+ const cu = _e({
1827
1827
  prop: "gridColumn"
1828
- }), lu = Re({
1828
+ }), lu = _e({
1829
1829
  prop: "gridRow"
1830
- }), uu = Re({
1830
+ }), uu = _e({
1831
1831
  prop: "gridAutoFlow"
1832
- }), du = Re({
1832
+ }), du = _e({
1833
1833
  prop: "gridAutoColumns"
1834
- }), fu = Re({
1834
+ }), fu = _e({
1835
1835
  prop: "gridAutoRows"
1836
- }), pu = Re({
1836
+ }), pu = _e({
1837
1837
  prop: "gridTemplateColumns"
1838
- }), hu = Re({
1838
+ }), hu = _e({
1839
1839
  prop: "gridTemplateRows"
1840
- }), mu = Re({
1840
+ }), mu = _e({
1841
1841
  prop: "gridTemplateAreas"
1842
- }), gu = Re({
1842
+ }), gu = _e({
1843
1843
  prop: "gridArea"
1844
1844
  });
1845
1845
  eo(ro, no, oo, cu, lu, uu, du, fu, pu, hu, mu, gu);
1846
1846
  function yr(e, t) {
1847
1847
  return t === "grey" ? t : e;
1848
1848
  }
1849
- const yu = Re({
1849
+ const yu = _e({
1850
1850
  prop: "color",
1851
1851
  themeKey: "palette",
1852
1852
  transform: yr
1853
- }), bu = Re({
1853
+ }), bu = _e({
1854
1854
  prop: "bgcolor",
1855
1855
  cssProperty: "backgroundColor",
1856
1856
  themeKey: "palette",
1857
1857
  transform: yr
1858
- }), xu = Re({
1858
+ }), xu = _e({
1859
1859
  prop: "backgroundColor",
1860
1860
  themeKey: "palette",
1861
1861
  transform: yr
@@ -1865,7 +1865,7 @@ const vu = Gn;
1865
1865
  function Ze(e) {
1866
1866
  return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1867
1867
  }
1868
- const Cu = Re({
1868
+ const Cu = _e({
1869
1869
  prop: "width",
1870
1870
  transform: Ze
1871
1871
  }), ms = (e) => {
@@ -1886,30 +1886,30 @@ const Cu = Re({
1886
1886
  return null;
1887
1887
  };
1888
1888
  ms.filterProps = ["maxWidth"];
1889
- const wu = Re({
1889
+ const wu = _e({
1890
1890
  prop: "minWidth",
1891
1891
  transform: Ze
1892
- }), Su = Re({
1892
+ }), Su = _e({
1893
1893
  prop: "height",
1894
1894
  transform: Ze
1895
- }), ku = Re({
1895
+ }), ku = _e({
1896
1896
  prop: "maxHeight",
1897
1897
  transform: Ze
1898
- }), ju = Re({
1898
+ }), ju = _e({
1899
1899
  prop: "minHeight",
1900
1900
  transform: Ze
1901
1901
  });
1902
- Re({
1902
+ _e({
1903
1903
  prop: "size",
1904
1904
  cssProperty: "width",
1905
1905
  transform: Ze
1906
1906
  });
1907
- Re({
1907
+ _e({
1908
1908
  prop: "size",
1909
1909
  cssProperty: "height",
1910
1910
  transform: Ze
1911
1911
  });
1912
- const Tu = Re({
1912
+ const Tu = _e({
1913
1913
  prop: "boxSizing"
1914
1914
  });
1915
1915
  eo(Cu, ms, wu, Su, ku, ju, Tu);
@@ -2536,7 +2536,7 @@ function ze(e, t) {
2536
2536
  function qr(e, t, r) {
2537
2537
  return e.slice(t, r);
2538
2538
  }
2539
- function bt(e) {
2539
+ function xt(e) {
2540
2540
  return e.length;
2541
2541
  }
2542
2542
  function bs(e) {
@@ -2564,7 +2564,7 @@ function Ku() {
2564
2564
  function et() {
2565
2565
  return Me = Qe < Ia ? ze(Er, Qe++) : 0, wr++, Me === 10 && (wr = 1, ao++), Me;
2566
2566
  }
2567
- function Ct() {
2567
+ function wt() {
2568
2568
  return ze(Er, Qe);
2569
2569
  }
2570
2570
  function kn() {
@@ -2612,7 +2612,7 @@ function Yr(e) {
2612
2612
  return 0;
2613
2613
  }
2614
2614
  function Ma(e) {
2615
- return ao = wr = 1, Ia = bt(Er = e), Qe = 0, [];
2615
+ return ao = wr = 1, Ia = xt(Er = e), Qe = 0, [];
2616
2616
  }
2617
2617
  function Aa(e) {
2618
2618
  return Er = "", e;
@@ -2621,14 +2621,14 @@ function jn(e) {
2621
2621
  return Pa(on(Qe - 1, Vo(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2622
2622
  }
2623
2623
  function Gu(e) {
2624
- for (; (Me = Ct()) && Me < 33; )
2624
+ for (; (Me = wt()) && Me < 33; )
2625
2625
  et();
2626
2626
  return Yr(e) > 2 || Yr(Me) > 3 ? "" : " ";
2627
2627
  }
2628
2628
  function Xu(e, t) {
2629
2629
  for (; --t && et() && !(Me < 48 || Me > 102 || Me > 57 && Me < 65 || Me > 70 && Me < 97); )
2630
2630
  ;
2631
- return on(e, kn() + (t < 6 && Ct() == 32 && et() == 32));
2631
+ return on(e, kn() + (t < 6 && wt() == 32 && et() == 32));
2632
2632
  }
2633
2633
  function Vo(e) {
2634
2634
  for (; et(); )
@@ -2654,12 +2654,12 @@ function Vo(e) {
2654
2654
  }
2655
2655
  function Ju(e, t) {
2656
2656
  for (; et() && e + Me !== 57; )
2657
- if (e + Me === 84 && Ct() === 47)
2657
+ if (e + Me === 84 && wt() === 47)
2658
2658
  break;
2659
2659
  return "/*" + on(t, Qe - 1) + "*" + io(e === 47 ? e : et());
2660
2660
  }
2661
2661
  function Qu(e) {
2662
- for (; !Yr(Ct()); )
2662
+ for (; !Yr(wt()); )
2663
2663
  et();
2664
2664
  return on(e, Qe);
2665
2665
  }
@@ -2694,7 +2694,7 @@ function Tn(e, t, r, n, o, s, a, c, l) {
2694
2694
  continue;
2695
2695
  // /
2696
2696
  case 47:
2697
- switch (Ct()) {
2697
+ switch (wt()) {
2698
2698
  case 42:
2699
2699
  case 47:
2700
2700
  gn(ed(Ju(et(), kn()), t, r), l);
@@ -2705,7 +2705,7 @@ function Tn(e, t, r, n, o, s, a, c, l) {
2705
2705
  break;
2706
2706
  // {
2707
2707
  case 123 * p:
2708
- c[f++] = bt(E) * k;
2708
+ c[f++] = xt(E) * k;
2709
2709
  // } ; \0
2710
2710
  case 125 * p:
2711
2711
  case 59:
@@ -2717,7 +2717,7 @@ function Tn(e, t, r, n, o, s, a, c, l) {
2717
2717
  x = 0;
2718
2718
  // ;
2719
2719
  case 59 + d:
2720
- k == -1 && (E = pe(E, /\f/g, "")), h > 0 && bt(E) - m && gn(h > 32 ? bi(E + ";", n, r, m - 1) : bi(pe(E, " ", "") + ";", n, r, m - 2), l);
2720
+ k == -1 && (E = pe(E, /\f/g, "")), h > 0 && xt(E) - m && gn(h > 32 ? bi(E + ";", n, r, m - 1) : bi(pe(E, " ", "") + ";", n, r, m - 2), l);
2721
2721
  break;
2722
2722
  // @ ;
2723
2723
  case 59:
@@ -2744,7 +2744,7 @@ function Tn(e, t, r, n, o, s, a, c, l) {
2744
2744
  break;
2745
2745
  // :
2746
2746
  case 58:
2747
- m = 1 + bt(E), h = b;
2747
+ m = 1 + xt(E), h = b;
2748
2748
  default:
2749
2749
  if (p < 1) {
2750
2750
  if (C == 123)
@@ -2759,15 +2759,15 @@ function Tn(e, t, r, n, o, s, a, c, l) {
2759
2759
  break;
2760
2760
  // ,
2761
2761
  case 44:
2762
- c[f++] = (bt(E) - 1) * k, k = 1;
2762
+ c[f++] = (xt(E) - 1) * k, k = 1;
2763
2763
  break;
2764
2764
  // @
2765
2765
  case 64:
2766
- Ct() === 45 && (E += jn(et())), y = Ct(), d = m = bt(w = E += Qu(kn())), C++;
2766
+ wt() === 45 && (E += jn(et())), y = wt(), d = m = xt(w = E += Qu(kn())), C++;
2767
2767
  break;
2768
2768
  // -
2769
2769
  case 45:
2770
- b === 45 && bt(E) == 2 && (p = 0);
2770
+ b === 45 && xt(E) == 2 && (p = 0);
2771
2771
  }
2772
2772
  }
2773
2773
  return s;
@@ -2803,7 +2803,7 @@ function td(e, t, r, n) {
2803
2803
  case gs:
2804
2804
  e.value = e.props.join(",");
2805
2805
  }
2806
- return bt(r = br(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
2806
+ return xt(r = br(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
2807
2807
  }
2808
2808
  function rd(e) {
2809
2809
  var t = bs(e);
@@ -2819,7 +2819,7 @@ function nd(e) {
2819
2819
  };
2820
2820
  }
2821
2821
  var od = function(t, r, n) {
2822
- for (var o = 0, s = 0; o = s, s = Ct(), o === 38 && s === 12 && (r[n] = 1), !Yr(s); )
2822
+ for (var o = 0, s = 0; o = s, s = wt(), o === 38 && s === 12 && (r[n] = 1), !Yr(s); )
2823
2823
  et();
2824
2824
  return on(t, Qe);
2825
2825
  }, sd = function(t, r) {
@@ -2827,14 +2827,14 @@ var od = function(t, r, n) {
2827
2827
  do
2828
2828
  switch (Yr(o)) {
2829
2829
  case 0:
2830
- o === 38 && Ct() === 12 && (r[n] = 1), t[n] += od(Qe - 1, r, n);
2830
+ o === 38 && wt() === 12 && (r[n] = 1), t[n] += od(Qe - 1, r, n);
2831
2831
  break;
2832
2832
  case 2:
2833
2833
  t[n] += jn(o);
2834
2834
  break;
2835
2835
  case 4:
2836
2836
  if (o === 44) {
2837
- t[++n] = Ct() === 58 ? "&\f" : "", r[n] = t[n].length;
2837
+ t[++n] = wt() === 58 ? "&\f" : "", r[n] = t[n].length;
2838
2838
  break;
2839
2839
  }
2840
2840
  // fallthrough
@@ -2965,7 +2965,7 @@ function Na(e, t) {
2965
2965
  case 5789:
2966
2966
  case 5021:
2967
2967
  case 4765:
2968
- if (bt(e) - 1 - t > 6) switch (ze(e, t + 1)) {
2968
+ if (xt(e) - 1 - t > 6) switch (ze(e, t + 1)) {
2969
2969
  // (m)ax-content, (m)in-content
2970
2970
  case 109:
2971
2971
  if (ze(e, t + 4) !== 45) break;
@@ -2982,7 +2982,7 @@ function Na(e, t) {
2982
2982
  if (ze(e, t + 1) !== 115) break;
2983
2983
  // display: (flex|inline-flex)
2984
2984
  case 6444:
2985
- switch (ze(e, bt(e) - 3 - (~Lo(e, "!important") && 10))) {
2985
+ switch (ze(e, xt(e) - 3 - (~Lo(e, "!important") && 10))) {
2986
2986
  // stic(k)y
2987
2987
  case 107:
2988
2988
  return pe(e, ":", ":" + de) + e;
@@ -3160,7 +3160,7 @@ function vs(e = {}, ...t) {
3160
3160
  shape: s = {},
3161
3161
  ...a
3162
3162
  } = e, c = Ta(r), l = Ba(o);
3163
- let f = ct({
3163
+ let f = lt({
3164
3164
  breakpoints: c,
3165
3165
  direction: "ltr",
3166
3166
  components: {},
@@ -3175,7 +3175,7 @@ function vs(e = {}, ...t) {
3175
3175
  ...s
3176
3176
  }
3177
3177
  }, a);
3178
- return f = zl(f), f.applyStyles = hd, f = t.reduce((d, m) => ct(d, m), f), f.unstable_sxConfig = {
3178
+ return f = zl(f), f.applyStyles = hd, f = t.reduce((d, m) => lt(d, m), f), f.unstable_sxConfig = {
3179
3179
  ...so,
3180
3180
  ...a == null ? void 0 : a.unstable_sxConfig
3181
3181
  }, f.unstable_sx = function(m) {
@@ -3433,17 +3433,17 @@ function kd(e = {}) {
3433
3433
  }, T = (...R) => {
3434
3434
  const E = [], j = R.map(_), M = [];
3435
3435
  if (E.push(s), f && h && M.push(function(I) {
3436
- var J, ne;
3437
- const N = (ne = (J = I.theme.components) == null ? void 0 : J[f]) == null ? void 0 : ne.styleOverrides;
3436
+ var Q, re;
3437
+ const N = (re = (Q = I.theme.components) == null ? void 0 : Q[f]) == null ? void 0 : re.styleOverrides;
3438
3438
  if (!N)
3439
3439
  return null;
3440
- const Y = {};
3440
+ const q = {};
3441
3441
  for (const se in N)
3442
- Y[se] = En(I, N[se], I.theme.modularCssLayers ? "theme" : void 0);
3443
- return h(I, Y);
3442
+ q[se] = En(I, N[se], I.theme.modularCssLayers ? "theme" : void 0);
3443
+ return h(I, q);
3444
3444
  }), f && !x && M.push(function(I) {
3445
- var Y, J;
3446
- const O = I.theme, N = (J = (Y = O == null ? void 0 : O.components) == null ? void 0 : Y[f]) == null ? void 0 : J.variants;
3445
+ var q, Q;
3446
+ const O = I.theme, N = (Q = (q = O == null ? void 0 : O.components) == null ? void 0 : q[f]) == null ? void 0 : Q.variants;
3447
3447
  return N ? Wa(I, N, [], I.theme.modularCssLayers ? "theme" : void 0) : null;
3448
3448
  }), k || M.push(sr), Array.isArray(j[0])) {
3449
3449
  const u = j.shift(), I = new Array(E.length).fill(""), O = new Array(M.length).fill("");
@@ -4095,45 +4095,45 @@ function Xd(e) {
4095
4095
  defaultMode: I = "system",
4096
4096
  forceThemeRerender: O = !1,
4097
4097
  noSsr: N
4098
- } = k, Y = B.useRef(!1), J = js(), ne = B.useContext(f), se = !!ne && !v, F = B.useMemo(() => w || (typeof r == "function" ? r() : r), [w]), S = F[t], W = S || F, {
4099
- colorSchemes: H = m,
4098
+ } = k, q = B.useRef(!1), Q = js(), re = B.useContext(f), se = !!re && !v, F = B.useMemo(() => w || (typeof r == "function" ? r() : r), [w]), S = F[t], W = S || F, {
4099
+ colorSchemes: Y = m,
4100
4100
  components: P = y,
4101
4101
  cssVarPrefix: G
4102
- } = W, A = Object.keys(H).filter((we) => !!H[we]).join(","), $ = B.useMemo(() => A.split(","), [A]), V = typeof a == "string" ? a : a.light, K = typeof a == "string" ? a : a.dark, te = H[V] && H[K] ? I : ((Bt = (Dt = H[W.defaultColorScheme]) == null ? void 0 : Dt.palette) == null ? void 0 : Bt.mode) || ((Ft = W.palette) == null ? void 0 : Ft.mode), {
4103
- mode: Z,
4104
- setMode: U,
4105
- systemMode: Ee,
4102
+ } = W, A = Object.keys(Y).filter((we) => !!Y[we]).join(","), $ = B.useMemo(() => A.split(","), [A]), V = typeof a == "string" ? a : a.light, X = typeof a == "string" ? a : a.dark, H = Y[V] && Y[X] ? I : ((Bt = (Dt = Y[W.defaultColorScheme]) == null ? void 0 : Dt.palette) == null ? void 0 : Bt.mode) || ((Ft = W.palette) == null ? void 0 : Ft.mode), {
4103
+ mode: ne,
4104
+ setMode: K,
4105
+ systemMode: Re,
4106
4106
  lightColorScheme: Be,
4107
- darkColorScheme: dt,
4107
+ darkColorScheme: ft,
4108
4108
  colorScheme: Mt,
4109
4109
  setColorScheme: kt
4110
4110
  } = Kd({
4111
4111
  supportedColorSchemes: $,
4112
4112
  defaultLightColorScheme: V,
4113
- defaultDarkColorScheme: K,
4113
+ defaultDarkColorScheme: X,
4114
4114
  modeStorageKey: _,
4115
4115
  colorSchemeStorageKey: T,
4116
- defaultMode: te,
4116
+ defaultMode: H,
4117
4117
  storageManager: E,
4118
4118
  storageWindow: j,
4119
4119
  noSsr: N
4120
4120
  });
4121
- let jt = Z, Fe = Mt;
4122
- se && (jt = ne.mode, Fe = ne.colorScheme), process.env.NODE_ENV !== "production" && O && !W.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
4121
+ let jt = ne, Fe = Mt;
4122
+ se && (jt = re.mode, Fe = re.colorScheme), process.env.NODE_ENV !== "production" && O && !W.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
4123
4123
  `));
4124
- let ht = Fe || W.defaultColorScheme;
4125
- W.vars && !O && (ht = W.defaultColorScheme);
4124
+ let mt = Fe || W.defaultColorScheme;
4125
+ W.vars && !O && (mt = W.defaultColorScheme);
4126
4126
  const rt = B.useMemo(() => {
4127
4127
  var Ge;
4128
4128
  const we = ((Ge = W.generateThemeVars) == null ? void 0 : Ge.call(W)) || W.vars, ve = {
4129
4129
  ...W,
4130
4130
  components: P,
4131
- colorSchemes: H,
4131
+ colorSchemes: Y,
4132
4132
  cssVarPrefix: G,
4133
4133
  vars: we
4134
4134
  };
4135
- if (typeof ve.generateSpacing == "function" && (ve.spacing = ve.generateSpacing()), ht) {
4136
- const Ue = H[ht];
4135
+ if (typeof ve.generateSpacing == "function" && (ve.spacing = ve.generateSpacing()), mt) {
4136
+ const Ue = Y[mt];
4137
4137
  Ue && typeof Ue == "object" && Object.keys(Ue).forEach((le) => {
4138
4138
  Ue[le] && typeof Ue[le] == "object" ? ve[le] = {
4139
4139
  ...ve[le],
@@ -4142,7 +4142,7 @@ function Xd(e) {
4142
4142
  });
4143
4143
  }
4144
4144
  return c ? c(ve) : ve;
4145
- }, [W, ht, P, H, G]), nt = W.colorSchemeSelector;
4145
+ }, [W, mt, P, Y, G]), nt = W.colorSchemeSelector;
4146
4146
  Sr(() => {
4147
4147
  if (Fe && L && nt && nt !== "media") {
4148
4148
  const we = nt;
@@ -4162,7 +4162,7 @@ function Xd(e) {
4162
4162
  }
4163
4163
  }, [Fe, nt, L, $]), B.useEffect(() => {
4164
4164
  let we;
4165
- if (R && Y.current && M) {
4165
+ if (R && q.current && M) {
4166
4166
  const ve = M.createElement("style");
4167
4167
  ve.appendChild(M.createTextNode(Gd)), M.head.appendChild(ve), window.getComputedStyle(M.body), we = setTimeout(() => {
4168
4168
  M.head.removeChild(ve);
@@ -4171,24 +4171,24 @@ function Xd(e) {
4171
4171
  return () => {
4172
4172
  clearTimeout(we);
4173
4173
  };
4174
- }, [Fe, R, M]), B.useEffect(() => (Y.current = !0, () => {
4175
- Y.current = !1;
4174
+ }, [Fe, R, M]), B.useEffect(() => (q.current = !0, () => {
4175
+ q.current = !1;
4176
4176
  }), []);
4177
4177
  const Zt = B.useMemo(() => ({
4178
4178
  allColorSchemes: $,
4179
4179
  colorScheme: Fe,
4180
- darkColorScheme: dt,
4180
+ darkColorScheme: ft,
4181
4181
  lightColorScheme: Be,
4182
4182
  mode: jt,
4183
4183
  setColorScheme: kt,
4184
- setMode: process.env.NODE_ENV === "production" ? U : (we) => {
4184
+ setMode: process.env.NODE_ENV === "production" ? K : (we) => {
4185
4185
  rt.colorSchemeSelector === "media" && console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).", "To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.", "To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
4186
- `)), U(we);
4186
+ `)), K(we);
4187
4187
  },
4188
- systemMode: Ee
4189
- }), [$, Fe, dt, Be, jt, kt, U, Ee, rt.colorSchemeSelector]);
4188
+ systemMode: Re
4189
+ }), [$, Fe, ft, Be, jt, kt, K, Re, rt.colorSchemeSelector]);
4190
4190
  let At = !0;
4191
- (u || W.cssVariables === !1 || se && (J == null ? void 0 : J.cssVarPrefix) === G) && (At = !1);
4191
+ (u || W.cssVariables === !1 || se && (Q == null ? void 0 : Q.cssVarPrefix) === G) && (At = !1);
4192
4192
  const Nt = /* @__PURE__ */ i.jsxs(B.Fragment, {
4193
4193
  children: [/* @__PURE__ */ i.jsx(Hr, {
4194
4194
  themeId: S ? t : void 0,
@@ -4355,7 +4355,7 @@ function tf(e, t = {}) {
4355
4355
  css: E,
4356
4356
  varsWithDefaults: j
4357
4357
  } = Po(T, t);
4358
- h = ct(h, j), b[_] = {
4358
+ h = lt(h, j), b[_] = {
4359
4359
  css: E,
4360
4360
  vars: R
4361
4361
  };
@@ -4365,7 +4365,7 @@ function tf(e, t = {}) {
4365
4365
  vars: T,
4366
4366
  varsWithDefaults: R
4367
4367
  } = Po(p, t);
4368
- h = ct(h, R), b[l] = {
4368
+ h = lt(h, R), b[l] = {
4369
4369
  css: _,
4370
4370
  vars: T
4371
4371
  };
@@ -4394,7 +4394,7 @@ function tf(e, t = {}) {
4394
4394
  return Object.entries(b).forEach(([, {
4395
4395
  vars: T
4396
4396
  }]) => {
4397
- _ = ct(_, T);
4397
+ _ = lt(_, T);
4398
4398
  }), _;
4399
4399
  },
4400
4400
  generateStyleSheets: () => {
@@ -4430,8 +4430,8 @@ function tf(e, t = {}) {
4430
4430
  return Object.entries(j).forEach(([v, {
4431
4431
  css: u
4432
4432
  }]) => {
4433
- var N, Y;
4434
- const I = (Y = (N = a[v]) == null ? void 0 : N.palette) == null ? void 0 : Y.mode, O = !n && I ? {
4433
+ var N, q;
4434
+ const I = (q = (N = a[v]) == null ? void 0 : N.palette) == null ? void 0 : q.mode, O = !n && I ? {
4435
4435
  colorScheme: I,
4436
4436
  ...u
4437
4437
  } : {
@@ -4711,7 +4711,7 @@ const theme2 = createTheme({ palette: {
4711
4711
  return o ? (Ii(o, x, "light", w, n), Ii(o, x, "dark", _, n)) : (Pi(x, "light", w, n), Pi(x, "dark", _, n)), x.contrastText || (x.contrastText = y(x.main)), x;
4712
4712
  };
4713
4713
  let b;
4714
- return t === "light" ? b = Za() : t === "dark" && (b = tc()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), ct({
4714
+ return t === "light" ? b = Za() : t === "dark" && (b = tc()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), lt({
4715
4715
  // A collection of common colors.
4716
4716
  common: {
4717
4717
  ...Kr
@@ -4853,7 +4853,7 @@ function rc(e, t) {
4853
4853
  letterSpacing: "inherit"
4854
4854
  }
4855
4855
  };
4856
- return ct({
4856
+ return lt({
4857
4857
  htmlFontSize: l,
4858
4858
  pxToRem: h,
4859
4859
  fontFamily: r,
@@ -5031,7 +5031,7 @@ function Uo(e = {}, ...t) {
5031
5031
  ...s,
5032
5032
  colorSpace: d
5033
5033
  }), h = vs(e);
5034
- let b = ct(h, {
5034
+ let b = lt(h, {
5035
5035
  mixins: pf(h.breakpoints, n),
5036
5036
  palette: y,
5037
5037
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
@@ -5043,7 +5043,7 @@ function Uo(e = {}, ...t) {
5043
5043
  ...Ef
5044
5044
  }
5045
5045
  });
5046
- if (b = ct(b, m), b = t.reduce((p, x) => ct(p, x), b), delete b.transitions.reducedMotion, process.env.NODE_ENV !== "production") {
5046
+ if (b = lt(b, m), b = t.reduce((p, x) => lt(p, x), b), delete b.transitions.reducedMotion, process.env.NODE_ENV !== "production") {
5047
5047
  const p = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], x = (k, C) => {
5048
5048
  let w;
5049
5049
  for (w in k) {
@@ -5182,7 +5182,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
5182
5182
  function Bf(e) {
5183
5183
  return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
5184
5184
  }
5185
- const mt = (e) => {
5185
+ const gt = (e) => {
5186
5186
  try {
5187
5187
  return e();
5188
5188
  } catch {
@@ -5269,32 +5269,32 @@ function Lf(e = {}, ...t) {
5269
5269
  };
5270
5270
  Object.keys(R.colorSchemes).forEach((v) => {
5271
5271
  const u = R.colorSchemes[v].palette, I = (N) => {
5272
- const Y = N.split("-"), J = Y[1], ne = Y[2];
5273
- return h(N, u[J][ne]);
5272
+ const q = N.split("-"), Q = q[1], re = q[2];
5273
+ return h(N, u[Q][re]);
5274
5274
  };
5275
5275
  u.mode === "light" && (D(u.common, "background", "#fff"), D(u.common, "onBackground", "#000")), u.mode === "dark" && (D(u.common, "background", "#000"), D(u.common, "onBackground", "#fff"));
5276
- function O(N, Y, J) {
5276
+ function O(N, q, Q) {
5277
5277
  if (_) {
5278
- let ne;
5279
- return N === er && (ne = `transparent ${((1 - J) * 100).toFixed(0)}%`), N === ge && (ne = `#000 ${(J * 100).toFixed(0)}%`), N === ye && (ne = `#fff ${(J * 100).toFixed(0)}%`), `color-mix(in ${_}, ${Y}, ${ne})`;
5278
+ let re;
5279
+ return N === er && (re = `transparent ${((1 - Q) * 100).toFixed(0)}%`), N === ge && (re = `#000 ${(Q * 100).toFixed(0)}%`), N === ye && (re = `#fff ${(Q * 100).toFixed(0)}%`), `color-mix(in ${_}, ${q}, ${re})`;
5280
5280
  }
5281
- return N(Y, J);
5281
+ return N(q, Q);
5282
5282
  }
5283
5283
  if (Df(u, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), u.mode === "light") {
5284
- D(u.Alert, "errorColor", O(ge, a ? h("palette-error-light") : u.error.light, 0.6)), D(u.Alert, "infoColor", O(ge, a ? h("palette-info-light") : u.info.light, 0.6)), D(u.Alert, "successColor", O(ge, a ? h("palette-success-light") : u.success.light, 0.6)), D(u.Alert, "warningColor", O(ge, a ? h("palette-warning-light") : u.warning.light, 0.6)), D(u.Alert, "errorFilledBg", I("palette-error-main")), D(u.Alert, "infoFilledBg", I("palette-info-main")), D(u.Alert, "successFilledBg", I("palette-success-main")), D(u.Alert, "warningFilledBg", I("palette-warning-main")), D(u.Alert, "errorFilledColor", mt(() => u.getContrastText(u.error.main))), D(u.Alert, "infoFilledColor", mt(() => u.getContrastText(u.info.main))), D(u.Alert, "successFilledColor", mt(() => u.getContrastText(u.success.main))), D(u.Alert, "warningFilledColor", mt(() => u.getContrastText(u.warning.main))), D(u.Alert, "errorStandardBg", O(ye, a ? h("palette-error-light") : u.error.light, 0.9)), D(u.Alert, "infoStandardBg", O(ye, a ? h("palette-info-light") : u.info.light, 0.9)), D(u.Alert, "successStandardBg", O(ye, a ? h("palette-success-light") : u.success.light, 0.9)), D(u.Alert, "warningStandardBg", O(ye, a ? h("palette-warning-light") : u.warning.light, 0.9)), D(u.Alert, "errorIconColor", I("palette-error-main")), D(u.Alert, "infoIconColor", I("palette-info-main")), D(u.Alert, "successIconColor", I("palette-success-main")), D(u.Alert, "warningIconColor", I("palette-warning-main")), D(u.AppBar, "defaultBg", I("palette-grey-100")), D(u.Avatar, "defaultBg", I("palette-grey-400")), D(u.Button, "inheritContainedBg", I("palette-grey-300")), D(u.Button, "inheritContainedHoverBg", I("palette-grey-A100")), D(u.Chip, "defaultBorder", I("palette-grey-400")), D(u.Chip, "defaultAvatarColor", I("palette-grey-700")), D(u.Chip, "defaultIconColor", I("palette-grey-700")), D(u.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), D(u.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), D(u.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), D(u.LinearProgress, "primaryBg", O(ye, a ? h("palette-primary-main") : u.primary.main, 0.62)), D(u.LinearProgress, "secondaryBg", O(ye, a ? h("palette-secondary-main") : u.secondary.main, 0.62)), D(u.LinearProgress, "errorBg", O(ye, a ? h("palette-error-main") : u.error.main, 0.62)), D(u.LinearProgress, "infoBg", O(ye, a ? h("palette-info-main") : u.info.main, 0.62)), D(u.LinearProgress, "successBg", O(ye, a ? h("palette-success-main") : u.success.main, 0.62)), D(u.LinearProgress, "warningBg", O(ye, a ? h("palette-warning-light") : u.warning.main, 0.62)), D(u.Skeleton, "bg", _ ? O(er, a ? h("palette-text-primary") : u.text.primary, 0.11) : `rgba(${I("palette-text-primaryChannel")} / 0.11)`), D(u.Slider, "primaryTrack", O(ye, a ? h("palette-primary-main") : u.primary.main, 0.62)), D(u.Slider, "secondaryTrack", O(ye, a ? h("palette-secondary-main") : u.secondary.main, 0.62)), D(u.Slider, "errorTrack", O(ye, a ? h("palette-error-main") : u.error.main, 0.62)), D(u.Slider, "infoTrack", O(ye, a ? h("palette-info-main") : u.info.main, 0.62)), D(u.Slider, "successTrack", O(ye, a ? h("palette-success-main") : u.success.main, 0.62)), D(u.Slider, "warningTrack", O(ye, a ? h("palette-warning-main") : u.warning.main, 0.62));
5284
+ D(u.Alert, "errorColor", O(ge, a ? h("palette-error-light") : u.error.light, 0.6)), D(u.Alert, "infoColor", O(ge, a ? h("palette-info-light") : u.info.light, 0.6)), D(u.Alert, "successColor", O(ge, a ? h("palette-success-light") : u.success.light, 0.6)), D(u.Alert, "warningColor", O(ge, a ? h("palette-warning-light") : u.warning.light, 0.6)), D(u.Alert, "errorFilledBg", I("palette-error-main")), D(u.Alert, "infoFilledBg", I("palette-info-main")), D(u.Alert, "successFilledBg", I("palette-success-main")), D(u.Alert, "warningFilledBg", I("palette-warning-main")), D(u.Alert, "errorFilledColor", gt(() => u.getContrastText(u.error.main))), D(u.Alert, "infoFilledColor", gt(() => u.getContrastText(u.info.main))), D(u.Alert, "successFilledColor", gt(() => u.getContrastText(u.success.main))), D(u.Alert, "warningFilledColor", gt(() => u.getContrastText(u.warning.main))), D(u.Alert, "errorStandardBg", O(ye, a ? h("palette-error-light") : u.error.light, 0.9)), D(u.Alert, "infoStandardBg", O(ye, a ? h("palette-info-light") : u.info.light, 0.9)), D(u.Alert, "successStandardBg", O(ye, a ? h("palette-success-light") : u.success.light, 0.9)), D(u.Alert, "warningStandardBg", O(ye, a ? h("palette-warning-light") : u.warning.light, 0.9)), D(u.Alert, "errorIconColor", I("palette-error-main")), D(u.Alert, "infoIconColor", I("palette-info-main")), D(u.Alert, "successIconColor", I("palette-success-main")), D(u.Alert, "warningIconColor", I("palette-warning-main")), D(u.AppBar, "defaultBg", I("palette-grey-100")), D(u.Avatar, "defaultBg", I("palette-grey-400")), D(u.Button, "inheritContainedBg", I("palette-grey-300")), D(u.Button, "inheritContainedHoverBg", I("palette-grey-A100")), D(u.Chip, "defaultBorder", I("palette-grey-400")), D(u.Chip, "defaultAvatarColor", I("palette-grey-700")), D(u.Chip, "defaultIconColor", I("palette-grey-700")), D(u.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), D(u.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), D(u.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), D(u.LinearProgress, "primaryBg", O(ye, a ? h("palette-primary-main") : u.primary.main, 0.62)), D(u.LinearProgress, "secondaryBg", O(ye, a ? h("palette-secondary-main") : u.secondary.main, 0.62)), D(u.LinearProgress, "errorBg", O(ye, a ? h("palette-error-main") : u.error.main, 0.62)), D(u.LinearProgress, "infoBg", O(ye, a ? h("palette-info-main") : u.info.main, 0.62)), D(u.LinearProgress, "successBg", O(ye, a ? h("palette-success-main") : u.success.main, 0.62)), D(u.LinearProgress, "warningBg", O(ye, a ? h("palette-warning-light") : u.warning.main, 0.62)), D(u.Skeleton, "bg", _ ? O(er, a ? h("palette-text-primary") : u.text.primary, 0.11) : `rgba(${I("palette-text-primaryChannel")} / 0.11)`), D(u.Slider, "primaryTrack", O(ye, a ? h("palette-primary-main") : u.primary.main, 0.62)), D(u.Slider, "secondaryTrack", O(ye, a ? h("palette-secondary-main") : u.secondary.main, 0.62)), D(u.Slider, "errorTrack", O(ye, a ? h("palette-error-main") : u.error.main, 0.62)), D(u.Slider, "infoTrack", O(ye, a ? h("palette-info-main") : u.info.main, 0.62)), D(u.Slider, "successTrack", O(ye, a ? h("palette-success-main") : u.success.main, 0.62)), D(u.Slider, "warningTrack", O(ye, a ? h("palette-warning-main") : u.warning.main, 0.62));
5285
5285
  const N = _ ? O(ge, a ? h("palette-background-default") : u.background.default, 0.6825) : yn(u.background.default, 0.8);
5286
- D(u.SnackbarContent, "bg", N), D(u.SnackbarContent, "color", mt(() => _ ? Wo.text.primary : u.getContrastText(N))), D(u.SpeedDialAction, "fabHoverBg", yn(u.background.paper, 0.15)), D(u.StepConnector, "border", I("palette-grey-400")), D(u.StepContent, "border", I("palette-grey-400")), D(u.Switch, "defaultColor", I("palette-common-white")), D(u.Switch, "defaultDisabledColor", I("palette-grey-100")), D(u.Switch, "primaryDisabledColor", O(ye, a ? h("palette-primary-main") : u.primary.main, 0.62)), D(u.Switch, "secondaryDisabledColor", O(ye, a ? h("palette-secondary-main") : u.secondary.main, 0.62)), D(u.Switch, "errorDisabledColor", O(ye, a ? h("palette-error-main") : u.error.main, 0.62)), D(u.Switch, "infoDisabledColor", O(ye, a ? h("palette-info-main") : u.info.main, 0.62)), D(u.Switch, "successDisabledColor", O(ye, a ? h("palette-success-main") : u.success.main, 0.62)), D(u.Switch, "warningDisabledColor", O(ye, a ? h("palette-warning-main") : u.warning.main, 0.62)), D(u.TableCell, "border", O(ye, er(a ? h("palette-divider") : u.divider, 1), 0.88)), D(u.Tooltip, "bg", O(er, a ? h("palette-grey-700") : u.grey[700], 0.92));
5286
+ D(u.SnackbarContent, "bg", N), D(u.SnackbarContent, "color", gt(() => _ ? Wo.text.primary : u.getContrastText(N))), D(u.SpeedDialAction, "fabHoverBg", yn(u.background.paper, 0.15)), D(u.StepConnector, "border", I("palette-grey-400")), D(u.StepContent, "border", I("palette-grey-400")), D(u.Switch, "defaultColor", I("palette-common-white")), D(u.Switch, "defaultDisabledColor", I("palette-grey-100")), D(u.Switch, "primaryDisabledColor", O(ye, a ? h("palette-primary-main") : u.primary.main, 0.62)), D(u.Switch, "secondaryDisabledColor", O(ye, a ? h("palette-secondary-main") : u.secondary.main, 0.62)), D(u.Switch, "errorDisabledColor", O(ye, a ? h("palette-error-main") : u.error.main, 0.62)), D(u.Switch, "infoDisabledColor", O(ye, a ? h("palette-info-main") : u.info.main, 0.62)), D(u.Switch, "successDisabledColor", O(ye, a ? h("palette-success-main") : u.success.main, 0.62)), D(u.Switch, "warningDisabledColor", O(ye, a ? h("palette-warning-main") : u.warning.main, 0.62)), D(u.TableCell, "border", O(ye, er(a ? h("palette-divider") : u.divider, 1), 0.88)), D(u.Tooltip, "bg", O(er, a ? h("palette-grey-700") : u.grey[700], 0.92));
5287
5287
  }
5288
5288
  if (u.mode === "dark") {
5289
- D(u.Alert, "errorColor", O(ye, a ? h("palette-error-light") : u.error.light, 0.6)), D(u.Alert, "infoColor", O(ye, a ? h("palette-info-light") : u.info.light, 0.6)), D(u.Alert, "successColor", O(ye, a ? h("palette-success-light") : u.success.light, 0.6)), D(u.Alert, "warningColor", O(ye, a ? h("palette-warning-light") : u.warning.light, 0.6)), D(u.Alert, "errorFilledBg", I("palette-error-dark")), D(u.Alert, "infoFilledBg", I("palette-info-dark")), D(u.Alert, "successFilledBg", I("palette-success-dark")), D(u.Alert, "warningFilledBg", I("palette-warning-dark")), D(u.Alert, "errorFilledColor", mt(() => u.getContrastText(u.error.dark))), D(u.Alert, "infoFilledColor", mt(() => u.getContrastText(u.info.dark))), D(u.Alert, "successFilledColor", mt(() => u.getContrastText(u.success.dark))), D(u.Alert, "warningFilledColor", mt(() => u.getContrastText(u.warning.dark))), D(u.Alert, "errorStandardBg", O(ge, a ? h("palette-error-light") : u.error.light, 0.9)), D(u.Alert, "infoStandardBg", O(ge, a ? h("palette-info-light") : u.info.light, 0.9)), D(u.Alert, "successStandardBg", O(ge, a ? h("palette-success-light") : u.success.light, 0.9)), D(u.Alert, "warningStandardBg", O(ge, a ? h("palette-warning-light") : u.warning.light, 0.9)), D(u.Alert, "errorIconColor", I("palette-error-main")), D(u.Alert, "infoIconColor", I("palette-info-main")), D(u.Alert, "successIconColor", I("palette-success-main")), D(u.Alert, "warningIconColor", I("palette-warning-main")), D(u.AppBar, "defaultBg", I("palette-grey-900")), D(u.AppBar, "darkBg", I("palette-background-paper")), D(u.AppBar, "darkColor", I("palette-text-primary")), D(u.Avatar, "defaultBg", I("palette-grey-600")), D(u.Button, "inheritContainedBg", I("palette-grey-800")), D(u.Button, "inheritContainedHoverBg", I("palette-grey-700")), D(u.Chip, "defaultBorder", I("palette-grey-700")), D(u.Chip, "defaultAvatarColor", I("palette-grey-300")), D(u.Chip, "defaultIconColor", I("palette-grey-300")), D(u.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), D(u.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), D(u.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), D(u.LinearProgress, "primaryBg", O(ge, a ? h("palette-primary-main") : u.primary.main, 0.5)), D(u.LinearProgress, "secondaryBg", O(ge, a ? h("palette-secondary-main") : u.secondary.main, 0.5)), D(u.LinearProgress, "errorBg", O(ge, a ? h("palette-error-main") : u.error.main, 0.5)), D(u.LinearProgress, "infoBg", O(ge, a ? h("palette-info-main") : u.info.main, 0.5)), D(u.LinearProgress, "successBg", O(ge, a ? h("palette-success-main") : u.success.main, 0.5)), D(u.LinearProgress, "warningBg", O(ge, a ? h("palette-warning-main") : u.warning.main, 0.5)), D(u.Skeleton, "bg", _ ? O(er, a ? h("palette-text-primary") : u.text.primary, 0.13) : `rgba(${I("palette-text-primaryChannel")} / 0.13)`), D(u.Slider, "primaryTrack", O(ge, a ? h("palette-primary-main") : u.primary.main, 0.5)), D(u.Slider, "secondaryTrack", O(ge, a ? h("palette-secondary-main") : u.secondary.main, 0.5)), D(u.Slider, "errorTrack", O(ge, a ? h("palette-error-main") : u.error.main, 0.5)), D(u.Slider, "infoTrack", O(ge, a ? h("palette-info-main") : u.info.main, 0.5)), D(u.Slider, "successTrack", O(ge, a ? h("palette-success-main") : u.success.main, 0.5)), D(u.Slider, "warningTrack", O(ge, a ? h("palette-warning-light") : u.warning.main, 0.5));
5289
+ D(u.Alert, "errorColor", O(ye, a ? h("palette-error-light") : u.error.light, 0.6)), D(u.Alert, "infoColor", O(ye, a ? h("palette-info-light") : u.info.light, 0.6)), D(u.Alert, "successColor", O(ye, a ? h("palette-success-light") : u.success.light, 0.6)), D(u.Alert, "warningColor", O(ye, a ? h("palette-warning-light") : u.warning.light, 0.6)), D(u.Alert, "errorFilledBg", I("palette-error-dark")), D(u.Alert, "infoFilledBg", I("palette-info-dark")), D(u.Alert, "successFilledBg", I("palette-success-dark")), D(u.Alert, "warningFilledBg", I("palette-warning-dark")), D(u.Alert, "errorFilledColor", gt(() => u.getContrastText(u.error.dark))), D(u.Alert, "infoFilledColor", gt(() => u.getContrastText(u.info.dark))), D(u.Alert, "successFilledColor", gt(() => u.getContrastText(u.success.dark))), D(u.Alert, "warningFilledColor", gt(() => u.getContrastText(u.warning.dark))), D(u.Alert, "errorStandardBg", O(ge, a ? h("palette-error-light") : u.error.light, 0.9)), D(u.Alert, "infoStandardBg", O(ge, a ? h("palette-info-light") : u.info.light, 0.9)), D(u.Alert, "successStandardBg", O(ge, a ? h("palette-success-light") : u.success.light, 0.9)), D(u.Alert, "warningStandardBg", O(ge, a ? h("palette-warning-light") : u.warning.light, 0.9)), D(u.Alert, "errorIconColor", I("palette-error-main")), D(u.Alert, "infoIconColor", I("palette-info-main")), D(u.Alert, "successIconColor", I("palette-success-main")), D(u.Alert, "warningIconColor", I("palette-warning-main")), D(u.AppBar, "defaultBg", I("palette-grey-900")), D(u.AppBar, "darkBg", I("palette-background-paper")), D(u.AppBar, "darkColor", I("palette-text-primary")), D(u.Avatar, "defaultBg", I("palette-grey-600")), D(u.Button, "inheritContainedBg", I("palette-grey-800")), D(u.Button, "inheritContainedHoverBg", I("palette-grey-700")), D(u.Chip, "defaultBorder", I("palette-grey-700")), D(u.Chip, "defaultAvatarColor", I("palette-grey-300")), D(u.Chip, "defaultIconColor", I("palette-grey-300")), D(u.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), D(u.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), D(u.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), D(u.LinearProgress, "primaryBg", O(ge, a ? h("palette-primary-main") : u.primary.main, 0.5)), D(u.LinearProgress, "secondaryBg", O(ge, a ? h("palette-secondary-main") : u.secondary.main, 0.5)), D(u.LinearProgress, "errorBg", O(ge, a ? h("palette-error-main") : u.error.main, 0.5)), D(u.LinearProgress, "infoBg", O(ge, a ? h("palette-info-main") : u.info.main, 0.5)), D(u.LinearProgress, "successBg", O(ge, a ? h("palette-success-main") : u.success.main, 0.5)), D(u.LinearProgress, "warningBg", O(ge, a ? h("palette-warning-main") : u.warning.main, 0.5)), D(u.Skeleton, "bg", _ ? O(er, a ? h("palette-text-primary") : u.text.primary, 0.13) : `rgba(${I("palette-text-primaryChannel")} / 0.13)`), D(u.Slider, "primaryTrack", O(ge, a ? h("palette-primary-main") : u.primary.main, 0.5)), D(u.Slider, "secondaryTrack", O(ge, a ? h("palette-secondary-main") : u.secondary.main, 0.5)), D(u.Slider, "errorTrack", O(ge, a ? h("palette-error-main") : u.error.main, 0.5)), D(u.Slider, "infoTrack", O(ge, a ? h("palette-info-main") : u.info.main, 0.5)), D(u.Slider, "successTrack", O(ge, a ? h("palette-success-main") : u.success.main, 0.5)), D(u.Slider, "warningTrack", O(ge, a ? h("palette-warning-light") : u.warning.main, 0.5));
5290
5290
  const N = _ ? O(ye, a ? h("palette-background-default") : u.background.default, 0.985) : yn(u.background.default, 0.98);
5291
- D(u.SnackbarContent, "bg", N), D(u.SnackbarContent, "color", mt(() => _ ? ec.text.primary : u.getContrastText(N))), D(u.SpeedDialAction, "fabHoverBg", yn(u.background.paper, 0.15)), D(u.StepConnector, "border", I("palette-grey-600")), D(u.StepContent, "border", I("palette-grey-600")), D(u.Switch, "defaultColor", I("palette-grey-300")), D(u.Switch, "defaultDisabledColor", I("palette-grey-600")), D(u.Switch, "primaryDisabledColor", O(ge, a ? h("palette-primary-main") : u.primary.main, 0.55)), D(u.Switch, "secondaryDisabledColor", O(ge, a ? h("palette-secondary-main") : u.secondary.main, 0.55)), D(u.Switch, "errorDisabledColor", O(ge, a ? h("palette-error-main") : u.error.main, 0.55)), D(u.Switch, "infoDisabledColor", O(ge, a ? h("palette-info-main") : u.info.main, 0.55)), D(u.Switch, "successDisabledColor", O(ge, a ? h("palette-success-main") : u.success.main, 0.55)), D(u.Switch, "warningDisabledColor", O(ge, a ? h("palette-warning-light") : u.warning.main, 0.55)), D(u.TableCell, "border", O(ge, er(a ? h("palette-divider") : u.divider, 1), 0.68)), D(u.Tooltip, "bg", O(er, a ? h("palette-grey-700") : u.grey[700], 0.92));
5291
+ D(u.SnackbarContent, "bg", N), D(u.SnackbarContent, "color", gt(() => _ ? ec.text.primary : u.getContrastText(N))), D(u.SpeedDialAction, "fabHoverBg", yn(u.background.paper, 0.15)), D(u.StepConnector, "border", I("palette-grey-600")), D(u.StepContent, "border", I("palette-grey-600")), D(u.Switch, "defaultColor", I("palette-grey-300")), D(u.Switch, "defaultDisabledColor", I("palette-grey-600")), D(u.Switch, "primaryDisabledColor", O(ge, a ? h("palette-primary-main") : u.primary.main, 0.55)), D(u.Switch, "secondaryDisabledColor", O(ge, a ? h("palette-secondary-main") : u.secondary.main, 0.55)), D(u.Switch, "errorDisabledColor", O(ge, a ? h("palette-error-main") : u.error.main, 0.55)), D(u.Switch, "infoDisabledColor", O(ge, a ? h("palette-info-main") : u.info.main, 0.55)), D(u.Switch, "successDisabledColor", O(ge, a ? h("palette-success-main") : u.success.main, 0.55)), D(u.Switch, "warningDisabledColor", O(ge, a ? h("palette-warning-light") : u.warning.main, 0.55)), D(u.TableCell, "border", O(ge, er(a ? h("palette-divider") : u.divider, 1), 0.68)), D(u.Tooltip, "bg", O(er, a ? h("palette-grey-700") : u.grey[700], 0.92));
5292
5292
  }
5293
5293
  a || (Tt(u.background, "default"), Tt(u.background, "paper"), Tt(u.common, "background"), Tt(u.common, "onBackground"), Tt(u, "divider")), Object.keys(u).forEach((N) => {
5294
- const Y = u[N];
5295
- N !== "tonalOffset" && !a && Y && typeof Y == "object" && (Y.main && D(u[N], "mainChannel", Dr(Br(Y.main))), Y.light && D(u[N], "lightChannel", Dr(Br(Y.light))), Y.dark && D(u[N], "darkChannel", Dr(Br(Y.dark))), Y.contrastText && D(u[N], "contrastTextChannel", Dr(Br(Y.contrastText))), N === "text" && (Tt(u[N], "primary"), Tt(u[N], "secondary")), N === "action" && (Y.active && Tt(u[N], "active"), Y.selected && Tt(u[N], "selected")));
5294
+ const q = u[N];
5295
+ N !== "tonalOffset" && !a && q && typeof q == "object" && (q.main && D(u[N], "mainChannel", Dr(Br(q.main))), q.light && D(u[N], "lightChannel", Dr(Br(q.light))), q.dark && D(u[N], "darkChannel", Dr(Br(q.dark))), q.contrastText && D(u[N], "contrastTextChannel", Dr(Br(q.contrastText))), N === "text" && (Tt(u[N], "primary"), Tt(u[N], "secondary")), N === "action" && (q.active && Tt(u[N], "active"), q.selected && Tt(u[N], "selected")));
5296
5296
  });
5297
- }), R = t.reduce((v, u) => ct(v, u), R);
5297
+ }), R = t.reduce((v, u) => lt(v, u), R);
5298
5298
  const E = {
5299
5299
  prefix: s,
5300
5300
  disableCssColorScheme: o,
@@ -5933,11 +5933,11 @@ const pp = tt("span", {
5933
5933
  rippleX: I,
5934
5934
  rippleY: O,
5935
5935
  rippleSize: N,
5936
- cb: Y
5937
- } = v, J = h.current;
5938
- h.current += 1, m((ne) => {
5939
- const se = [...ne.items, {
5940
- key: J,
5936
+ cb: q
5937
+ } = v, Q = h.current;
5938
+ h.current += 1, m((re) => {
5939
+ const se = [...re.items, {
5940
+ key: Q,
5941
5941
  pulsate: u,
5942
5942
  rippleX: I,
5943
5943
  rippleY: O,
@@ -5946,14 +5946,14 @@ const pp = tt("span", {
5946
5946
  }];
5947
5947
  return {
5948
5948
  items: se,
5949
- order: Mo(ne.order, se.filter((F) => !F.exiting).map((F) => F.key))
5949
+ order: Mo(re.order, se.filter((F) => !F.exiting).map((F) => F.key))
5950
5950
  };
5951
- }), b.current = Y;
5951
+ }), b.current = q;
5952
5952
  }), R = it((v = bn, u = bn, I = ap) => {
5953
5953
  const {
5954
5954
  pulsate: O = !1,
5955
5955
  center: N = a || u.pulsate,
5956
- fakeElement: Y = !1
5956
+ fakeElement: q = !1
5957
5957
  // Used only by tests.
5958
5958
  } = u;
5959
5959
  if ((v == null ? void 0 : v.type) === "mousedown" && x.current) {
@@ -5961,19 +5961,19 @@ const pp = tt("span", {
5961
5961
  return;
5962
5962
  }
5963
5963
  (v == null ? void 0 : v.type) === "touchstart" && (x.current = !0);
5964
- const J = Y ? null : w.current, {
5965
- rippleX: ne,
5964
+ const Q = q ? null : w.current, {
5965
+ rippleX: re,
5966
5966
  rippleY: se,
5967
5967
  rippleSize: F
5968
5968
  } = cp({
5969
5969
  event: v,
5970
- element: J,
5970
+ element: Q,
5971
5971
  center: N
5972
5972
  });
5973
5973
  v != null && v.touches ? C.current === null && (C.current = () => {
5974
5974
  T({
5975
5975
  pulsate: O,
5976
- rippleX: ne,
5976
+ rippleX: re,
5977
5977
  rippleY: se,
5978
5978
  rippleSize: F,
5979
5979
  cb: I
@@ -5982,7 +5982,7 @@ const pp = tt("span", {
5982
5982
  C.current && (C.current(), C.current = null);
5983
5983
  })) : T({
5984
5984
  pulsate: O,
5985
- rippleX: ne,
5985
+ rippleX: re,
5986
5986
  rippleY: se,
5987
5987
  rippleSize: F,
5988
5988
  cb: I
@@ -5999,7 +5999,7 @@ const pp = tt("span", {
5999
5999
  return;
6000
6000
  }
6001
6001
  C.current = null, m((I) => {
6002
- const O = I.items.findIndex((Y) => !Y.exiting);
6002
+ const O = I.items.findIndex((q) => !q.exiting);
6003
6003
  if (O === -1)
6004
6004
  return I;
6005
6005
  const N = I.items.slice();
@@ -6008,7 +6008,7 @@ const pp = tt("span", {
6008
6008
  exiting: !0
6009
6009
  }, {
6010
6010
  items: N,
6011
- order: Mo(I.order, N.filter((Y) => !Y.exiting).map((Y) => Y.key))
6011
+ order: Mo(I.order, N.filter((q) => !q.exiting).map((q) => q.key))
6012
6012
  };
6013
6013
  }), b.current = u;
6014
6014
  });
@@ -6151,27 +6151,27 @@ const gp = Qt("MuiButtonBase", ["root", "disabled", "focusVisible"]), yp = (e) =
6151
6151
  onMouseUp: I,
6152
6152
  onTouchEnd: O,
6153
6153
  onTouchMove: N,
6154
- onTouchStart: Y,
6155
- tabIndex: J = 0,
6156
- TouchRippleProps: ne,
6154
+ onTouchStart: q,
6155
+ tabIndex: Q = 0,
6156
+ TouchRippleProps: re,
6157
6157
  touchRippleRef: se,
6158
6158
  type: F,
6159
6159
  ...S
6160
- } = n, W = !!(S.href || S.to), H = !!S.formAction;
6160
+ } = n, W = !!(S.href || S.to), Y = !!S.formAction;
6161
6161
  let P = l;
6162
6162
  P === "button" && W && (P = k);
6163
- const G = typeof P == "string" ? P === "button" : x ?? !1, A = C ?? G, $ = Hf(), V = qo($.ref, se), [K, te] = B.useState(!1);
6164
- (f || p) && K && te(!1);
6165
- const Z = it((le) => {
6166
- y && !le.repeat && K && le.key === " " && $.stop(le, () => {
6163
+ const G = typeof P == "string" ? P === "button" : x ?? !1, A = C ?? G, $ = Hf(), V = qo($.ref, se), [X, H] = B.useState(!1);
6164
+ (f || p) && X && H(!1);
6165
+ const ne = it((le) => {
6166
+ y && !le.repeat && X && le.key === " " && $.stop(le, () => {
6167
6167
  $.start(le);
6168
6168
  });
6169
- }), U = it((le) => {
6170
- y && le.key === " " && K && !le.defaultPrevented && $.stop(le, () => {
6169
+ }), K = it((le) => {
6170
+ y && le.key === " " && X && !le.defaultPrevented && $.stop(le, () => {
6171
6171
  $.pulsate(le);
6172
6172
  });
6173
6173
  }), {
6174
- getButtonProps: Ee,
6174
+ getButtonProps: Re,
6175
6175
  rootRef: Be
6176
6176
  } = Yf({
6177
6177
  nativeButton: A,
@@ -6180,37 +6180,37 @@ const gp = Qt("MuiButtonBase", ["root", "disabled", "focusVisible"]), yp = (e) =
6180
6180
  allowInferredHostMismatch: W || typeof P == "string",
6181
6181
  disabled: f,
6182
6182
  type: F,
6183
- hasFormAction: H,
6184
- tabIndex: J,
6185
- onBeforeKeyDown: Z,
6186
- onBeforeKeyUp: U
6183
+ hasFormAction: Y,
6184
+ tabIndex: Q,
6185
+ onBeforeKeyDown: ne,
6186
+ onBeforeKeyUp: K
6187
6187
  }), {
6188
- onClick: dt,
6188
+ onClick: ft,
6189
6189
  onKeyDown: Mt,
6190
6190
  onKeyUp: kt,
6191
6191
  ...jt
6192
- } = Ee({
6192
+ } = Re({
6193
6193
  onClick: _,
6194
6194
  onKeyDown: M,
6195
6195
  onKeyUp: L
6196
6196
  });
6197
6197
  B.useImperativeHandle(o, () => ({
6198
6198
  focusVisible: () => {
6199
- te(!0), Be.current.focus();
6199
+ H(!0), Be.current.focus();
6200
6200
  }
6201
6201
  }), [Be]);
6202
6202
  const Fe = $.shouldMount && !d && !f;
6203
6203
  B.useEffect(() => {
6204
- K && y && !d && $.pulsate();
6205
- }, [d, y, K, $]);
6206
- const ht = Et($, "start", v, m), rt = Et($, "stop", T, m), nt = Et($, "stop", R, m), Zt = Et($, "stop", I, m), At = Et($, "stop", (le) => {
6207
- K && le.preventDefault(), u && u(le);
6208
- }, m), Nt = Et($, "start", Y, m), Dt = Et($, "stop", O, m), Bt = Et($, "stop", N, m), Ft = Et($, "stop", (le) => {
6209
- ri(le.target) || te(!1), w && w(le);
6204
+ X && y && !d && $.pulsate();
6205
+ }, [d, y, X, $]);
6206
+ const mt = Et($, "start", v, m), rt = Et($, "stop", T, m), nt = Et($, "stop", R, m), Zt = Et($, "stop", I, m), At = Et($, "stop", (le) => {
6207
+ X && le.preventDefault(), u && u(le);
6208
+ }, m), Nt = Et($, "start", q, m), Dt = Et($, "stop", O, m), Bt = Et($, "stop", N, m), Ft = Et($, "stop", (le) => {
6209
+ ri(le.target) || H(!1), w && w(le);
6210
6210
  }, !1), Lt = it((le) => {
6211
- Be.current || (Be.current = le.currentTarget), !p && ri(le.target) && (te(!0), j && j(le)), E && E(le);
6211
+ Be.current || (Be.current = le.currentTarget), !p && ri(le.target) && (H(!0), j && j(le)), E && E(le);
6212
6212
  }), we = {};
6213
- W && (we.tabIndex = f ? -1 : J, f && (we["aria-disabled"] = f), we.type = F);
6213
+ W && (we.tabIndex = f ? -1 : Q, f && (we["aria-disabled"] = f), we.type = F);
6214
6214
  const ve = qo(r, Be), Ge = {
6215
6215
  ...n,
6216
6216
  centerRipple: s,
@@ -6220,20 +6220,20 @@ const gp = Qt("MuiButtonBase", ["root", "disabled", "focusVisible"]), yp = (e) =
6220
6220
  disableTouchRipple: m,
6221
6221
  focusRipple: y,
6222
6222
  suppressFocusVisible: p,
6223
- tabIndex: J,
6224
- focusVisible: K
6223
+ tabIndex: Q,
6224
+ focusVisible: X
6225
6225
  }, Ue = yp(Ge);
6226
6226
  return /* @__PURE__ */ i.jsxs(bp, {
6227
6227
  as: P,
6228
6228
  className: Ve(Ue.root, c),
6229
6229
  ownerState: Ge,
6230
6230
  onBlur: Ft,
6231
- onClick: dt,
6231
+ onClick: ft,
6232
6232
  onContextMenu: rt,
6233
6233
  onFocus: Lt,
6234
6234
  onKeyDown: Mt,
6235
6235
  onKeyUp: kt,
6236
- onMouseDown: ht,
6236
+ onMouseDown: mt,
6237
6237
  onMouseLeave: At,
6238
6238
  onMouseUp: Zt,
6239
6239
  onDragLeave: nt,
@@ -6246,7 +6246,7 @@ const gp = Qt("MuiButtonBase", ["root", "disabled", "focusVisible"]), yp = (e) =
6246
6246
  children: [a, Fe ? /* @__PURE__ */ i.jsx(pc, {
6247
6247
  ref: V,
6248
6248
  center: s,
6249
- ...ne
6249
+ ...re
6250
6250
  }) : null]
6251
6251
  });
6252
6252
  });
@@ -6508,47 +6508,47 @@ function Ep(e) {
6508
6508
  }), E = it((u) => {
6509
6509
  l(u);
6510
6510
  }), j = B.useCallback((u) => C.current === u, []), M = B.useCallback((u, I, O, N) => {
6511
- var ne;
6512
- const Y = xn(h.current), J = mc(Y, u, I, O, N ?? s);
6513
- return J ? ((ne = J.element) == null || ne.focus(), l(J.id), J) : null;
6511
+ var re;
6512
+ const q = xn(h.current), Q = mc(q, u, I, O, N ?? s);
6513
+ return Q ? ((re = Q.element) == null || re.focus(), l(Q.id), Q) : null;
6514
6514
  }, [s]), L = B.useCallback((u, I, O) => ({
6515
- onFocus: (J) => {
6516
- I == null || I(J);
6517
- const ne = xn(h.current), se = xc(ne, J.target);
6518
- se !== -1 && l(ne[se].id);
6515
+ onFocus: (Q) => {
6516
+ I == null || I(Q);
6517
+ const re = xn(h.current), se = xc(re, Q.target);
6518
+ se !== -1 && l(re[se].id);
6519
6519
  },
6520
- onKeyDown: (J) => {
6521
- if (O == null || O(J), J.defaultPrevented || J.altKey || J.shiftKey || J.ctrlKey || J.metaKey || !Tp.includes(J.key))
6520
+ onKeyDown: (Q) => {
6521
+ if (O == null || O(Q), Q.defaultPrevented || Q.altKey || Q.shiftKey || Q.ctrlKey || Q.metaKey || !Tp.includes(Q.key))
6522
6522
  return;
6523
- let ne = n === "horizontal" ? "ArrowLeft" : "ArrowUp", se = n === "horizontal" ? "ArrowRight" : "ArrowDown";
6524
- n === "horizontal" && o && (ne = "ArrowRight", se = "ArrowLeft");
6523
+ let re = n === "horizontal" ? "ArrowLeft" : "ArrowUp", se = n === "horizontal" ? "ArrowRight" : "ArrowDown";
6524
+ n === "horizontal" && o && (re = "ArrowRight", se = "ArrowLeft");
6525
6525
  const F = xn(h.current), S = zi(Wi(y.current)), W = S === y.current;
6526
- let H = qi(F, S, C.current), P = "next";
6527
- switch (J.key) {
6528
- case ne:
6529
- P = "previous", J.preventDefault(), W && (H = F.length);
6526
+ let Y = qi(F, S, C.current), P = "next";
6527
+ switch (Q.key) {
6528
+ case re:
6529
+ P = "previous", Q.preventDefault(), W && (Y = F.length);
6530
6530
  break;
6531
6531
  case se:
6532
- J.preventDefault(), W && (H = -1);
6532
+ Q.preventDefault(), W && (Y = -1);
6533
6533
  break;
6534
6534
  case "Home":
6535
- J.preventDefault(), H = -1;
6535
+ Q.preventDefault(), Y = -1;
6536
6536
  break;
6537
6537
  case "End":
6538
- J.preventDefault(), P = "previous", H = F.length;
6538
+ Q.preventDefault(), P = "previous", Y = F.length;
6539
6539
  break;
6540
6540
  default:
6541
6541
  return;
6542
6542
  }
6543
- M(H, P, a);
6543
+ M(Y, P, a);
6544
6544
  },
6545
- ref: Ip(u, (J) => {
6546
- y.current = J;
6545
+ ref: Ip(u, (Q) => {
6546
+ y.current = Q;
6547
6547
  })
6548
6548
  }), [M, o, n, a]), v = B.useCallback((u) => {
6549
- var J;
6550
- const I = xn(h.current), O = zi(Wi(y.current)), Y = O === y.current ? -1 : qi(I, O, C.current);
6551
- return ((J = M(Y, "next", !0, u)) == null ? void 0 : J.id) ?? null;
6549
+ var Q;
6550
+ const I = xn(h.current), O = zi(Wi(y.current)), q = O === y.current ? -1 : qi(I, O, C.current);
6551
+ return ((Q = M(q, "next", !0, u)) == null ? void 0 : Q.id) ?? null;
6552
6552
  }, [M]);
6553
6553
  return B.useMemo(() => ({
6554
6554
  activeItemId: k,
@@ -7534,7 +7534,7 @@ const eh = Ce(/* @__PURE__ */ i.jsx("path", {
7534
7534
  d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
7535
7535
  }), "HelpOutlineOutlined");
7536
7536
  function th({ tooltipLabel: e }) {
7537
- return /* @__PURE__ */ i.jsx(is, { title: e, children: /* @__PURE__ */ i.jsx(at, { disableRipple: !0, sx: { color: "inherit" }, children: /* @__PURE__ */ i.jsx(eh, {}) }) });
7537
+ return /* @__PURE__ */ i.jsx(is, { title: e, children: /* @__PURE__ */ i.jsx(ct, { disableRipple: !0, sx: { color: "inherit" }, children: /* @__PURE__ */ i.jsx(eh, {}) }) });
7538
7538
  }
7539
7539
  function Cc({ title: e, color: t }) {
7540
7540
  return /* @__PURE__ */ i.jsx(th, { color: t, tooltipLabel: e });
@@ -7549,16 +7549,16 @@ function wc({
7549
7549
  debug: t = !1,
7550
7550
  isAndroid: r
7551
7551
  }) {
7552
- const { i18nRef: n } = ie(Te), [o, s] = X(!1), [a, c] = X(""), l = () => {
7552
+ const { i18nRef: n } = ie(Te), [o, s] = J(!1), [a, c] = J(""), l = () => {
7553
7553
  tn("/api/net/disable", t);
7554
7554
  }, f = (d, m) => {
7555
7555
  e ? l() : s(!0);
7556
7556
  };
7557
7557
  return ae(() => {
7558
- _e("/api/version").then((d) => d.json).then((d) => c(d.product_name)).catch((d) => console.error("Error :", d));
7558
+ $e("/api/version").then((d) => d.json).then((d) => c(d.product_name)).catch((d) => console.error("Error :", d));
7559
7559
  }, []), /* @__PURE__ */ i.jsxs(ee, { children: [
7560
7560
  /* @__PURE__ */ i.jsxs(
7561
- $e,
7561
+ Ee,
7562
7562
  {
7563
7563
  container: !0,
7564
7564
  spacing: 1,
@@ -7566,7 +7566,7 @@ function wc({
7566
7566
  alignItems: "center"
7567
7567
  },
7568
7568
  children: [
7569
- /* @__PURE__ */ i.jsx($e, { children: /* @__PURE__ */ i.jsxs(
7569
+ /* @__PURE__ */ i.jsx(Ee, { children: /* @__PURE__ */ i.jsxs(
7570
7570
  vc,
7571
7571
  {
7572
7572
  onChange: (d) => {
@@ -7652,7 +7652,7 @@ function wc({
7652
7652
  ]
7653
7653
  }
7654
7654
  ) }),
7655
- /* @__PURE__ */ i.jsx($e, { children: /* @__PURE__ */ i.jsx(
7655
+ /* @__PURE__ */ i.jsx(Ee, { children: /* @__PURE__ */ i.jsx(
7656
7656
  Cc,
7657
7657
  {
7658
7658
  title: z(
@@ -7681,10 +7681,10 @@ const Sc = Ce(/* @__PURE__ */ i.jsx("path", {
7681
7681
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
7682
7682
  }), "ExpandMore");
7683
7683
  function ug({ i18n: e, netEnabled: t, debug: r }) {
7684
- const [n, o] = X(!1), [s, a] = X(!1), [c, l] = X([]);
7684
+ const [n, o] = J(!1), [s, a] = J(!1), [c, l] = J([]);
7685
7685
  ae(() => {
7686
7686
  (async () => {
7687
- const m = await _e("/api/list-clients", r);
7687
+ const m = await $e("/api/list-clients", r);
7688
7688
  m.ok && l(
7689
7689
  m.json.filter(
7690
7690
  (y) => !y.exclude_from_menu && (r || !y.requires.debug)
@@ -7693,12 +7693,12 @@ function ug({ i18n: e, netEnabled: t, debug: r }) {
7693
7693
  })().then();
7694
7694
  }, [r]);
7695
7695
  const f = (d) => {
7696
- _e(`/api/debug/${r} ? "disable" : "enable"}`).then(() => {
7696
+ $e(`/api/debug/${r} ? "disable" : "enable"}`).then(() => {
7697
7697
  d.stopPropagation(), d.preventDefault();
7698
7698
  });
7699
7699
  };
7700
7700
  return /* @__PURE__ */ i.jsxs(ee, { sx: { m: 0, mr: 2 }, children: [
7701
- /* @__PURE__ */ i.jsx(at, { onClick: (d) => o(!0), children: /* @__PURE__ */ i.jsx(Sc, {}) }),
7701
+ /* @__PURE__ */ i.jsx(ct, { onClick: (d) => o(!0), children: /* @__PURE__ */ i.jsx(Sc, {}) }),
7702
7702
  /* @__PURE__ */ i.jsx(
7703
7703
  da,
7704
7704
  {
@@ -7898,7 +7898,7 @@ function ih(e) {
7898
7898
  return Jt("MuiCircularProgress", e);
7899
7899
  }
7900
7900
  Qt("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDisableShrink"]);
7901
- const ft = 44;
7901
+ const pt = 44;
7902
7902
  let Ki = !1, Gi = !1;
7903
7903
  const Xo = en`
7904
7904
  0% {
@@ -8078,7 +8078,7 @@ const Xo = en`
8078
8078
  enableTrackSlot: c
8079
8079
  }, w = lh(C), _ = {}, T = {}, R = {};
8080
8080
  if (b === "determinate") {
8081
- const E = 2 * Math.PI * ((ft - y) / 2);
8081
+ const E = 2 * Math.PI * ((pt - y) / 2);
8082
8082
  process.env.NODE_ENV !== "production" && !Gi && (h < x || h > k || x >= k) && (console.error(`MUI: The min, max, and value props in CircularProgress should be numbers where min < max and min <= value <= max. Received min=${x}, max=${k}, value=${h}.`), Gi = !0);
8083
8083
  const j = k - x;
8084
8084
  _.strokeDasharray = E.toFixed(3), _.strokeDashoffset = j > 0 ? `${((k - h) / j * E).toFixed(3)}px` : `${E.toFixed(3)}px`, T.transform = "rotate(-90deg)", R["aria-valuenow"] = h, R["aria-valuemin"] = x, R["aria-valuemax"] = k;
@@ -8099,13 +8099,13 @@ const Xo = en`
8099
8099
  children: /* @__PURE__ */ i.jsxs(dh, {
8100
8100
  className: w.svg,
8101
8101
  ownerState: C,
8102
- viewBox: `${ft / 2} ${ft / 2} ${ft} ${ft}`,
8102
+ viewBox: `${pt / 2} ${pt / 2} ${pt} ${pt}`,
8103
8103
  children: [c ? /* @__PURE__ */ i.jsx(ph, {
8104
8104
  className: w.track,
8105
8105
  ownerState: C,
8106
- cx: ft,
8107
- cy: ft,
8108
- r: (ft - y) / 2,
8106
+ cx: pt,
8107
+ cy: pt,
8108
+ r: (pt - y) / 2,
8109
8109
  fill: "none",
8110
8110
  strokeWidth: y,
8111
8111
  "aria-hidden": "true"
@@ -8113,9 +8113,9 @@ const Xo = en`
8113
8113
  className: w.circle,
8114
8114
  style: _,
8115
8115
  ownerState: C,
8116
- cx: ft,
8117
- cy: ft,
8118
- r: (ft - y) / 2,
8116
+ cx: pt,
8117
+ cy: pt,
8118
+ r: (pt - y) / 2,
8119
8119
  fill: "none",
8120
8120
  strokeWidth: y
8121
8121
  })]
@@ -8207,7 +8207,7 @@ function Un({
8207
8207
  sx: a
8208
8208
  }) {
8209
8209
  return /* @__PURE__ */ i.jsx(
8210
- wt,
8210
+ at,
8211
8211
  {
8212
8212
  onClick: t,
8213
8213
  disabled: r || o,
@@ -8290,7 +8290,7 @@ function jc(e) {
8290
8290
  checkboxSelection: y
8291
8291
  } = e, h = (E) => (j) => {
8292
8292
  a(j, E);
8293
- }, [b, p] = X(null), [x, k] = X(null), C = (E, j) => {
8293
+ }, [b, p] = J(null), [x, k] = J(null), C = (E, j) => {
8294
8294
  E.stopPropagation(), p(E.currentTarget), k(j);
8295
8295
  }, w = () => {
8296
8296
  p(null), k(null);
@@ -8343,7 +8343,7 @@ function jc(e) {
8343
8343
  }
8344
8344
  ),
8345
8345
  d && !E.numeric && /* @__PURE__ */ i.jsx(
8346
- at,
8346
+ ct,
8347
8347
  {
8348
8348
  size: "small",
8349
8349
  onClick: (j) => C(j, E.field),
@@ -8379,7 +8379,7 @@ function jc(e) {
8379
8379
  slotProps: {
8380
8380
  input: {
8381
8381
  endAdornment: x && l[x] && /* @__PURE__ */ i.jsx(
8382
- at,
8382
+ ct,
8383
8383
  {
8384
8384
  size: "small",
8385
8385
  onClick: (E) => {
@@ -8419,7 +8419,7 @@ function Tc(e) {
8419
8419
  tableTitle: o,
8420
8420
  groupOperations: s,
8421
8421
  dataRows: a
8422
- } = e, c = xt(() => {
8422
+ } = e, c = vt(() => {
8423
8423
  if (s && s.length > 0) {
8424
8424
  const l = {
8425
8425
  selectedIds: r,
@@ -8475,7 +8475,7 @@ function Tc(e) {
8475
8475
  /* @__PURE__ */ i.jsx(i.Fragment, { children: s && s.map((l, f) => {
8476
8476
  const d = l.icon, m = c[l.label];
8477
8477
  return /* @__PURE__ */ i.jsx(is, { title: l.label, children: /* @__PURE__ */ i.jsx(
8478
- at,
8478
+ ct,
8479
8479
  {
8480
8480
  onClick: m,
8481
8481
  disabled: t === 0,
@@ -8534,11 +8534,11 @@ function bh({
8534
8534
  preSelections: h
8535
8535
  }) {
8536
8536
  var P, G;
8537
- const [b, p] = X(
8537
+ const [b, p] = J(
8538
8538
  y != null && y.sorting ? (P = y == null ? void 0 : y.sorting) == null ? void 0 : P.order : "asc"
8539
- ), [x, k] = X(
8539
+ ), [x, k] = J(
8540
8540
  y != null && y.sorting ? (G = y == null ? void 0 : y.sorting) == null ? void 0 : G.field : "date"
8541
- ), [C, w] = X([]), [_, T] = X([]), R = f ? as : Jr.Fragment, E = f ? { theme: f } : {}, [j, M] = X(0), L = Ne(null), [v, u] = X(0), I = Ne(null);
8541
+ ), [C, w] = J([]), [_, T] = J([]), R = f ? as : Jr.Fragment, E = f ? { theme: f } : {}, [j, M] = J(0), L = Ne(null), [v, u] = J(0), I = Ne(null);
8542
8542
  ae(() => {
8543
8543
  if (!I.current) return;
8544
8544
  const A = new ResizeObserver(($) => {
@@ -8554,34 +8554,34 @@ function bh({
8554
8554
  });
8555
8555
  return A.observe(L.current), () => A.disconnect();
8556
8556
  }, [o]);
8557
- const [O, N] = X(() => {
8557
+ const [O, N] = J(() => {
8558
8558
  const A = {};
8559
8559
  return e.forEach(($) => {
8560
8560
  A[$.field] = "";
8561
8561
  }), A;
8562
- }), Y = (A, $) => {
8562
+ }), q = (A, $) => {
8563
8563
  p(x === $ && b === "asc" ? "desc" : "asc"), k($);
8564
8564
  };
8565
8565
  ae(() => {
8566
8566
  h && w(h);
8567
8567
  }, [h]);
8568
- const J = (A) => {
8569
- const $ = A.target.checked ? H.map((V) => V.id) : [];
8568
+ const Q = (A) => {
8569
+ const $ = A.target.checked ? Y.map((V) => V.id) : [];
8570
8570
  w($), d && d($);
8571
- }, ne = (A, $) => {
8571
+ }, re = (A, $) => {
8572
8572
  const V = C.indexOf($);
8573
- let K = [];
8574
- V === -1 ? K = K.concat(C, $) : V === 0 ? K = K.concat(C.slice(1)) : V === C.length - 1 ? K = K.concat(C.slice(0, -1)) : V > 0 && (K = K.concat(
8573
+ let X = [];
8574
+ V === -1 ? X = X.concat(C, $) : V === 0 ? X = X.concat(C.slice(1)) : V === C.length - 1 ? X = X.concat(C.slice(0, -1)) : V > 0 && (X = X.concat(
8575
8575
  C.slice(0, V),
8576
8576
  C.slice(V + 1)
8577
- )), w(K), d && d(K);
8577
+ )), w(X), d && d(X);
8578
8578
  }, se = () => {
8579
8579
  w([]), d && d([]);
8580
8580
  }, F = (A, $) => {
8581
8581
  N((V) => ({ ...V, [A]: $ }));
8582
8582
  }, S = (A) => {
8583
8583
  T(($) => $.includes(A) ? $.filter((V) => V !== A) : [...$, A]);
8584
- }, W = xt(() => {
8584
+ }, W = vt(() => {
8585
8585
  if (!o || _.length === 0)
8586
8586
  return () => !0;
8587
8587
  const A = _.map(($) => {
@@ -8589,7 +8589,7 @@ function bh({
8589
8589
  return V && typeof V.filter == "function" ? V.filter : (console.warn(`Invalid filter function found for index ${$}`), () => !1);
8590
8590
  });
8591
8591
  return ($) => A.some((V) => V($));
8592
- }, [_, o]), H = xt(
8592
+ }, [_, o]), Y = vt(
8593
8593
  () => [...t].filter((A) => {
8594
8594
  if (r && typeof r == "function" && !r(A) || !W(A))
8595
8595
  return !1;
@@ -8677,9 +8677,9 @@ function bh({
8677
8677
  numSelected: C.length,
8678
8678
  order: b,
8679
8679
  orderBy: x,
8680
- onSelectAllClick: J,
8681
- onRequestSort: Y,
8682
- rowCount: H.length,
8680
+ onSelectAllClick: Q,
8681
+ onRequestSort: q,
8682
+ rowCount: Y.length,
8683
8683
  columns: e,
8684
8684
  setColumnFilter: F,
8685
8685
  columnFilters: O,
@@ -8689,32 +8689,32 @@ function bh({
8689
8689
  }
8690
8690
  ),
8691
8691
  /* @__PURE__ */ i.jsxs(Jc, { sx: { verticalAlign: "top" }, children: [
8692
- H.map((A, $) => {
8692
+ Y.map((A, $) => {
8693
8693
  const V = C.includes(A.id);
8694
8694
  return /* @__PURE__ */ i.jsxs(
8695
8695
  Bo,
8696
8696
  {
8697
8697
  hover: !0,
8698
- onClick: (K) => {
8699
- (m || c) && ne(K, A.id);
8698
+ onClick: (X) => {
8699
+ (m || c) && re(X, A.id);
8700
8700
  },
8701
8701
  role: "checkbox",
8702
8702
  tabIndex: -1,
8703
8703
  selected: V,
8704
8704
  children: [
8705
8705
  (m || c) && /* @__PURE__ */ i.jsx(Lr, { padding: "checkbox", children: /* @__PURE__ */ i.jsx(xr, { color: "primary", checked: V }) }),
8706
- e.map((K) => /* @__PURE__ */ i.jsx(
8706
+ e.map((X) => /* @__PURE__ */ i.jsx(
8707
8707
  Lr,
8708
8708
  {
8709
- align: K.alignRight ? "right" : "left",
8709
+ align: X.alignRight ? "right" : "left",
8710
8710
  sx: { whiteSpace: "normal", wordBreak: "break-word" },
8711
- children: K.renderCell ? K.renderCell({
8711
+ children: X.renderCell ? X.renderCell({
8712
8712
  row: A,
8713
8713
  id: A.id,
8714
- field: K.field
8715
- }) : A[K.field]
8714
+ field: X.field
8715
+ }) : A[X.field]
8716
8716
  },
8717
- K.field
8717
+ X.field
8718
8718
  ))
8719
8719
  ]
8720
8720
  },
@@ -8768,7 +8768,7 @@ const Xi = Ce(/* @__PURE__ */ i.jsx("path", {
8768
8768
  }), "RadioButtonUnchecked"), Ph = Ce(/* @__PURE__ */ i.jsx("path", {
8769
8769
  d: "M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"
8770
8770
  }), "SaveAltOutlined"), Ih = async (e, t) => {
8771
- const r = await _e(
8771
+ const r = await $e(
8772
8772
  "/api/burrito/metadata/summaries",
8773
8773
  t.current
8774
8774
  );
@@ -8788,7 +8788,7 @@ function pg({
8788
8788
  onDownloadingChange: d,
8789
8789
  languageLookup: m = []
8790
8790
  }) {
8791
- const { i18nRef: y } = ie(Te), { debugRef: h } = ie(ar), [b, p] = X(0), x = Ne(0), [k, C] = X([]), [w, _] = X(null), [T, R] = X({}), [E, j] = X(!0), M = Ne(null), [L, v] = X(0), [u, I] = X(!1), { sourceWhitelist: O, filterExample: N, listMode: Y } = xt(() => {
8791
+ const { i18nRef: y } = ie(Te), { debugRef: h } = ie(ar), [b, p] = J(0), x = Ne(0), [k, C] = J([]), [w, _] = J(null), [T, R] = J({}), [E, j] = J(!0), M = Ne(null), [L, v] = J(0), [u, I] = J(!1), { sourceWhitelist: O, filterExample: N, listMode: q } = vt(() => {
8792
8792
  if (Array.isArray(r))
8793
8793
  return {
8794
8794
  listMode: !1,
@@ -8815,7 +8815,7 @@ function pg({
8815
8815
  sourceWhitelist: [],
8816
8816
  filterExample: []
8817
8817
  };
8818
- }, [r]), J = xt(() => Object.fromEntries(
8818
+ }, [r]), Q = vt(() => Object.fromEntries(
8819
8819
  m.map((P) => [P.id, P.endonym])
8820
8820
  ), [m]);
8821
8821
  ae(() => {
@@ -8828,7 +8828,7 @@ function pg({
8828
8828
  });
8829
8829
  return P.observe(M.current), () => P.disconnect();
8830
8830
  }, [N]);
8831
- const ne = xt(() => {
8831
+ const re = vt(() => {
8832
8832
  var P;
8833
8833
  return b !== null ? (P = N[b]) == null ? void 0 : P.filter : null;
8834
8834
  }, [b, N]);
@@ -8838,41 +8838,41 @@ function pg({
8838
8838
  const G = ++x.current;
8839
8839
  Ih(R, h);
8840
8840
  let A = [];
8841
- if (Y)
8841
+ if (q)
8842
8842
  for (let $ = 0; $ < O.length; $++) {
8843
- let V = O[$], K = V[0].split("/"), te;
8844
- if (e === "org" && (te = await _e(
8843
+ let V = O[$], X = V[0].split("/"), H;
8844
+ if (e === "org" && (H = await $e(
8845
8845
  `/api/gitea/remote-repos/${V[0]}`,
8846
8846
  h.current
8847
- )), e === "user" && (te = await _e(
8847
+ )), e === "user" && (H = await $e(
8848
8848
  `/api/gitea/user-remote-repos/${V[0]}`,
8849
8849
  h.current
8850
8850
  )), G !== x.current) return;
8851
- if (te.ok && te.json.length > 0)
8852
- if (Y) {
8853
- const Z = te.json.filter((U) => r[K[0]][K[1]].includes(U.name)).map((U) => ({ ...U, source: V[0] }));
8854
- A = [...A, ...Z];
8851
+ if (H.ok && H.json.length > 0)
8852
+ if (q) {
8853
+ const ne = H.json.filter((K) => r[X[0]][X[1]].includes(K.name)).map((K) => ({ ...K, source: V[0] }));
8854
+ A = [...A, ...ne];
8855
8855
  } else {
8856
- const Z = te.json.map((U) => ({ ...U, source: V[0] }));
8857
- A = [...A, ...Z];
8856
+ const ne = H.json.map((K) => ({ ...K, source: V[0] }));
8857
+ A = [...A, ...ne];
8858
8858
  }
8859
8859
  }
8860
8860
  else {
8861
- let $ = O[b], V = $[0].split("/"), K;
8862
- if (e === "org" && (K = await _e(
8861
+ let $ = O[b], V = $[0].split("/"), X;
8862
+ if (e === "org" && (X = await $e(
8863
8863
  `/api/gitea/remote-repos/${$[0]}`,
8864
8864
  h.current
8865
- )), e === "user" && (K = await _e(
8865
+ )), e === "user" && (X = await $e(
8866
8866
  `/api/gitea/user-remote-repos/${$[0]}`,
8867
8867
  h.current
8868
8868
  )), G !== x.current) return;
8869
- if (K.ok && K.json.length > 0)
8870
- if (Y) {
8871
- const te = K.json.filter((Z) => r[V[0]][V[1]].includes(Z.name)).map((Z) => ({ ...Z, source: $[0] }));
8872
- A = [...A, ...te];
8869
+ if (X.ok && X.json.length > 0)
8870
+ if (q) {
8871
+ const H = X.json.filter((ne) => r[V[0]][V[1]].includes(ne.name)).map((ne) => ({ ...ne, source: $[0] }));
8872
+ A = [...A, ...H];
8873
8873
  } else {
8874
- const te = K.json.map((Z) => ({ ...Z, source: $[0] }));
8875
- A = [...A, ...te];
8874
+ const H = X.json.map((ne) => ({ ...ne, source: $[0] }));
8875
+ A = [...A, ...H];
8876
8876
  }
8877
8877
  }
8878
8878
  A.length > 0 ? (j(!1), I(!1), C(A)) : (j(!1), I(!0), Rt(
@@ -8886,8 +8886,8 @@ function pg({
8886
8886
  const G = {};
8887
8887
  for (const A of k)
8888
8888
  if (T[`${A.source}/${A.name}`]) {
8889
- const V = T[`${A.source}/${A.name}`].timestamp, K = Date.parse(A.released) / 1e3;
8890
- G[`${A.source}/${A.name}`] = K - V > 0 ? "updatable" : "downloaded";
8889
+ const V = T[`${A.source}/${A.name}`].timestamp, X = Date.parse(A.released) / 1e3;
8890
+ G[`${A.source}/${A.name}`] = X - V > 0 ? "updatable" : "downloaded";
8891
8891
  } else
8892
8892
  G[`${A.source}/${A.name}`] = "notDownloaded";
8893
8893
  _(G);
@@ -8932,7 +8932,7 @@ function pg({
8932
8932
  },
8933
8933
  // eslint-disable-next-line react-hooks/exhaustive-deps
8934
8934
  []
8935
- ), F = xt(
8935
+ ), F = vt(
8936
8936
  () => [
8937
8937
  {
8938
8938
  field: "resourceCode",
@@ -8977,34 +8977,34 @@ function pg({
8977
8977
  flex: 0.5,
8978
8978
  minWidth: 120,
8979
8979
  renderCell: (P) => {
8980
- const G = `${P.row.source}/${P.row.name}`, A = w == null ? void 0 : w[G], $ = A === "updatable", V = A === "downloading", K = A === "downloaded" || !A;
8980
+ const G = `${P.row.source}/${P.row.name}`, A = w == null ? void 0 : w[G], $ = A === "updatable", V = A === "downloading", X = A === "downloaded" || !A;
8981
8981
  return /* @__PURE__ */ i.jsx(
8982
- at,
8982
+ ct,
8983
8983
  {
8984
- onClick: (te) => {
8985
- te.stopPropagation(), se(
8984
+ onClick: (H) => {
8985
+ H.stopPropagation(), se(
8986
8986
  P,
8987
8987
  G,
8988
8988
  $ ? "fetch" : "clone"
8989
8989
  );
8990
8990
  },
8991
8991
  loading: V,
8992
- disabled: K,
8993
- children: K ? /* @__PURE__ */ i.jsx(xh, {}) : $ ? /* @__PURE__ */ i.jsx(vh, {}) : /* @__PURE__ */ i.jsx(Xi, {})
8992
+ disabled: X,
8993
+ children: X ? /* @__PURE__ */ i.jsx(xh, {}) : $ ? /* @__PURE__ */ i.jsx(vh, {}) : /* @__PURE__ */ i.jsx(Xi, {})
8994
8994
  }
8995
8995
  );
8996
8996
  }
8997
8997
  }
8998
8998
  ],
8999
8999
  [y, w, se]
9000
- ), S = xt(
9000
+ ), S = vt(
9001
9001
  () => k.filter((P) => P.flavor).map((P) => ({
9002
9002
  ...P,
9003
9003
  id: `${P.source}/${P.name}`,
9004
9004
  url: P.latest_zip,
9005
9005
  metadata_types: P.metadata_types,
9006
9006
  resourceCode: P.abbreviation.toUpperCase(),
9007
- language: J[P.language_code] ?? P.language_code,
9007
+ language: Q[P.language_code] ?? P.language_code,
9008
9008
  description: P.description,
9009
9009
  flavor: P.flavor,
9010
9010
  flavorType: P.flavor_type,
@@ -9023,7 +9023,7 @@ function pg({
9023
9023
  )
9024
9024
  })).filter((P) => P.metadata_types === "rc" && P.topics.some((G) => l.includes(G)) || P.metadata_types === "sb" || !1),
9025
9025
  // eslint-disable-next-line react-hooks/exhaustive-deps
9026
- [k, y, J]
9026
+ [k, y, Q]
9027
9027
  ), W = [
9028
9028
  {
9029
9029
  label: "Download selected",
@@ -9038,8 +9038,8 @@ function pg({
9038
9038
  });
9039
9039
  }
9040
9040
  }
9041
- ], H = a ? { theme: a } : {};
9042
- return /* @__PURE__ */ i.jsxs(ee, { ...H, sx: { height: "100%" }, children: [
9041
+ ], Y = a ? { theme: a } : {};
9042
+ return /* @__PURE__ */ i.jsxs(ee, { ...Y, sx: { height: "100%" }, children: [
9043
9043
  (N == null ? void 0 : N.length) > 0 && f && /* @__PURE__ */ i.jsx(
9044
9044
  St,
9045
9045
  {
@@ -9102,8 +9102,8 @@ function pg({
9102
9102
  columns: F,
9103
9103
  rows: S,
9104
9104
  tableTitle: o,
9105
- groupOperations: Y ? W : null,
9106
- defaultFilter: ne,
9105
+ groupOperations: q ? W : null,
9106
+ defaultFilter: re,
9107
9107
  showColumnFilters: n,
9108
9108
  preSelections: c,
9109
9109
  sx: {
@@ -9181,10 +9181,10 @@ const Bs = Ke({
9181
9181
  }), Fs = Ke({ debug: !1, setBeta: () => {
9182
9182
  } });
9183
9183
  function Mh({ currentId: e }) {
9184
- const [t, r] = X("auto"), [n, o] = X(!1), s = Ne(null), [a, c] = X(!1), [l, f] = X([]), [d, m] = X([]), [y, h] = X([]), b = Kt(), { i18nRef: p } = ie(Te), { enabledRef: x } = ie(Gt), { debugRef: k } = ie(ar), { productRef: C } = ie(Bs), { betaRef: w } = ie(Fs);
9184
+ const [t, r] = J("auto"), [n, o] = J(!1), s = Ne(null), [a, c] = J(!1), [l, f] = J([]), [d, m] = J([]), [y, h] = J([]), b = Kt(), { i18nRef: p } = ie(Te), { enabledRef: x } = ie(Gt), { debugRef: k } = ie(ar), { productRef: C } = ie(Bs), { betaRef: w } = ie(Fs);
9185
9185
  ae(() => {
9186
9186
  (async () => {
9187
- const j = await _e("/api/list-clients", k.current);
9187
+ const j = await $e("/api/list-clients", k.current);
9188
9188
  j.ok && (f(
9189
9189
  j.json.filter(
9190
9190
  (M) => !M.exclude_from_menu && !M.requires.debug && !M.requires.beta
@@ -9215,7 +9215,7 @@ function Mh({ currentId: e }) {
9215
9215
  }, [a, n]);
9216
9216
  let T = C && C.current && C.current.os === "android", R = T ? "30px" : "0px";
9217
9217
  return /* @__PURE__ */ i.jsxs(ee, { sx: { m: 0, mr: 2 }, children: [
9218
- /* @__PURE__ */ i.jsx(at, { onClick: (E) => c(!0), children: /* @__PURE__ */ i.jsx(Sc, { sx: { color: "#FFF" } }) }),
9218
+ /* @__PURE__ */ i.jsx(ct, { onClick: (E) => c(!0), children: /* @__PURE__ */ i.jsx(Sc, { sx: { color: "#FFF" } }) }),
9219
9219
  /* @__PURE__ */ i.jsx(
9220
9220
  da,
9221
9221
  {
@@ -9612,7 +9612,7 @@ function De(e, t) {
9612
9612
  function ir(e, t, r) {
9613
9613
  return e.slice(t, r);
9614
9614
  }
9615
- function yt(e) {
9615
+ function bt(e) {
9616
9616
  return e.length;
9617
9617
  }
9618
9618
  function nm(e) {
@@ -9629,7 +9629,7 @@ function ea(e, t) {
9629
9629
  return !$t(r, t);
9630
9630
  });
9631
9631
  }
9632
- var mo = 1, kr = 1, Rc = 0, lt = 0, Ae = 0, $r = "";
9632
+ var mo = 1, kr = 1, Rc = 0, ut = 0, Ae = 0, $r = "";
9633
9633
  function go(e, t, r, n, o, s, a, c) {
9634
9634
  return { value: e, root: t, parent: r, type: n, props: o, children: s, line: mo, column: kr, length: a, return: "", siblings: c };
9635
9635
  }
@@ -9645,16 +9645,16 @@ function sm() {
9645
9645
  return Ae;
9646
9646
  }
9647
9647
  function im() {
9648
- return Ae = lt > 0 ? De($r, --lt) : 0, kr--, Ae === 10 && (kr = 1, mo--), Ae;
9648
+ return Ae = ut > 0 ? De($r, --ut) : 0, kr--, Ae === 10 && (kr = 1, mo--), Ae;
9649
9649
  }
9650
- function pt() {
9651
- return Ae = lt < Rc ? De($r, lt++) : 0, kr++, Ae === 10 && (kr = 1, mo++), Ae;
9650
+ function ht() {
9651
+ return Ae = ut < Rc ? De($r, ut++) : 0, kr++, Ae === 10 && (kr = 1, mo++), Ae;
9652
9652
  }
9653
9653
  function Ut() {
9654
- return De($r, lt);
9654
+ return De($r, ut);
9655
9655
  }
9656
9656
  function $n() {
9657
- return lt;
9657
+ return ut;
9658
9658
  }
9659
9659
  function yo(e, t) {
9660
9660
  return ir($r, e, t);
@@ -9698,30 +9698,30 @@ function Xr(e) {
9698
9698
  return 0;
9699
9699
  }
9700
9700
  function am(e) {
9701
- return mo = kr = 1, Rc = yt($r = e), lt = 0, [];
9701
+ return mo = kr = 1, Rc = bt($r = e), ut = 0, [];
9702
9702
  }
9703
9703
  function cm(e) {
9704
9704
  return $r = "", e;
9705
9705
  }
9706
9706
  function No(e) {
9707
- return _c(yo(lt - 1, ts(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
9707
+ return _c(yo(ut - 1, ts(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
9708
9708
  }
9709
9709
  function lm(e) {
9710
9710
  for (; (Ae = Ut()) && Ae < 33; )
9711
- pt();
9711
+ ht();
9712
9712
  return Xr(e) > 2 || Xr(Ae) > 3 ? "" : " ";
9713
9713
  }
9714
9714
  function um(e, t) {
9715
- for (; --t && pt() && !(Ae < 48 || Ae > 102 || Ae > 57 && Ae < 65 || Ae > 70 && Ae < 97); )
9715
+ for (; --t && ht() && !(Ae < 48 || Ae > 102 || Ae > 57 && Ae < 65 || Ae > 70 && Ae < 97); )
9716
9716
  ;
9717
- return yo(e, $n() + (t < 6 && Ut() == 32 && pt() == 32));
9717
+ return yo(e, $n() + (t < 6 && Ut() == 32 && ht() == 32));
9718
9718
  }
9719
9719
  function ts(e) {
9720
- for (; pt(); )
9720
+ for (; ht(); )
9721
9721
  switch (Ae) {
9722
9722
  // ] ) " '
9723
9723
  case e:
9724
- return lt;
9724
+ return ut;
9725
9725
  // " '
9726
9726
  case 34:
9727
9727
  case 39:
@@ -9733,28 +9733,28 @@ function ts(e) {
9733
9733
  break;
9734
9734
  // \
9735
9735
  case 92:
9736
- pt();
9736
+ ht();
9737
9737
  break;
9738
9738
  }
9739
- return lt;
9739
+ return ut;
9740
9740
  }
9741
9741
  function dm(e, t) {
9742
- for (; pt() && e + Ae !== 57; )
9742
+ for (; ht() && e + Ae !== 57; )
9743
9743
  if (e + Ae === 84 && Ut() === 47)
9744
9744
  break;
9745
- return "/*" + yo(t, lt - 1) + "*" + zr(e === 47 ? e : pt());
9745
+ return "/*" + yo(t, ut - 1) + "*" + zr(e === 47 ? e : ht());
9746
9746
  }
9747
9747
  function fm(e) {
9748
9748
  for (; !Xr(Ut()); )
9749
- pt();
9750
- return yo(e, lt);
9749
+ ht();
9750
+ return yo(e, ut);
9751
9751
  }
9752
9752
  function pm(e) {
9753
9753
  return cm(_n("", null, null, null, [""], e = am(e), 0, [0], e));
9754
9754
  }
9755
9755
  function _n(e, t, r, n, o, s, a, c, l) {
9756
9756
  for (var f = 0, d = 0, m = a, y = 0, h = 0, b = 0, p = 1, x = 1, k = 1, C = 0, w = 0, _ = "", T = o, R = s, E = n, j = _; x; )
9757
- switch (b = w, w = pt()) {
9757
+ switch (b = w, w = ht()) {
9758
9758
  // (
9759
9759
  case 40:
9760
9760
  b != 108 && De(j, m - 1) == 58 ? (C++, j += "(") : j += No(w);
@@ -9789,7 +9789,7 @@ function _n(e, t, r, n, o, s, a, c, l) {
9789
9789
  switch (Ut()) {
9790
9790
  case 42:
9791
9791
  case 47:
9792
- Fr(hm(dm(pt(), $n()), t, r, l), l), (Xr(b || 1) == 5 || Xr(Ut() || 1) == 5) && yt(j) && ir(j, -1, void 0) !== " " && (j += " ");
9792
+ Fr(hm(dm(ht(), $n()), t, r, l), l), (Xr(b || 1) == 5 || Xr(Ut() || 1) == 5) && bt(j) && ir(j, -1, void 0) !== " " && (j += " ");
9793
9793
  break;
9794
9794
  default:
9795
9795
  j += "/";
@@ -9797,7 +9797,7 @@ function _n(e, t, r, n, o, s, a, c, l) {
9797
9797
  break;
9798
9798
  // {
9799
9799
  case 123 * p:
9800
- c[f++] = yt(j) * k;
9800
+ c[f++] = bt(j) * k;
9801
9801
  // } ; \0
9802
9802
  case 125 * p:
9803
9803
  case 59:
@@ -9813,7 +9813,7 @@ function _n(e, t, r, n, o, s, a, c, l) {
9813
9813
  x = 0;
9814
9814
  // ;
9815
9815
  case 59 + d:
9816
- k == -1 && (j = ce(j, /\f/g, "")), h > 0 && (yt(j) - m || p === 0) && Fr(h > 32 ? ra(j + ";", n, r, m - 1, l) : ra(ce(j, " ", "") + ";", n, r, m - 2, l), l);
9816
+ k == -1 && (j = ce(j, /\f/g, "")), h > 0 && (bt(j) - m || p === 0) && Fr(h > 32 ? ra(j + ";", n, r, m - 1, l) : ra(ce(j, " ", "") + ";", n, r, m - 2, l), l);
9817
9817
  break;
9818
9818
  // @ ;
9819
9819
  case 59:
@@ -9845,7 +9845,7 @@ function _n(e, t, r, n, o, s, a, c, l) {
9845
9845
  break;
9846
9846
  // :
9847
9847
  case 58:
9848
- m = 1 + yt(j), h = b;
9848
+ m = 1 + bt(j), h = b;
9849
9849
  default:
9850
9850
  if (p < 1) {
9851
9851
  if (w == 123)
@@ -9861,15 +9861,15 @@ function _n(e, t, r, n, o, s, a, c, l) {
9861
9861
  // ,
9862
9862
  case 44:
9863
9863
  if (C > 0) break;
9864
- c[f++] = (yt(j) - 1) * k, k = 1;
9864
+ c[f++] = (bt(j) - 1) * k, k = 1;
9865
9865
  break;
9866
9866
  // @
9867
9867
  case 64:
9868
- Ut() === 45 && (j += No(pt())), y = Ut(), d = m = yt(_ = j += fm($n())), w++;
9868
+ Ut() === 45 && (j += No(ht())), y = Ut(), d = m = bt(_ = j += fm($n())), w++;
9869
9869
  break;
9870
9870
  // -
9871
9871
  case 45:
9872
- b === 45 && yt(j) == 2 && (p = 0);
9872
+ b === 45 && bt(j) == 2 && (p = 0);
9873
9873
  }
9874
9874
  }
9875
9875
  return s;
@@ -10024,7 +10024,7 @@ function Oc(e, t, r) {
10024
10024
  case 5789:
10025
10025
  case 5021:
10026
10026
  case 4765:
10027
- if (yt(e) - 1 - t > 6)
10027
+ if (bt(e) - 1 - t > 6)
10028
10028
  switch (De(e, t + 1)) {
10029
10029
  // (m)ax-content, (m)in-content
10030
10030
  case 109:
@@ -10155,10 +10155,10 @@ function mm() {
10155
10155
  };
10156
10156
  }
10157
10157
  function o() {
10158
- var s = "`TMP`", a = "`TMPLTR`", c = "`TMPRTL`", l = "`NOFLIP_SINGLE`", f = "`NOFLIP_CLASS`", d = "`COMMENT`", m = "[^\\u0020-\\u007e]", y = "(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)", h = "(?:[0-9]*\\.[0-9]+|[0-9]+)", b = "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)", p = "direction\\s*:\\s*", x = "[!#$%&*-~]", k = `['"]?\\s*`, C = "(^|[^a-zA-Z])", w = "[^\\}]*?", _ = "\\/\\*\\!?\\s*@noflip\\s*\\*\\/", T = "\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/", R = "(?:" + y + "|\\\\[^\\r\\n\\f0-9a-f])", E = "(?:[_a-z]|" + m + "|" + R + ")", j = "(?:[_a-z0-9-]|" + m + "|" + R + ")", M = "-?" + E + j + "*", L = h + "(?:\\s*" + b + "|" + M + ")?", v = "((?:-?" + L + ")|(?:inherit|auto))", u = "(?:-?" + h + "(?:\\s*" + b + ")?)", I = "(?:\\+|\\-|\\*|\\/)", O = "(?:\\(|\\)|\\t| )", N = "(?:" + O + "|" + u + "|" + I + "){3,}", Y = "(?:calc\\((?:" + N + ")\\))", J = "((?:-?" + L + ")|(?:inherit|auto)|" + Y + ")", ne = "((?:margin|padding|border-width)\\s*:\\s*)", se = "((?:-color|border-style)\\s*:\\s*)", F = "(#?" + j + "+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))", S = "(?:" + x + "|" + m + "|" + R + ")*?", W = "(?![a-zA-Z])", H = "(?!(" + j + `|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|` + d + ")*?{)", P = "(?!" + S + k + "\\))", G = "(?=" + S + k + "\\))", A = "(\\s*(?:!important\\s*)?[;}])", $ = /`TMP`/g, V = /`TMPLTR`/g, K = /`TMPRTL`/g, te = new RegExp(T, "gi"), Z = new RegExp("(" + _ + H + "[^;}]+;?)", "gi"), U = new RegExp("(" + _ + w + "})", "gi"), Ee = new RegExp("(" + p + ")ltr", "gi"), Be = new RegExp("(" + p + ")rtl", "gi"), dt = new RegExp(C + "(left)" + W + P + H, "gi"), Mt = new RegExp(C + "(right)" + W + P + H, "gi"), kt = new RegExp(C + "(left)" + G, "gi"), jt = new RegExp(C + "(right)" + G, "gi"), Fe = /(:dir\( *)ltr( *\))/g, ht = /(:dir\( *)rtl( *\))/g, rt = new RegExp(C + "(ltr)" + G, "gi"), nt = new RegExp(C + "(rtl)" + G, "gi"), Zt = new RegExp(C + "([ns]?)e-resize", "gi"), At = new RegExp(C + "([ns]?)w-resize", "gi"), Nt = new RegExp(ne + J + "(\\s+)" + J + "(\\s+)" + J + "(\\s+)" + J + A, "gi"), Dt = new RegExp(se + F + "(\\s+)" + F + "(\\s+)" + F + "(\\s+)" + F + A, "gi"), Bt = new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(" + L + ")", "gi"), Ft = new RegExp("(background-position-x\\s*:\\s*)(-?" + h + "%)", "gi"), Lt = new RegExp("(border-radius\\s*:\\s*)" + v + "(?:(?:\\s+" + v + ")(?:\\s+" + v + ")?(?:\\s+" + v + ")?)?(?:(?:(?:\\s*\\/\\s*)" + v + ")(?:\\s+" + v + ")?(?:\\s+" + v + ")?(?:\\s+" + v + ")?)?" + A, "gi"), we = new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)" + v, "gi"), ve = new RegExp("(text-shadow\\s*:\\s*)" + v + "(\\s*)" + F, "gi"), Ge = new RegExp("(text-shadow\\s*:\\s*)" + F + "(\\s*)" + v, "gi"), Ue = new RegExp("(text-shadow\\s*:\\s*)" + v, "gi"), le = new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)" + v + "(\\s*\\))", "gi"), _r = new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)" + v + "((?:\\s*,\\s*" + v + "){0,2}\\s*\\))", "gi");
10159
- function an(oe, q, re) {
10160
- var Q, Le;
10161
- return q.split("(").length > q.split(")").length ? oe : (re.slice(-1) === "%" && (Q = re.indexOf("."), Q !== -1 ? (Le = re.length - Q - 2, re = 100 - parseFloat(re), re = re.toFixed(Le) + "%") : re = 100 - parseFloat(re) + "%"), q + re);
10158
+ var s = "`TMP`", a = "`TMPLTR`", c = "`TMPRTL`", l = "`NOFLIP_SINGLE`", f = "`NOFLIP_CLASS`", d = "`COMMENT`", m = "[^\\u0020-\\u007e]", y = "(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)", h = "(?:[0-9]*\\.[0-9]+|[0-9]+)", b = "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)", p = "direction\\s*:\\s*", x = "[!#$%&*-~]", k = `['"]?\\s*`, C = "(^|[^a-zA-Z])", w = "[^\\}]*?", _ = "\\/\\*\\!?\\s*@noflip\\s*\\*\\/", T = "\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/", R = "(?:" + y + "|\\\\[^\\r\\n\\f0-9a-f])", E = "(?:[_a-z]|" + m + "|" + R + ")", j = "(?:[_a-z0-9-]|" + m + "|" + R + ")", M = "-?" + E + j + "*", L = h + "(?:\\s*" + b + "|" + M + ")?", v = "((?:-?" + L + ")|(?:inherit|auto))", u = "(?:-?" + h + "(?:\\s*" + b + ")?)", I = "(?:\\+|\\-|\\*|\\/)", O = "(?:\\(|\\)|\\t| )", N = "(?:" + O + "|" + u + "|" + I + "){3,}", q = "(?:calc\\((?:" + N + ")\\))", Q = "((?:-?" + L + ")|(?:inherit|auto)|" + q + ")", re = "((?:margin|padding|border-width)\\s*:\\s*)", se = "((?:-color|border-style)\\s*:\\s*)", F = "(#?" + j + "+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))", S = "(?:" + x + "|" + m + "|" + R + ")*?", W = "(?![a-zA-Z])", Y = "(?!(" + j + `|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|` + d + ")*?{)", P = "(?!" + S + k + "\\))", G = "(?=" + S + k + "\\))", A = "(\\s*(?:!important\\s*)?[;}])", $ = /`TMP`/g, V = /`TMPLTR`/g, X = /`TMPRTL`/g, H = new RegExp(T, "gi"), ne = new RegExp("(" + _ + Y + "[^;}]+;?)", "gi"), K = new RegExp("(" + _ + w + "})", "gi"), Re = new RegExp("(" + p + ")ltr", "gi"), Be = new RegExp("(" + p + ")rtl", "gi"), ft = new RegExp(C + "(left)" + W + P + Y, "gi"), Mt = new RegExp(C + "(right)" + W + P + Y, "gi"), kt = new RegExp(C + "(left)" + G, "gi"), jt = new RegExp(C + "(right)" + G, "gi"), Fe = /(:dir\( *)ltr( *\))/g, mt = /(:dir\( *)rtl( *\))/g, rt = new RegExp(C + "(ltr)" + G, "gi"), nt = new RegExp(C + "(rtl)" + G, "gi"), Zt = new RegExp(C + "([ns]?)e-resize", "gi"), At = new RegExp(C + "([ns]?)w-resize", "gi"), Nt = new RegExp(re + Q + "(\\s+)" + Q + "(\\s+)" + Q + "(\\s+)" + Q + A, "gi"), Dt = new RegExp(se + F + "(\\s+)" + F + "(\\s+)" + F + "(\\s+)" + F + A, "gi"), Bt = new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(" + L + ")", "gi"), Ft = new RegExp("(background-position-x\\s*:\\s*)(-?" + h + "%)", "gi"), Lt = new RegExp("(border-radius\\s*:\\s*)" + v + "(?:(?:\\s+" + v + ")(?:\\s+" + v + ")?(?:\\s+" + v + ")?)?(?:(?:(?:\\s*\\/\\s*)" + v + ")(?:\\s+" + v + ")?(?:\\s+" + v + ")?(?:\\s+" + v + ")?)?" + A, "gi"), we = new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)" + v, "gi"), ve = new RegExp("(text-shadow\\s*:\\s*)" + v + "(\\s*)" + F, "gi"), Ge = new RegExp("(text-shadow\\s*:\\s*)" + F + "(\\s*)" + v, "gi"), Ue = new RegExp("(text-shadow\\s*:\\s*)" + v, "gi"), le = new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)" + v + "(\\s*\\))", "gi"), _r = new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)" + v + "((?:\\s*,\\s*" + v + "){0,2}\\s*\\))", "gi");
10159
+ function an(oe, U, te) {
10160
+ var Z, Le;
10161
+ return U.split("(").length > U.split(")").length ? oe : (te.slice(-1) === "%" && (Z = te.indexOf("."), Z !== -1 ? (Le = te.length - Z - 2, te = 100 - parseFloat(te), te = te.toFixed(Le) + "%") : te = 100 - parseFloat(te) + "%"), U + te);
10162
10162
  }
10163
10163
  function Rr(oe) {
10164
10164
  switch (oe.length) {
@@ -10177,25 +10177,25 @@ function mm() {
10177
10177
  }
10178
10178
  return oe.join(" ");
10179
10179
  }
10180
- function bo(oe, q) {
10181
- var re, Q = [].slice.call(arguments), Le = Q.slice(2, 6).filter(function(xo) {
10180
+ function bo(oe, U) {
10181
+ var te, Z = [].slice.call(arguments), Le = Z.slice(2, 6).filter(function(xo) {
10182
10182
  return xo;
10183
- }), Vt = Q.slice(6, 10).filter(function(xo) {
10183
+ }), Vt = Z.slice(6, 10).filter(function(xo) {
10184
10184
  return xo;
10185
- }), dn = Q[10] || "";
10186
- return Vt.length ? re = Rr(Le) + " / " + Rr(Vt) : re = Rr(Le), q + re + dn;
10185
+ }), dn = Z[10] || "";
10186
+ return Vt.length ? te = Rr(Le) + " / " + Rr(Vt) : te = Rr(Le), U + te + dn;
10187
10187
  }
10188
10188
  function Or(oe) {
10189
10189
  return parseFloat(oe) === 0 ? oe : oe[0] === "-" ? oe.slice(1) : "-" + oe;
10190
10190
  }
10191
- function cn(oe, q, re) {
10192
- return q + Or(re);
10191
+ function cn(oe, U, te) {
10192
+ return U + Or(te);
10193
10193
  }
10194
- function ln(oe, q, re, Q, Le) {
10195
- return q + re + Or(Q) + Le;
10194
+ function ln(oe, U, te, Z, Le) {
10195
+ return U + te + Or(Z) + Le;
10196
10196
  }
10197
- function un(oe, q, re, Q, Le) {
10198
- return q + re + Q + Or(Le);
10197
+ function un(oe, U, te, Z, Le) {
10198
+ return U + te + Z + Or(Le);
10199
10199
  }
10200
10200
  return {
10201
10201
  /**
@@ -10209,19 +10209,19 @@ function mm() {
10209
10209
  * (e.g. 'left', 'right')
10210
10210
  * @return {string} Transformed stylesheet
10211
10211
  */
10212
- transform: function(oe, q) {
10213
- var re = new n(Z, l), Q = new n(U, f), Le = new n(te, d);
10212
+ transform: function(oe, U) {
10213
+ var te = new n(ne, l), Z = new n(K, f), Le = new n(H, d);
10214
10214
  return oe = Le.tokenize(
10215
- Q.tokenize(
10216
- re.tokenize(
10215
+ Z.tokenize(
10216
+ te.tokenize(
10217
10217
  // We wrap tokens in ` , not ~ like the original implementation does.
10218
10218
  // This was done because ` is not a legal character in CSS and can only
10219
10219
  // occur in URLs, where we escape it to %60 before inserting our tokens.
10220
10220
  oe.replace("`", "%60")
10221
10221
  )
10222
10222
  )
10223
- ), q.transformDirInUrl && (oe = oe.replace(Fe, "$1" + a + "$2").replace(ht, "$1" + c + "$2").replace(rt, "$1" + s).replace(nt, "$1ltr").replace($, "rtl").replace(V, "ltr").replace(K, "rtl")), q.transformEdgeInUrl && (oe = oe.replace(kt, "$1" + s).replace(jt, "$1left").replace($, "right")), oe = oe.replace(Ee, "$1" + s).replace(Be, "$1ltr").replace($, "rtl").replace(dt, "$1" + s).replace(Mt, "$1left").replace($, "right").replace(Zt, "$1$2" + s).replace(At, "$1$2e-resize").replace($, "w-resize").replace(Lt, bo).replace(we, cn).replace(ve, un).replace(Ge, un).replace(Ue, cn).replace(le, ln).replace(_r, ln).replace(Nt, "$1$2$3$8$5$6$7$4$9").replace(Dt, "$1$2$3$8$5$6$7$4$9").replace(Bt, an).replace(Ft, an), oe = re.detokenize(
10224
- Q.detokenize(
10223
+ ), U.transformDirInUrl && (oe = oe.replace(Fe, "$1" + a + "$2").replace(mt, "$1" + c + "$2").replace(rt, "$1" + s).replace(nt, "$1ltr").replace($, "rtl").replace(V, "ltr").replace(X, "rtl")), U.transformEdgeInUrl && (oe = oe.replace(kt, "$1" + s).replace(jt, "$1left").replace($, "right")), oe = oe.replace(Re, "$1" + s).replace(Be, "$1ltr").replace($, "rtl").replace(ft, "$1" + s).replace(Mt, "$1left").replace($, "right").replace(Zt, "$1$2" + s).replace(At, "$1$2e-resize").replace($, "w-resize").replace(Lt, bo).replace(we, cn).replace(ve, un).replace(Ge, un).replace(Ue, cn).replace(le, ln).replace(_r, ln).replace(Nt, "$1$2$3$8$5$6$7$4$9").replace(Dt, "$1$2$3$8$5$6$7$4$9").replace(Bt, an).replace(Ft, an), oe = te.detokenize(
10224
+ Z.detokenize(
10225
10225
  Le.detokenize(oe)
10226
10226
  )
10227
10227
  ), oe;
@@ -10248,7 +10248,7 @@ function Ic(e, t, r) {
10248
10248
  });
10249
10249
  }
10250
10250
  var n = Pc(Array.prototype.concat(e.children), Ic);
10251
- return yt(n) ? e.return = e.value + "{" + n + "}" : "";
10251
+ return bt(n) ? e.return = e.value + "{" + n + "}" : "";
10252
10252
  }
10253
10253
  function Mc(e, t, r, n) {
10254
10254
  if (e.type === $c || e.type === em || e.type === Gr && (!e.parent || e.parent.type === Qh || e.parent.type === Gr)) {
@@ -10289,7 +10289,7 @@ function bm({
10289
10289
  betaValue: h
10290
10290
  }) {
10291
10291
  var v, u;
10292
- const [b, p] = X([]), x = { messages: b, setMessages: p }, { enqueueSnackbar: k } = pl(), [C, w] = X(""), [_, T] = X(null), [R, E] = X({
10292
+ const [b, p] = J([]), x = { messages: b, setMessages: p }, { enqueueSnackbar: k } = pl(), [C, w] = J(""), [_, T] = J(null), [R, E] = J({
10293
10293
  palette: {
10294
10294
  primary: {
10295
10295
  main: "#666"
@@ -10298,7 +10298,7 @@ function bm({
10298
10298
  main: "#888"
10299
10299
  }
10300
10300
  }
10301
- }), [j, M] = X(null);
10301
+ }), [j, M] = J(null);
10302
10302
  ae(() => {
10303
10303
  An({
10304
10304
  url: "/api/app-resources/themes/default.json",
@@ -10317,12 +10317,12 @@ function bm({
10317
10317
  }, []), ae(() => {
10318
10318
  if (_) {
10319
10319
  let I = [], O = {}, N = a.typographyRef.current.font_set.split("Pankosmia");
10320
- N.shift(), N = N.map((Y) => "Pankosmia" + Y), Object.entries(_).forEach(([Y, J]) => {
10321
- let ne = N.indexOf(Y);
10322
- ne >= 0 && (O[ne] = J);
10320
+ N.shift(), N = N.map((q) => "Pankosmia" + q), Object.entries(_).forEach(([q, Q]) => {
10321
+ let re = N.indexOf(q);
10322
+ re >= 0 && (O[re] = Q);
10323
10323
  });
10324
- for (let Y = 0; Y < Object.keys(N).length; Y++)
10325
- O[Y] && I.push(O[Y]);
10324
+ for (let q = 0; q < Object.keys(N).length; q++)
10325
+ O[q] && I.push(O[q]);
10326
10326
  w(I);
10327
10327
  }
10328
10328
  }, [
@@ -10400,7 +10400,7 @@ function bm({
10400
10400
  );
10401
10401
  M(O);
10402
10402
  }, [R, C, (u = a == null ? void 0 : a.typography) == null ? void 0 : u.direction]), console.log(j);
10403
- const L = xt(() => j ? j.direction === "rtl" ? vi({
10403
+ const L = vt(() => j ? j.direction === "rtl" ? vi({
10404
10404
  key: "muirtl",
10405
10405
  stylisPlugins: [na, Mc]
10406
10406
  }) : vi({
@@ -10476,59 +10476,59 @@ function vm() {
10476
10476
  var Cm = vm();
10477
10477
  const wm = /* @__PURE__ */ ls(Cm);
10478
10478
  function Sm({ children: e }) {
10479
- const [t, r] = X(!1), n = Ne(t), o = (q) => {
10480
- n.current = q, r(q);
10481
- }, [s, a] = X(!1), c = Ne(s), l = (q) => {
10482
- c.current = q, a(q);
10483
- }, [f, d] = X(!1), m = Ne(f), y = (q) => {
10484
- m.current = q, d(q);
10485
- }, [h, b] = X({}), p = Ne(h), x = (q) => {
10486
- p.current = q, b(q);
10487
- }, [k, C] = X({
10479
+ const [t, r] = J(!1), n = Ne(t), o = (U) => {
10480
+ n.current = U, r(U);
10481
+ }, [s, a] = J(!1), c = Ne(s), l = (U) => {
10482
+ c.current = U, a(U);
10483
+ }, [f, d] = J(!1), m = Ne(f), y = (U) => {
10484
+ m.current = U, d(U);
10485
+ }, [h, b] = J({}), p = Ne(h), x = (U) => {
10486
+ p.current = U, b(U);
10487
+ }, [k, C] = J({
10488
10488
  bookCode: "TIT",
10489
10489
  chapterNum: 1,
10490
10490
  verseNum: 1,
10491
10491
  endVerseNum: 1
10492
- }), w = Ne(k), _ = (q) => {
10493
- w.current = q, C(q);
10494
- }, [T, R] = X({}), E = Ne(T), j = (q) => {
10495
- E.current = q, R(q);
10496
- }, [M, L] = X({
10492
+ }), w = Ne(k), _ = (U) => {
10493
+ w.current = U, C(U);
10494
+ }, [T, R] = J({}), E = Ne(T), j = (U) => {
10495
+ E.current = U, R(U);
10496
+ }, [M, L] = J({
10497
10497
  font_set: "Pankosmia-CardoPankosmia-EzraSILPankosmia-PadaukPankosmia-AwamiNastaliqPankosmia-NotoNastaliqUrduPankosmia-GentiumPlus",
10498
10498
  size: "medium",
10499
10499
  direction: "ltr"
10500
- }), v = Ne(M), u = (q) => {
10501
- v.current = q, L(q);
10502
- }, [I, O] = X(null), N = Ne(I), Y = (q) => {
10503
- N.current = q, O(q);
10504
- }, [J, ne] = X({}), se = Ne(J), F = (q) => {
10505
- se.current = q, ne(q);
10500
+ }), v = Ne(M), u = (U) => {
10501
+ v.current = U, L(U);
10502
+ }, [I, O] = J(null), N = Ne(I), q = (U) => {
10503
+ N.current = U, O(U);
10504
+ }, [Q, re] = J({}), se = Ne(Q), F = (U) => {
10505
+ se.current = U, re(U);
10506
10506
  }, S = async () => {
10507
- await _e("/api/client-config").then((q) => q.json).then((q) => F(q)).catch((q) => console.error("Error :", q));
10508
- }, [W, H] = X({}), P = Ne(W), G = (q) => {
10509
- P.current = q, H(q);
10510
- }, [A, $] = X(null), V = Ne(A), K = (q) => {
10511
- V.current = q, $(q);
10512
- }, [te, Z] = X(null), U = Ne(te), Ee = (q) => {
10513
- U.current = q, Z(q);
10514
- }, [Be, dt] = X(null), Mt = Ne(Be), kt = (q) => {
10515
- Mt.current = q, dt(q);
10507
+ await $e("/api/client-config").then((U) => U.json).then((U) => F(U)).catch((U) => console.error("Error :", U));
10508
+ }, [W, Y] = J({}), P = Ne(W), G = (U) => {
10509
+ P.current = U, Y(U);
10510
+ }, [A, $] = J(null), V = Ne(A), X = (U) => {
10511
+ V.current = U, $(U);
10512
+ }, [H, ne] = J(null), K = Ne(H), Re = (U) => {
10513
+ K.current = U, ne(U);
10514
+ }, [Be, ft] = J(null), Mt = Ne(Be), kt = (U) => {
10515
+ Mt.current = U, ft(U);
10516
10516
  }, jt = async () => {
10517
- await _e("/api/client-interfaces").then((q) => q.json).then((q) => G(q)).catch((q) => console.error("Error :", q));
10517
+ await $e("/api/client-interfaces").then((U) => U.json).then((U) => G(U)).catch((U) => console.error("Error :", U));
10518
10518
  }, Fe = async () => {
10519
- const q = await _e("/api/i18n/flat", c.current);
10520
- q.ok ? j(q.json) : Rt(`Could not load i18n: ${q.error.reason}`, {
10519
+ const U = await $e("/api/i18n/flat", c.current);
10520
+ U.ok ? j(U.json) : Rt(`Could not load i18n: ${U.error.reason}`, {
10521
10521
  variant: "error",
10522
10522
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
10523
10523
  persist: !0
10524
10524
  });
10525
- }, ht = async () => {
10526
- const q = await _e(
10525
+ }, mt = async () => {
10526
+ const U = await $e(
10527
10527
  "/api/settings/typography",
10528
10528
  c.current
10529
10529
  );
10530
- q.ok ? u(q.json) : Rt(
10531
- `Could not load typography: ${q.error.reason}`,
10530
+ U.ok ? u(U.json) : Rt(
10531
+ `Could not load typography: ${U.error.reason}`,
10532
10532
  {
10533
10533
  variant: "error",
10534
10534
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
@@ -10536,9 +10536,9 @@ function Sm({ children: e }) {
10536
10536
  }
10537
10537
  );
10538
10538
  }, rt = async () => {
10539
- const q = await _e("/api/version", c.current);
10540
- q.ok ? kt(q.json) : Rt(
10541
- `Could not load version for product: ${q.error.reason}`,
10539
+ const U = await $e("/api/version", c.current);
10540
+ U.ok ? kt(U.json) : Rt(
10541
+ `Could not load version for product: ${U.error.reason}`,
10542
10542
  {
10543
10543
  variant: "error",
10544
10544
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
@@ -10546,16 +10546,16 @@ function Sm({ children: e }) {
10546
10546
  }
10547
10547
  );
10548
10548
  }, nt = async () => {
10549
- const q = await _e(
10549
+ const U = await $e(
10550
10550
  "/api/app-state/alignment",
10551
10551
  c.current
10552
10552
  );
10553
- if (q.ok) {
10554
- const re = q.json.snippet, Q = q.json.word;
10555
- re !== V.current && K(re), JSON.stringify(Q) !== JSON.stringify(U.current) && Ee(Q);
10553
+ if (U.ok) {
10554
+ const te = U.json.snippet, Z = U.json.word;
10555
+ te !== V.current && X(te), JSON.stringify(Z) !== JSON.stringify(K.current) && Re(Z);
10556
10556
  } else
10557
10557
  Rt(
10558
- `Could not load alignment: ${q.error.reason}`,
10558
+ `Could not load alignment: ${U.error.reason}`,
10559
10559
  {
10560
10560
  variant: "error",
10561
10561
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
@@ -10564,121 +10564,121 @@ function Sm({ children: e }) {
10564
10564
  );
10565
10565
  };
10566
10566
  ae(() => {
10567
- Fe().then(), nt().then(), ht().then(), S().then(), jt().then(), rt().then();
10567
+ Fe().then(), nt().then(), mt().then(), S().then(), jt().then(), rt().then();
10568
10568
  }, []), ae(() => {
10569
10569
  (async () => {
10570
- const re = await _e(
10570
+ const te = await $e(
10571
10571
  "/api/navigation/bcv",
10572
10572
  c.current
10573
10573
  );
10574
- if (re.ok) {
10575
- const Q = re.json;
10574
+ if (te.ok) {
10575
+ const Z = te.json;
10576
10576
  _({
10577
- bookCode: Q.book_code,
10578
- chapterNum: Q.chapter,
10579
- verseNum: Q.verse
10577
+ bookCode: Z.book_code,
10578
+ chapterNum: Z.chapter,
10579
+ verseNum: Z.verse
10580
10580
  });
10581
10581
  } else
10582
- Rt(`Could not load bcv: ${re.error.reason}`, {
10582
+ Rt(`Could not load bcv: ${te.error.reason}`, {
10583
10583
  variant: "error",
10584
10584
  anchorOrigin: { vertical: "bottom", horizontal: "left" },
10585
10585
  persist: !0
10586
10586
  });
10587
10587
  })().then();
10588
10588
  }, []);
10589
- const Zt = (q) => {
10590
- const re = q.data.split("--");
10591
- if (re.length === 6) {
10592
- const Q = re[1] === "enabled";
10593
- Q !== n.current && o(Q);
10594
- const Le = re[3] === "enabled";
10589
+ const Zt = (U) => {
10590
+ const te = U.data.split("--");
10591
+ if (te.length === 6) {
10592
+ const Z = te[1] === "enabled";
10593
+ Z !== n.current && o(Z);
10594
+ const Le = te[3] === "enabled";
10595
10595
  Le !== c.current && l(Le);
10596
- const Vt = re[5] === "enabled";
10596
+ const Vt = te[5] === "enabled";
10597
10597
  Vt !== m.current && y(Vt);
10598
10598
  }
10599
- }, At = (q) => {
10600
- const re = q.data.split("--");
10601
- if (re.length === 4) {
10602
- const Q = {
10603
- bookCode: re[0],
10604
- chapterNum: parseInt(re[1]),
10605
- verseNum: parseInt(re[2]),
10606
- endVerseNum: parseInt(re[3])
10599
+ }, At = (U) => {
10600
+ const te = U.data.split("--");
10601
+ if (te.length === 4) {
10602
+ const Z = {
10603
+ bookCode: te[0],
10604
+ chapterNum: parseInt(te[1]),
10605
+ verseNum: parseInt(te[2]),
10606
+ endVerseNum: parseInt(te[3])
10607
10607
  };
10608
- (Q.bookCode !== w.current.bookCode || Q.chapterNum !== w.current.chapterNum || Q.verseNum !== w.current.verseNum || Q.endVerseNum !== w.current.endVerseNum) && _(Q);
10609
- }
10610
- }, Nt = (q) => {
10611
- const re = q.data.split("--");
10612
- if (re.length === 3) {
10613
- const Q = {
10614
- font_set: re[0],
10615
- size: re[1],
10616
- direction: re[2]
10608
+ (Z.bookCode !== w.current.bookCode || Z.chapterNum !== w.current.chapterNum || Z.verseNum !== w.current.verseNum || Z.endVerseNum !== w.current.endVerseNum) && _(Z);
10609
+ }
10610
+ }, Nt = (U) => {
10611
+ const te = U.data.split("--");
10612
+ if (te.length === 3) {
10613
+ const Z = {
10614
+ font_set: te[0],
10615
+ size: te[1],
10616
+ direction: te[2]
10617
10617
  };
10618
- (Q.font_set !== v.current.font_set || Q.size !== v.current.size || Q.direction !== v.current.direction) && u(Q);
10618
+ (Z.font_set !== v.current.font_set || Z.size !== v.current.size || Z.direction !== v.current.direction) && u(Z);
10619
10619
  }
10620
10620
  }, Dt = () => {
10621
10621
  Fe().then();
10622
- }, Bt = (q) => {
10622
+ }, Bt = (U) => {
10623
10623
  try {
10624
- const re = wm(p.current), [Q, Le, Vt] = q.data.split("--");
10624
+ const te = wm(p.current), [Z, Le, Vt] = U.data.split("--");
10625
10625
  if (["true", "false"].includes(Vt)) {
10626
10626
  const dn = Vt === "true";
10627
- (!(Q in re) || !("isActive" in re[Q]) || dn !== re[Q].isActive) && (re[Q] = { endpoint: Le, isActive: dn }, x(re));
10627
+ (!(Z in te) || !("isActive" in te[Z]) || dn !== te[Z].isActive) && (te[Z] = { endpoint: Le, isActive: dn }, x(te));
10628
10628
  }
10629
- } catch (re) {
10630
- console.log(`Auth Error: ${re}, data: ${q.data}`);
10629
+ } catch (te) {
10630
+ console.log(`Auth Error: ${te}, data: ${U.data}`);
10631
10631
  }
10632
- }, Ft = (q) => {
10633
- if (q.data === null)
10634
- N.current !== null && Y(null);
10632
+ }, Ft = (U) => {
10633
+ if (U.data === null)
10634
+ N.current !== null && q(null);
10635
10635
  else {
10636
- const re = q.data.split("--");
10637
- if (re.length === 3) {
10638
- let Q = {
10639
- source: re[0],
10640
- organization: re[1],
10641
- project: re[2]
10636
+ const te = U.data.split("--");
10637
+ if (te.length === 3) {
10638
+ let Z = {
10639
+ source: te[0],
10640
+ organization: te[1],
10641
+ project: te[2]
10642
10642
  };
10643
- (!N.current || Q.source !== N.current.source || Q.organization !== N.current.organization || Q.project !== N.current.project) && Y(Q);
10643
+ (!N.current || Z.source !== N.current.source || Z.organization !== N.current.organization || Z.project !== N.current.project) && q(Z);
10644
10644
  } else
10645
- Y(null);
10645
+ q(null);
10646
10646
  }
10647
10647
  }, Lt = () => {
10648
10648
  nt().then();
10649
10649
  };
10650
10650
  ae(() => {
10651
- const q = new AbortController();
10651
+ const U = new AbortController();
10652
10652
  return (async () => {
10653
10653
  await zh("/api/notifications", {
10654
10654
  method: "GET",
10655
10655
  headers: {
10656
10656
  Accept: "text/event-stream"
10657
10657
  },
10658
- onopen(Q) {
10659
- Q.ok && Q.status === 200 || Q.status >= 400 && Q.status < 500 && Q.status !== 429 && console.log("Error from SSE", Q.status);
10658
+ onopen(Z) {
10659
+ Z.ok && Z.status === 200 || Z.status >= 400 && Z.status < 500 && Z.status !== 429 && console.log("Error from SSE", Z.status);
10660
10660
  },
10661
- onmessage(Q) {
10662
- Q.event === "misc" ? miscHandler(Q) : Q.event === "status" ? Zt(Q) : Q.event === "bcv" ? At(Q) : Q.event === "auth" ? Bt(Q) : Q.event === "languages" ? Dt() : Q.event === "typography" ? Nt(Q) : Q.event === "current_project" ? Ft(Q) : Q.event === "alignment" && Lt();
10661
+ onmessage(Z) {
10662
+ Z.event === "misc" ? miscHandler(Z) : Z.event === "status" ? Zt(Z) : Z.event === "bcv" ? At(Z) : Z.event === "auth" ? Bt(Z) : Z.event === "languages" ? Dt() : Z.event === "typography" ? Nt(Z) : Z.event === "current_project" ? Ft(Z) : Z.event === "alignment" && Lt();
10663
10663
  },
10664
10664
  onclose() {
10665
10665
  console.log("SSE connection closed by the server");
10666
10666
  },
10667
- onerror(Q) {
10668
- console.log("There was an error from the SSE server", Q);
10667
+ onerror(Z) {
10668
+ console.log("There was an error from the SSE server", Z);
10669
10669
  }
10670
10670
  });
10671
- })(), () => q.abort();
10671
+ })(), () => U.abort();
10672
10672
  }, []);
10673
10673
  const we = { enableNet: t, setEnableNet: o, enabledRef: n }, ve = { debug: s, setDebug: l, debugRef: c }, Ge = { beta: f, setBeta: y, betaRef: m }, Ue = { systemBcv: k, setSystemBcv: _, bcvRef: w }, le = { auth: h, setAuth: x, authRef: p }, _r = { i18n: T, setI18n: j, i18nRef: E }, an = { typography: M, setTypography: u, typographyRef: v }, Rr = {
10674
10674
  currentProject: I,
10675
- setCurrentProject: Y,
10675
+ setCurrentProject: q,
10676
10676
  currentProjectRef: N
10677
10677
  }, bo = {
10678
10678
  clientInterfaces: W,
10679
10679
  setClientInterfaces: G,
10680
10680
  clientInterfacesRef: P
10681
- }, Or = { snippet: A, setSnippet: K, snippetRef: V }, cn = { word: te, setWord: Ee, wordRef: U }, ln = { clientConfig: J, setClientConfig: F, clientConfigRef: se }, un = { product: Be, setProduct: kt, productRef: Mt }, oe = tt(hl)(() => ({
10681
+ }, Or = { snippet: A, setSnippet: X, snippetRef: V }, cn = { word: H, setWord: Re, wordRef: K }, ln = { clientConfig: Q, setClientConfig: F, clientConfigRef: se }, un = { product: Be, setProduct: kt, productRef: Mt }, oe = tt(hl)(() => ({
10682
10682
  "&.notistack-MuiContent-error": {
10683
10683
  backgroundColor: "#FDEDED",
10684
10684
  color: "#D32F2F"
@@ -10750,7 +10750,7 @@ function jm({
10750
10750
  overflowY: "auto"
10751
10751
  },
10752
10752
  children: /* @__PURE__ */ i.jsx(
10753
- $e,
10753
+ Ee,
10754
10754
  {
10755
10755
  container: !0,
10756
10756
  sx: {
@@ -10759,7 +10759,7 @@ function jm({
10759
10759
  minHeight: "100vh"
10760
10760
  },
10761
10761
  children: /* @__PURE__ */ i.jsxs(
10762
- $e,
10762
+ Ee,
10763
10763
  {
10764
10764
  rowSpacing: 0.5,
10765
10765
  sx: {
@@ -10860,7 +10860,7 @@ function gg({
10860
10860
  versification: t,
10861
10861
  setVersification: r
10862
10862
  }) {
10863
- const { i18nRef: n } = ie(Te), [o, s] = X([]), [a, c] = X(!1), l = () => c((f) => !f);
10863
+ const { i18nRef: n } = ie(Te), [o, s] = J([]), [a, c] = J(!1), l = () => c((f) => !f);
10864
10864
  return ae(() => {
10865
10865
  e && An({
10866
10866
  url: "/api/content-utils/versifications",
@@ -10890,7 +10890,7 @@ function gg({
10890
10890
  }
10891
10891
  ),
10892
10892
  /* @__PURE__ */ i.jsx(
10893
- wt,
10893
+ at,
10894
10894
  {
10895
10895
  onClick: l,
10896
10896
  color: "secondary",
@@ -10974,9 +10974,9 @@ function yg({
10974
10974
  addVerses: d = !0
10975
10975
  }) {
10976
10976
  var C, w, _, T, R, E, j, M;
10977
- const { i18nRef: m } = ie(Te), [y, h] = X(!0), [b, p] = X({});
10977
+ const { i18nRef: m } = ie(Te), [y, h] = J(!0), [b, p] = J({});
10978
10978
  ae(() => {
10979
- _e("/api/client-config").then((L) => L.json).then((L) => p(L)).catch((L) => console.error("Error :", L));
10979
+ $e("/api/client-config").then((L) => L.json).then((L) => p(L)).catch((L) => console.error("Error :", L));
10980
10980
  }, []);
10981
10981
  const x = ((T = (_ = (w = (C = b == null ? void 0 : b["core-contenthandler_text_translation"]) == null ? void 0 : C.find((L) => L.id === "config")) == null ? void 0 : w.fields) == null ? void 0 : _.find((L) => L.id === "protestantBooksOnlyCheckbox")) == null ? void 0 : T.value) !== !1, k = ((M = (j = (E = (R = b == null ? void 0 : b["core-contenthandler_text_translation"]) == null ? void 0 : R.find((L) => L.id === "config")) == null ? void 0 : E.fields) == null ? void 0 : j.find(
10982
10982
  (L) => L.id === "protestantBooksOnlyDefaultChecked"
@@ -10984,7 +10984,7 @@ function yg({
10984
10984
  return ae(() => {
10985
10985
  h(k);
10986
10986
  }, [k]), /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(
10987
- $e,
10987
+ Ee,
10988
10988
  {
10989
10989
  container: !0,
10990
10990
  spacing: 1,
@@ -10993,7 +10993,7 @@ function yg({
10993
10993
  alignItems: "stretch"
10994
10994
  },
10995
10995
  children: [
10996
- /* @__PURE__ */ i.jsx($e, { size: 4, children: /* @__PURE__ */ i.jsxs(vr, { sx: { width: "100%" }, children: [
10996
+ /* @__PURE__ */ i.jsx(Ee, { size: 4, children: /* @__PURE__ */ i.jsxs(vr, { sx: { width: "100%" }, children: [
10997
10997
  /* @__PURE__ */ i.jsx(
10998
10998
  ha,
10999
10999
  {
@@ -11046,7 +11046,7 @@ function yg({
11046
11046
  }
11047
11047
  )
11048
11048
  ] }) }),
11049
- /* @__PURE__ */ i.jsx($e, { size: 4, children: /* @__PURE__ */ i.jsx(
11049
+ /* @__PURE__ */ i.jsx(Ee, { size: 4, children: /* @__PURE__ */ i.jsx(
11050
11050
  We,
11051
11051
  {
11052
11052
  id: "bookAbbr",
@@ -11059,7 +11059,7 @@ function yg({
11059
11059
  }
11060
11060
  }
11061
11061
  ) }),
11062
- /* @__PURE__ */ i.jsx($e, { size: 4, children: /* @__PURE__ */ i.jsx(
11062
+ /* @__PURE__ */ i.jsx(Ee, { size: 4, children: /* @__PURE__ */ i.jsx(
11063
11063
  We,
11064
11064
  {
11065
11065
  id: "bookTitle",
@@ -11132,7 +11132,7 @@ function bg({
11132
11132
  const x = Math.min(
11133
11133
  Math.max(t - 1, 0),
11134
11134
  e.length - 1
11135
- ), [k, C] = X(x), [w, _] = X(/* @__PURE__ */ new Set()), { i18nRef: T } = ie(Te), R = Ne(null), [E, j] = X(0);
11135
+ ), [k, C] = J(x), [w, _] = J(/* @__PURE__ */ new Set()), { i18nRef: T } = ie(Te), R = Ne(null), [E, j] = J(0);
11136
11136
  ae(() => {
11137
11137
  const u = R.current;
11138
11138
  if (!u) return;
@@ -11186,7 +11186,7 @@ function bg({
11186
11186
  },
11187
11187
  children: [
11188
11188
  /* @__PURE__ */ i.jsx(
11189
- wt,
11189
+ at,
11190
11190
  {
11191
11191
  sx: { padding: 0 },
11192
11192
  color: f || "inherit",
@@ -11196,7 +11196,7 @@ function bg({
11196
11196
  }
11197
11197
  ),
11198
11198
  /* @__PURE__ */ i.jsx(
11199
- wt,
11199
+ at,
11200
11200
  {
11201
11201
  sx: { padding: 0 },
11202
11202
  color: c || "inherit",
@@ -11273,7 +11273,7 @@ const $m = {
11273
11273
  }
11274
11274
  };
11275
11275
  function Rm({ asset: e, actionButtonPlugin: t }) {
11276
- const { i18nRef: r } = ie(Te), { enabledRef: n } = ie(Gt), [o, s] = X("checking"), [a, c] = X(null), [l, f] = X(null), d = !!window.electronAPI, m = _m[e];
11276
+ const { i18nRef: r } = ie(Te), { enabledRef: n } = ie(Gt), [o, s] = J("checking"), [a, c] = J(null), [l, f] = J(null), d = !!window.electronAPI, m = _m[e];
11277
11277
  ae(() => {
11278
11278
  if (!d || !m)
11279
11279
  return;
@@ -11311,7 +11311,7 @@ function Rm({ asset: e, actionButtonPlugin: t }) {
11311
11311
  r.current
11312
11312
  ),
11313
11313
  children: /* @__PURE__ */ i.jsx("span", { style: { alignSelf: "center" }, children: /* @__PURE__ */ i.jsx(
11314
- wt,
11314
+ at,
11315
11315
  {
11316
11316
  size: "medium",
11317
11317
  variant: "contained",
@@ -11521,29 +11521,35 @@ function Ac({
11521
11521
  closeFn: r,
11522
11522
  children: n,
11523
11523
  actionsButtonArray: o,
11524
- requiredFieldsLabel: s = !1
11524
+ requiredFieldsLabel: s = !1,
11525
+ header: a = null,
11526
+ // fixed content between the title and the scrolling content
11527
+ fullHeight: c = !1
11528
+ // on desktop, always use the max height instead of fitting the content
11525
11529
  }) {
11526
- const a = Kt(), c = nr(a.breakpoints.down("sm")), { i18nRef: l } = ie(Te);
11530
+ const l = Kt(), f = nr(l.breakpoints.down("sm")), { i18nRef: d } = ie(Te);
11527
11531
  return /* @__PURE__ */ i.jsxs(
11528
11532
  Hn,
11529
11533
  {
11530
- fullScreen: c,
11534
+ fullScreen: f,
11531
11535
  open: t,
11532
11536
  sx: { overflow: "hidden" },
11533
- onKeyDown: (f) => {
11534
- var m, y;
11535
- if (f.key !== "Enter") return;
11536
- const d = o == null ? void 0 : o[1];
11537
- (m = d == null ? void 0 : d.props) != null && m.actionFn && !((y = d.props) != null && y.isDisabled) && (f.preventDefault(), d.props.actionFn());
11537
+ onKeyDown: (m) => {
11538
+ var h, b;
11539
+ if (m.key !== "Enter") return;
11540
+ const y = o == null ? void 0 : o[1];
11541
+ (h = y == null ? void 0 : y.props) != null && h.actionFn && !((b = y.props) != null && b.isDisabled) && (m.preventDefault(), y.props.actionFn());
11538
11542
  },
11539
11543
  slotProps: {
11540
- sx: {
11541
- overflow: "hidden !important",
11542
- display: "flex",
11543
- flexDirection: "column"
11544
- },
11545
11544
  paper: {
11546
- component: "form"
11545
+ component: "form",
11546
+ sx: {
11547
+ display: "flex",
11548
+ flexDirection: "column",
11549
+ overflow: "hidden",
11550
+ // MUI's own default max-height for a non-fullscreen dialog
11551
+ ...c && !f && { height: "calc(100% - 64px)" }
11552
+ }
11547
11553
  }
11548
11554
  },
11549
11555
  maxWidth: "sm",
@@ -11553,16 +11559,16 @@ function Ac({
11553
11559
  os,
11554
11560
  {
11555
11561
  sx: {
11556
- backgroundColor: a.palette.primary.main,
11562
+ backgroundColor: l.palette.primary.main,
11557
11563
  display: "flex",
11558
11564
  flexDirection: "row",
11559
11565
  alignItems: "center"
11560
11566
  },
11561
11567
  children: [
11562
- c && /* @__PURE__ */ i.jsx(
11563
- at,
11568
+ f && /* @__PURE__ */ i.jsx(
11569
+ ct,
11564
11570
  {
11565
- sx: { color: a.palette.primary.contrastText },
11571
+ sx: { color: l.palette.primary.contrastText },
11566
11572
  onClick: () => {
11567
11573
  r();
11568
11574
  },
@@ -11573,42 +11579,52 @@ function Ac({
11573
11579
  ue,
11574
11580
  {
11575
11581
  variant: "h6",
11576
- sx: { color: a.palette.primary.contrastText },
11582
+ sx: { color: l.palette.primary.contrastText },
11577
11583
  component: "div",
11578
11584
  children: e
11579
11585
  }
11580
11586
  ),
11581
- o && c && o[1] && Jr.cloneElement(o[1], {
11587
+ o && f && o[1] && Jr.cloneElement(o[1], {
11582
11588
  sx: {
11583
11589
  ...o[1].props.sx,
11584
11590
  marginInlineStart: "auto",
11585
- color: `${a.palette.primary.contrastText} !important`
11591
+ color: `${l.palette.primary.contrastText} !important`
11586
11592
  }
11587
11593
  })
11588
11594
  ]
11589
11595
  }
11590
11596
  ),
11591
- s && /* @__PURE__ */ i.jsx(
11597
+ (a || s) && /* @__PURE__ */ i.jsxs(
11592
11598
  ee,
11593
11599
  {
11594
11600
  sx: {
11595
- paddingTop: 2,
11596
- px: 3
11601
+ py: 2,
11602
+ px: 3,
11603
+ flexShrink: 0,
11604
+ display: "flex",
11605
+ flexDirection: "column",
11606
+ gap: 2
11597
11607
  },
11598
- children: /* @__PURE__ */ i.jsx(ue, { variant: "subtitle2", children: z("library:pankosmia-rcl:required_field", l.current) })
11608
+ children: [
11609
+ s && /* @__PURE__ */ i.jsx(ue, { variant: "subtitle2", children: z("library:pankosmia-rcl:required_field", d.current) }),
11610
+ a
11611
+ ]
11599
11612
  }
11600
11613
  ),
11601
11614
  /* @__PURE__ */ i.jsx(
11602
11615
  ss,
11603
11616
  {
11604
11617
  sx: {
11605
- py: "16px !important"
11618
+ pb: "16px !important",
11619
+ pt: a || s ? "0px" : "16px !important",
11620
+ flex: 1,
11621
+ minHeight: 0
11606
11622
  },
11607
11623
  children: n
11608
11624
  }
11609
11625
  ),
11610
- !c && /* @__PURE__ */ i.jsx(Pn, {}),
11611
- !c && /* @__PURE__ */ i.jsx(Qr, { children: o && o.map((f) => f) })
11626
+ !f && /* @__PURE__ */ i.jsx(Pn, {}),
11627
+ !f && /* @__PURE__ */ i.jsx(Qr, { children: o && o.map((m) => m) })
11612
11628
  ]
11613
11629
  }
11614
11630
  );
@@ -12065,7 +12081,7 @@ function Fm({
12065
12081
  debugRef: t,
12066
12082
  i18nRef: r
12067
12083
  }) {
12068
- const [n, o] = X([]);
12084
+ const [n, o] = J([]);
12069
12085
  return ae(() => {
12070
12086
  t.current ? o(
12071
12087
  e.filter((s) => !s.exclude_from_menu && s.requires.debug)
@@ -12081,7 +12097,7 @@ function Fm({
12081
12097
  window.location.href = s.url;
12082
12098
  },
12083
12099
  children: [
12084
- /* @__PURE__ */ i.jsx(gt, {}),
12100
+ /* @__PURE__ */ i.jsx(yt, {}),
12085
12101
  /* @__PURE__ */ i.jsx(
12086
12102
  Ie,
12087
12103
  {
@@ -12119,10 +12135,10 @@ process.env.NODE_ENV !== "production" && (rs.propTypes = {
12119
12135
  sx: g.oneOfType([g.arrayOf(g.oneOfType([g.func, g.object, g.bool])), g.func, g.object])
12120
12136
  });
12121
12137
  function zm({ i18nRef: e, betaRef: t, debugRef: r }) {
12122
- const [n, o] = X([]);
12138
+ const [n, o] = J([]);
12123
12139
  ae(() => {
12124
12140
  (async () => {
12125
- const c = await _e("/api/list-clients", r.current);
12141
+ const c = await $e("/api/list-clients", r.current);
12126
12142
  c.ok && o(
12127
12143
  c.json.filter((l) => !l.exclude_from_menu && l.requires.beta)
12128
12144
  );
@@ -12137,7 +12153,7 @@ function zm({ i18nRef: e, betaRef: t, debugRef: r }) {
12137
12153
  };
12138
12154
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
12139
12155
  n.length > 0 && /* @__PURE__ */ i.jsxs(Je, { onClick: s, children: [
12140
- /* @__PURE__ */ i.jsx(gt, { children: " " }),
12156
+ /* @__PURE__ */ i.jsx(yt, { children: " " }),
12141
12157
  /* @__PURE__ */ i.jsx(
12142
12158
  Ie,
12143
12159
  {
@@ -12154,7 +12170,7 @@ function zm({ i18nRef: e, betaRef: t, debugRef: r }) {
12154
12170
  window.location.href = a.url;
12155
12171
  },
12156
12172
  children: [
12157
- /* @__PURE__ */ i.jsx(gt, {}),
12173
+ /* @__PURE__ */ i.jsx(yt, {}),
12158
12174
  /* @__PURE__ */ i.jsx(
12159
12175
  Ie,
12160
12176
  {
@@ -12182,7 +12198,7 @@ function zm({ i18nRef: e, betaRef: t, debugRef: r }) {
12182
12198
  ] });
12183
12199
  }
12184
12200
  function kg({ navigation: e }) {
12185
- const t = Kt(), [r, n] = X(null), [o, s] = X(null), [a, c] = X(!1), [l, f] = X(!1), [d, m] = X(""), [y, h] = X([]), { enabledRef: b } = ie(Gt), { debugRef: p } = ie(ar), { i18nRef: x } = ie(Te), { betaRef: k } = ie(Fs), [C, w] = X(!1), _ = nr(t.breakpoints.down("sm")), T = (M) => {
12201
+ const t = Kt(), [r, n] = J(null), [o, s] = J(null), [a, c] = J(!1), [l, f] = J(!1), [d, m] = J(""), [y, h] = J([]), { enabledRef: b } = ie(Gt), { debugRef: p } = ie(ar), { i18nRef: x } = ie(Te), { betaRef: k } = ie(Fs), [C, w] = J(!1), _ = nr(t.breakpoints.down("sm")), T = (M) => {
12186
12202
  f(!0), s(M.currentTarget);
12187
12203
  }, R = (M) => {
12188
12204
  c(!0), n(M.currentTarget);
@@ -12190,9 +12206,9 @@ function kg({ navigation: e }) {
12190
12206
  f(!1), b.current ? tn("/api/net/disable", p.current) : w(!0);
12191
12207
  };
12192
12208
  ae(() => {
12193
- _e("/api/version").then((M) => M.json).then((M) => m(M.product_name)).catch((M) => console.error("Error :", M));
12209
+ $e("/api/version").then((M) => M.json).then((M) => m(M.product_name)).catch((M) => console.error("Error :", M));
12194
12210
  }, []), ae(() => {
12195
- _e("/api/list-clients").then((M) => M.json).then((M) => h(M)).catch((M) => console.error("Error :", M));
12211
+ $e("/api/list-clients").then((M) => M.json).then((M) => h(M)).catch((M) => console.error("Error :", M));
12196
12212
  }, []);
12197
12213
  const j = (M) => {
12198
12214
  const L = y.find((v) => v.id === M);
@@ -12211,7 +12227,7 @@ function kg({ navigation: e }) {
12211
12227
  },
12212
12228
  children: [
12213
12229
  /* @__PURE__ */ i.jsx(
12214
- at,
12230
+ ct,
12215
12231
  {
12216
12232
  color: "inherit",
12217
12233
  onClick: R,
@@ -12231,20 +12247,20 @@ function kg({ navigation: e }) {
12231
12247
  children: y.some(
12232
12248
  (M) => M.id === "core-local-workspace"
12233
12249
  ) && /* @__PURE__ */ i.jsxs(Je, { onClick: () => j("core-local-workspace"), children: [
12234
- /* @__PURE__ */ i.jsx(gt, { children: /* @__PURE__ */ i.jsx(Ch, {}) }),
12250
+ /* @__PURE__ */ i.jsx(yt, { children: /* @__PURE__ */ i.jsx(Ch, {}) }),
12235
12251
  /* @__PURE__ */ i.jsx(Ie, { children: z("library:pankosmia-rcl:add_workspace", x.current) })
12236
12252
  ] })
12237
12253
  }
12238
12254
  ),
12239
12255
  !_ && /* @__PURE__ */ i.jsx(
12240
- at,
12256
+ ct,
12241
12257
  {
12242
12258
  onClick: () => j("core-settings"),
12243
12259
  color: "inherit",
12244
12260
  children: /* @__PURE__ */ i.jsx(la, {})
12245
12261
  }
12246
12262
  ),
12247
- /* @__PURE__ */ i.jsx(at, { color: "inherit", onClick: T, children: /* @__PURE__ */ i.jsx(_h, {}) }),
12263
+ /* @__PURE__ */ i.jsx(ct, { color: "inherit", onClick: T, children: /* @__PURE__ */ i.jsx(_h, {}) }),
12248
12264
  /* @__PURE__ */ i.jsxs(
12249
12265
  aa,
12250
12266
  {
@@ -12253,13 +12269,13 @@ function kg({ navigation: e }) {
12253
12269
  isOpen: l,
12254
12270
  children: [
12255
12271
  _ && /* @__PURE__ */ i.jsxs(Je, { onClick: () => j("core-settings"), children: [
12256
- /* @__PURE__ */ i.jsx(gt, { children: /* @__PURE__ */ i.jsx(la, {}) }),
12272
+ /* @__PURE__ */ i.jsx(yt, { children: /* @__PURE__ */ i.jsx(la, {}) }),
12257
12273
  /* @__PURE__ */ i.jsx(Ie, { children: z("library:pankosmia-rcl:setting", x.current) })
12258
12274
  ] }),
12259
12275
  /* @__PURE__ */ i.jsxs(Je, { onClick: E, selected: b.current, children: [
12260
- /* @__PURE__ */ i.jsx(gt, { children: b.current ? /* @__PURE__ */ i.jsx(Ec, { fontSize: "small" }) : null }),
12276
+ /* @__PURE__ */ i.jsx(yt, { children: b.current ? /* @__PURE__ */ i.jsx(Ec, { fontSize: "small" }) : null }),
12261
12277
  /* @__PURE__ */ i.jsx(Ie, { children: z("library:pankosmia-rcl:online_mode", x.current) }),
12262
- /* @__PURE__ */ i.jsx(gt, { children: /* @__PURE__ */ i.jsx(
12278
+ /* @__PURE__ */ i.jsx(yt, { children: /* @__PURE__ */ i.jsx(
12263
12279
  Cc,
12264
12280
  {
12265
12281
  color: "primary",
@@ -12272,17 +12288,17 @@ function kg({ navigation: e }) {
12272
12288
  ] }),
12273
12289
  /* @__PURE__ */ i.jsx(Pn, {}),
12274
12290
  y.some((M) => M.id === "core-dashboard") && /* @__PURE__ */ i.jsxs(Je, { onClick: () => j("core-dashboard"), children: [
12275
- /* @__PURE__ */ i.jsx(gt, { children: /* @__PURE__ */ i.jsx(jh, {}) }),
12291
+ /* @__PURE__ */ i.jsx(yt, { children: /* @__PURE__ */ i.jsx(jh, {}) }),
12276
12292
  /* @__PURE__ */ i.jsx(Ie, { children: z("library:pankosmia-rcl:my_project", x.current) })
12277
12293
  ] }),
12278
12294
  y.some(
12279
12295
  (M) => M.id === "core-client_pdf_publisher"
12280
12296
  ) && /* @__PURE__ */ i.jsxs(Je, { onClick: () => j("core-client_pdf_publisher"), children: [
12281
- /* @__PURE__ */ i.jsx(gt, { children: /* @__PURE__ */ i.jsx(Rh, {}) }),
12297
+ /* @__PURE__ */ i.jsx(yt, { children: /* @__PURE__ */ i.jsx(Rh, {}) }),
12282
12298
  /* @__PURE__ */ i.jsx(Ie, { children: z("library:pankosmia-rcl:pdf_publisher", x.current) })
12283
12299
  ] }),
12284
12300
  y.some((M) => M.id === "content") && /* @__PURE__ */ i.jsxs(Je, { onClick: () => j("content"), children: [
12285
- /* @__PURE__ */ i.jsx(gt, { children: /* @__PURE__ */ i.jsx($h, {}) }),
12301
+ /* @__PURE__ */ i.jsx(yt, { children: /* @__PURE__ */ i.jsx($h, {}) }),
12286
12302
  /* @__PURE__ */ i.jsx(Ie, { children: z(
12287
12303
  "library:pankosmia-rcl:content_manager",
12288
12304
  x.current
@@ -12453,18 +12469,18 @@ function Xm({
12453
12469
  onSaved: n,
12454
12470
  renderActions: o
12455
12471
  }) {
12456
- const { i18nRef: s } = ie(Te), { debugRef: a } = ie(ar), c = (Z) => z(Z, s.current), [l, f] = X(e), d = (l == null ? void 0 : l.local_path) ?? (l == null ? void 0 : l.path), [m, y] = X("details"), [h, b] = X(r), [p, x] = X(!1), k = !t && h, C = !k, [w, _] = X({
12472
+ const { i18nRef: s } = ie(Te), { debugRef: a } = ie(ar), c = (H) => z(H, s.current), [l, f] = J(e), d = (l == null ? void 0 : l.local_path) ?? (l == null ? void 0 : l.path), [m, y] = J("details"), [h, b] = J(r), [p, x] = J(!1), k = !t && h, C = !k, [w, _] = J({
12457
12473
  abbreviation: "",
12458
12474
  name: "",
12459
12475
  description: ""
12460
- }), [T, R] = X({
12476
+ }), [T, R] = J({
12461
12477
  language_code: "",
12462
12478
  language_name: "",
12463
12479
  script_direction: ""
12464
- }), [E, j] = X(!1), [M, L] = X(), [v, u] = X(), I = (Z) => Z.trim() === "" ? "library:pankosmia-rcl:required_field" : null, O = (Z) => Z.trim() === "" ? "library:pankosmia-rcl:required_field" : null, N = I(w.abbreviation), Y = O(w.name), J = !N && !Y, ne = v !== "free" || ((M == null ? void 0 : M.free_text) ?? "").trim() !== "", se = {
12465
- details: J,
12480
+ }), [E, j] = J(!1), [M, L] = J(), [v, u] = J(), I = (H) => H.trim() === "" ? "library:pankosmia-rcl:required_field" : null, O = (H) => H.trim() === "" ? "library:pankosmia-rcl:required_field" : null, N = I(w.abbreviation), q = O(w.name), Q = !N && !q, re = v !== "free" || ((M == null ? void 0 : M.free_text) ?? "").trim() !== "", se = {
12481
+ details: Q,
12466
12482
  language: E,
12467
- copyright: ne
12483
+ copyright: re
12468
12484
  }, F = Object.values(se).every(Boolean), S = k && F && !p, W = [
12469
12485
  {
12470
12486
  label: "library:pankosmia-rcl:abbreviation",
@@ -12478,24 +12494,24 @@ function Xm({
12478
12494
  label: "library:pankosmia-rcl:description",
12479
12495
  value: w.description
12480
12496
  }
12481
- ], H = xt(() => {
12482
- var Z;
12497
+ ], Y = vt(() => {
12498
+ var H;
12483
12499
  return l ? {
12484
12500
  ...l,
12485
- nBooks: ((Z = l.book_codes) == null ? void 0 : Z.length) ?? 0
12501
+ nBooks: ((H = l.book_codes) == null ? void 0 : H.length) ?? 0
12486
12502
  } : null;
12487
- }, [l]), P = (Z) => {
12503
+ }, [l]), P = (H) => {
12488
12504
  if (_({
12489
- abbreviation: Z.abbreviation ?? "",
12490
- name: Z.name ?? "",
12491
- description: Z.description ?? ""
12505
+ abbreviation: H.abbreviation ?? "",
12506
+ name: H.name ?? "",
12507
+ description: H.description ?? ""
12492
12508
  }), R({
12493
- language_code: Z.language_code ?? "",
12494
- language_name: Z.language_name ?? "",
12495
- script_direction: Z.script_direction ?? ""
12496
- }), Z.copyright !== void 0) {
12497
- const U = Km(Z.copyright);
12498
- L(U.copyright), u(U.optionCopyright);
12509
+ language_code: H.language_code ?? "",
12510
+ language_name: H.language_name ?? "",
12511
+ script_direction: H.script_direction ?? ""
12512
+ }), j(!!H.language_code), H.copyright !== void 0) {
12513
+ const ne = Km(H.copyright);
12514
+ L(ne.copyright), u(ne.optionCopyright);
12499
12515
  }
12500
12516
  };
12501
12517
  ae(() => {
@@ -12505,13 +12521,11 @@ function Xm({
12505
12521
  }, [l]), ae(() => {
12506
12522
  y("details"), b(r);
12507
12523
  }, [d]);
12508
- const G = (Z, U) => {
12509
- k && !se[m] || y(U);
12524
+ const G = (H, ne) => {
12525
+ k && !se[m] || y(ne);
12510
12526
  }, A = () => {
12511
12527
  P(l), b(!1);
12512
- }, $ = () => {
12513
- k ? A() : b(!0);
12514
- }, V = () => ({
12528
+ }, $ = () => ({
12515
12529
  abbreviation: w.abbreviation.trim(),
12516
12530
  name: w.name.trim(),
12517
12531
  description: w.description,
@@ -12519,88 +12533,103 @@ function Xm({
12519
12533
  language_name: T.language_name,
12520
12534
  script_direction: T.script_direction,
12521
12535
  copyright: M ? sn(v, M) ?? "" : ""
12522
- }), K = async () => {
12536
+ }), V = async () => {
12523
12537
  if (S) {
12524
12538
  x(!0);
12525
12539
  try {
12526
- const Z = V(), U = await bl(
12540
+ const H = $(), ne = await bl(
12527
12541
  `/api/burrito/metadata/edit/${d}`,
12528
- JSON.stringify(Z),
12542
+ JSON.stringify(H),
12529
12543
  a.current
12530
12544
  );
12531
- if (U.ok) {
12532
- const Ee = { ...l, ...Z };
12533
- f(Ee), b(!1), n == null || n(Ee);
12545
+ if (ne.ok) {
12546
+ const K = { ...l, ...H };
12547
+ f(K), b(!1), n == null || n(K);
12534
12548
  } else
12535
- console.error(c("library:pankosmia-rcl:error_data"), U);
12536
- } catch (Z) {
12537
- console.error(Z);
12549
+ console.error(c("library:pankosmia-rcl:error_data"), ne);
12550
+ } catch (H) {
12551
+ console.error(H);
12538
12552
  } finally {
12539
12553
  x(!1);
12540
12554
  }
12541
12555
  }
12542
12556
  };
12543
- if (!H)
12557
+ if (!Y)
12544
12558
  return /* @__PURE__ */ i.jsx(Kn, {});
12545
- const te = o ? o({ isEditMode: k, canSave: S, isSaving: p, save: K, cancel: A }) : k ? /* @__PURE__ */ i.jsx(ee, { sx: { display: "flex", justifyContent: "flex-end", mt: 2 }, children: /* @__PURE__ */ i.jsx(wt, { variant: "contained", disabled: !S, onClick: K, children: c("library:pankosmia-rcl:edit") }) }) : null;
12559
+ const X = o ? o({ isEditMode: k, canSave: S, isSaving: p, save: V, cancel: A }) : null;
12546
12560
  return /* @__PURE__ */ i.jsxs(ee, { children: [
12561
+ !t && /* @__PURE__ */ i.jsx(ee, { sx: { display: "flex", gap: 1, flexWrap: "wrap", mb: 2 }, children: k ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
12562
+ /* @__PURE__ */ i.jsx(at, { size: "small", variant: "outlined", disabled: !0, children: c("library:pankosmia-rcl:editing") }),
12563
+ /* @__PURE__ */ i.jsx(
12564
+ at,
12565
+ {
12566
+ size: "small",
12567
+ variant: "outlined",
12568
+ onClick: A,
12569
+ disabled: p,
12570
+ children: c("library:pankosmia-rcl:cancel")
12571
+ }
12572
+ ),
12573
+ /* @__PURE__ */ i.jsx(
12574
+ at,
12575
+ {
12576
+ size: "small",
12577
+ variant: "outlined",
12578
+ onClick: V,
12579
+ disabled: !S,
12580
+ children: c("library:pankosmia-rcl:save")
12581
+ }
12582
+ )
12583
+ ] }) : /* @__PURE__ */ i.jsx(
12584
+ at,
12585
+ {
12586
+ size: "small",
12587
+ variant: "outlined",
12588
+ onClick: () => b(!0),
12589
+ children: c("library:pankosmia-rcl:edit_data")
12590
+ }
12591
+ ) }),
12547
12592
  /* @__PURE__ */ i.jsxs(
12548
- ee,
12593
+ cl,
12549
12594
  {
12550
- sx: {
12551
- display: "flex",
12552
- alignItems: "center",
12553
- justifyContent: "space-between",
12554
- mb: 2,
12555
- borderBottom: 1,
12556
- borderColor: "divider"
12557
- },
12595
+ value: m,
12596
+ onChange: G,
12597
+ sx: { mb: 2, borderBottom: 1, borderColor: "divider" },
12558
12598
  children: [
12559
- /* @__PURE__ */ i.jsxs(cl, { value: m, onChange: G, children: [
12560
- /* @__PURE__ */ i.jsx(vo, { value: "details", label: c("library:pankosmia-rcl:details") }),
12561
- /* @__PURE__ */ i.jsx(vo, { value: "language", label: c("library:pankosmia-rcl:language") }),
12562
- /* @__PURE__ */ i.jsx(vo, { value: "copyright", label: c("library:pankosmia-rcl:copyright") })
12563
- ] }),
12564
- !t && /* @__PURE__ */ i.jsx(
12565
- wt,
12566
- {
12567
- size: "small",
12568
- variant: k ? "contained" : "outlined",
12569
- onClick: $,
12570
- children: c("library:pankosmia-rcl:edit_mode")
12571
- }
12572
- )
12599
+ /* @__PURE__ */ i.jsx(vo, { value: "details", label: c("library:pankosmia-rcl:details") }),
12600
+ /* @__PURE__ */ i.jsx(vo, { value: "language", label: c("library:pankosmia-rcl:language") }),
12601
+ /* @__PURE__ */ i.jsx(vo, { value: "copyright", label: c("library:pankosmia-rcl:copyright") })
12573
12602
  ]
12574
12603
  }
12575
12604
  ),
12576
12605
  m === "details" && /* @__PURE__ */ i.jsxs(St, { spacing: 2, children: [
12577
12606
  /* @__PURE__ */ i.jsxs(St, { direction: "row", spacing: 1, children: [
12578
- H.flavor && /* @__PURE__ */ i.jsx(
12607
+ Y.flavor && /* @__PURE__ */ i.jsx(
12579
12608
  Yn,
12580
12609
  {
12581
12610
  text: c(
12582
- `flavors:names:${H.flavor_type}/${H.flavor}`
12611
+ `flavors:names:${Y.flavor_type}/${Y.flavor}`
12583
12612
  )
12584
12613
  }
12585
12614
  ),
12586
- H.generated_date && /* @__PURE__ */ i.jsx(
12615
+ Y.generated_date && /* @__PURE__ */ i.jsx(
12587
12616
  Yn,
12588
12617
  {
12589
- text: `${c("library:pankosmia-rcl:dateUdapted")} ${H.generated_date}`
12618
+ text: `${c("library:pankosmia-rcl:dateUdapted")} ${Y.generated_date}`
12590
12619
  }
12591
12620
  )
12592
12621
  ] }),
12593
- C ? /* @__PURE__ */ i.jsx(ee, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: W.map(({ label: Z, value: U }) => /* @__PURE__ */ i.jsxs(ee, { children: [
12622
+ C ? /* @__PURE__ */ i.jsx(ee, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: W.map(({ label: H, value: ne }) => /* @__PURE__ */ i.jsxs(ee, { children: [
12594
12623
  /* @__PURE__ */ i.jsx(
12595
12624
  ue,
12596
12625
  {
12597
12626
  variant: "caption",
12598
12627
  sx: { display: "block", color: "text.secondary" },
12599
- children: c(Z)
12628
+ children: c(H)
12600
12629
  }
12601
12630
  ),
12602
- /* @__PURE__ */ i.jsx(ue, { variant: "body1", sx: { whiteSpace: "pre-wrap" }, children: U })
12603
- ] }, Z)) }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
12631
+ /* @__PURE__ */ i.jsx(ue, { variant: "body1", sx: { whiteSpace: "pre-wrap" }, children: ne })
12632
+ ] }, H)) }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
12604
12633
  /* @__PURE__ */ i.jsx(
12605
12634
  We,
12606
12635
  {
@@ -12610,7 +12639,7 @@ function Xm({
12610
12639
  helperText: N ? c(N) : " ",
12611
12640
  label: c("library:pankosmia-rcl:abbreviation"),
12612
12641
  value: w.abbreviation,
12613
- onChange: (Z) => _((U) => ({ ...U, abbreviation: Z.target.value }))
12642
+ onChange: (H) => _((ne) => ({ ...ne, abbreviation: H.target.value }))
12614
12643
  }
12615
12644
  ),
12616
12645
  /* @__PURE__ */ i.jsx(
@@ -12618,11 +12647,11 @@ function Xm({
12618
12647
  {
12619
12648
  fullWidth: !0,
12620
12649
  required: !0,
12621
- error: !!Y,
12622
- helperText: Y ? c(Y) : " ",
12650
+ error: !!q,
12651
+ helperText: q ? c(q) : " ",
12623
12652
  label: c("library:pankosmia-rcl:repo_name"),
12624
12653
  value: w.name,
12625
- onChange: (Z) => _((U) => ({ ...U, name: Z.target.value }))
12654
+ onChange: (H) => _((ne) => ({ ...ne, name: H.target.value }))
12626
12655
  }
12627
12656
  ),
12628
12657
  /* @__PURE__ */ i.jsx(
@@ -12631,7 +12660,7 @@ function Xm({
12631
12660
  fullWidth: !0,
12632
12661
  label: c("library:pankosmia-rcl:description"),
12633
12662
  value: w.description,
12634
- onChange: (Z) => _((U) => ({ ...U, description: Z.target.value }))
12663
+ onChange: (H) => _((ne) => ({ ...ne, description: H.target.value }))
12635
12664
  }
12636
12665
  )
12637
12666
  ] })
@@ -12656,7 +12685,7 @@ function Xm({
12656
12685
  editMode: Gm
12657
12686
  }
12658
12687
  ),
12659
- te
12688
+ X
12660
12689
  ] });
12661
12690
  }
12662
12691
  const Jm = {
@@ -12677,7 +12706,7 @@ function jg({
12677
12706
  infoReadOnly: n = !0,
12678
12707
  onInfoSaved: o
12679
12708
  }) {
12680
- const { i18nRef: s } = ie(Te), { panGapContentMedium: a, panGapContentSmall: c } = Wm(), l = Kt(), f = nr(l.breakpoints.down("sm")), [d, m] = X(null), y = l.direction === "rtl", h = !!r, b = (p) => z(p, s.current);
12709
+ const { i18nRef: s } = ie(Te), { panGapContentMedium: a, panGapContentSmall: c } = Wm(), l = Kt(), f = nr(l.breakpoints.down("sm")), [d, m] = J(null), y = l.direction === "rtl", h = !!r, b = (p) => z(p, s.current);
12681
12710
  return e ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
12682
12711
  /* @__PURE__ */ i.jsx(mr, { sx: { width: "100%", minWidth: 0 }, children: e.map((p) => {
12683
12712
  const x = p.abbreviation ?? "", k = p.language_code ?? "", C = h ? ot : ee, w = h ? { component: "div", onClick: () => r(p) } : {};
@@ -12788,7 +12817,7 @@ function jg({
12788
12817
  cursor: "default"
12789
12818
  },
12790
12819
  children: [
12791
- /* @__PURE__ */ i.jsx(at, { onClick: () => m(p), children: /* @__PURE__ */ i.jsx(Eh, {}) }),
12820
+ /* @__PURE__ */ i.jsx(ct, { onClick: () => m(p), children: /* @__PURE__ */ i.jsx(Eh, {}) }),
12792
12821
  t
12793
12822
  ]
12794
12823
  }
@@ -12864,9 +12893,9 @@ function Zm({
12864
12893
  closeFn: t,
12865
12894
  onApply: r
12866
12895
  }) {
12867
- const { i18nRef: n } = ie(Te), o = (C) => z(`library:pankosmia-rcl:${C}`, n.current), [s, a] = X(Qm), c = (C) => a((w) => ({ ...w, ...C })), l = ns.find(
12896
+ const { i18nRef: n } = ie(Te), o = (C) => z(`library:pankosmia-rcl:${C}`, n.current), [s, a] = J(Qm), c = (C) => a((w) => ({ ...w, ...C })), l = ns.find(
12868
12897
  (C) => C.value === s.license
12869
- ), f = !!(l != null && l.versioned), [d, m] = X(!1), y = d && !s.author_name.trim(), h = d && !Bc.test(s.year.trim()), b = d && f && !s.version, p = () => {
12898
+ ), f = !!(l != null && l.versioned), [d, m] = J(!1), y = d && !s.author_name.trim(), h = d && !Bc.test(s.year.trim()), b = d && f && !s.version, p = () => {
12870
12899
  if (m(!0), !Hm("builder", s)) return;
12871
12900
  const C = sn("builder", s, o).replace(
12872
12901
  /^©\s*/,
@@ -12962,7 +12991,7 @@ function Zm({
12962
12991
  Xe,
12963
12992
  {
12964
12993
  value: "year_first",
12965
- control: /* @__PURE__ */ i.jsx(vt, {}),
12994
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
12966
12995
  label: o("order_year_first")
12967
12996
  }
12968
12997
  ),
@@ -12970,7 +12999,7 @@ function Zm({
12970
12999
  Xe,
12971
13000
  {
12972
13001
  value: "holder_first",
12973
- control: /* @__PURE__ */ i.jsx(vt, {}),
13002
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
12974
13003
  label: o("order_holder_first")
12975
13004
  }
12976
13005
  )
@@ -12989,7 +13018,7 @@ function eg({
12989
13018
  setCopyright: r,
12990
13019
  copyright: n
12991
13020
  }) {
12992
- const { i18nRef: o } = ie(Te), s = (d) => z(`library:pankosmia-rcl:${d}`, o.current), [a, c] = X(!1), l = (d) => r({ ...n, ...d }), f = e === "free";
13021
+ const { i18nRef: o } = ie(Te), s = (d) => z(`library:pankosmia-rcl:${d}`, o.current), [a, c] = J(!1), l = (d) => r({ ...n, ...d }), f = e === "free";
12993
13022
  return /* @__PURE__ */ i.jsxs(Em, { titleSection: s("copyright"), children: [
12994
13023
  /* @__PURE__ */ i.jsx(
12995
13024
  Fc,
@@ -13011,7 +13040,7 @@ function eg({
13011
13040
  Xe,
13012
13041
  {
13013
13042
  value: "unspecified",
13014
- control: /* @__PURE__ */ i.jsx(vt, {}),
13043
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13015
13044
  label: s("unspecified")
13016
13045
  }
13017
13046
  ),
@@ -13019,7 +13048,7 @@ function eg({
13019
13048
  Xe,
13020
13049
  {
13021
13050
  value: "public-domain",
13022
- control: /* @__PURE__ */ i.jsx(vt, {}),
13051
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13023
13052
  label: s("public_domain")
13024
13053
  }
13025
13054
  ),
@@ -13027,7 +13056,7 @@ function eg({
13027
13056
  Xe,
13028
13057
  {
13029
13058
  value: "free",
13030
- control: /* @__PURE__ */ i.jsx(vt, {}),
13059
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13031
13060
  label: s("licenced")
13032
13061
  }
13033
13062
  )
@@ -13052,7 +13081,7 @@ function eg({
13052
13081
  }
13053
13082
  ),
13054
13083
  /* @__PURE__ */ i.jsx(ee, { children: /* @__PURE__ */ i.jsx(
13055
- wt,
13084
+ at,
13056
13085
  {
13057
13086
  variant: "outlined",
13058
13087
  disabled: !f,
@@ -13110,7 +13139,7 @@ function rg({
13110
13139
  setIsValid: r,
13111
13140
  open: n = !0
13112
13141
  }) {
13113
- const [o, s] = X("BCP47List"), [a, c] = X(!1), { i18nRef: l } = ie(Te), [f, d] = X(!0), [m, y] = X(!1), [h, b] = X(""), [p, x] = X([]), [k, C] = X(!1), [w, _] = X({}), [T, R] = X(!0), E = /^x-[a-z]{3}$/, j = (v) => v.replace(/^x-/, "X ");
13142
+ const [o, s] = J("BCP47List"), [a, c] = J(!1), { i18nRef: l } = ie(Te), [f, d] = J(!0), [m, y] = J(!1), [h, b] = J(""), [p, x] = J([]), [k, C] = J(!1), [w, _] = J({}), [T, R] = J(!0), E = /^x-[a-z]{3}$/, j = (v) => v.replace(/^x-/, "X ");
13114
13143
  ae(() => {
13115
13144
  n && An({
13116
13145
  url: "/api/git/list-local-repos",
@@ -13139,7 +13168,7 @@ function rg({
13139
13168
  language_name: `${e.language_name}`
13140
13169
  }), s("customLanguage"))), R(!1));
13141
13170
  }, [w, T, M]), ae(() => {
13142
- h && _e(`/api/burrito/metadata/summary/${h}`).then((v) => v.json).then(
13171
+ h && $e(`/api/burrito/metadata/summary/${h}`).then((v) => v.json).then(
13143
13172
  (v) => t({
13144
13173
  ...e,
13145
13174
  language_code: v.language_code,
@@ -13183,7 +13212,7 @@ function rg({
13183
13212
  Xe,
13184
13213
  {
13185
13214
  value: "BCP47List",
13186
- control: /* @__PURE__ */ i.jsx(vt, {}),
13215
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13187
13216
  label: z(
13188
13217
  "library:pankosmia-rcl:lang_code_bcp47_list",
13189
13218
  l.current
@@ -13194,7 +13223,7 @@ function rg({
13194
13223
  Xe,
13195
13224
  {
13196
13225
  value: "burrito",
13197
- control: /* @__PURE__ */ i.jsx(vt, {}),
13226
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13198
13227
  label: z(
13199
13228
  "library:pankosmia-rcl:lang_code_burrito",
13200
13229
  l.current
@@ -13205,7 +13234,7 @@ function rg({
13205
13234
  Xe,
13206
13235
  {
13207
13236
  value: "customLanguage",
13208
- control: /* @__PURE__ */ i.jsx(vt, {}),
13237
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13209
13238
  label: z(
13210
13239
  "library:pankosmia-rcl:lang_code_custom_language",
13211
13240
  l.current
@@ -13216,12 +13245,12 @@ function rg({
13216
13245
  }
13217
13246
  )
13218
13247
  ] }),
13219
- o === "BCP47List" && /* @__PURE__ */ i.jsxs($e, { container: !0, spacing: 2, children: [
13220
- /* @__PURE__ */ i.jsx($e, { size: 12, children: /* @__PURE__ */ i.jsx(ue, { children: z(
13248
+ o === "BCP47List" && /* @__PURE__ */ i.jsxs(Ee, { container: !0, spacing: 2, children: [
13249
+ /* @__PURE__ */ i.jsx(Ee, { size: 12, children: /* @__PURE__ */ i.jsx(ue, { children: z(
13221
13250
  "library:pankosmia-rcl:description_bcp47_list",
13222
13251
  l.current
13223
13252
  ) }) }),
13224
- /* @__PURE__ */ i.jsx($e, { size: 6, children: w && /* @__PURE__ */ i.jsx(
13253
+ /* @__PURE__ */ i.jsx(Ee, { size: 6, children: w && /* @__PURE__ */ i.jsx(
13225
13254
  Ji,
13226
13255
  {
13227
13256
  value: e.language_code ?? null,
@@ -13241,13 +13270,13 @@ function rg({
13241
13270
  filterOptions: (v, { inputValue: u }) => {
13242
13271
  const I = u.toLowerCase();
13243
13272
  return v.filter((O) => {
13244
- var Y, J;
13273
+ var q, Q;
13245
13274
  const N = w[O];
13246
- return ((Y = N == null ? void 0 : N.en) == null ? void 0 : Y.toLowerCase().includes(I)) || ((J = N == null ? void 0 : N[O]) == null ? void 0 : J.toLowerCase().includes(I));
13275
+ return ((q = N == null ? void 0 : N.en) == null ? void 0 : q.toLowerCase().includes(I)) || ((Q = N == null ? void 0 : N[O]) == null ? void 0 : Q.toLowerCase().includes(I));
13247
13276
  }).sort(
13248
13277
  (O, N) => {
13249
- var Y, J, ne, se;
13250
- return ((J = (Y = w[O]) == null ? void 0 : Y.en) == null ? void 0 : J.toLowerCase().indexOf(I)) - ((se = (ne = w[N]) == null ? void 0 : ne.en) == null ? void 0 : se.toLowerCase().indexOf(I));
13278
+ var q, Q, re, se;
13279
+ return ((Q = (q = w[O]) == null ? void 0 : q.en) == null ? void 0 : Q.toLowerCase().indexOf(I)) - ((se = (re = w[N]) == null ? void 0 : re.en) == null ? void 0 : se.toLowerCase().indexOf(I));
13251
13280
  }
13252
13281
  );
13253
13282
  },
@@ -13257,7 +13286,7 @@ function rg({
13257
13286
  )} *`
13258
13287
  }
13259
13288
  ) }),
13260
- /* @__PURE__ */ i.jsx($e, { size: 6, children: /* @__PURE__ */ i.jsx(
13289
+ /* @__PURE__ */ i.jsx(Ee, { size: 6, children: /* @__PURE__ */ i.jsx(
13261
13290
  We,
13262
13291
  {
13263
13292
  disabled: !0,
@@ -13269,7 +13298,7 @@ function rg({
13269
13298
  ) })
13270
13299
  ] }),
13271
13300
  o === "burrito" && /* @__PURE__ */ i.jsxs(
13272
- $e,
13301
+ Ee,
13273
13302
  {
13274
13303
  container: !0,
13275
13304
  spacing: 1,
@@ -13282,7 +13311,7 @@ function rg({
13282
13311
  "library:pankosmia-rcl:description_lang_code_burrito",
13283
13312
  l.current
13284
13313
  ) }),
13285
- /* @__PURE__ */ i.jsxs($e, { size: 12, children: [
13314
+ /* @__PURE__ */ i.jsxs(Ee, { size: 12, children: [
13286
13315
  /* @__PURE__ */ i.jsx(wn, { children: z(
13287
13316
  "library:pankosmia-rcl:title_section_burrito",
13288
13317
  l.current
@@ -13325,7 +13354,7 @@ function rg({
13325
13354
  )
13326
13355
  ] })
13327
13356
  ] }),
13328
- /* @__PURE__ */ i.jsx($e, { size: 12, children: /* @__PURE__ */ i.jsx(
13357
+ /* @__PURE__ */ i.jsx(Ee, { size: 12, children: /* @__PURE__ */ i.jsx(
13329
13358
  Ji,
13330
13359
  {
13331
13360
  data: L,
@@ -13334,7 +13363,7 @@ function rg({
13334
13363
  titleLabel: `${z("library:pankosmia-rcl:document", l.current)} *`
13335
13364
  }
13336
13365
  ) }),
13337
- /* @__PURE__ */ i.jsx($e, { size: 6, children: /* @__PURE__ */ i.jsx(
13366
+ /* @__PURE__ */ i.jsx(Ee, { size: 6, children: /* @__PURE__ */ i.jsx(
13338
13367
  We,
13339
13368
  {
13340
13369
  disabled: !0,
@@ -13344,7 +13373,7 @@ function rg({
13344
13373
  value: e ? e.language_name : null
13345
13374
  }
13346
13375
  ) }),
13347
- /* @__PURE__ */ i.jsx($e, { size: 6, children: /* @__PURE__ */ i.jsx(
13376
+ /* @__PURE__ */ i.jsx(Ee, { size: 6, children: /* @__PURE__ */ i.jsx(
13348
13377
  We,
13349
13378
  {
13350
13379
  disabled: !0,
@@ -13358,7 +13387,7 @@ function rg({
13358
13387
  }
13359
13388
  ),
13360
13389
  o === "customLanguage" && /* @__PURE__ */ i.jsxs(
13361
- $e,
13390
+ Ee,
13362
13391
  {
13363
13392
  container: !0,
13364
13393
  spacing: 1,
@@ -13367,11 +13396,11 @@ function rg({
13367
13396
  alignItems: "stretch"
13368
13397
  },
13369
13398
  children: [
13370
- /* @__PURE__ */ i.jsx($e, { size: 12, children: /* @__PURE__ */ i.jsx(ue, { children: z(
13399
+ /* @__PURE__ */ i.jsx(Ee, { size: 12, children: /* @__PURE__ */ i.jsx(ue, { children: z(
13371
13400
  "library:pankosmia-rcl:description_custom_language",
13372
13401
  l.current
13373
13402
  ) }) }),
13374
- /* @__PURE__ */ i.jsx($e, { size: 6, children: /* @__PURE__ */ i.jsx(
13403
+ /* @__PURE__ */ i.jsx(Ee, { size: 6, children: /* @__PURE__ */ i.jsx(
13375
13404
  We,
13376
13405
  {
13377
13406
  id: "language_name",
@@ -13396,7 +13425,7 @@ function rg({
13396
13425
  }
13397
13426
  }
13398
13427
  ) }),
13399
- /* @__PURE__ */ i.jsx($e, { size: 6, children: /* @__PURE__ */ i.jsx(
13428
+ /* @__PURE__ */ i.jsx(Ee, { size: 6, children: /* @__PURE__ */ i.jsx(
13400
13429
  We,
13401
13430
  {
13402
13431
  id: "language_code",
@@ -13453,7 +13482,7 @@ function rg({
13453
13482
  Xe,
13454
13483
  {
13455
13484
  value: "ltr",
13456
- control: /* @__PURE__ */ i.jsx(vt, {}),
13485
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13457
13486
  label: z("library:pankosmia-rcl:ltr", l.current)
13458
13487
  }
13459
13488
  ),
@@ -13461,7 +13490,7 @@ function rg({
13461
13490
  Xe,
13462
13491
  {
13463
13492
  value: "rtl",
13464
- control: /* @__PURE__ */ i.jsx(vt, {}),
13493
+ control: /* @__PURE__ */ i.jsx(Ct, {}),
13465
13494
  label: z("library:pankosmia-rcl:rtl", l.current)
13466
13495
  }
13467
13496
  )