wcz-test 6.25.0 → 6.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/DialogsHooks-DzqOb2Zx.js +233 -0
  2. package/dist/DialogsHooks-DzqOb2Zx.js.map +1 -0
  3. package/dist/FileHooks-C8Akmy_o.js +2694 -0
  4. package/dist/FileHooks-C8Akmy_o.js.map +1 -0
  5. package/dist/RouterListItemButton-Spme9i4b.js +661 -0
  6. package/dist/RouterListItemButton-Spme9i4b.js.map +1 -0
  7. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  8. package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  9. package/dist/components.js +2666 -518
  10. package/dist/components.js.map +1 -1
  11. package/dist/hooks.js +908 -354
  12. package/dist/hooks.js.map +1 -1
  13. package/dist/index-Biz5inV2.js +268 -0
  14. package/dist/index-Biz5inV2.js.map +1 -0
  15. package/dist/index.d.ts +0 -3
  16. package/dist/index.js +746 -1448
  17. package/dist/index.js.map +1 -1
  18. package/dist/queries.js +111 -113
  19. package/dist/queries.js.map +1 -1
  20. package/dist/utils-IWcYo8tM.js +106 -0
  21. package/dist/utils-IWcYo8tM.js.map +1 -0
  22. package/dist/utils.js +5 -5
  23. package/dist/vite.js +11 -11
  24. package/dist/vite.js.map +1 -1
  25. package/package.json +8 -15
  26. package/dist/DialogsHooks-DWkC9zAf.js +0 -114
  27. package/dist/DialogsHooks-DWkC9zAf.js.map +0 -1
  28. package/dist/FileHooks-CltSzAf8.js +0 -300
  29. package/dist/FileHooks-CltSzAf8.js.map +0 -1
  30. package/dist/RouterListItemButton-C_SG0uka.js +0 -18
  31. package/dist/RouterListItemButton-C_SG0uka.js.map +0 -1
  32. package/dist/env-4ZoUrNqp.js +0 -28
  33. package/dist/env-4ZoUrNqp.js.map +0 -1
  34. package/dist/queryClient--EvGPhnh.js +0 -6
  35. package/dist/queryClient--EvGPhnh.js.map +0 -1
  36. package/dist/server.d.ts +0 -11
  37. package/dist/server.js +0 -70
  38. package/dist/server.js.map +0 -1
  39. package/dist/session-7yb0BETM.js +0 -76
  40. package/dist/session-7yb0BETM.js.map +0 -1
  41. package/dist/utils-CZraUjBd.js +0 -82
  42. package/dist/utils-CZraUjBd.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,770 +1,123 @@
1
- import { jsx as m, jsxs as q, Fragment as Wt } from "react/jsx-runtime";
2
- import { c as ae } from "react/compiler-runtime";
3
- import { Stack as Ut, Typography as Ft, Chip as qt, Collapse as Bt, useMediaQuery as Ht, useColorScheme as Vt, ListItemButton as ve, ListItemText as ye, ListItemIcon as Te, ListItem as Gt, Avatar as Kt, ListSubheader as Ge, List as Re, IconButton as Ye, Box as ze, Menu as Xt, InitColorSchemeScript as Zt, CssBaseline as Jt, AppBar as Qt, Toolbar as er, LinearProgress as tr, ThemeProvider as rr } from "@mui/material";
4
- import { createServerFn as Fe, createIsomorphicFn as nr } from "@tanstack/react-start";
5
- import { getCookie as Dt } from "@tanstack/react-start/server";
6
- import G from "dayjs";
7
- import ie from "i18next";
8
- import or from "i18next-browser-languagedetector";
9
- import * as ne from "react";
10
- import { useState as le, useId as ir, useRef as dt, Fragment as qe, useEffect as Lt, Suspense as ar, useEffectEvent as sr } from "react";
11
- import { useTranslation as lr, initReactI18next as cr } from "react-i18next";
12
- import { resources as mt } from "virtual:wcz-layout";
13
- import ge from "zod";
14
- import { D as ur } from "./DialogsContext-2Yy6yhzQ.js";
15
- import fr from "@mui/icons-material/Menu";
16
- import dr from "@mui/icons-material/MenuOpen";
17
- import { useThemeProps as mr, styled as at, useTheme as pr } from "@mui/material/styles";
18
- import { useIsFetching as hr, useIsMutating as yr } from "@tanstack/react-query";
19
- import { c as gr } from "./env-4ZoUrNqp.js";
20
- import At from "@mui/material/Box";
21
- import pt from "@mui/material/Drawer";
22
- import { useNavigate as vr, useRouterState as Tr, Await as ht } from "@tanstack/react-router";
23
- import br from "@mui/material/Divider";
24
- import xr from "@mui/material/List";
25
- import Sr from "@mui/material/ListSubheader";
26
- import Er from "@mui/icons-material/ExpandMore";
27
- import _r from "@mui/material/Avatar";
28
- import Or from "@mui/material/ListItem";
29
- import wr from "@mui/material/ListItemButton";
30
- import Cr from "@mui/material/ListItemIcon";
31
- import Mr from "@mui/material/ListItemText";
32
- import Pr from "@mui/material/Paper";
33
- import kr from "@mui/material/Popper";
34
- import Ir from "@mui/material/Typography";
35
- import { R as Dr } from "./RouterListItemButton-C_SG0uka.js";
36
- import Lr from "@mui/icons-material/AccountCircle";
37
- import yt from "@mui/icons-material/ArrowBack";
38
- import Ar from "@mui/icons-material/Brightness4";
39
- import gt from "@mui/icons-material/ChevronRight";
40
- import Rr from "@mui/icons-material/DarkMode";
41
- import jr from "@mui/icons-material/Done";
42
- import $r from "@mui/icons-material/LightMode";
43
- import Yr from "@mui/icons-material/Logout";
44
- import zr from "@mui/icons-material/SettingsBrightness";
45
- import Nr from "@mui/icons-material/Translate";
46
- import st from "axios";
47
- import { q as lt } from "./queryClient--EvGPhnh.js";
48
- import { r as Wr, g as ct } from "./session-7yb0BETM.js";
49
- import Ur from "dayjs/plugin/weekOfYear.js";
50
- import Fr from "dayjs/plugin/customParseFormat.js";
51
- import qr from "dayjs/plugin/localizedFormat.js";
52
- import Br from "dayjs/plugin/isBetween.js";
53
- import Hr from "dayjs/plugin/advancedFormat.js";
54
- import { W as Yo, a as zo, r as No } from "./utils-CZraUjBd.js";
55
- function We() {
56
- return We = Object.assign ? Object.assign.bind() : function(t) {
1
+ import { jsx as i, jsxs as L, Fragment as ht } from "react/jsx-runtime";
2
+ import { c as B } from "react/compiler-runtime";
3
+ import { Stack as pt, Typography as gt, Chip as yt, Collapse as Tt, useMediaQuery as xt, useColorScheme as bt, ListItemButton as ie, ListItemText as se, ListItemIcon as ae, ListSubheader as Re, List as Pe, IconButton as Ee, ListItem as St, Box as Ae, Menu as Mt, InitColorSchemeScript as kt, CssBaseline as Lt, AppBar as Dt, Toolbar as _t, LinearProgress as vt, ThemeProvider as Ot } from "@mui/material";
4
+ import { createIsomorphicFn as Ct, createServerFn as wt } from "@tanstack/react-start";
5
+ import { getCookie as at } from "@tanstack/react-start/server";
6
+ import C from "dayjs";
7
+ import R from "i18next";
8
+ import It from "i18next-browser-languagedetector";
9
+ import * as U from "react";
10
+ import { useState as V, useId as Pt, useRef as Ke, Fragment as Ye, useEffect as lt, Suspense as Et, useEffectEvent as At } from "react";
11
+ import { useTranslation as jt, initReactI18next as zt } from "react-i18next";
12
+ import { resources as Je } from "virtual:wcz-layout";
13
+ import ze from "zod";
14
+ import { D as Nt } from "./DialogsContext-2Yy6yhzQ.js";
15
+ import $t from "@mui/icons-material/Menu";
16
+ import Yt from "@mui/icons-material/MenuOpen";
17
+ import { useThemeProps as Wt, styled as Ze, useTheme as Ut } from "@mui/material/styles";
18
+ import { useIsFetching as Ft, useIsMutating as Rt } from "@tanstack/react-query";
19
+ import { c as Bt } from "./utils-IWcYo8tM.js";
20
+ import { W as Vo, a as Go, r as Xo } from "./utils-IWcYo8tM.js";
21
+ import ct from "@mui/material/Box";
22
+ import Qe from "@mui/material/Drawer";
23
+ import { useNavigate as Ht, useRouterState as Vt } from "@tanstack/react-router";
24
+ import Gt from "@mui/material/Divider";
25
+ import Xt from "@mui/material/List";
26
+ import Zt from "@mui/material/ListSubheader";
27
+ import qt from "@mui/icons-material/ExpandMore";
28
+ import Kt from "@mui/material/Avatar";
29
+ import Jt from "@mui/material/ListItem";
30
+ import Qt from "@mui/material/ListItemButton";
31
+ import en from "@mui/material/ListItemIcon";
32
+ import tn from "@mui/material/ListItemText";
33
+ import nn from "@mui/material/Paper";
34
+ import on from "@mui/material/Popper";
35
+ import rn from "@mui/material/Typography";
36
+ import { P as S, R as sn } from "./RouterListItemButton-Spme9i4b.js";
37
+ import et from "@mui/icons-material/AccountCircle";
38
+ import tt from "@mui/icons-material/ArrowBack";
39
+ import an from "@mui/icons-material/Brightness4";
40
+ import nt from "@mui/icons-material/ChevronRight";
41
+ import ln from "@mui/icons-material/DarkMode";
42
+ import cn from "@mui/icons-material/Done";
43
+ import dn from "@mui/icons-material/LightMode";
44
+ import un from "@mui/icons-material/Logout";
45
+ import fn from "@mui/icons-material/SettingsBrightness";
46
+ import mn from "@mui/icons-material/Translate";
47
+ import hn from "dayjs/plugin/weekOfYear.js";
48
+ import pn from "dayjs/plugin/customParseFormat.js";
49
+ import gn from "dayjs/plugin/localizedFormat.js";
50
+ import yn from "dayjs/plugin/isBetween.js";
51
+ import Tn from "dayjs/plugin/advancedFormat.js";
52
+ function Ne() {
53
+ return Ne = Object.assign ? Object.assign.bind() : function(t) {
57
54
  for (var e = 1; e < arguments.length; e++) {
58
- var r = arguments[e];
59
- for (var o in r) ({}).hasOwnProperty.call(r, o) && (t[o] = r[o]);
55
+ var n = arguments[e];
56
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
60
57
  }
61
58
  return t;
62
- }, We.apply(null, arguments);
59
+ }, Ne.apply(null, arguments);
63
60
  }
64
- function Vr(t, e) {
61
+ function xn(t, e) {
65
62
  if (t == null) return {};
66
- var r = {};
67
- for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
68
- if (e.indexOf(o) !== -1) continue;
69
- r[o] = t[o];
63
+ var n = {};
64
+ for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
65
+ if (e.indexOf(r) !== -1) continue;
66
+ n[r] = t[r];
70
67
  }
71
- return r;
68
+ return n;
72
69
  }
73
- function Gr(t) {
74
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
75
- }
76
- var je = { exports: {} }, $e = { exports: {} }, $ = {};
77
- var vt;
78
- function Kr() {
79
- if (vt) return $;
80
- vt = 1;
81
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
82
- function x(l) {
83
- if (typeof l == "object" && l !== null) {
84
- var j = l.$$typeof;
85
- switch (j) {
86
- case e:
87
- switch (l = l.type, l) {
88
- case f:
89
- case d:
90
- case o:
91
- case a:
92
- case s:
93
- case h:
94
- return l;
95
- default:
96
- switch (l = l && l.$$typeof, l) {
97
- case c:
98
- case u:
99
- case b:
100
- case g:
101
- case n:
102
- return l;
103
- default:
104
- return j;
105
- }
106
- }
107
- case r:
108
- return j;
109
- }
110
- }
111
- }
112
- function _(l) {
113
- return x(l) === d;
114
- }
115
- return $.AsyncMode = f, $.ConcurrentMode = d, $.ContextConsumer = c, $.ContextProvider = n, $.Element = e, $.ForwardRef = u, $.Fragment = o, $.Lazy = b, $.Memo = g, $.Portal = r, $.Profiler = a, $.StrictMode = s, $.Suspense = h, $.isAsyncMode = function(l) {
116
- return _(l) || x(l) === f;
117
- }, $.isConcurrentMode = _, $.isContextConsumer = function(l) {
118
- return x(l) === c;
119
- }, $.isContextProvider = function(l) {
120
- return x(l) === n;
121
- }, $.isElement = function(l) {
122
- return typeof l == "object" && l !== null && l.$$typeof === e;
123
- }, $.isForwardRef = function(l) {
124
- return x(l) === u;
125
- }, $.isFragment = function(l) {
126
- return x(l) === o;
127
- }, $.isLazy = function(l) {
128
- return x(l) === b;
129
- }, $.isMemo = function(l) {
130
- return x(l) === g;
131
- }, $.isPortal = function(l) {
132
- return x(l) === r;
133
- }, $.isProfiler = function(l) {
134
- return x(l) === a;
135
- }, $.isStrictMode = function(l) {
136
- return x(l) === s;
137
- }, $.isSuspense = function(l) {
138
- return x(l) === h;
139
- }, $.isValidElementType = function(l) {
140
- return typeof l == "string" || typeof l == "function" || l === o || l === d || l === a || l === s || l === h || l === v || typeof l == "object" && l !== null && (l.$$typeof === b || l.$$typeof === g || l.$$typeof === n || l.$$typeof === c || l.$$typeof === u || l.$$typeof === E || l.$$typeof === P || l.$$typeof === A || l.$$typeof === T);
141
- }, $.typeOf = x, $;
142
- }
143
- var Y = {};
144
- var Tt;
145
- function Xr() {
146
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && (function() {
147
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
148
- function x(p) {
149
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
150
- p === o || p === d || p === a || p === s || p === h || p === v || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === g || p.$$typeof === n || p.$$typeof === c || p.$$typeof === u || p.$$typeof === E || p.$$typeof === P || p.$$typeof === A || p.$$typeof === T);
151
- }
152
- function _(p) {
153
- if (typeof p == "object" && p !== null) {
154
- var Q = p.$$typeof;
155
- switch (Q) {
156
- case e:
157
- var oe = p.type;
158
- switch (oe) {
159
- case f:
160
- case d:
161
- case o:
162
- case a:
163
- case s:
164
- case h:
165
- return oe;
166
- default:
167
- var se = oe && oe.$$typeof;
168
- switch (se) {
169
- case c:
170
- case u:
171
- case b:
172
- case g:
173
- case n:
174
- return se;
175
- default:
176
- return Q;
177
- }
178
- }
179
- case r:
180
- return Q;
181
- }
182
- }
183
- }
184
- var l = f, j = d, J = c, B = n, N = e, W = u, K = o, ee = b, Z = g, U = r, F = a, R = s, H = h, te = !1;
185
- function V(p) {
186
- return te || (te = !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.")), i(p) || _(p) === f;
187
- }
188
- function i(p) {
189
- return _(p) === d;
190
- }
191
- function y(p) {
192
- return _(p) === c;
193
- }
194
- function w(p) {
195
- return _(p) === n;
196
- }
197
- function O(p) {
198
- return typeof p == "object" && p !== null && p.$$typeof === e;
199
- }
200
- function S(p) {
201
- return _(p) === u;
202
- }
203
- function k(p) {
204
- return _(p) === o;
205
- }
206
- function C(p) {
207
- return _(p) === b;
208
- }
209
- function M(p) {
210
- return _(p) === g;
211
- }
212
- function I(p) {
213
- return _(p) === r;
214
- }
215
- function L(p) {
216
- return _(p) === a;
217
- }
218
- function D(p) {
219
- return _(p) === s;
220
- }
221
- function X(p) {
222
- return _(p) === h;
223
- }
224
- Y.AsyncMode = l, Y.ConcurrentMode = j, Y.ContextConsumer = J, Y.ContextProvider = B, Y.Element = N, Y.ForwardRef = W, Y.Fragment = K, Y.Lazy = ee, Y.Memo = Z, Y.Portal = U, Y.Profiler = F, Y.StrictMode = R, Y.Suspense = H, Y.isAsyncMode = V, Y.isConcurrentMode = i, Y.isContextConsumer = y, Y.isContextProvider = w, Y.isElement = O, Y.isForwardRef = S, Y.isFragment = k, Y.isLazy = C, Y.isMemo = M, Y.isPortal = I, Y.isProfiler = L, Y.isStrictMode = D, Y.isSuspense = X, Y.isValidElementType = x, Y.typeOf = _;
225
- })()), Y;
226
- }
227
- var bt;
228
- function Rt() {
229
- return bt || (bt = 1, process.env.NODE_ENV === "production" ? $e.exports = Kr() : $e.exports = Xr()), $e.exports;
230
- }
231
- var Ke, xt;
232
- function Zr() {
233
- if (xt) return Ke;
234
- xt = 1;
235
- var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
236
- function o(a) {
237
- if (a == null)
238
- throw new TypeError("Object.assign cannot be called with null or undefined");
239
- return Object(a);
240
- }
241
- function s() {
242
- try {
243
- if (!Object.assign)
244
- return !1;
245
- var a = new String("abc");
246
- if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
247
- return !1;
248
- for (var n = {}, c = 0; c < 10; c++)
249
- n["_" + String.fromCharCode(c)] = c;
250
- var f = Object.getOwnPropertyNames(n).map(function(u) {
251
- return n[u];
252
- });
253
- if (f.join("") !== "0123456789")
254
- return !1;
255
- var d = {};
256
- return "abcdefghijklmnopqrst".split("").forEach(function(u) {
257
- d[u] = u;
258
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
259
- } catch {
260
- return !1;
261
- }
262
- }
263
- return Ke = s() ? Object.assign : function(a, n) {
264
- for (var c, f = o(a), d, u = 1; u < arguments.length; u++) {
265
- c = Object(arguments[u]);
266
- for (var h in c)
267
- e.call(c, h) && (f[h] = c[h]);
268
- if (t) {
269
- d = t(c);
270
- for (var v = 0; v < d.length; v++)
271
- r.call(c, d[v]) && (f[d[v]] = c[d[v]]);
272
- }
273
- }
274
- return f;
275
- }, Ke;
276
- }
277
- var Xe, St;
278
- function ut() {
279
- if (St) return Xe;
280
- St = 1;
281
- var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
282
- return Xe = t, Xe;
283
- }
284
- var Ze, Et;
285
- function jt() {
286
- return Et || (Et = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
287
- }
288
- var Je, _t;
289
- function Jr() {
290
- if (_t) return Je;
291
- _t = 1;
292
- var t = function() {
293
- };
294
- if (process.env.NODE_ENV !== "production") {
295
- var e = /* @__PURE__ */ ut(), r = {}, o = /* @__PURE__ */ jt();
296
- t = function(a) {
297
- var n = "Warning: " + a;
298
- typeof console < "u" && console.error(n);
299
- try {
300
- throw new Error(n);
301
- } catch {
302
- }
303
- };
304
- }
305
- function s(a, n, c, f, d) {
306
- if (process.env.NODE_ENV !== "production") {
307
- for (var u in a)
308
- if (o(a, u)) {
309
- var h;
310
- try {
311
- if (typeof a[u] != "function") {
312
- var v = Error(
313
- (f || "React class") + ": " + c + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
314
- );
315
- throw v.name = "Invariant Violation", v;
316
- }
317
- h = a[u](n, u, f, c, null, e);
318
- } catch (b) {
319
- h = b;
320
- }
321
- if (h && !(h instanceof Error) && t(
322
- (f || "React class") + ": type specification of " + c + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
323
- ), h instanceof Error && !(h.message in r)) {
324
- r[h.message] = !0;
325
- var g = d ? d() : "";
326
- t(
327
- "Failed " + c + " type: " + h.message + (g ?? "")
328
- );
329
- }
330
- }
331
- }
332
- }
333
- return s.resetWarningCache = function() {
334
- process.env.NODE_ENV !== "production" && (r = {});
335
- }, Je = s, Je;
336
- }
337
- var Qe, Ot;
338
- function Qr() {
339
- if (Ot) return Qe;
340
- Ot = 1;
341
- var t = Rt(), e = Zr(), r = /* @__PURE__ */ ut(), o = /* @__PURE__ */ jt(), s = /* @__PURE__ */ Jr(), a = function() {
342
- };
343
- process.env.NODE_ENV !== "production" && (a = function(c) {
344
- var f = "Warning: " + c;
345
- typeof console < "u" && console.error(f);
346
- try {
347
- throw new Error(f);
348
- } catch {
349
- }
350
- });
351
- function n() {
352
- return null;
353
- }
354
- return Qe = function(c, f) {
355
- var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
356
- function h(i) {
357
- var y = i && (d && i[d] || i[u]);
358
- if (typeof y == "function")
359
- return y;
360
- }
361
- var v = "<<anonymous>>", g = {
362
- array: P("array"),
363
- bigint: P("bigint"),
364
- bool: P("boolean"),
365
- func: P("function"),
366
- number: P("number"),
367
- object: P("object"),
368
- string: P("string"),
369
- symbol: P("symbol"),
370
- any: A(),
371
- arrayOf: x,
372
- element: _(),
373
- elementType: l(),
374
- instanceOf: j,
375
- node: W(),
376
- objectOf: B,
377
- oneOf: J,
378
- oneOfType: N,
379
- shape: ee,
380
- exact: Z
381
- };
382
- function b(i, y) {
383
- return i === y ? i !== 0 || 1 / i === 1 / y : i !== i && y !== y;
384
- }
385
- function T(i, y) {
386
- this.message = i, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
387
- }
388
- T.prototype = Error.prototype;
389
- function E(i) {
390
- if (process.env.NODE_ENV !== "production")
391
- var y = {}, w = 0;
392
- function O(k, C, M, I, L, D, X) {
393
- if (I = I || v, D = D || M, X !== r) {
394
- if (f) {
395
- var p = new Error(
396
- "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"
397
- );
398
- throw p.name = "Invariant Violation", p;
399
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
400
- var Q = I + ":" + M;
401
- !y[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
402
- w < 3 && (a(
403
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
404
- ), y[Q] = !0, w++);
405
- }
406
- }
407
- return C[M] == null ? k ? C[M] === null ? new T("The " + L + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new T("The " + L + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : i(C, M, I, L, D);
408
- }
409
- var S = O.bind(null, !1);
410
- return S.isRequired = O.bind(null, !0), S;
411
- }
412
- function P(i) {
413
- function y(w, O, S, k, C, M) {
414
- var I = w[O], L = R(I);
415
- if (L !== i) {
416
- var D = H(I);
417
- return new T(
418
- "Invalid " + k + " `" + C + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + i + "`."),
419
- { expectedType: i }
420
- );
421
- }
422
- return null;
423
- }
424
- return E(y);
425
- }
426
- function A() {
427
- return E(n);
428
- }
429
- function x(i) {
430
- function y(w, O, S, k, C) {
431
- if (typeof i != "function")
432
- return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
433
- var M = w[O];
434
- if (!Array.isArray(M)) {
435
- var I = R(M);
436
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an array."));
437
- }
438
- for (var L = 0; L < M.length; L++) {
439
- var D = i(M, L, S, k, C + "[" + L + "]", r);
440
- if (D instanceof Error)
441
- return D;
442
- }
443
- return null;
444
- }
445
- return E(y);
446
- }
447
- function _() {
448
- function i(y, w, O, S, k) {
449
- var C = y[w];
450
- if (!c(C)) {
451
- var M = R(C);
452
- return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement."));
453
- }
454
- return null;
455
- }
456
- return E(i);
457
- }
458
- function l() {
459
- function i(y, w, O, S, k) {
460
- var C = y[w];
461
- if (!t.isValidElementType(C)) {
462
- var M = R(C);
463
- return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement type."));
464
- }
465
- return null;
466
- }
467
- return E(i);
468
- }
469
- function j(i) {
470
- function y(w, O, S, k, C) {
471
- if (!(w[O] instanceof i)) {
472
- var M = i.name || v, I = V(w[O]);
473
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected ") + ("instance of `" + M + "`."));
474
- }
475
- return null;
476
- }
477
- return E(y);
478
- }
479
- function J(i) {
480
- if (!Array.isArray(i))
481
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
482
- "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])."
483
- ) : a("Invalid argument supplied to oneOf, expected an array.")), n;
484
- function y(w, O, S, k, C) {
485
- for (var M = w[O], I = 0; I < i.length; I++)
486
- if (b(M, i[I]))
487
- return null;
488
- var L = JSON.stringify(i, function(X, p) {
489
- var Q = H(p);
490
- return Q === "symbol" ? String(p) : p;
491
- });
492
- return new T("Invalid " + k + " `" + C + "` of value `" + String(M) + "` " + ("supplied to `" + S + "`, expected one of " + L + "."));
493
- }
494
- return E(y);
495
- }
496
- function B(i) {
497
- function y(w, O, S, k, C) {
498
- if (typeof i != "function")
499
- return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
500
- var M = w[O], I = R(M);
501
- if (I !== "object")
502
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an object."));
503
- for (var L in M)
504
- if (o(M, L)) {
505
- var D = i(M, L, S, k, C + "." + L, r);
506
- if (D instanceof Error)
507
- return D;
508
- }
509
- return null;
510
- }
511
- return E(y);
512
- }
513
- function N(i) {
514
- if (!Array.isArray(i))
515
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), n;
516
- for (var y = 0; y < i.length; y++) {
517
- var w = i[y];
518
- if (typeof w != "function")
519
- return a(
520
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(w) + " at index " + y + "."
521
- ), n;
522
- }
523
- function O(S, k, C, M, I) {
524
- for (var L = [], D = 0; D < i.length; D++) {
525
- var X = i[D], p = X(S, k, C, M, I, r);
526
- if (p == null)
527
- return null;
528
- p.data && o(p.data, "expectedType") && L.push(p.data.expectedType);
529
- }
530
- var Q = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
531
- return new T("Invalid " + M + " `" + I + "` supplied to " + ("`" + C + "`" + Q + "."));
532
- }
533
- return E(O);
534
- }
535
- function W() {
536
- function i(y, w, O, S, k) {
537
- return U(y[w]) ? null : new T("Invalid " + S + " `" + k + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
538
- }
539
- return E(i);
540
- }
541
- function K(i, y, w, O, S) {
542
- return new T(
543
- (i || "React class") + ": " + y + " type `" + w + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
544
- );
545
- }
546
- function ee(i) {
547
- function y(w, O, S, k, C) {
548
- var M = w[O], I = R(M);
549
- if (I !== "object")
550
- return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
551
- for (var L in i) {
552
- var D = i[L];
553
- if (typeof D != "function")
554
- return K(S, k, C, L, H(D));
555
- var X = D(M, L, S, k, C + "." + L, r);
556
- if (X)
557
- return X;
558
- }
559
- return null;
560
- }
561
- return E(y);
562
- }
563
- function Z(i) {
564
- function y(w, O, S, k, C) {
565
- var M = w[O], I = R(M);
566
- if (I !== "object")
567
- return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
568
- var L = e({}, w[O], i);
569
- for (var D in L) {
570
- var X = i[D];
571
- if (o(i, D) && typeof X != "function")
572
- return K(S, k, C, D, H(X));
573
- if (!X)
574
- return new T(
575
- "Invalid " + k + " `" + C + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(w[O], null, " ") + `
576
- Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
577
- );
578
- var p = X(M, D, S, k, C + "." + D, r);
579
- if (p)
580
- return p;
581
- }
582
- return null;
583
- }
584
- return E(y);
585
- }
586
- function U(i) {
587
- switch (typeof i) {
588
- case "number":
589
- case "string":
590
- case "undefined":
591
- return !0;
592
- case "boolean":
593
- return !i;
594
- case "object":
595
- if (Array.isArray(i))
596
- return i.every(U);
597
- if (i === null || c(i))
598
- return !0;
599
- var y = h(i);
600
- if (y) {
601
- var w = y.call(i), O;
602
- if (y !== i.entries) {
603
- for (; !(O = w.next()).done; )
604
- if (!U(O.value))
605
- return !1;
606
- } else
607
- for (; !(O = w.next()).done; ) {
608
- var S = O.value;
609
- if (S && !U(S[1]))
610
- return !1;
611
- }
612
- } else
613
- return !1;
614
- return !0;
615
- default:
616
- return !1;
617
- }
618
- }
619
- function F(i, y) {
620
- return i === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
621
- }
622
- function R(i) {
623
- var y = typeof i;
624
- return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : F(y, i) ? "symbol" : y;
625
- }
626
- function H(i) {
627
- if (typeof i > "u" || i === null)
628
- return "" + i;
629
- var y = R(i);
630
- if (y === "object") {
631
- if (i instanceof Date)
632
- return "date";
633
- if (i instanceof RegExp)
634
- return "regexp";
635
- }
636
- return y;
637
- }
638
- function te(i) {
639
- var y = H(i);
640
- switch (y) {
641
- case "array":
642
- case "object":
643
- return "an " + y;
644
- case "boolean":
645
- case "date":
646
- case "regexp":
647
- return "a " + y;
648
- default:
649
- return y;
650
- }
651
- }
652
- function V(i) {
653
- return !i.constructor || !i.constructor.name ? v : i.constructor.name;
654
- }
655
- return g.checkPropTypes = s, g.resetWarningCache = s.resetWarningCache, g.PropTypes = g, g;
656
- }, Qe;
657
- }
658
- var et, wt;
659
- function en() {
660
- if (wt) return et;
661
- wt = 1;
662
- var t = /* @__PURE__ */ ut();
663
- function e() {
664
- }
665
- function r() {
666
- }
667
- return r.resetWarningCache = e, et = function() {
668
- function o(n, c, f, d, u, h) {
669
- if (h !== t) {
670
- var v = new Error(
671
- "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"
672
- );
673
- throw v.name = "Invariant Violation", v;
674
- }
675
- }
676
- o.isRequired = o;
677
- function s() {
678
- return o;
679
- }
680
- var a = {
681
- array: o,
682
- bigint: o,
683
- bool: o,
684
- func: o,
685
- number: o,
686
- object: o,
687
- string: o,
688
- symbol: o,
689
- any: o,
690
- arrayOf: s,
691
- element: o,
692
- elementType: o,
693
- instanceOf: s,
694
- node: o,
695
- objectOf: s,
696
- oneOf: s,
697
- oneOfType: s,
698
- shape: s,
699
- exact: s,
700
- checkPropTypes: r,
701
- resetWarningCache: e
702
- };
703
- return a.PropTypes = a, a;
704
- }, et;
705
- }
706
- var Ct;
707
- function tn() {
708
- if (Ct) return je.exports;
709
- if (Ct = 1, process.env.NODE_ENV !== "production") {
710
- var t = Rt(), e = !0;
711
- je.exports = /* @__PURE__ */ Qr()(t.isElement, e);
712
- } else
713
- je.exports = /* @__PURE__ */ en()();
714
- return je.exports;
715
- }
716
- var rn = /* @__PURE__ */ tn();
717
- const z = /* @__PURE__ */ Gr(rn), nn = ["localeText"], ot = /* @__PURE__ */ ne.createContext(null);
718
- process.env.NODE_ENV !== "production" && (ot.displayName = "PickerAdapterContext");
719
- const ft = function(e) {
70
+ const bn = ["localeText"], Ge = /* @__PURE__ */ U.createContext(null);
71
+ process.env.NODE_ENV !== "production" && (Ge.displayName = "PickerAdapterContext");
72
+ const qe = function(e) {
720
73
  const {
721
- localeText: r
722
- } = e, o = Vr(e, nn), {
74
+ localeText: n
75
+ } = e, r = xn(e, bn), {
723
76
  adapter: s,
724
77
  localeText: a
725
- } = ne.useContext(ot) ?? {
78
+ } = U.useContext(Ge) ?? {
726
79
  adapter: void 0,
727
80
  localeText: void 0
728
- }, n = mr({
81
+ }, o = Wt({
729
82
  // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
730
83
  // We will then merge this theme value with our value manually
731
- props: o,
84
+ props: r,
732
85
  name: "MuiLocalizationProvider"
733
86
  }), {
734
- children: c,
735
- dateAdapter: f,
736
- dateFormats: d,
737
- dateLibInstance: u,
738
- adapterLocale: h,
739
- localeText: v
740
- } = n, g = ne.useMemo(() => We({}, v, a, r), [v, a, r]), b = ne.useMemo(() => {
741
- if (!f)
87
+ children: l,
88
+ dateAdapter: d,
89
+ dateFormats: u,
90
+ dateLibInstance: c,
91
+ adapterLocale: m,
92
+ localeText: h
93
+ } = o, f = U.useMemo(() => Ne({}, h, a, n), [h, a, n]), p = U.useMemo(() => {
94
+ if (!d)
742
95
  return s || null;
743
- const P = new f({
744
- locale: h,
745
- formats: d,
746
- instance: u
96
+ const M = new d({
97
+ locale: m,
98
+ formats: u,
99
+ instance: c
747
100
  });
748
- if (!P.isMUIAdapter)
101
+ if (!M.isMUIAdapter)
749
102
  throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
750
103
  `));
751
- return P;
752
- }, [f, h, d, u, s]), T = ne.useMemo(() => b ? {
753
- minDate: b.date("1900-01-01T00:00:00.000"),
754
- maxDate: b.date("2099-12-31T00:00:00.000")
755
- } : null, [b]), E = ne.useMemo(() => ({
756
- utils: b,
757
- adapter: b,
758
- defaultDates: T,
759
- localeText: g
760
- }), [T, b, g]);
761
- return /* @__PURE__ */ m(ot.Provider, {
762
- value: E,
763
- children: c
104
+ return M;
105
+ }, [d, m, u, c, s]), g = U.useMemo(() => p ? {
106
+ minDate: p.date("1900-01-01T00:00:00.000"),
107
+ maxDate: p.date("2099-12-31T00:00:00.000")
108
+ } : null, [p]), T = U.useMemo(() => ({
109
+ utils: p,
110
+ adapter: p,
111
+ defaultDates: g,
112
+ localeText: f
113
+ }), [g, p, f]);
114
+ return /* @__PURE__ */ i(Ge.Provider, {
115
+ value: T,
116
+ children: l
764
117
  });
765
118
  };
766
- process.env.NODE_ENV !== "production" && (ft.displayName = "LocalizationProvider");
767
- process.env.NODE_ENV !== "production" && (ft.propTypes = {
119
+ process.env.NODE_ENV !== "production" && (qe.displayName = "LocalizationProvider");
120
+ process.env.NODE_ENV !== "production" && (qe.propTypes = {
768
121
  // ----------------------------- Warning --------------------------------
769
122
  // | These PropTypes are generated from the TypeScript type definitions |
770
123
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -772,38 +125,38 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
772
125
  /**
773
126
  * Locale for the date library you are using
774
127
  */
775
- adapterLocale: z.any,
776
- children: z.node,
128
+ adapterLocale: S.any,
129
+ children: S.node,
777
130
  /**
778
131
  * Date library adapter class function.
779
132
  * @see See the localization provider {@link https://mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.
780
133
  */
781
- dateAdapter: z.func,
134
+ dateAdapter: S.func,
782
135
  /**
783
136
  * Formats that are used for any child pickers
784
137
  */
785
- dateFormats: z.shape({
786
- dayOfMonth: z.string,
787
- dayOfMonthFull: z.string,
788
- fullDate: z.string,
789
- fullTime12h: z.string,
790
- fullTime24h: z.string,
791
- hours12h: z.string,
792
- hours24h: z.string,
793
- keyboardDate: z.string,
794
- keyboardDateTime12h: z.string,
795
- keyboardDateTime24h: z.string,
796
- meridiem: z.string,
797
- minutes: z.string,
798
- month: z.string,
799
- monthShort: z.string,
800
- normalDate: z.string,
801
- normalDateWithWeekday: z.string,
802
- seconds: z.string,
803
- shortDate: z.string,
804
- weekday: z.string,
805
- weekdayShort: z.string,
806
- year: z.string
138
+ dateFormats: S.shape({
139
+ dayOfMonth: S.string,
140
+ dayOfMonthFull: S.string,
141
+ fullDate: S.string,
142
+ fullTime12h: S.string,
143
+ fullTime24h: S.string,
144
+ hours12h: S.string,
145
+ hours24h: S.string,
146
+ keyboardDate: S.string,
147
+ keyboardDateTime12h: S.string,
148
+ keyboardDateTime24h: S.string,
149
+ meridiem: S.string,
150
+ minutes: S.string,
151
+ month: S.string,
152
+ monthShort: S.string,
153
+ normalDate: S.string,
154
+ normalDateWithWeekday: S.string,
155
+ seconds: S.string,
156
+ shortDate: S.string,
157
+ weekday: S.string,
158
+ weekdayShort: S.string,
159
+ year: S.string
807
160
  }),
808
161
  /**
809
162
  * Date library instance you are using, if it has some global overrides
@@ -811,35 +164,35 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
811
164
  * dateLibInstance={momentTimeZone}
812
165
  * ```
813
166
  */
814
- dateLibInstance: z.any,
167
+ dateLibInstance: S.any,
815
168
  /**
816
169
  * Locale for components texts
817
170
  */
818
- localeText: z.object
171
+ localeText: S.object
819
172
  });
820
- const on = typeof window < "u" ? ne.useLayoutEffect : ne.useEffect;
821
- function tt(t) {
822
- const e = ne.useRef(t);
823
- return on(() => {
173
+ const Sn = typeof window < "u" ? U.useLayoutEffect : U.useEffect;
174
+ function Be(t) {
175
+ const e = U.useRef(t);
176
+ return Sn(() => {
824
177
  e.current = t;
825
- }), ne.useRef((...r) => (
178
+ }), U.useRef((...n) => (
826
179
  // @ts-expect-error hide `this`
827
- (0, e.current)(...r)
180
+ (0, e.current)(...n)
828
181
  )).current;
829
182
  }
830
- const Mt = /* @__PURE__ */ new Set();
831
- function an(t, e = "warning") {
183
+ const ot = /* @__PURE__ */ new Set();
184
+ function Mn(t, e = "warning") {
832
185
  if (process.env.NODE_ENV === "production")
833
186
  return;
834
- const r = Array.isArray(t) ? t.join(`
187
+ const n = Array.isArray(t) ? t.join(`
835
188
  `) : t;
836
- Mt.has(r) || (Mt.add(r), e === "error" ? console.error(r) : console.warn(r));
189
+ ot.has(n) || (ot.add(n), e === "error" ? console.error(n) : console.warn(n));
837
190
  }
838
- G.extend(qr);
839
- G.extend(Ur);
840
- G.extend(Br);
841
- G.extend(Hr);
842
- const sn = {
191
+ C.extend(gn);
192
+ C.extend(hn);
193
+ C.extend(yn);
194
+ C.extend(Tn);
195
+ const kn = {
843
196
  // Year
844
197
  YY: "year",
845
198
  YYYY: {
@@ -921,7 +274,7 @@ const sn = {
921
274
  maxLength: 2
922
275
  },
923
276
  ss: "seconds"
924
- }, ln = {
277
+ }, Ln = {
925
278
  year: "YYYY",
926
279
  month: "MMMM",
927
280
  monthShort: "MMM",
@@ -943,10 +296,10 @@ const sn = {
943
296
  fullTime24h: "HH:mm",
944
297
  keyboardDateTime12h: "L hh:mm A",
945
298
  keyboardDateTime24h: "L HH:mm"
946
- }, rt = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
947
- `), Pt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
299
+ }, He = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
300
+ `), rt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
948
301
  `);
949
- class cn {
302
+ class Dn {
950
303
  isMUIAdapter = !0;
951
304
  isTimezoneCompatible = !0;
952
305
  lib = "dayjs";
@@ -954,22 +307,22 @@ class cn {
954
307
  start: "[",
955
308
  end: "]"
956
309
  };
957
- formatTokenMap = sn;
310
+ formatTokenMap = kn;
958
311
  constructor({
959
312
  locale: e,
960
- formats: r
313
+ formats: n
961
314
  } = {}) {
962
- this.locale = e, this.formats = We({}, ln, r), G.extend(Fr);
315
+ this.locale = e, this.formats = Ne({}, Ln, n), C.extend(pn);
963
316
  }
964
317
  setLocaleToValue = (e) => {
965
- const r = this.getCurrentLocaleCode();
966
- return r === e.locale() ? e : e.locale(r);
318
+ const n = this.getCurrentLocaleCode();
319
+ return n === e.locale() ? e : e.locale(n);
967
320
  };
968
- hasUTCPlugin = () => typeof G.utc < "u";
969
- hasTimezonePlugin = () => typeof G.tz < "u";
970
- isSame = (e, r, o) => {
971
- const s = this.setTimezone(r, this.getTimezone(e));
972
- return e.format(o) === s.format(o);
321
+ hasUTCPlugin = () => typeof C.utc < "u";
322
+ hasTimezonePlugin = () => typeof C.tz < "u";
323
+ isSame = (e, n, r) => {
324
+ const s = this.setTimezone(n, this.getTimezone(e));
325
+ return e.format(r) === s.format(r);
973
326
  };
974
327
  /**
975
328
  * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
@@ -979,37 +332,37 @@ class cn {
979
332
  case "default":
980
333
  return;
981
334
  case "system":
982
- return G.tz.guess();
335
+ return C.tz.guess();
983
336
  default:
984
337
  return e;
985
338
  }
986
339
  };
987
340
  createSystemDate = (e) => {
988
- let r;
341
+ let n;
989
342
  if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
990
- const o = G.tz.guess();
991
- o === "UTC" ? r = G(e) : r = G.tz(e, o);
343
+ const r = C.tz.guess();
344
+ r === "UTC" ? n = C(e) : n = C.tz(e, r);
992
345
  } else
993
- r = G(e);
994
- return this.setLocaleToValue(r);
346
+ n = C(e);
347
+ return this.setLocaleToValue(n);
995
348
  };
996
349
  createUTCDate = (e) => {
997
350
  if (!this.hasUTCPlugin())
998
- throw new Error(rt);
999
- return this.setLocaleToValue(G.utc(e));
351
+ throw new Error(He);
352
+ return this.setLocaleToValue(C.utc(e));
1000
353
  };
1001
- createTZDate = (e, r) => {
354
+ createTZDate = (e, n) => {
1002
355
  if (!this.hasUTCPlugin())
1003
- throw new Error(rt);
356
+ throw new Error(He);
1004
357
  if (!this.hasTimezonePlugin())
1005
- throw new Error(Pt);
1006
- const o = e !== void 0 && !e.endsWith("Z");
1007
- return this.setLocaleToValue(G(e).tz(this.cleanTimezone(r), o));
358
+ throw new Error(rt);
359
+ const r = e !== void 0 && !e.endsWith("Z");
360
+ return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n), r));
1008
361
  };
1009
362
  getLocaleFormats = () => {
1010
- const e = G.Ls, r = this.locale || "en";
1011
- let o = e[r];
1012
- return o === void 0 && (process.env.NODE_ENV !== "production" && an(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), o = e.en), o.formats;
363
+ const e = C.Ls, n = this.locale || "en";
364
+ let r = e[n];
365
+ return r === void 0 && (process.env.NODE_ENV !== "production" && Mn(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), r = e.en), r.formats;
1013
366
  };
1014
367
  /**
1015
368
  * If the new day does not have the same offset as the old one (when switching to summer day time for example),
@@ -1020,69 +373,69 @@ class cn {
1020
373
  adjustOffset = (e) => {
1021
374
  if (!this.hasTimezonePlugin())
1022
375
  return e;
1023
- const r = this.getTimezone(e);
1024
- if (r !== "UTC") {
1025
- const o = e.tz(this.cleanTimezone(r), !0);
1026
- if (o.$offset === (e.$offset ?? 0))
376
+ const n = this.getTimezone(e);
377
+ if (n !== "UTC") {
378
+ const r = e.tz(this.cleanTimezone(n), !0);
379
+ if (r.$offset === (e.$offset ?? 0))
1027
380
  return e;
1028
- e.$offset = o.$offset;
381
+ e.$offset = r.$offset;
1029
382
  }
1030
383
  return e;
1031
384
  };
1032
- date = (e, r = "default") => e === null ? null : r === "UTC" ? this.createUTCDate(e) : r === "system" || r === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, r);
1033
- getInvalidDate = () => G(/* @__PURE__ */ new Date("Invalid date"));
385
+ date = (e, n = "default") => e === null ? null : n === "UTC" ? this.createUTCDate(e) : n === "system" || n === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, n);
386
+ getInvalidDate = () => C(/* @__PURE__ */ new Date("Invalid date"));
1034
387
  getTimezone = (e) => {
1035
388
  if (this.hasTimezonePlugin()) {
1036
- const r = e.$x?.$timezone;
1037
- if (r)
1038
- return r;
389
+ const n = e.$x?.$timezone;
390
+ if (n)
391
+ return n;
1039
392
  }
1040
393
  return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
1041
394
  };
1042
- setTimezone = (e, r) => {
1043
- if (this.getTimezone(e) === r)
395
+ setTimezone = (e, n) => {
396
+ if (this.getTimezone(e) === n)
1044
397
  return e;
1045
- if (r === "UTC") {
398
+ if (n === "UTC") {
1046
399
  if (!this.hasUTCPlugin())
1047
- throw new Error(rt);
400
+ throw new Error(He);
1048
401
  return e.utc();
1049
402
  }
1050
- if (r === "system")
403
+ if (n === "system")
1051
404
  return e.local();
1052
405
  if (!this.hasTimezonePlugin()) {
1053
- if (r === "default")
406
+ if (n === "default")
1054
407
  return e;
1055
- throw new Error(Pt);
408
+ throw new Error(rt);
1056
409
  }
1057
- return this.setLocaleToValue(G.tz(e, this.cleanTimezone(r)));
410
+ return this.setLocaleToValue(C.tz(e, this.cleanTimezone(n)));
1058
411
  };
1059
412
  toJsDate = (e) => e.toDate();
1060
- parse = (e, r) => e === "" ? null : G(e, r, this.locale, !0);
413
+ parse = (e, n) => e === "" ? null : C(e, n, this.locale, !0);
1061
414
  getCurrentLocaleCode = () => this.locale || "en";
1062
415
  is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
1063
416
  expandFormat = (e) => {
1064
- const r = this.getLocaleFormats(), o = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, n, c) => n || c.slice(1));
1065
- return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, n) => {
1066
- const c = n && n.toUpperCase();
1067
- return a || r[n] || o(r[c]);
417
+ const n = this.getLocaleFormats(), r = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, o, l) => o || l.slice(1));
418
+ return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, o) => {
419
+ const l = o && o.toUpperCase();
420
+ return a || n[o] || r(n[l]);
1068
421
  });
1069
422
  };
1070
423
  isValid = (e) => e == null ? !1 : e.isValid();
1071
- format = (e, r) => this.formatByString(e, this.formats[r]);
1072
- formatByString = (e, r) => this.setLocaleToValue(e).format(r);
424
+ format = (e, n) => this.formatByString(e, this.formats[n]);
425
+ formatByString = (e, n) => this.setLocaleToValue(e).format(n);
1073
426
  formatNumber = (e) => e;
1074
- isEqual = (e, r) => e === null && r === null ? !0 : e === null || r === null ? !1 : e.toDate().getTime() === r.toDate().getTime();
1075
- isSameYear = (e, r) => this.isSame(e, r, "YYYY");
1076
- isSameMonth = (e, r) => this.isSame(e, r, "YYYY-MM");
1077
- isSameDay = (e, r) => this.isSame(e, r, "YYYY-MM-DD");
1078
- isSameHour = (e, r) => e.isSame(r, "hour");
1079
- isAfter = (e, r) => e > r;
1080
- isAfterYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() > r.utc() : e.isAfter(r, "year");
1081
- isAfterDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() > r.utc() : e.isAfter(r, "day");
1082
- isBefore = (e, r) => e < r;
1083
- isBeforeYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() < r.utc() : e.isBefore(r, "year");
1084
- isBeforeDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() < r.utc() : e.isBefore(r, "day");
1085
- isWithinRange = (e, [r, o]) => e >= r && e <= o;
427
+ isEqual = (e, n) => e === null && n === null ? !0 : e === null || n === null ? !1 : e.toDate().getTime() === n.toDate().getTime();
428
+ isSameYear = (e, n) => this.isSame(e, n, "YYYY");
429
+ isSameMonth = (e, n) => this.isSame(e, n, "YYYY-MM");
430
+ isSameDay = (e, n) => this.isSame(e, n, "YYYY-MM-DD");
431
+ isSameHour = (e, n) => e.isSame(n, "hour");
432
+ isAfter = (e, n) => e > n;
433
+ isAfterYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() > n.utc() : e.isAfter(n, "year");
434
+ isAfterDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() > n.utc() : e.isAfter(n, "day");
435
+ isBefore = (e, n) => e < n;
436
+ isBeforeYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() < n.utc() : e.isBefore(n, "year");
437
+ isBeforeDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() < n.utc() : e.isBefore(n, "day");
438
+ isWithinRange = (e, [n, r]) => e >= n && e <= r;
1086
439
  startOfYear = (e) => this.adjustOffset(e.startOf("year"));
1087
440
  startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
1088
441
  startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
@@ -1091,13 +444,13 @@ class cn {
1091
444
  endOfMonth = (e) => this.adjustOffset(e.endOf("month"));
1092
445
  endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week"));
1093
446
  endOfDay = (e) => this.adjustOffset(e.endOf("day"));
1094
- addYears = (e, r) => this.adjustOffset(e.add(r, "year"));
1095
- addMonths = (e, r) => this.adjustOffset(e.add(r, "month"));
1096
- addWeeks = (e, r) => this.adjustOffset(e.add(r, "week"));
1097
- addDays = (e, r) => this.adjustOffset(e.add(r, "day"));
1098
- addHours = (e, r) => this.adjustOffset(e.add(r, "hour"));
1099
- addMinutes = (e, r) => this.adjustOffset(e.add(r, "minute"));
1100
- addSeconds = (e, r) => this.adjustOffset(e.add(r, "second"));
447
+ addYears = (e, n) => this.adjustOffset(e.add(n, "year"));
448
+ addMonths = (e, n) => this.adjustOffset(e.add(n, "month"));
449
+ addWeeks = (e, n) => this.adjustOffset(e.add(n, "week"));
450
+ addDays = (e, n) => this.adjustOffset(e.add(n, "day"));
451
+ addHours = (e, n) => this.adjustOffset(e.add(n, "hour"));
452
+ addMinutes = (e, n) => this.adjustOffset(e.add(n, "minute"));
453
+ addSeconds = (e, n) => this.adjustOffset(e.add(n, "second"));
1101
454
  getYear = (e) => e.year();
1102
455
  getMonth = (e) => e.month();
1103
456
  getDate = (e) => e.date();
@@ -1105,102 +458,102 @@ class cn {
1105
458
  getMinutes = (e) => e.minute();
1106
459
  getSeconds = (e) => e.second();
1107
460
  getMilliseconds = (e) => e.millisecond();
1108
- setYear = (e, r) => this.adjustOffset(e.set("year", r));
1109
- setMonth = (e, r) => this.adjustOffset(e.set("month", r));
1110
- setDate = (e, r) => this.adjustOffset(e.set("date", r));
1111
- setHours = (e, r) => this.adjustOffset(e.set("hour", r));
1112
- setMinutes = (e, r) => this.adjustOffset(e.set("minute", r));
1113
- setSeconds = (e, r) => this.adjustOffset(e.set("second", r));
1114
- setMilliseconds = (e, r) => this.adjustOffset(e.set("millisecond", r));
461
+ setYear = (e, n) => this.adjustOffset(e.set("year", n));
462
+ setMonth = (e, n) => this.adjustOffset(e.set("month", n));
463
+ setDate = (e, n) => this.adjustOffset(e.set("date", n));
464
+ setHours = (e, n) => this.adjustOffset(e.set("hour", n));
465
+ setMinutes = (e, n) => this.adjustOffset(e.set("minute", n));
466
+ setSeconds = (e, n) => this.adjustOffset(e.set("second", n));
467
+ setMilliseconds = (e, n) => this.adjustOffset(e.set("millisecond", n));
1115
468
  getDaysInMonth = (e) => e.daysInMonth();
1116
469
  getWeekArray = (e) => {
1117
- const r = this.startOfWeek(this.startOfMonth(e)), o = this.endOfWeek(this.endOfMonth(e));
1118
- let s = 0, a = r;
1119
- const n = [];
1120
- for (; a < o; ) {
1121
- const c = Math.floor(s / 7);
1122
- n[c] = n[c] || [], n[c].push(a), a = this.addDays(a, 1), s += 1;
1123
- }
1124
- return n;
470
+ const n = this.startOfWeek(this.startOfMonth(e)), r = this.endOfWeek(this.endOfMonth(e));
471
+ let s = 0, a = n;
472
+ const o = [];
473
+ for (; a < r; ) {
474
+ const l = Math.floor(s / 7);
475
+ o[l] = o[l] || [], o[l].push(a), a = this.addDays(a, 1), s += 1;
476
+ }
477
+ return o;
1125
478
  };
1126
479
  getWeekNumber = (e) => e.week();
1127
480
  getDayOfWeek(e) {
1128
481
  return e.day() + 1;
1129
482
  }
1130
- getYearRange = ([e, r]) => {
1131
- const o = this.startOfYear(e), s = this.endOfYear(r), a = [];
1132
- let n = o;
1133
- for (; this.isBefore(n, s); )
1134
- a.push(n), n = this.addYears(n, 1);
483
+ getYearRange = ([e, n]) => {
484
+ const r = this.startOfYear(e), s = this.endOfYear(n), a = [];
485
+ let o = r;
486
+ for (; this.isBefore(o, s); )
487
+ a.push(o), o = this.addYears(o, 1);
1135
488
  return a;
1136
489
  };
1137
490
  }
1138
- function un({
491
+ function _n({
1139
492
  children: t
1140
493
  }) {
1141
- const [e, r] = le([]), o = ir(), s = dt(0), a = dt(/* @__PURE__ */ new WeakMap()), n = tt(function(h, v, g = {}) {
494
+ const [e, n] = V([]), r = Pt(), s = Ke(0), a = Ke(/* @__PURE__ */ new WeakMap()), o = Be(function(m, h, f = {}) {
1142
495
  const {
1143
- onClose: b = async () => {
496
+ onClose: p = async () => {
1144
497
  }
1145
- } = g;
1146
- let T;
1147
- const E = new Promise((x) => {
1148
- T = x;
1149
- }), P = `${o}-${s.current}`;
498
+ } = f;
499
+ let g;
500
+ const T = new Promise((y) => {
501
+ g = y;
502
+ }), M = `${r}-${s.current}`;
1150
503
  s.current += 1;
1151
- const A = {
1152
- key: P,
504
+ const x = {
505
+ key: M,
1153
506
  open: !0,
1154
- promise: E,
1155
- Component: h,
1156
- payload: v,
1157
- onClose: b,
1158
- resolve: T
507
+ promise: T,
508
+ Component: m,
509
+ payload: h,
510
+ onClose: p,
511
+ resolve: g
1159
512
  };
1160
- return a.current.set(E, A), r((x) => [...x, A]), E;
1161
- }), c = (u) => {
1162
- r((h) => h.filter((v) => v.promise !== u)), a.current.delete(u);
1163
- }, f = tt(function(h) {
1164
- r((v) => v.map((g) => g.promise === h ? {
1165
- ...g,
513
+ return a.current.set(T, x), n((y) => [...y, x]), T;
514
+ }), l = (c) => {
515
+ n((m) => m.filter((h) => h.promise !== c)), a.current.delete(c);
516
+ }, d = Be(function(m) {
517
+ n((h) => h.map((f) => f.promise === m ? {
518
+ ...f,
1166
519
  open: !1
1167
- } : g)), setTimeout(() => c(h), 1e3);
1168
- }), d = tt(async function(h, v) {
1169
- const g = a.current.get(h);
1170
- if (!g)
520
+ } : f)), setTimeout(() => l(m), 1e3);
521
+ }), u = Be(async function(m, h) {
522
+ const f = a.current.get(m);
523
+ if (!f)
1171
524
  throw new Error("Dialog not found in stack");
1172
525
  try {
1173
- await g.onClose(v);
526
+ await f.onClose(h);
1174
527
  } finally {
1175
- g.resolve(v), f(h);
528
+ f.resolve(h), d(m);
1176
529
  }
1177
- return h;
530
+ return m;
1178
531
  });
1179
- return /* @__PURE__ */ q(ur.Provider, { value: {
1180
- open: n,
1181
- close: d
532
+ return /* @__PURE__ */ L(Nt.Provider, { value: {
533
+ open: o,
534
+ close: u
1182
535
  }, children: [
1183
536
  t,
1184
537
  e.map(({
1185
- key: u,
1186
- open: h,
1187
- Component: v,
1188
- payload: g,
1189
- promise: b
1190
- }) => /* @__PURE__ */ m(v, { payload: g, open: h, onClose: async (T) => {
1191
- await d(b, T);
1192
- } }, u))
538
+ key: c,
539
+ open: m,
540
+ Component: h,
541
+ payload: f,
542
+ promise: p
543
+ }) => /* @__PURE__ */ i(h, { payload: f, open: m, onClose: async (g) => {
544
+ await u(p, g);
545
+ } }, c))
1193
546
  ] });
1194
547
  }
1195
- const fn = () => {
1196
- const t = ae(1);
548
+ const vn = () => {
549
+ const t = B(1);
1197
550
  let e;
1198
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ q(Ut, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
1199
- /* @__PURE__ */ m("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1200
- /* @__PURE__ */ m(Ft, { variant: "h6", children: gr.VITE_APP_TITLE }),
1201
- /* @__PURE__ */ m(qt, { size: "small", label: "TEST", color: "info" })
551
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(pt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
552
+ /* @__PURE__ */ i("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
553
+ /* @__PURE__ */ i(gt, { variant: "h6", children: Bt.VITE_APP_TITLE }),
554
+ /* @__PURE__ */ i(yt, { size: "small", label: "TEST", color: "info" })
1202
555
  ] }), t[0] = e) : e = t[0], e;
1203
- }, nt = 34, dn = at(wr)(({
556
+ }, Ve = 34, On = Ze(Qt)(({
1204
557
  theme: t
1205
558
  }) => ({
1206
559
  borderRadius: 8,
@@ -1221,7 +574,7 @@ const fn = () => {
1221
574
  "& .MuiAvatar-root": {
1222
575
  backgroundColor: (t.vars ?? t).palette.action.active
1223
576
  }
1224
- })), mn = at(Dr)(({
577
+ })), Cn = Ze(sn)(({
1225
578
  theme: t
1226
579
  }) => ({
1227
580
  borderRadius: 8,
@@ -1242,40 +595,40 @@ const fn = () => {
1242
595
  "& .MuiAvatar-root": {
1243
596
  backgroundColor: (t.vars ?? t).palette.action.active
1244
597
  }
1245
- })), pn = (t) => {
1246
- const e = ae(17), {
1247
- item: r,
1248
- collapsed: o
598
+ })), wn = (t) => {
599
+ const e = B(17), {
600
+ item: n,
601
+ collapsed: r
1249
602
  } = t;
1250
- if (r.icon || o) {
603
+ if (n.icon || r) {
1251
604
  let s;
1252
- e[0] !== o ? (s = o ? {
605
+ e[0] !== r ? (s = r ? {
1253
606
  position: "absolute",
1254
607
  left: "50%",
1255
608
  top: "calc(50% - 6px)",
1256
609
  transform: "translate(-50%, -50%)"
1257
- } : {}, e[0] = o, e[1] = s) : s = e[1];
610
+ } : {}, e[0] = r, e[1] = s) : s = e[1];
1258
611
  let a;
1259
612
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
1260
613
  display: "flex",
1261
614
  alignItems: "center",
1262
615
  justifyContent: "center",
1263
- minWidth: nt
616
+ minWidth: Ve
1264
617
  }, e[2] = a) : a = e[2];
1265
- const n = r.icon ?? null;
1266
- let c;
1267
- e[3] !== o || e[4] !== r.icon || e[5] !== r.title ? (c = !r.icon && o ? /* @__PURE__ */ m(_r, { sx: {
1268
- width: nt - 7,
1269
- height: nt - 7,
618
+ const o = n.icon ?? null;
619
+ let l;
620
+ e[3] !== r || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && r ? /* @__PURE__ */ i(Kt, { sx: {
621
+ width: Ve - 7,
622
+ height: Ve - 7,
1270
623
  fontSize: 12
1271
- }, children: r.title }) : null, e[3] = o, e[4] = r.icon, e[5] = r.title, e[6] = c) : c = e[6];
1272
- let f;
1273
- e[7] !== n || e[8] !== c ? (f = /* @__PURE__ */ q(Cr, { sx: a, children: [
1274
- n,
1275
- c
1276
- ] }), e[7] = n, e[8] = c, e[9] = f) : f = e[9];
624
+ }, children: n.title }) : null, e[3] = r, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
1277
625
  let d;
1278
- e[10] !== o || e[11] !== r.title ? (d = o ? /* @__PURE__ */ m(Ir, { variant: "caption", sx: {
626
+ e[7] !== o || e[8] !== l ? (d = /* @__PURE__ */ L(en, { sx: a, children: [
627
+ o,
628
+ l
629
+ ] }), e[7] = o, e[8] = l, e[9] = d) : d = e[9];
630
+ let u;
631
+ e[10] !== r || e[11] !== n.title ? (u = r ? /* @__PURE__ */ i(rn, { variant: "caption", sx: {
1279
632
  position: "absolute",
1280
633
  bottom: -18,
1281
634
  left: "50%",
@@ -1286,19 +639,19 @@ const fn = () => {
1286
639
  whiteSpace: "nowrap",
1287
640
  overflow: "hidden",
1288
641
  textOverflow: "ellipsis",
1289
- maxWidth: Ue - 28
1290
- }, children: r.title }) : null, e[10] = o, e[11] = r.title, e[12] = d) : d = e[12];
1291
- let u;
1292
- return e[13] !== s || e[14] !== f || e[15] !== d ? (u = /* @__PURE__ */ q(At, { sx: s, children: [
1293
- f,
1294
- d
1295
- ] }), e[13] = s, e[14] = f, e[15] = d, e[16] = u) : u = e[16], u;
642
+ maxWidth: $e - 28
643
+ }, children: n.title }) : null, e[10] = r, e[11] = n.title, e[12] = u) : u = e[12];
644
+ let c;
645
+ return e[13] !== s || e[14] !== d || e[15] !== u ? (c = /* @__PURE__ */ L(ct, { sx: s, children: [
646
+ d,
647
+ u
648
+ ] }), e[13] = s, e[14] = d, e[15] = u, e[16] = c) : c = e[16], c;
1296
649
  }
1297
650
  return null;
1298
- }, hn = (t) => {
1299
- const e = ae(10), {
1300
- open: r,
1301
- anchorEl: o,
651
+ }, In = (t) => {
652
+ const e = B(10), {
653
+ open: n,
654
+ anchorEl: r,
1302
655
  children: s
1303
656
  } = t;
1304
657
  let a;
@@ -1308,78 +661,78 @@ const fn = () => {
1308
661
  offset: [6, 0]
1309
662
  }
1310
663
  }, e[0] = a) : a = e[0];
1311
- let n;
1312
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
664
+ let o;
665
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1313
666
  name: "preventOverflow",
1314
667
  options: {
1315
668
  padding: 8
1316
669
  }
1317
- }, e[1] = n) : n = e[1];
1318
- let c;
1319
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [a, n, {
670
+ }, e[1] = o) : o = e[1];
671
+ let l;
672
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [a, o, {
1320
673
  name: "flip",
1321
674
  options: {
1322
675
  fallbackPlacements: ["right-end", "left-start"]
1323
676
  }
1324
- }], e[2] = c) : c = e[2];
1325
- let f;
1326
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
677
+ }], e[2] = l) : l = e[2];
678
+ let d;
679
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1327
680
  pt: 0.5,
1328
681
  pb: 0.5,
1329
682
  maxHeight: "min(calc(100vh - 100px), 560px)",
1330
683
  overflowY: "auto",
1331
684
  overscrollBehavior: "contain"
1332
- }, e[3] = f) : f = e[3];
1333
- let d;
1334
- e[4] !== s ? (d = /* @__PURE__ */ m(Pr, { sx: f, children: s }), e[4] = s, e[5] = d) : d = e[5];
685
+ }, e[3] = d) : d = e[3];
1335
686
  let u;
1336
- return e[6] !== o || e[7] !== r || e[8] !== d ? (u = /* @__PURE__ */ m(kr, { open: r, anchorEl: o, placement: "right-start", modifiers: c, children: d }), e[6] = o, e[7] = r, e[8] = d, e[9] = u) : u = e[9], u;
1337
- }, yn = (t) => {
1338
- const e = ae(57), {
1339
- item: r,
1340
- isOpen: o,
687
+ e[4] !== s ? (u = /* @__PURE__ */ i(nn, { sx: d, children: s }), e[4] = s, e[5] = u) : u = e[5];
688
+ let c;
689
+ return e[6] !== r || e[7] !== n || e[8] !== u ? (c = /* @__PURE__ */ i(on, { open: n, anchorEl: r, placement: "right-start", modifiers: l, children: u }), e[6] = r, e[7] = n, e[8] = u, e[9] = c) : c = e[9], c;
690
+ }, Pn = (t) => {
691
+ const e = B(57), {
692
+ item: n,
693
+ isOpen: r,
1341
694
  selected: s,
1342
695
  disabled: a,
1343
- collapsed: n,
1344
- isSidebarFullyExpanded: c,
1345
- isSidebarFullyCollapsed: f,
1346
- onClick: d,
1347
- renderNested: u,
1348
- onClose: h
1349
- } = t, v = c === void 0 ? !0 : c, [g, b] = le(null), [T, E] = le(null);
1350
- let P;
1351
- e[0] !== n || e[1] !== o || e[2] !== f || e[3] !== v || e[4] !== r.children ? (P = () => n && f && r.children ? {
696
+ collapsed: o,
697
+ isSidebarFullyExpanded: l,
698
+ isSidebarFullyCollapsed: d,
699
+ onClick: u,
700
+ renderNested: c,
701
+ onClose: m
702
+ } = t, h = l === void 0 ? !0 : l, [f, p] = V(null), [g, T] = V(null);
703
+ let M;
704
+ e[0] !== o || e[1] !== r || e[2] !== d || e[3] !== h || e[4] !== n.children ? (M = () => o && d && n.children ? {
1352
705
  fontSize: 18,
1353
706
  position: "absolute",
1354
707
  top: "41.5%",
1355
708
  right: "2px",
1356
709
  transform: "translateY(-50%) rotate(-90deg)"
1357
- } : !n && v && r.children ? {
710
+ } : !o && h && n.children ? {
1358
711
  ml: 0.5,
1359
- transform: `rotate(${o ? 0 : -90}deg)`
712
+ transform: `rotate(${r ? 0 : -90}deg)`
1360
713
  } : {
1361
714
  display: "none"
1362
- }, e[0] = n, e[1] = o, e[2] = f, e[3] = v, e[4] = r.children, e[5] = P) : P = e[5];
1363
- const A = P, x = r.children && !n, _ = n ? 60 : 48;
1364
- let l;
1365
- e[6] !== _ ? (l = {
715
+ }, e[0] = o, e[1] = r, e[2] = d, e[3] = h, e[4] = n.children, e[5] = M) : M = e[5];
716
+ const x = M, y = n.children && !o, k = o ? 60 : 48;
717
+ let b;
718
+ e[6] !== k ? (b = {
1366
719
  px: 1.4,
1367
- height: _
1368
- }, e[6] = _, e[7] = l) : l = e[7];
1369
- let j;
1370
- e[8] !== a || e[9] !== s || e[10] !== l ? (j = {
720
+ height: k
721
+ }, e[6] = k, e[7] = b) : b = e[7];
722
+ let D;
723
+ e[8] !== a || e[9] !== s || e[10] !== b ? (D = {
1371
724
  selected: s,
1372
725
  disabled: a,
1373
- sx: l
1374
- }, e[8] = a, e[9] = s, e[10] = l, e[11] = j) : j = e[11];
1375
- const J = j;
1376
- let B;
1377
- e[12] !== n || e[13] !== r ? (B = /* @__PURE__ */ m(pn, { item: r, collapsed: n }), e[12] = n, e[13] = r, e[14] = B) : B = e[14];
1378
- let N;
1379
- e[15] !== n || e[16] !== r.title ? (N = !n && /* @__PURE__ */ m(Mr, { primary: r.title, slotProps: {
726
+ sx: b
727
+ }, e[8] = a, e[9] = s, e[10] = b, e[11] = D) : D = e[11];
728
+ const z = D;
729
+ let I;
730
+ e[12] !== o || e[13] !== n ? (I = /* @__PURE__ */ i(wn, { item: n, collapsed: o }), e[12] = o, e[13] = n, e[14] = I) : I = e[14];
731
+ let _;
732
+ e[15] !== o || e[16] !== n.title ? (_ = !o && /* @__PURE__ */ i(tn, { primary: n.title, slotProps: {
1380
733
  primary: {
1381
734
  noWrap: !0,
1382
- title: r.title
735
+ title: n.title
1383
736
  }
1384
737
  }, sx: {
1385
738
  ml: 1.2,
@@ -1390,384 +743,333 @@ const fn = () => {
1390
743
  overflow: "hidden",
1391
744
  textOverflow: "ellipsis"
1392
745
  }
1393
- } }), e[15] = n, e[16] = r.title, e[17] = N) : N = e[17];
1394
- let W;
1395
- e[18] !== A || e[19] !== r.children ? (W = r.children ? /* @__PURE__ */ m(Er, { sx: A }) : null, e[18] = A, e[19] = r.children, e[20] = W) : W = e[20];
1396
- let K;
1397
- e[21] !== B || e[22] !== N || e[23] !== W ? (K = /* @__PURE__ */ q(Wt, { children: [
1398
- B,
1399
- N,
1400
- W
1401
- ] }), e[21] = B, e[22] = N, e[23] = W, e[24] = K) : K = e[24];
1402
- const ee = K;
1403
- let Z;
1404
- e[25] !== n || e[26] !== r.children || e[27] !== r.title ? (Z = r.children && n ? {
1405
- onMouseEnter: (y) => {
1406
- E(y.currentTarget), b(r.title);
746
+ } }), e[15] = o, e[16] = n.title, e[17] = _) : _ = e[17];
747
+ let v;
748
+ e[18] !== x || e[19] !== n.children ? (v = n.children ? /* @__PURE__ */ i(qt, { sx: x }) : null, e[18] = x, e[19] = n.children, e[20] = v) : v = e[20];
749
+ let A;
750
+ e[21] !== I || e[22] !== _ || e[23] !== v ? (A = /* @__PURE__ */ L(ht, { children: [
751
+ I,
752
+ _,
753
+ v
754
+ ] }), e[21] = I, e[22] = _, e[23] = v, e[24] = A) : A = e[24];
755
+ const Y = A;
756
+ let j;
757
+ e[25] !== o || e[26] !== n.children || e[27] !== n.title ? (j = n.children && o ? {
758
+ onMouseEnter: (H) => {
759
+ T(H.currentTarget), p(n.title);
1407
760
  },
1408
761
  onMouseLeave: () => {
1409
- b(null);
762
+ p(null);
1410
763
  }
1411
- } : {}, e[25] = n, e[26] = r.children, e[27] = r.title, e[28] = Z) : Z = e[28];
1412
- let U;
1413
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
764
+ } : {}, e[25] = o, e[26] = n.children, e[27] = n.title, e[28] = j) : j = e[28];
765
+ let E;
766
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
1414
767
  py: 0,
1415
768
  px: 1,
1416
769
  overflowX: "hidden"
1417
- }, e[29] = U) : U = e[29];
1418
- let F;
1419
- e[30] !== ee || e[31] !== J || e[32] !== r || e[33] !== d || e[34] !== h || e[35] !== x ? (F = x ? /* @__PURE__ */ m(dn, { ...J, onClick: () => d?.(r), children: ee }) : /* @__PURE__ */ m(mn, { ...J, to: r.to, href: r.href, params: r.params, search: r.search, onClick: h, children: ee }), e[30] = ee, e[31] = J, e[32] = r, e[33] = d, e[34] = h, e[35] = x, e[36] = F) : F = e[36];
1420
- let R;
1421
- e[37] !== T || e[38] !== n || e[39] !== g || e[40] !== r.children || e[41] !== r.title || e[42] !== u ? (R = r.children && n ? /* @__PURE__ */ m(hn, { open: r.title === g, anchorEl: T, children: u?.(r.children) }) : null, e[37] = T, e[38] = n, e[39] = g, e[40] = r.children, e[41] = r.title, e[42] = u, e[43] = R) : R = e[43];
1422
- let H;
1423
- e[44] !== Z || e[45] !== F || e[46] !== R ? (H = /* @__PURE__ */ q(Or, { ...Z, sx: U, children: [
770
+ }, e[29] = E) : E = e[29];
771
+ let w;
772
+ e[30] !== Y || e[31] !== z || e[32] !== n || e[33] !== u || e[34] !== m || e[35] !== y ? (w = y ? /* @__PURE__ */ i(On, { ...z, onClick: () => u?.(n), children: Y }) : /* @__PURE__ */ i(Cn, { ...z, to: n.to, href: n.href, params: n.params, search: n.search, onClick: m, children: Y }), e[30] = Y, e[31] = z, e[32] = n, e[33] = u, e[34] = m, e[35] = y, e[36] = w) : w = e[36];
773
+ let O;
774
+ e[37] !== g || e[38] !== o || e[39] !== f || e[40] !== n.children || e[41] !== n.title || e[42] !== c ? (O = n.children && o ? /* @__PURE__ */ i(In, { open: n.title === f, anchorEl: g, children: c?.(n.children) }) : null, e[37] = g, e[38] = o, e[39] = f, e[40] = n.children, e[41] = n.title, e[42] = c, e[43] = O) : O = e[43];
775
+ let W;
776
+ e[44] !== j || e[45] !== w || e[46] !== O ? (W = /* @__PURE__ */ L(Jt, { ...j, sx: E, children: [
777
+ w,
778
+ O
779
+ ] }), e[44] = j, e[45] = w, e[46] = O, e[47] = W) : W = e[47];
780
+ const F = W;
781
+ let P;
782
+ e[48] !== o || e[49] !== r || e[50] !== n.children || e[51] !== c ? (P = n.children && !o ? /* @__PURE__ */ i(Tt, { in: r, timeout: "auto", unmountOnExit: !0, children: c?.(n.children) }) : null, e[48] = o, e[49] = r, e[50] = n.children, e[51] = c, e[52] = P) : P = e[52];
783
+ let N;
784
+ return e[53] !== n.to || e[54] !== F || e[55] !== P ? (N = /* @__PURE__ */ L(Ye, { children: [
1424
785
  F,
1425
- R
1426
- ] }), e[44] = Z, e[45] = F, e[46] = R, e[47] = H) : H = e[47];
1427
- const te = H;
1428
- let V;
1429
- e[48] !== n || e[49] !== o || e[50] !== r.children || e[51] !== u ? (V = r.children && !n ? /* @__PURE__ */ m(Bt, { in: o, timeout: "auto", unmountOnExit: !0, children: u?.(r.children) }) : null, e[48] = n, e[49] = o, e[50] = r.children, e[51] = u, e[52] = V) : V = e[52];
1430
- let i;
1431
- return e[53] !== r.to || e[54] !== te || e[55] !== V ? (i = /* @__PURE__ */ q(qe, { children: [
1432
- te,
1433
- V
1434
- ] }, r.to), e[53] = r.to, e[54] = te, e[55] = V, e[56] = i) : i = e[56], i;
1435
- }, gn = (t) => !("kind" in t), vn = (t) => "kind" in t && t.kind === "divider", it = (t) => "kind" in t && t.kind === "header", $t = (t) => {
1436
- const e = ae(31), {
1437
- subNavigation: r,
1438
- depth: o,
786
+ P
787
+ ] }, n.to), e[53] = n.to, e[54] = F, e[55] = P, e[56] = N) : N = e[56], N;
788
+ }, En = (t) => !("kind" in t), An = (t) => "kind" in t && t.kind === "divider", Xe = (t) => "kind" in t && t.kind === "header", dt = (t) => {
789
+ const e = B(31), {
790
+ subNavigation: n,
791
+ depth: r,
1439
792
  collapsed: s,
1440
793
  isPopover: a,
1441
- isSidebarFullyExpanded: n,
1442
- isSidebarFullyCollapsed: c,
1443
- expandedWidth: f,
1444
- renderItem: d,
1445
- activePath: u,
1446
- onNavigate: h,
1447
- onClose: v
1448
- } = t, g = o === void 0 ? 0 : o, b = n === void 0 ? !0 : n;
1449
- let T;
1450
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = [], e[0] = T) : T = e[0];
1451
- const [E, P] = le(T);
1452
- let A, x;
1453
- e[1] !== s ? (A = () => {
1454
- s && P([]);
1455
- }, x = [s], e[1] = s, e[2] = A, e[3] = x) : (A = e[2], x = e[3]), Lt(A, x);
1456
- let _;
1457
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (N) => P((W) => W.includes(N) ? W.filter((K) => K !== N) : [...W, N]), e[4] = _) : _ = e[4];
1458
- const l = _;
1459
- let j;
1460
- e[5] !== u || e[6] !== s || e[7] !== g || e[8] !== f || e[9] !== v || e[10] !== h ? (j = (N) => /* @__PURE__ */ m($t, { subNavigation: N, depth: g + 1, isPopover: s, expandedWidth: f, activePath: u, onNavigate: h, onClose: v }), e[5] = u, e[6] = s, e[7] = g, e[8] = f, e[9] = v, e[10] = h, e[11] = j) : j = e[11];
1461
- const J = j;
1462
- let B;
1463
- if (e[12] !== u || e[13] !== s || e[14] !== g || e[15] !== f || e[16] !== a || e[17] !== c || e[18] !== b || e[19] !== v || e[20] !== E || e[21] !== d || e[22] !== J || e[23] !== r) {
1464
- const N = r.filter(Tn), W = a && g === 1 ? 0.5 : 0, K = g === 0 && !a ? 4 : 0.5, ee = (a ? 1 : 2) * (a ? g - 1 : g), Z = a && g === 1 ? Ne : "auto", U = s ? Ue : "auto";
1465
- let F;
1466
- e[25] !== K || e[26] !== ee || e[27] !== Z || e[28] !== U || e[29] !== W ? (F = {
794
+ isSidebarFullyExpanded: o,
795
+ isSidebarFullyCollapsed: l,
796
+ expandedWidth: d,
797
+ renderItem: u,
798
+ activePath: c,
799
+ onNavigate: m,
800
+ onClose: h
801
+ } = t, f = r === void 0 ? 0 : r, p = o === void 0 ? !0 : o;
802
+ let g;
803
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
804
+ const [T, M] = V(g);
805
+ let x, y;
806
+ e[1] !== s ? (x = () => {
807
+ s && M([]);
808
+ }, y = [s], e[1] = s, e[2] = x, e[3] = y) : (x = e[2], y = e[3]), lt(x, y);
809
+ let k;
810
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (_) => M((v) => v.includes(_) ? v.filter((A) => A !== _) : [...v, _]), e[4] = k) : k = e[4];
811
+ const b = k;
812
+ let D;
813
+ e[5] !== c || e[6] !== s || e[7] !== f || e[8] !== d || e[9] !== h || e[10] !== m ? (D = (_) => /* @__PURE__ */ i(dt, { subNavigation: _, depth: f + 1, isPopover: s, expandedWidth: d, activePath: c, onNavigate: m, onClose: h }), e[5] = c, e[6] = s, e[7] = f, e[8] = d, e[9] = h, e[10] = m, e[11] = D) : D = e[11];
814
+ const z = D;
815
+ let I;
816
+ if (e[12] !== c || e[13] !== s || e[14] !== f || e[15] !== d || e[16] !== a || e[17] !== l || e[18] !== p || e[19] !== h || e[20] !== T || e[21] !== u || e[22] !== z || e[23] !== n) {
817
+ const _ = n.filter(jn), v = a && f === 1 ? 0.5 : 0, A = f === 0 && !a ? 4 : 0.5, Y = (a ? 1 : 2) * (a ? f - 1 : f), j = a && f === 1 ? je : "auto", E = s ? $e : "auto";
818
+ let w;
819
+ e[25] !== A || e[26] !== Y || e[27] !== j || e[28] !== E || e[29] !== v ? (w = {
1467
820
  padding: 0,
1468
- mt: W,
1469
- mb: K,
1470
- pl: ee,
1471
- minWidth: Z,
1472
- width: U
1473
- }, e[25] = K, e[26] = ee, e[27] = Z, e[28] = U, e[29] = W, e[30] = F) : F = e[30], B = /* @__PURE__ */ m(xr, { sx: F, children: N.map((R, H) => {
1474
- if (it(R))
1475
- return /* @__PURE__ */ m(Sr, { sx: {
821
+ mt: v,
822
+ mb: A,
823
+ pl: Y,
824
+ minWidth: j,
825
+ width: E
826
+ }, e[25] = A, e[26] = Y, e[27] = j, e[28] = E, e[29] = v, e[30] = w) : w = e[30], I = /* @__PURE__ */ i(Xt, { sx: w, children: _.map((O, W) => {
827
+ if (Xe(O))
828
+ return /* @__PURE__ */ i(Zt, { sx: {
1476
829
  fontSize: 12,
1477
830
  fontWeight: "700",
1478
831
  height: s ? 0 : 40,
1479
832
  px: 2,
1480
- minWidth: f,
833
+ minWidth: d,
1481
834
  overflow: "hidden",
1482
835
  textOverflow: "ellipsis",
1483
836
  whiteSpace: "nowrap",
1484
837
  zIndex: 2,
1485
838
  bgcolor: "transparent",
1486
839
  position: "static"
1487
- }, children: R.title }, `subheader-${g}-${H}`);
1488
- if (vn(R)) {
1489
- const i = N[H + 1];
1490
- return /* @__PURE__ */ m("li", { children: /* @__PURE__ */ m(br, { sx: {
840
+ }, children: O.title }, `subheader-${f}-${W}`);
841
+ if (An(O)) {
842
+ const N = _[W + 1];
843
+ return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(Gt, { sx: {
1491
844
  mx: 1,
1492
845
  mt: 1,
1493
- mb: it(i) && !s ? 0 : 1
1494
- } }) }, `divider-${g}-${H}`);
846
+ mb: Xe(N) && !s ? 0 : 1
847
+ } }) }, `divider-${f}-${W}`);
1495
848
  }
1496
- if (!gn(R))
849
+ if (!En(O))
1497
850
  return null;
1498
- const te = `item-${g}-${H}`, V = `${g}-${H}-${R.title}`;
1499
- return d ? /* @__PURE__ */ m(qe, { children: d(R, {
851
+ const F = `item-${f}-${W}`, P = `${f}-${W}-${O.title}`;
852
+ return u ? /* @__PURE__ */ i(Ye, { children: u(O, {
1500
853
  collapsed: !!s
1501
- }) }, te) : /* @__PURE__ */ m(yn, { item: R, isOpen: E.includes(V), selected: u === R.to, collapsed: s, isSidebarFullyExpanded: b, isSidebarFullyCollapsed: c, onClick: R.children && !s ? () => l(V) : void 0, renderNested: J, onClose: v }, te);
1502
- }) }), e[12] = u, e[13] = s, e[14] = g, e[15] = f, e[16] = a, e[17] = c, e[18] = b, e[19] = v, e[20] = E, e[21] = d, e[22] = J, e[23] = r, e[24] = B;
854
+ }) }, F) : /* @__PURE__ */ i(Pn, { item: O, isOpen: T.includes(P), selected: c === O.to, collapsed: s, isSidebarFullyExpanded: p, isSidebarFullyCollapsed: l, onClick: O.children && !s ? () => b(P) : void 0, renderNested: z, onClose: h }, F);
855
+ }) }), e[12] = c, e[13] = s, e[14] = f, e[15] = d, e[16] = a, e[17] = l, e[18] = p, e[19] = h, e[20] = T, e[21] = u, e[22] = z, e[23] = n, e[24] = I;
1503
856
  } else
1504
- B = e[24];
1505
- return B;
857
+ I = e[24];
858
+ return I;
1506
859
  };
1507
- function Tn(t) {
860
+ function jn(t) {
1508
861
  return !t.hidden;
1509
862
  }
1510
- const Ue = 84, Ne = 320, kt = 64, bn = (t) => {
1511
- const e = ae(29), {
1512
- navigation: r,
1513
- expanded: o,
863
+ const $e = 84, je = 320, it = 64, zn = (t) => {
864
+ const e = B(29), {
865
+ navigation: n,
866
+ expanded: r,
1514
867
  setExpanded: s
1515
- } = t, a = vr(), n = Tr(), c = pr();
1516
- let f;
1517
- e[0] !== c.breakpoints ? (f = c.breakpoints.up("sm"), e[0] = c.breakpoints, e[1] = f) : f = e[1];
1518
- const d = Ht(f);
1519
- let u;
1520
- e[2] !== o || e[3] !== a || e[4] !== r || e[5] !== n.location.pathname || e[6] !== s || e[7] !== d ? (u = (E) => /* @__PURE__ */ m(At, { component: "nav", sx: {
868
+ } = t, a = Ht(), o = Vt(), l = Ut();
869
+ let d;
870
+ e[0] !== l.breakpoints ? (d = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = d) : d = e[1];
871
+ const u = xt(d);
872
+ let c;
873
+ e[2] !== r || e[3] !== a || e[4] !== n || e[5] !== o.location.pathname || e[6] !== s || e[7] !== u ? (c = (T) => /* @__PURE__ */ i(ct, { component: "nav", sx: {
1521
874
  height: "100%",
1522
875
  display: "flex",
1523
876
  flexDirection: "column",
1524
877
  justifyContent: "space-between",
1525
878
  overflow: "auto",
1526
- scrollbarGutter: E ? "stable" : "auto",
879
+ scrollbarGutter: T ? "stable" : "auto",
1527
880
  overflowX: "hidden",
1528
- pt: r[0] && it(r[0]) && !E ? 0 : 2
1529
- }, children: /* @__PURE__ */ m($t, { subNavigation: r, collapsed: E, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: Ne, activePath: n.location.pathname, onNavigate: a, onClose: d ? void 0 : () => s(!1) }) }), e[2] = o, e[3] = a, e[4] = r, e[5] = n.location.pathname, e[6] = s, e[7] = d, e[8] = u) : u = e[8];
1530
- const h = u;
1531
- if (d) {
1532
- const E = o ? Ne : Ue, P = o ? Ne : Ue;
1533
- let A;
1534
- e[9] !== P ? (A = {
881
+ pt: n[0] && Xe(n[0]) && !T ? 0 : 2
882
+ }, children: /* @__PURE__ */ i(dt, { subNavigation: n, collapsed: T, isSidebarFullyExpanded: r, isSidebarFullyCollapsed: !r, expandedWidth: je, activePath: o.location.pathname, onNavigate: a, onClose: u ? void 0 : () => s(!1) }) }), e[2] = r, e[3] = a, e[4] = n, e[5] = o.location.pathname, e[6] = s, e[7] = u, e[8] = c) : c = e[8];
883
+ const m = c;
884
+ if (u) {
885
+ const T = r ? je : $e, M = r ? je : $e;
886
+ let x;
887
+ e[9] !== M ? (x = {
1535
888
  position: "absolute",
1536
- top: `${kt}px`,
1537
- height: `calc(100% - ${kt}px)`,
1538
- width: P,
889
+ top: `${it}px`,
890
+ height: `calc(100% - ${it}px)`,
891
+ width: M,
1539
892
  borderTop: "1px solid",
1540
893
  borderColor: "var(--mui-palette-divider)"
1541
- }, e[9] = P, e[10] = A) : A = e[10];
1542
- let x;
1543
- e[11] !== E || e[12] !== A ? (x = {
1544
- width: E,
1545
- "& .MuiDrawer-paper": A
1546
- }, e[11] = E, e[12] = A, e[13] = x) : x = e[13];
1547
- const _ = !o;
1548
- let l;
1549
- e[14] !== h || e[15] !== _ ? (l = h(_), e[14] = h, e[15] = _, e[16] = l) : l = e[16];
1550
- let j;
1551
- return e[17] !== x || e[18] !== l ? (j = /* @__PURE__ */ m(pt, { variant: "permanent", sx: x, children: l }), e[17] = x, e[18] = l, e[19] = j) : j = e[19], j;
894
+ }, e[9] = M, e[10] = x) : x = e[10];
895
+ let y;
896
+ e[11] !== T || e[12] !== x ? (y = {
897
+ width: T,
898
+ "& .MuiDrawer-paper": x
899
+ }, e[11] = T, e[12] = x, e[13] = y) : y = e[13];
900
+ const k = !r;
901
+ let b;
902
+ e[14] !== m || e[15] !== k ? (b = m(k), e[14] = m, e[15] = k, e[16] = b) : b = e[16];
903
+ let D;
904
+ return e[17] !== y || e[18] !== b ? (D = /* @__PURE__ */ i(Qe, { variant: "permanent", sx: y, children: b }), e[17] = y, e[18] = b, e[19] = D) : D = e[19], D;
1552
905
  }
1553
- let v;
1554
- e[20] !== s ? (v = () => s(!1), e[20] = s, e[21] = v) : v = e[21];
1555
- const g = !o;
1556
- let b;
1557
- e[22] !== h || e[23] !== g ? (b = h(g), e[22] = h, e[23] = g, e[24] = b) : b = e[24];
1558
- let T;
1559
- return e[25] !== o || e[26] !== v || e[27] !== b ? (T = /* @__PURE__ */ m(pt, { open: o, onClose: v, children: b }), e[25] = o, e[26] = v, e[27] = b, e[28] = T) : T = e[28], T;
1560
- }, Lo = Fe().inputValidator(ge.object({
1561
- redirectUri: ge.string()
1562
- })).handler(async ({
1563
- data: t
1564
- }) => {
1565
- const e = await Wr(t.redirectUri), r = await lt.fetchQuery({
1566
- queryKey: ["graph", "me", "memberOf"],
1567
- queryFn: async () => st.request({
1568
- method: "GET",
1569
- url: "https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName",
1570
- headers: {
1571
- Authorization: `Bearer ${await ct()}`
1572
- }
1573
- }).then((o) => o.data.value.map((s) => s.displayName)),
1574
- staleTime: 1 / 0,
1575
- gcTime: 1 / 0
1576
- });
1577
- return {
1578
- ...e.user,
1579
- groups: r
1580
- };
1581
- }), xn = Fe({
1582
- method: "GET"
1583
- }).handler(async () => await lt.fetchQuery({
1584
- queryKey: ["graph", "me"],
1585
- queryFn: async () => await st.request({
1586
- method: "GET",
1587
- url: "https://graph.microsoft.com/v1.0/me?$select=id,displayName,jobTitle,mail,mobilePhone",
1588
- headers: {
1589
- Authorization: `Bearer ${await ct()}`
1590
- }
1591
- }).then((t) => t.data),
1592
- staleTime: 1 / 0,
1593
- gcTime: 1 / 0
1594
- })), Sn = Fe({
1595
- method: "GET"
1596
- }).handler(async () => await lt.fetchQuery({
1597
- queryKey: ["graph", "me", "photo"],
1598
- queryFn: async () => {
1599
- const t = await st.request({
1600
- method: "GET",
1601
- url: "https://graph.microsoft.com/v1.0/me/photo/$value",
1602
- headers: {
1603
- Authorization: `Bearer ${await ct()}`
1604
- },
1605
- responseType: "arraybuffer"
1606
- }), e = t.headers["content-type"] ?? "image/jpeg", r = Buffer.from(t.data).toString("base64");
1607
- return `data:${e};base64,${r}`;
1608
- },
1609
- staleTime: 1 / 0,
1610
- gcTime: 1 / 0
1611
- })), It = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), En = () => {
1612
- const t = ae(105), [e, r] = le(), [o, s] = le("settings"), a = !!e, {
1613
- t: n,
1614
- i18n: c
1615
- } = lr(), {
1616
- mode: f,
1617
- setMode: d
1618
- } = Vt();
1619
- let u, h, v, g, b, T, E;
1620
- if (t[0] !== c || t[1] !== f || t[2] !== d || t[3] !== n) {
1621
- const H = (Array.isArray(c.options.supportedLngs) ? c.options.supportedLngs : []).filter(_n), te = new Intl.DisplayNames([c.language], {
906
+ let h;
907
+ e[20] !== s ? (h = () => s(!1), e[20] = s, e[21] = h) : h = e[21];
908
+ const f = !r;
909
+ let p;
910
+ e[22] !== m || e[23] !== f ? (p = m(f), e[22] = m, e[23] = f, e[24] = p) : p = e[24];
911
+ let g;
912
+ return e[25] !== r || e[26] !== h || e[27] !== p ? (g = /* @__PURE__ */ i(Qe, { open: r, onClose: h, children: p }), e[25] = r, e[26] = h, e[27] = p, e[28] = g) : g = e[28], g;
913
+ }, st = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Nn = () => {
914
+ const t = B(105), [e, n] = V(), [r, s] = V("settings"), a = !!e, {
915
+ t: o,
916
+ i18n: l
917
+ } = jt(), {
918
+ mode: d,
919
+ setMode: u
920
+ } = bt();
921
+ let c, m, h, f, p, g, T;
922
+ if (t[0] !== l || t[1] !== d || t[2] !== u || t[3] !== o) {
923
+ const W = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter($n), F = new Intl.DisplayNames([l.language], {
1622
924
  type: "language"
1623
925
  });
1624
- let V;
1625
- t[11] !== n ? (V = n("Layout.Light"), t[11] = n, t[12] = V) : V = t[12];
1626
- let i;
1627
- t[13] !== V ? (i = {
926
+ let P;
927
+ t[11] !== o ? (P = o("Layout.Light"), t[11] = o, t[12] = P) : P = t[12];
928
+ let N;
929
+ t[13] !== P ? (N = {
1628
930
  mode: "light",
1629
- icon: $r,
1630
- label: V
1631
- }, t[13] = V, t[14] = i) : i = t[14];
1632
- let y;
1633
- t[15] !== n ? (y = n("Layout.Dark"), t[15] = n, t[16] = y) : y = t[16];
1634
- let w;
1635
- t[17] !== y ? (w = {
931
+ icon: dn,
932
+ label: P
933
+ }, t[13] = P, t[14] = N) : N = t[14];
934
+ let H;
935
+ t[15] !== o ? (H = o("Layout.Dark"), t[15] = o, t[16] = H) : H = t[16];
936
+ let G;
937
+ t[17] !== H ? (G = {
1636
938
  mode: "dark",
1637
- icon: Rr,
1638
- label: y
1639
- }, t[17] = y, t[18] = w) : w = t[18];
1640
- let O;
1641
- t[19] !== n ? (O = n("Layout.System"), t[19] = n, t[20] = O) : O = t[20];
1642
- let S;
1643
- t[21] !== O ? (S = {
1644
- mode: "system",
1645
- icon: zr,
1646
- label: O
1647
- }, t[21] = O, t[22] = S) : S = t[22];
1648
- let k;
1649
- t[23] !== i || t[24] !== w || t[25] !== S ? (k = [i, w, S], t[23] = i, t[24] = w, t[25] = S, t[26] = k) : k = t[26];
1650
- const C = k;
1651
- let M;
1652
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (re) => r(re.currentTarget), t[27] = M) : M = t[27], v = M;
1653
- let I;
1654
- t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => {
1655
- r(void 0), setTimeout(() => s("settings"), 300);
1656
- }, t[28] = I) : I = t[28], h = I;
1657
- let L;
1658
- t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (re) => () => s(re), t[29] = L) : L = t[29];
1659
- const D = L;
939
+ icon: ln,
940
+ label: H
941
+ }, t[17] = H, t[18] = G) : G = t[18];
1660
942
  let X;
1661
- t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
1662
- backgroundColor: "transparent"
1663
- }, t[30] = X) : X = t[30];
1664
- let p;
1665
- t[31] !== n ? (p = n("Layout.Settings"), t[31] = n, t[32] = p) : p = t[32];
1666
- let Q;
1667
- t[33] !== p ? (Q = /* @__PURE__ */ m(Ge, { sx: X, children: p }), t[33] = p, t[34] = Q) : Q = t[34];
1668
- let oe, se;
1669
- t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = D("theme"), se = {
1670
- py: 0.3
1671
- }, t[35] = oe, t[36] = se) : (oe = t[35], se = t[36]);
1672
- let be;
1673
- t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(Ar, {}) }), t[37] = be) : be = t[37];
1674
- let ce;
1675
- t[38] !== n ? (ce = n("Layout.Appearance"), t[38] = n, t[39] = ce) : ce = t[39];
1676
- const Be = C.find((re) => re.mode === f)?.label;
943
+ t[19] !== o ? (X = o("Layout.System"), t[19] = o, t[20] = X) : X = t[20];
944
+ let Z;
945
+ t[21] !== X ? (Z = {
946
+ mode: "system",
947
+ icon: fn,
948
+ label: X
949
+ }, t[21] = X, t[22] = Z) : Z = t[22];
950
+ let le;
951
+ t[23] !== N || t[24] !== G || t[25] !== Z ? (le = [N, G, Z], t[23] = N, t[24] = G, t[25] = Z, t[26] = le) : le = t[26];
952
+ const ce = le;
953
+ let de;
954
+ t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = ($) => n($.currentTarget), t[27] = de) : de = t[27], h = de;
1677
955
  let ue;
1678
- t[40] !== ce || t[41] !== Be ? (ue = /* @__PURE__ */ m(ye, { primary: ce, secondary: Be }), t[40] = ce, t[41] = Be, t[42] = ue) : ue = t[42];
1679
- let xe;
1680
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = /* @__PURE__ */ m(gt, {}), t[43] = xe) : xe = t[43];
956
+ t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
957
+ n(void 0), setTimeout(() => s("settings"), 300);
958
+ }, t[28] = ue) : ue = t[28], m = ue;
1681
959
  let fe;
1682
- t[44] !== ue ? (fe = /* @__PURE__ */ q(ve, { onClick: oe, sx: se, children: [
1683
- be,
1684
- ue,
1685
- xe
1686
- ] }), t[44] = ue, t[45] = fe) : fe = t[45];
1687
- let Se, Ee;
1688
- t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = D("language"), Ee = {
960
+ t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = ($) => () => s($), t[29] = fe) : fe = t[29];
961
+ const me = fe;
962
+ let he;
963
+ t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = {
964
+ backgroundColor: "transparent"
965
+ }, t[30] = he) : he = t[30];
966
+ let q;
967
+ t[31] !== o ? (q = o("Layout.Settings"), t[31] = o, t[32] = q) : q = t[32];
968
+ let K;
969
+ t[33] !== q ? (K = /* @__PURE__ */ i(Re, { sx: he, children: q }), t[33] = q, t[34] = K) : K = t[34];
970
+ let pe, ge;
971
+ t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = me("theme"), ge = {
1689
972
  py: 0.3
1690
- }, t[46] = Se, t[47] = Ee) : (Se = t[46], Ee = t[47]);
1691
- let _e;
1692
- t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(Nr, {}) }), t[48] = _e) : _e = t[48];
1693
- let Oe;
1694
- t[49] !== n ? (Oe = n("Layout.Language"), t[49] = n, t[50] = Oe) : Oe = t[50];
1695
- let we;
1696
- t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ m(gt, {}), t[51] = we) : we = t[51];
1697
- const He = /* @__PURE__ */ q(ve, { onClick: Se, sx: Ee, children: [
1698
- _e,
1699
- /* @__PURE__ */ m(ye, { primary: Oe, secondary: It(te.of(c.language)) }),
1700
- we
973
+ }, t[35] = pe, t[36] = ge) : (pe = t[35], ge = t[36]);
974
+ let ye;
975
+ t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(an, {}) }), t[37] = ye) : ye = t[37];
976
+ let J;
977
+ t[38] !== o ? (J = o("Layout.Appearance"), t[38] = o, t[39] = J) : J = t[39];
978
+ const We = ce.find(($) => $.mode === d)?.label;
979
+ let Q;
980
+ t[40] !== J || t[41] !== We ? (Q = /* @__PURE__ */ i(se, { primary: J, secondary: We }), t[40] = J, t[41] = We, t[42] = Q) : Q = t[42];
981
+ let Te;
982
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ i(nt, {}), t[43] = Te) : Te = t[43];
983
+ let ee;
984
+ t[44] !== Q ? (ee = /* @__PURE__ */ L(ie, { onClick: pe, sx: ge, children: [
985
+ ye,
986
+ Q,
987
+ Te
988
+ ] }), t[44] = Q, t[45] = ee) : ee = t[45];
989
+ let xe, be;
990
+ t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = me("language"), be = {
991
+ py: 0.3
992
+ }, t[46] = xe, t[47] = be) : (xe = t[46], be = t[47]);
993
+ let Se;
994
+ t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(mn, {}) }), t[48] = Se) : Se = t[48];
995
+ let Me;
996
+ t[49] !== o ? (Me = o("Layout.Language"), t[49] = o, t[50] = Me) : Me = t[50];
997
+ let ke;
998
+ t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ i(nt, {}), t[51] = ke) : ke = t[51];
999
+ const Ue = /* @__PURE__ */ L(ie, { onClick: xe, sx: be, children: [
1000
+ Se,
1001
+ /* @__PURE__ */ i(se, { primary: Me, secondary: st(F.of(l.language)) }),
1002
+ ke
1701
1003
  ] });
1702
- let Ce;
1703
- t[52] !== Q || t[53] !== fe || t[54] !== He ? (Ce = /* @__PURE__ */ q(Re, { component: "nav", subheader: Q, children: [
1704
- fe,
1705
- He
1706
- ] }), t[52] = Q, t[53] = fe, t[54] = He, t[55] = Ce) : Ce = t[55], g = Ce;
1707
- let Me, Pe;
1708
- t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = D("settings"), Pe = {
1004
+ let Le;
1005
+ t[52] !== K || t[53] !== ee || t[54] !== Ue ? (Le = /* @__PURE__ */ L(Pe, { component: "nav", subheader: K, children: [
1006
+ ee,
1007
+ Ue
1008
+ ] }), t[52] = K, t[53] = ee, t[54] = Ue, t[55] = Le) : Le = t[55], f = Le;
1009
+ let De, _e;
1010
+ t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = me("settings"), _e = {
1709
1011
  backgroundColor: "transparent",
1710
1012
  display: "flex",
1711
1013
  alignItems: "center",
1712
1014
  px: 1,
1713
1015
  cursor: "pointer"
1714
- }, t[56] = Me, t[57] = Pe) : (Me = t[56], Pe = t[57]);
1715
- let ke;
1716
- t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ m(Ye, { size: "small", sx: {
1016
+ }, t[56] = De, t[57] = _e) : (De = t[56], _e = t[57]);
1017
+ let ve;
1018
+ t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ i(Ee, { size: "small", sx: {
1717
1019
  mr: 0.5
1718
- }, children: /* @__PURE__ */ m(yt, { fontSize: "small" }) }), t[58] = ke) : ke = t[58];
1719
- let de;
1720
- t[59] !== n ? (de = n("Layout.Appearance"), t[59] = n, t[60] = de) : de = t[60];
1721
- let me;
1722
- t[61] !== de ? (me = /* @__PURE__ */ q(Ge, { onClick: Me, sx: Pe, children: [
1723
- ke,
1020
+ }, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[58] = ve) : ve = t[58];
1021
+ let te;
1022
+ t[59] !== o ? (te = o("Layout.Appearance"), t[59] = o, t[60] = te) : te = t[60];
1023
+ let ne;
1024
+ t[61] !== te ? (ne = /* @__PURE__ */ L(Re, { onClick: De, sx: _e, children: [
1025
+ ve,
1724
1026
  " ",
1725
- de
1726
- ] }), t[61] = de, t[62] = me) : me = t[62];
1727
- let pe;
1728
- t[63] !== C || t[64] !== f || t[65] !== d ? (pe = C.map((re) => {
1027
+ te
1028
+ ] }), t[61] = te, t[62] = ne) : ne = t[62];
1029
+ let oe;
1030
+ t[63] !== ce || t[64] !== d || t[65] !== u ? (oe = ce.map(($) => {
1729
1031
  const {
1730
- mode: Ve,
1731
- icon: zt,
1732
- label: Nt
1733
- } = re;
1734
- return /* @__PURE__ */ q(ve, { onClick: () => {
1735
- d(Ve), h();
1736
- }, selected: f === Ve, children: [
1737
- /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(zt, {}) }),
1738
- /* @__PURE__ */ m(ye, { primary: Nt })
1739
- ] }, Ve);
1740
- }), t[63] = C, t[64] = f, t[65] = d, t[66] = pe) : pe = t[66];
1741
- let Ie;
1742
- t[67] !== me || t[68] !== pe ? (Ie = /* @__PURE__ */ m(Re, { subheader: me, children: pe }), t[67] = me, t[68] = pe, t[69] = Ie) : Ie = t[69], E = Ie, u = Re;
1743
- let De, Le;
1744
- t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = D("settings"), Le = {
1032
+ mode: Fe,
1033
+ icon: ft,
1034
+ label: mt
1035
+ } = $;
1036
+ return /* @__PURE__ */ L(ie, { onClick: () => {
1037
+ u(Fe), m();
1038
+ }, selected: d === Fe, children: [
1039
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ft, {}) }),
1040
+ /* @__PURE__ */ i(se, { primary: mt })
1041
+ ] }, Fe);
1042
+ }), t[63] = ce, t[64] = d, t[65] = u, t[66] = oe) : oe = t[66];
1043
+ let Oe;
1044
+ t[67] !== ne || t[68] !== oe ? (Oe = /* @__PURE__ */ i(Pe, { subheader: ne, children: oe }), t[67] = ne, t[68] = oe, t[69] = Oe) : Oe = t[69], T = Oe, c = Pe;
1045
+ let Ce, we;
1046
+ t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = me("settings"), we = {
1745
1047
  backgroundColor: "transparent",
1746
1048
  display: "flex",
1747
1049
  alignItems: "center",
1748
1050
  px: 1,
1749
1051
  cursor: "pointer"
1750
- }, t[70] = De, t[71] = Le) : (De = t[70], Le = t[71]);
1751
- let Ae;
1752
- t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ m(Ye, { size: "small", sx: {
1052
+ }, t[70] = Ce, t[71] = we) : (Ce = t[70], we = t[71]);
1053
+ let Ie;
1054
+ t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */ i(Ee, { size: "small", sx: {
1753
1055
  mr: 0.5
1754
- }, children: /* @__PURE__ */ m(yt, { fontSize: "small" }) }), t[72] = Ae) : Ae = t[72];
1755
- let he;
1756
- t[73] !== n ? (he = n("Layout.Language"), t[73] = n, t[74] = he) : he = t[74], t[75] !== he ? (b = /* @__PURE__ */ q(Ge, { onClick: De, sx: Le, children: [
1757
- Ae,
1056
+ }, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[72] = Ie) : Ie = t[72];
1057
+ let re;
1058
+ t[73] !== o ? (re = o("Layout.Language"), t[73] = o, t[74] = re) : re = t[74], t[75] !== re ? (p = /* @__PURE__ */ L(Re, { onClick: Ce, sx: we, children: [
1059
+ Ie,
1758
1060
  " ",
1759
- he
1760
- ] }), t[75] = he, t[76] = b) : b = t[76], T = H.map((re) => /* @__PURE__ */ q(ve, { onClick: () => c.changeLanguage(re).finally(() => h()), selected: c.resolvedLanguage === re, children: [
1761
- /* @__PURE__ */ m(Te, { children: c.resolvedLanguage === re && /* @__PURE__ */ m(jr, {}) }),
1762
- /* @__PURE__ */ m(ye, { primary: It(te.of(re)) })
1763
- ] }, re)), t[0] = c, t[1] = f, t[2] = d, t[3] = n, t[4] = u, t[5] = h, t[6] = v, t[7] = g, t[8] = b, t[9] = T, t[10] = E;
1061
+ re
1062
+ ] }), t[75] = re, t[76] = p) : p = t[76], g = W.map(($) => /* @__PURE__ */ L(ie, { onClick: () => l.changeLanguage($).finally(() => m()), selected: l.resolvedLanguage === $, children: [
1063
+ /* @__PURE__ */ i(ae, { children: l.resolvedLanguage === $ && /* @__PURE__ */ i(cn, {}) }),
1064
+ /* @__PURE__ */ i(se, { primary: st(F.of($)) })
1065
+ ] }, $)), t[0] = l, t[1] = d, t[2] = u, t[3] = o, t[4] = c, t[5] = m, t[6] = h, t[7] = f, t[8] = p, t[9] = g, t[10] = T;
1764
1066
  } else
1765
- u = t[4], h = t[5], v = t[6], g = t[7], b = t[8], T = t[9], E = t[10];
1766
- let P;
1767
- t[77] !== u || t[78] !== b || t[79] !== T ? (P = /* @__PURE__ */ m(u, { subheader: b, children: T }), t[77] = u, t[78] = b, t[79] = T, t[80] = P) : P = t[80];
1768
- const A = P;
1769
- let x;
1770
- t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ m(Lr, { sx: {
1067
+ c = t[4], m = t[5], h = t[6], f = t[7], p = t[8], g = t[9], T = t[10];
1068
+ let M;
1069
+ t[77] !== c || t[78] !== p || t[79] !== g ? (M = /* @__PURE__ */ i(c, { subheader: p, children: g }), t[77] = c, t[78] = p, t[79] = g, t[80] = M) : M = t[80];
1070
+ const x = M;
1071
+ let y;
1072
+ t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ i(et, { sx: {
1771
1073
  width: {
1772
1074
  xs: 32,
1773
1075
  sm: 40
@@ -1776,50 +1078,9 @@ const Ue = 84, Ne = 320, kt = 64, bn = (t) => {
1776
1078
  xs: 32,
1777
1079
  sm: 40
1778
1080
  }
1779
- } }), t[81] = x) : x = t[81];
1780
- let _;
1781
- t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ m(ar, { fallback: x, children: /* @__PURE__ */ m(ht, { promise: Sn(), children: On }) }), t[82] = _) : _ = t[82];
1782
- let l;
1783
- t[83] !== v ? (l = /* @__PURE__ */ m(Ye, { size: "small", edge: "end", onClick: v, children: _ }), t[83] = v, t[84] = l) : l = t[84];
1784
- let j;
1785
- t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
1786
- width: 240
1787
- }, t[85] = j) : j = t[85];
1788
- let J;
1789
- t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ m(Gt, { children: /* @__PURE__ */ m(ht, { promise: xn(), children: wn }) }), t[86] = J) : J = t[86];
1790
- let B;
1791
- t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ m(Te, { children: /* @__PURE__ */ m(Yr, { color: "error" }) }), t[87] = B) : B = t[87];
1792
- let N;
1793
- t[88] !== n ? (N = n("Layout.Logout"), t[88] = n, t[89] = N) : N = t[89];
1794
- let W;
1795
- t[90] !== N ? (W = /* @__PURE__ */ q(Re, { disablePadding: !0, children: [
1796
- J,
1797
- /* @__PURE__ */ q(ve, { onClick: Cn, children: [
1798
- B,
1799
- /* @__PURE__ */ m(ye, { primary: N })
1800
- ] })
1801
- ] }), t[90] = N, t[91] = W) : W = t[91];
1802
- const K = o === "settings" && g, ee = o === "theme" && E, Z = o === "language" && A;
1803
- let U;
1804
- t[92] !== W || t[93] !== K || t[94] !== ee || t[95] !== Z ? (U = /* @__PURE__ */ q(ze, { sx: j, children: [
1805
- W,
1806
- K,
1807
- ee,
1808
- Z
1809
- ] }), t[92] = W, t[93] = K, t[94] = ee, t[95] = Z, t[96] = U) : U = t[96];
1810
- let F;
1811
- t[97] !== e || t[98] !== h || t[99] !== a || t[100] !== U ? (F = /* @__PURE__ */ m(Xt, { anchorEl: e, open: a, onClose: h, children: U }), t[97] = e, t[98] = h, t[99] = a, t[100] = U, t[101] = F) : F = t[101];
1812
- let R;
1813
- return t[102] !== F || t[103] !== l ? (R = /* @__PURE__ */ q(qe, { children: [
1814
- l,
1815
- F
1816
- ] }), t[102] = F, t[103] = l, t[104] = R) : R = t[104], R;
1817
- };
1818
- function _n(t) {
1819
- return t !== "cimode";
1820
- }
1821
- function On(t) {
1822
- return /* @__PURE__ */ m(Kt, { src: t, sx: {
1081
+ } }), t[81] = y) : y = t[81];
1082
+ let k;
1083
+ t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i(Et, { fallback: /* @__PURE__ */ i(et, { sx: {
1823
1084
  width: {
1824
1085
  xs: 32,
1825
1086
  sm: 40
@@ -1828,18 +1089,56 @@ function On(t) {
1828
1089
  xs: 32,
1829
1090
  sm: 40
1830
1091
  }
1831
- } });
1832
- }
1833
- function wn(t) {
1834
- return /* @__PURE__ */ m(ye, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
1092
+ } }) }), t[82] = k) : k = t[82];
1093
+ let b;
1094
+ t[83] !== h ? (b = /* @__PURE__ */ L(Ee, { size: "small", edge: "end", onClick: h, children: [
1095
+ y,
1096
+ k
1097
+ ] }), t[83] = h, t[84] = b) : b = t[84];
1098
+ let D;
1099
+ t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
1100
+ width: 240
1101
+ }, t[85] = D) : D = t[85];
1102
+ let z;
1103
+ t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(St, {}), t[86] = z) : z = t[86];
1104
+ let I;
1105
+ t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(un, { color: "error" }) }), t[87] = I) : I = t[87];
1106
+ let _;
1107
+ t[88] !== o ? (_ = o("Layout.Logout"), t[88] = o, t[89] = _) : _ = t[89];
1108
+ let v;
1109
+ t[90] !== _ ? (v = /* @__PURE__ */ L(Pe, { disablePadding: !0, children: [
1110
+ z,
1111
+ /* @__PURE__ */ L(ie, { onClick: Yn, children: [
1112
+ I,
1113
+ /* @__PURE__ */ i(se, { primary: _ })
1114
+ ] })
1115
+ ] }), t[90] = _, t[91] = v) : v = t[91];
1116
+ const A = r === "settings" && f, Y = r === "theme" && T, j = r === "language" && x;
1117
+ let E;
1118
+ t[92] !== v || t[93] !== A || t[94] !== Y || t[95] !== j ? (E = /* @__PURE__ */ L(Ae, { sx: D, children: [
1119
+ v,
1120
+ A,
1121
+ Y,
1122
+ j
1123
+ ] }), t[92] = v, t[93] = A, t[94] = Y, t[95] = j, t[96] = E) : E = t[96];
1124
+ let w;
1125
+ t[97] !== e || t[98] !== m || t[99] !== a || t[100] !== E ? (w = /* @__PURE__ */ i(Mt, { anchorEl: e, open: a, onClose: m, children: E }), t[97] = e, t[98] = m, t[99] = a, t[100] = E, t[101] = w) : w = t[101];
1126
+ let O;
1127
+ return t[102] !== w || t[103] !== b ? (O = /* @__PURE__ */ L(Ye, { children: [
1128
+ b,
1129
+ w
1130
+ ] }), t[102] = w, t[103] = b, t[104] = O) : O = t[104], O;
1131
+ };
1132
+ function $n(t) {
1133
+ return t !== "cimode";
1835
1134
  }
1836
- function Cn() {
1135
+ function Yn() {
1837
1136
  return console.log("Logout clicked");
1838
1137
  }
1839
- const Yt = 3600 * 24 * 365, Mn = nr().server(() => Dt("navigationOpen") === "true").client(() => {
1138
+ const ut = 3600 * 24 * 365, Wn = Ct().server(() => at("navigationOpen") === "true").client(() => {
1840
1139
  const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
1841
1140
  return t ? t.split("=")[1] === "true" : !1;
1842
- }), Pn = at("div")(({
1141
+ }), Un = Ze("div")(({
1843
1142
  theme: t
1844
1143
  }) => ({
1845
1144
  display: "flex",
@@ -1847,70 +1146,70 @@ const Yt = 3600 * 24 * 365, Mn = nr().server(() => Dt("navigationOpen") === "tru
1847
1146
  justifyContent: "flex-end",
1848
1147
  padding: t.spacing(0, 1),
1849
1148
  ...t.mixins.toolbar
1850
- })), kn = (t) => {
1851
- const e = ae(29), [r, o] = le(Mn), s = !!hr(), a = !!yr();
1852
- let n, c;
1853
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ m(Zt, {}), c = /* @__PURE__ */ m(Jt, {}), e[0] = n, e[1] = c) : (n = e[0], c = e[1]);
1854
- let f;
1855
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
1149
+ })), Fn = (t) => {
1150
+ const e = B(29), [n, r] = V(Wn), s = !!Ft(), a = !!Rt();
1151
+ let o, l;
1152
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(kt, {}), l = /* @__PURE__ */ i(Lt, {}), e[0] = o, e[1] = l) : (o = e[0], l = e[1]);
1153
+ let d;
1154
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1856
1155
  display: "flex",
1857
1156
  height: "100dvh",
1858
1157
  maxHeight: "100dvh",
1859
1158
  overflow: "hidden",
1860
1159
  width: "100%"
1861
- }, e[2] = f) : f = e[2];
1862
- let d;
1863
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1160
+ }, e[2] = d) : d = e[2];
1161
+ let u;
1162
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
1864
1163
  borderBottom: "1px solid",
1865
1164
  borderColor: "var(--mui-palette-divider)",
1866
1165
  boxShadow: "none"
1867
- }, e[3] = d) : d = e[3];
1868
- let u;
1869
- e[4] !== r || e[5] !== t.navigation ? (u = t.navigation && /* @__PURE__ */ m(Ye, { onClick: () => {
1870
- o(In);
1166
+ }, e[3] = u) : u = e[3];
1167
+ let c;
1168
+ e[4] !== n || e[5] !== t.navigation ? (c = t.navigation && /* @__PURE__ */ i(Ee, { onClick: () => {
1169
+ r(Rn);
1871
1170
  }, sx: {
1872
1171
  marginRight: 2
1873
- }, children: r ? /* @__PURE__ */ m(dr, {}) : /* @__PURE__ */ m(fr, {}) }), e[4] = r, e[5] = t.navigation, e[6] = u) : u = e[6];
1874
- let h, v;
1875
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ m(fn, {}), v = /* @__PURE__ */ m(En, {}), e[7] = h, e[8] = v) : (h = e[7], v = e[8]);
1876
- let g;
1877
- e[9] !== u ? (g = /* @__PURE__ */ m(Qt, { color: "transparent", position: "fixed", sx: d, children: /* @__PURE__ */ q(er, { children: [
1878
- u,
1879
- h,
1880
- v
1881
- ] }) }), e[9] = u, e[10] = g) : g = e[10];
1882
- let b;
1883
- e[11] !== r || e[12] !== t.navigation ? (b = t.navigation && /* @__PURE__ */ m(bn, { navigation: t.navigation, expanded: r, setExpanded: (j) => {
1884
- o(j), document.cookie = `navigationOpen=${j}; max-age=${Yt}; path=/`;
1885
- } }), e[11] = r, e[12] = t.navigation, e[13] = b) : b = e[13];
1886
- let T, E;
1887
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
1172
+ }, children: n ? /* @__PURE__ */ i(Yt, {}) : /* @__PURE__ */ i($t, {}) }), e[4] = n, e[5] = t.navigation, e[6] = c) : c = e[6];
1173
+ let m, h;
1174
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(vn, {}), h = /* @__PURE__ */ i(Nn, {}), e[7] = m, e[8] = h) : (m = e[7], h = e[8]);
1175
+ let f;
1176
+ e[9] !== c ? (f = /* @__PURE__ */ i(Dt, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ L(_t, { children: [
1177
+ c,
1178
+ m,
1179
+ h
1180
+ ] }) }), e[9] = c, e[10] = f) : f = e[10];
1181
+ let p;
1182
+ e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */ i(zn, { navigation: t.navigation, expanded: n, setExpanded: (D) => {
1183
+ r(D), document.cookie = `navigationOpen=${D}; max-age=${ut}; path=/`;
1184
+ } }), e[11] = n, e[12] = t.navigation, e[13] = p) : p = e[13];
1185
+ let g, T;
1186
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
1888
1187
  flexGrow: 1,
1889
1188
  display: "flex",
1890
1189
  flexDirection: "column",
1891
1190
  minWidth: 0,
1892
1191
  height: "100%",
1893
1192
  overflow: "hidden"
1894
- }, T = /* @__PURE__ */ m(Pn, {}), e[14] = T, e[15] = E) : (T = e[14], E = e[15]);
1895
- let P;
1896
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
1193
+ }, g = /* @__PURE__ */ i(Un, {}), e[14] = g, e[15] = T) : (g = e[14], T = e[15]);
1194
+ let M;
1195
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
1897
1196
  flex: 1,
1898
1197
  overflow: "auto",
1899
1198
  position: "relative"
1900
- }, e[16] = P) : P = e[16];
1901
- let A;
1902
- e[17] !== t.children ? (A = /* @__PURE__ */ q(ze, { component: "main", sx: E, children: [
1903
- T,
1904
- /* @__PURE__ */ m(ze, { sx: P, children: t.children })
1905
- ] }), e[17] = t.children, e[18] = A) : A = e[18];
1199
+ }, e[16] = M) : M = e[16];
1906
1200
  let x;
1907
- e[19] !== A || e[20] !== g || e[21] !== b ? (x = /* @__PURE__ */ q(ze, { sx: f, children: [
1201
+ e[17] !== t.children ? (x = /* @__PURE__ */ L(Ae, { component: "main", sx: T, children: [
1908
1202
  g,
1909
- b,
1910
- A
1911
- ] }), e[19] = A, e[20] = g, e[21] = b, e[22] = x) : x = e[22];
1912
- let _;
1913
- e[23] !== s || e[24] !== a ? (_ = (s || a) && /* @__PURE__ */ m(tr, { sx: {
1203
+ /* @__PURE__ */ i(Ae, { sx: M, children: t.children })
1204
+ ] }), e[17] = t.children, e[18] = x) : x = e[18];
1205
+ let y;
1206
+ e[19] !== x || e[20] !== f || e[21] !== p ? (y = /* @__PURE__ */ L(Ae, { sx: d, children: [
1207
+ f,
1208
+ p,
1209
+ x
1210
+ ] }), e[19] = x, e[20] = f, e[21] = p, e[22] = y) : y = e[22];
1211
+ let k;
1212
+ e[23] !== s || e[24] !== a ? (k = (s || a) && /* @__PURE__ */ i(vt, { sx: {
1914
1213
  position: "fixed",
1915
1214
  top: {
1916
1215
  xs: 56,
@@ -1918,61 +1217,60 @@ const Yt = 3600 * 24 * 365, Mn = nr().server(() => Dt("navigationOpen") === "tru
1918
1217
  },
1919
1218
  left: 0,
1920
1219
  right: 0
1921
- } }), e[23] = s, e[24] = a, e[25] = _) : _ = e[25];
1922
- let l;
1923
- return e[26] !== x || e[27] !== _ ? (l = /* @__PURE__ */ q(qe, { children: [
1924
- n,
1925
- c,
1926
- x,
1927
- _
1928
- ] }), e[26] = x, e[27] = _, e[28] = l) : l = e[28], l;
1220
+ } }), e[23] = s, e[24] = a, e[25] = k) : k = e[25];
1221
+ let b;
1222
+ return e[26] !== y || e[27] !== k ? (b = /* @__PURE__ */ L(Ye, { children: [
1223
+ o,
1224
+ l,
1225
+ y,
1226
+ k
1227
+ ] }), e[26] = y, e[27] = k, e[28] = b) : b = e[28], b;
1929
1228
  };
1930
- function In(t) {
1229
+ function Rn(t) {
1931
1230
  const e = !t;
1932
- return document.cookie = `navigationOpen=${e}; max-age=${Yt}; path=/`, e;
1231
+ return document.cookie = `navigationOpen=${e}; max-age=${ut}; path=/`, e;
1933
1232
  }
1934
- const Dn = 1440 * 365;
1935
- ie.use(or).use(cr).init({
1936
- resources: mt,
1233
+ const Bn = 1440 * 365;
1234
+ R.use(It).use(zt).init({
1235
+ resources: Je,
1937
1236
  fallbackLng: "en",
1938
- supportedLngs: Object.keys(mt),
1237
+ supportedLngs: Object.keys(Je),
1939
1238
  detection: {
1940
1239
  caches: ["cookie"],
1941
- cookieMinutes: Dn
1240
+ cookieMinutes: Bn
1942
1241
  },
1943
1242
  interpolation: {
1944
1243
  escapeValue: !1
1945
1244
  }
1946
1245
  });
1947
- const Ao = (t) => {
1948
- const e = ae(9), {
1949
- navigation: r,
1950
- theme: o,
1246
+ const Fo = (t) => {
1247
+ const e = B(9), {
1248
+ navigation: n,
1249
+ theme: r,
1951
1250
  children: s
1952
- } = t, a = sr(Ln);
1953
- let n;
1954
- e[0] !== a ? (n = () => (a(), ie.on("languageChanged", a), () => {
1955
- ie.off("languageChanged", a);
1956
- }), e[0] = a, e[1] = n) : n = e[1];
1957
- let c;
1958
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [], e[2] = c) : c = e[2], Lt(n, c);
1959
- let f;
1960
- e[3] !== s || e[4] !== r ? (f = /* @__PURE__ */ m(ft, { dateAdapter: cn, adapterLocale: ie.language, children: /* @__PURE__ */ m(un, { children: /* @__PURE__ */ m(kn, { navigation: r, children: s }) }) }, ie.language), e[3] = s, e[4] = r, e[5] = f) : f = e[5];
1251
+ } = t, a = At(Hn);
1252
+ let o;
1253
+ e[0] !== a ? (o = () => (a(), R.on("languageChanged", a), () => {
1254
+ R.off("languageChanged", a);
1255
+ }), e[0] = a, e[1] = o) : o = e[1];
1256
+ let l;
1257
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], lt(o, l);
1961
1258
  let d;
1962
- return e[6] !== f || e[7] !== o ? (d = /* @__PURE__ */ m(rr, { theme: o, children: f }), e[6] = f, e[7] = o, e[8] = d) : d = e[8], d;
1963
- }, Ro = Fe().handler(async () => {
1964
- const t = Dt(ie.services.languageDetector.options.lookupCookie) || "en";
1965
- ge.config(ge.core.locales[t]()), G.locale(t), await ie.changeLanguage(t);
1259
+ e[3] !== s || e[4] !== n ? (d = /* @__PURE__ */ i(qe, { dateAdapter: Dn, adapterLocale: R.language, children: /* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(Fn, { navigation: n, children: s }) }) }, R.language), e[3] = s, e[4] = n, e[5] = d) : d = e[5];
1260
+ let u;
1261
+ return e[6] !== d || e[7] !== r ? (u = /* @__PURE__ */ i(Ot, { theme: r, children: d }), e[6] = d, e[7] = r, e[8] = u) : u = e[8], u;
1262
+ }, Ro = wt().handler(async () => {
1263
+ const t = at(R.services.languageDetector.options.lookupCookie) || "en";
1264
+ ze.config(ze.core.locales[t]()), C.locale(t), await R.changeLanguage(t);
1966
1265
  });
1967
- function Ln() {
1968
- ge.config(ge.core.locales[ie.language]()), G.locale(ie.language);
1266
+ function Hn() {
1267
+ ze.config(ze.core.locales[R.language]()), C.locale(R.language);
1969
1268
  }
1970
1269
  export {
1971
- Ao as LayoutProvider,
1972
- Yo as WISTRON_PRIMARY_COLOR,
1973
- zo as WISTRON_SECONDARY_COLOR,
1974
- Lo as getSessionUser,
1975
- No as rootRouteHead,
1270
+ Fo as LayoutProvider,
1271
+ Vo as WISTRON_PRIMARY_COLOR,
1272
+ Go as WISTRON_SECONDARY_COLOR,
1273
+ Xo as rootRouteHead,
1976
1274
  Ro as setSSRLanguage
1977
1275
  };
1978
1276
  //# sourceMappingURL=index.js.map