@luminix/mui-cms 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mui-cms.js CHANGED
@@ -1,19 +1,19 @@
1
- var gr = Object.defineProperty;
2
- var br = (e, t, n) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var $e = (e, t, n) => br(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { Str as k, Obj as J, DateTime as Oe, Query as mn, Func as yr, MakeFacade as St, Reducible as gn, ServiceProvider as bn } from "@luminix/support";
5
- import { config as oe, collect as W, app as T, model as we, App as xt, Model as Re, Route as wr, Config as re } from "@luminix/core";
1
+ var br = Object.defineProperty;
2
+ var yr = (e, t, n) => t in e ? br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var ke = (e, t, n) => yr(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { Str as k, Obj as J, DateTime as Re, Query as gn, Func as wr, MakeFacade as St, Reducible as bn, ServiceProvider as yn } from "@luminix/support";
5
+ import { config as oe, collect as W, app as T, model as we, App as xt, Model as Pe, Route as Sr, Config as re } from "@luminix/core";
6
6
  import { jsx as i, jsxs as w, Fragment as B } from "react/jsx-runtime";
7
- import { Outlet as Sr, useParams as xr, useNavigate as At, useSearchParams as G, Link as Pe, Form as Ar } from "react-router-dom";
8
- import { useCollection as yn, PaginationProvider as Cr, usePagination as xe, ModelForm as Er, useApplyReducers as Ct, Forms as kr, LuminixProvider as Tr } from "@luminix/react";
9
- import { useMediaQuery as Me, Dialog as Et, DialogTitle as kt, DialogContent as Tt, DialogContentText as Dr, TextField as fe, DialogActions as Dt, Button as M, Snackbar as Or, Alert as Rr, IconButton as q, AlertTitle as Pr, Box as z, Unstable_Grid2 as Q, Fab as vr, SpeedDial as Fr, SpeedDialIcon as Lr, SpeedDialAction as Br, ButtonGroup as Ir, Popper as Mr, Grow as Nr, Paper as Ot, ClickAwayListener as jr, MenuList as Ur, MenuItem as se, AppBar as wn, Toolbar as qr, Typography as $, Drawer as Sn, Divider as ve, Autocomplete as _r, CircularProgress as Hr, Switch as zr, Stack as N, FormControl as at, InputLabel as it, Select as Fe, Badge as Rt, Popover as Vr, Link as lt, Collapse as xn, TableCell as ee, RadioGroup as $t, FormControlLabel as Ke, Radio as Ye, TableContainer as Wr, Table as $r, TableHead as Kr, TableRow as he, Checkbox as Pt, TableSortLabel as Yr, Skeleton as Kt, TableBody as Jr, TableFooter as Gr, Tabs as Zr, Tab as Yt, Breadcrumbs as Xr, List as Qr, ListItem as eo, ListItemButton as to, ListItemIcon as An, ListItemText as Cn, Menu as En, Avatar as no, CssBaseline as ro } from "@mui/material";
10
- import m, { useContext as kn, useMemo as oo } from "react";
11
- import { useTranslation as L, initReactI18next as so } from "react-i18next";
12
- import { Close as Ne, ArrowDropDown as Tn, ChevronLeft as je, ChevronRight as Ue, HighlightOffOutlined as ct, AddCircleOutline as Dn, FilterList as On, Menu as Rn, LastPage as Pn, FirstPage as vn, Search as ut, SwapVert as Fn, ArrowUpward as Ln, ArrowDownward as Bn, MoreVert as vt, ExpandLess as In, ExpandMore as Mn, Add as ao, CategoryOutlined as io, DashboardOutlined as lo, PeopleOutlined as co } from "@mui/icons-material";
13
- import { useTheme as Ft, styled as Z, createTheme as uo, ThemeProvider as fo } from "@mui/material/styles";
14
- import Jt from "react-dom";
7
+ import { Outlet as xr, useParams as Ar, useNavigate as At, useSearchParams as G, Link as ve, Form as Cr } from "react-router-dom";
8
+ import { useCollection as wn, PaginationProvider as Er, usePagination as xe, ModelForm as kr, useApplyReducers as Ct, Forms as Tr, LuminixProvider as Dr } from "@luminix/react";
9
+ import { useMediaQuery as Ne, Dialog as Et, DialogTitle as kt, DialogContent as Tt, DialogContentText as Or, TextField as fe, DialogActions as Dt, Button as M, Snackbar as Rr, Alert as Pr, IconButton as q, AlertTitle as vr, Box as H, Unstable_Grid2 as Q, Fab as Fr, SpeedDial as Lr, SpeedDialIcon as Br, SpeedDialAction as Ir, ButtonGroup as Mr, Popper as Nr, Grow as jr, Paper as Ot, ClickAwayListener as Ur, MenuList as qr, MenuItem as se, AppBar as Sn, Toolbar as _r, Typography as $, Drawer as xn, Divider as Fe, Autocomplete as Hr, CircularProgress as zr, Switch as Vr, Stack as N, FormControl as at, InputLabel as it, Select as Le, Badge as Rt, Popover as Wr, Link as lt, Collapse as An, TableCell as ee, RadioGroup as Kt, FormControlLabel as Ke, Radio as Ye, TableContainer as $r, Table as Kr, TableHead as Yr, TableRow as he, Checkbox as Pt, TableSortLabel as Jr, Skeleton as Yt, TableBody as Gr, TableFooter as Zr, Tabs as Xr, Tab as Jt, Breadcrumbs as Qr, List as eo, ListItem as to, ListItemButton as no, ListItemIcon as Cn, ListItemText as En, Menu as kn, Avatar as ro, CssBaseline as oo } from "@mui/material";
10
+ import m, { useContext as Tn, useMemo as so } from "react";
11
+ import { useTranslation as L, initReactI18next as ao } from "react-i18next";
12
+ import { Close as je, ArrowDropDown as Dn, ChevronLeft as Ue, ChevronRight as qe, HighlightOffOutlined as ct, AddCircleOutline as On, FilterList as Rn, Menu as Pn, LastPage as vn, FirstPage as Fn, Search as ut, SwapVert as Ln, ArrowUpward as Bn, ArrowDownward as In, MoreVert as vt, ExpandLess as Mn, ExpandMore as Nn, Add as io, CategoryOutlined as lo, DashboardOutlined as co, PeopleOutlined as uo } from "@mui/icons-material";
13
+ import { useTheme as Ft, styled as Z, createTheme as fo, ThemeProvider as ho } from "@mui/material/styles";
14
+ import Gt from "react-dom";
15
15
  import Y from "i18next";
16
- const ho = {
16
+ const po = {
17
17
  open: !1,
18
18
  setOpen: () => {
19
19
  },
@@ -28,8 +28,8 @@ const ho = {
28
28
  showBackButton: !1,
29
29
  setShowBackButton: () => {
30
30
  }
31
- }, X = m.createContext(ho), Je = document.title, po = ({ children: e }) => {
32
- const [t, n] = m.useState(!1), [r, o] = m.useState(""), [s, a] = m.useState(!1), [l, d] = m.useState(!1), c = oe("luminix.cms.layout", {}), u = Me((y) => y.breakpoints.up((c == null ? void 0 : c.breakpoint) || "md")), h = {
31
+ }, X = m.createContext(po), Je = document.title, mo = ({ children: e }) => {
32
+ const [t, n] = m.useState(!1), [r, o] = m.useState(""), [s, a] = m.useState(!1), [l, d] = m.useState(!1), c = oe("luminix.cms.layout", {}), u = Ne((y) => y.breakpoints.up((c == null ? void 0 : c.breakpoint) || "md")), h = {
33
33
  open: t,
34
34
  setOpen: n,
35
35
  layout: c,
@@ -44,23 +44,23 @@ const ho = {
44
44
  return m.useEffect(() => (document.title = r ? `${r} | ${oe("app.name", Je)}` : oe("app.name", Je), () => {
45
45
  document.title = Je;
46
46
  }), [r]), /* @__PURE__ */ i(X.Provider, { value: h, children: e });
47
- }, Nn = m.createContext({
47
+ }, jn = m.createContext({
48
48
  Model: null
49
- }), Ge = ({ Model: e, children: t }) => /* @__PURE__ */ i(Nn.Provider, { value: { Model: e }, children: t }), jn = m.createContext({
49
+ }), Ge = ({ Model: e, children: t }) => /* @__PURE__ */ i(jn.Provider, { value: { Model: e }, children: t }), Un = m.createContext({
50
50
  isOpen: !1,
51
51
  dialog: () => Promise.reject(new Error("Trying to access DialogContext outside of DialogProvider")),
52
52
  dismissDialog: () => {
53
53
  },
54
54
  current: void 0
55
55
  });
56
- function mo(e) {
56
+ function go(e) {
57
57
  const [t, n] = m.useState(e);
58
58
  return m.useEffect(() => {
59
59
  e && n(e);
60
60
  }, [e]), e || t;
61
61
  }
62
- function go({ children: e, ...t }) {
63
- const [{ current: n, resolve: r }, o] = m.useState({}), [s, a] = m.useState(""), l = mo(n), {
62
+ function bo({ children: e, ...t }) {
63
+ const [{ current: n, resolve: r }, o] = m.useState({}), [s, a] = m.useState(""), l = go(n), {
64
64
  type: d = "alert",
65
65
  dialogProps: c = {},
66
66
  textFieldProps: u = {}
@@ -76,7 +76,7 @@ function go({ children: e, ...t }) {
76
76
  d === "prompt" ? s : !0
77
77
  ), o({});
78
78
  };
79
- return /* @__PURE__ */ w(jn.Provider, { value: {
79
+ return /* @__PURE__ */ w(Un.Provider, { value: {
80
80
  isOpen: !!n,
81
81
  current: n,
82
82
  dialog: h,
@@ -95,7 +95,7 @@ function go({ children: e, ...t }) {
95
95
  children: [
96
96
  (l == null ? void 0 : l.title) && /* @__PURE__ */ i(kt, { id: "alert-dialog-title", children: l.title }),
97
97
  /* @__PURE__ */ w(Tt, { children: [
98
- /* @__PURE__ */ i(Dr, { id: "alert-dialog-description", children: l == null ? void 0 : l.message }),
98
+ /* @__PURE__ */ i(Or, { id: "alert-dialog-description", children: l == null ? void 0 : l.message }),
99
99
  d === "prompt" && /* @__PURE__ */ i(
100
100
  fe,
101
101
  {
@@ -123,7 +123,7 @@ function go({ children: e, ...t }) {
123
123
  ] });
124
124
  }
125
125
  function v() {
126
- const { isBreakpointUp: e } = kn(X);
126
+ const { isBreakpointUp: e } = Tn(X);
127
127
  return e;
128
128
  }
129
129
  const Lt = m.createContext({
@@ -137,11 +137,11 @@ const Lt = m.createContext({
137
137
  displacement: "8px",
138
138
  setDisplacement: () => {
139
139
  }
140
- }), dt = W([]), bo = (e) => {
140
+ }), dt = W([]), yo = (e) => {
141
141
  dt.push(
142
142
  typeof e == "string" ? { message: e } : e
143
143
  );
144
- }, yo = ({
144
+ }, wo = ({
145
145
  children: e,
146
146
  autoHideDuration: t = 6e3,
147
147
  variant: n,
@@ -149,7 +149,7 @@ const Lt = m.createContext({
149
149
  sx: o,
150
150
  ...s
151
151
  }) => {
152
- const a = yn(dt), l = v(), c = Ft().spacing(l ? 3 : 1), [u, h] = m.useState(), [y, S] = m.useState(c), { vertical: b = "bottom" } = r || {}, p = (g, A) => {
152
+ const a = wn(dt), l = v(), c = Ft().spacing(l ? 3 : 1), [u, h] = m.useState(), [y, S] = m.useState(c), { vertical: b = "bottom" } = r || {}, p = (g, A) => {
153
153
  A !== "clickaway" && h(void 0);
154
154
  };
155
155
  return m.useEffect(() => {
@@ -161,7 +161,7 @@ const Lt = m.createContext({
161
161
  }
162
162
  }, [u, a]), /* @__PURE__ */ w(Lt.Provider, { value: {
163
163
  isOpen: !!u,
164
- notify: bo,
164
+ notify: yo,
165
165
  dismissNotification: p,
166
166
  notifications: a.all(),
167
167
  current: u,
@@ -170,7 +170,7 @@ const Lt = m.createContext({
170
170
  }, children: [
171
171
  e,
172
172
  /* @__PURE__ */ i(
173
- Or,
173
+ Rr,
174
174
  {
175
175
  open: !!u,
176
176
  autoHideDuration: t,
@@ -182,7 +182,7 @@ const Lt = m.createContext({
182
182
  },
183
183
  ...s,
184
184
  children: u && /* @__PURE__ */ w(
185
- Rr,
185
+ Pr,
186
186
  {
187
187
  onClose: p,
188
188
  severity: u.severity,
@@ -199,10 +199,10 @@ const Lt = m.createContext({
199
199
  },
200
200
  x
201
201
  )),
202
- /* @__PURE__ */ i(q, { "aria-label": "close", color: "inherit", size: "small", onClick: p, children: /* @__PURE__ */ i(Ne, {}) }, "close")
202
+ /* @__PURE__ */ i(q, { "aria-label": "close", color: "inherit", size: "small", onClick: p, children: /* @__PURE__ */ i(je, {}) }, "close")
203
203
  ],
204
204
  children: [
205
- u.title && /* @__PURE__ */ i(Pr, { children: u.title }),
205
+ u.title && /* @__PURE__ */ i(vr, { children: u.title }),
206
206
  u.message
207
207
  ]
208
208
  }
@@ -210,17 +210,17 @@ const Lt = m.createContext({
210
210
  }
211
211
  )
212
212
  ] });
213
- }, wo = ({ children: e }) => {
214
- const t = Me("(prefers-color-scheme: dark)");
213
+ }, So = ({ children: e }) => {
214
+ const t = Ne("(prefers-color-scheme: dark)");
215
215
  return /* @__PURE__ */ i(
216
- yo,
216
+ wo,
217
217
  {
218
218
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
219
219
  variant: t ? "standard" : "filled",
220
- children: /* @__PURE__ */ i(go, { children: /* @__PURE__ */ i(po, { children: e }) })
220
+ children: /* @__PURE__ */ i(bo, { children: /* @__PURE__ */ i(mo, { children: e }) })
221
221
  }
222
222
  );
223
- }, So = (e, {
223
+ }, xo = (e, {
224
224
  Layout: t,
225
225
  Dashboard: n,
226
226
  ModelIndex: r,
@@ -228,7 +228,7 @@ const Lt = m.createContext({
228
228
  /* Error */
229
229
  }, s) => [
230
230
  {
231
- element: /* @__PURE__ */ i(wo, { children: /* @__PURE__ */ i(t, { children: /* @__PURE__ */ i(Sr, {}) }) }),
231
+ element: /* @__PURE__ */ i(So, { children: /* @__PURE__ */ i(t, { children: /* @__PURE__ */ i(xr, {}) }) }),
232
232
  // errorElement: (
233
233
  // <Error />
234
234
  // ),
@@ -242,7 +242,7 @@ const Lt = m.createContext({
242
242
  {
243
243
  path: "/" + k.kebab(l.plural()),
244
244
  name: `luminix.cms.${a}.index`,
245
- element: /* @__PURE__ */ i(Ge, { Model: l, children: /* @__PURE__ */ i(Cr, { factory: l.query, children: /* @__PURE__ */ i(r, {}) }) })
245
+ element: /* @__PURE__ */ i(Ge, { Model: l, children: /* @__PURE__ */ i(Er, { factory: l.query, children: /* @__PURE__ */ i(r, {}) }) })
246
246
  },
247
247
  {
248
248
  path: "/" + k.kebab(l.plural()) + "/create",
@@ -264,10 +264,10 @@ function Bt(e) {
264
264
  t("");
265
265
  }), [e, t]);
266
266
  }
267
- const xo = () => {
267
+ const Ao = () => {
268
268
  const { t: e } = L();
269
- return Bt(e("Dashboard")), /* @__PURE__ */ i(z, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: "Dashboard" });
270
- }, Ao = ({ error: e }) => /* @__PURE__ */ w("div", { children: [
269
+ return Bt(e("Dashboard")), /* @__PURE__ */ i(H, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: "Dashboard" });
270
+ }, Co = ({ error: e }) => /* @__PURE__ */ w("div", { children: [
271
271
  /* @__PURE__ */ i("h1", { children: "Ops..." }),
272
272
  /* @__PURE__ */ i("p", { children: "Something went wrong" }),
273
273
  T().hasDebugModeEnabled() && e && /* @__PURE__ */ i(B, { children: /* @__PURE__ */ w("pre", { style: { whiteSpace: "pre-wrap" }, children: [
@@ -276,25 +276,25 @@ const xo = () => {
276
276
  e.stack
277
277
  ] }) })
278
278
  ] });
279
- function V(e, t) {
280
- const { layout: n } = kn(X);
281
- return oo(() => J.get(n, e, t), [n, e, t]);
279
+ function z(e, t) {
280
+ const { layout: n } = Tn(X);
281
+ return so(() => J.get(n, e, t), [n, e, t]);
282
282
  }
283
- const Co = Z("div")(({ theme: e }) => ({
283
+ const Eo = Z("div")(({ theme: e }) => ({
284
284
  padding: e.spacing(0, 1),
285
285
  // necessary for content to be below app bar
286
286
  ...e.mixins.toolbar
287
- })), Eo = ({ children: e, slotProps: t, ...n }) => {
287
+ })), ko = ({ children: e, slotProps: t, ...n }) => {
288
288
  const {
289
289
  DesktopPageTitle: r,
290
290
  ["Layout.AppBar"]: o,
291
291
  ["Layout.Drawer"]: s
292
- } = T("cms").getComponents(), a = V("appBar.height"), {
292
+ } = T("cms").getComponents(), a = z("appBar.height"), {
293
293
  AppBar: l,
294
294
  Drawer: d,
295
295
  main: c
296
296
  } = t || {};
297
- return /* @__PURE__ */ w(z, { sx: { display: "flex" }, ...n, children: [
297
+ return /* @__PURE__ */ w(H, { sx: { display: "flex" }, ...n, children: [
298
298
  /* @__PURE__ */ i(
299
299
  o,
300
300
  {
@@ -304,7 +304,7 @@ const Co = Z("div")(({ theme: e }) => ({
304
304
  ),
305
305
  /* @__PURE__ */ i(s, { ...d }),
306
306
  /* @__PURE__ */ w(
307
- z,
307
+ H,
308
308
  {
309
309
  component: "main",
310
310
  sx: {
@@ -313,7 +313,7 @@ const Co = Z("div")(({ theme: e }) => ({
313
313
  },
314
314
  ...c,
315
315
  children: [
316
- /* @__PURE__ */ i(Co, { style: { height: a } }),
316
+ /* @__PURE__ */ i(Eo, { style: { height: a } }),
317
317
  /* @__PURE__ */ i(r, {}),
318
318
  e
319
319
  ]
@@ -321,23 +321,23 @@ const Co = Z("div")(({ theme: e }) => ({
321
321
  )
322
322
  ] });
323
323
  };
324
- function ko() {
324
+ function To() {
325
325
  const { setShowSearch: e } = m.useContext(X);
326
326
  m.useEffect(() => (e(!0), () => {
327
327
  e(!1);
328
328
  }), [e]);
329
329
  }
330
330
  function te() {
331
- const { Model: e } = m.useContext(Nn);
331
+ const { Model: e } = m.useContext(jn);
332
332
  return e;
333
333
  }
334
- const To = () => {
334
+ const Do = () => {
335
335
  const e = te(), {
336
336
  data: t,
337
337
  error: n,
338
338
  loading: r
339
339
  } = xe();
340
- Bt(e.plural()), ko();
340
+ Bt(e.plural()), To();
341
341
  const o = v(), {
342
342
  Breadcrumbs: s,
343
343
  ["ModelIndex.Pagination"]: a,
@@ -350,7 +350,7 @@ const To = () => {
350
350
  ["ModelIndex.Table.TableBody.TableRow"]: S,
351
351
  ["ModelIndex.Tabs"]: b
352
352
  } = T("cms").getComponents();
353
- return /* @__PURE__ */ i(z, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: /* @__PURE__ */ w(Q, { container: !0, spacing: 2, children: [
353
+ return /* @__PURE__ */ i(H, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: /* @__PURE__ */ w(Q, { container: !0, spacing: 2, children: [
354
354
  /* @__PURE__ */ w(
355
355
  Q,
356
356
  {
@@ -388,39 +388,39 @@ const To = () => {
388
388
  ) })
389
389
  ] }) });
390
390
  };
391
- function Do() {
391
+ function Oo() {
392
392
  const { setShowBackButton: e } = m.useContext(X);
393
393
  m.useEffect(() => (e(!0), () => {
394
394
  e(!1);
395
395
  }), [e]);
396
396
  }
397
- function Un(e, t) {
397
+ function qn(e, t) {
398
398
  return function() {
399
399
  return e.apply(t, arguments);
400
400
  };
401
401
  }
402
- const { toString: Oo } = Object.prototype, { getPrototypeOf: It } = Object, qe = /* @__PURE__ */ ((e) => (t) => {
403
- const n = Oo.call(t);
402
+ const { toString: Ro } = Object.prototype, { getPrototypeOf: It } = Object, _e = /* @__PURE__ */ ((e) => (t) => {
403
+ const n = Ro.call(t);
404
404
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
405
- })(/* @__PURE__ */ Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: pe } = Array, Se = _e("undefined");
406
- function Ro(e) {
407
- return e !== null && !Se(e) && e.constructor !== null && !Se(e.constructor) && H(e.constructor.isBuffer) && e.constructor.isBuffer(e);
408
- }
409
- const qn = K("ArrayBuffer");
405
+ })(/* @__PURE__ */ Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => _e(t) === e), He = (e) => (t) => typeof t === e, { isArray: pe } = Array, Se = He("undefined");
410
406
  function Po(e) {
407
+ return e !== null && !Se(e) && e.constructor !== null && !Se(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
408
+ }
409
+ const _n = K("ArrayBuffer");
410
+ function vo(e) {
411
411
  let t;
412
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qn(e.buffer), t;
412
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && _n(e.buffer), t;
413
413
  }
414
- const vo = _e("string"), H = _e("function"), _n = _e("number"), He = (e) => e !== null && typeof e == "object", Fo = (e) => e === !0 || e === !1, Te = (e) => {
415
- if (qe(e) !== "object")
414
+ const Fo = He("string"), _ = He("function"), Hn = He("number"), ze = (e) => e !== null && typeof e == "object", Lo = (e) => e === !0 || e === !1, De = (e) => {
415
+ if (_e(e) !== "object")
416
416
  return !1;
417
417
  const t = It(e);
418
418
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
419
- }, Lo = K("Date"), Bo = K("File"), Io = K("Blob"), Mo = K("FileList"), No = (e) => He(e) && H(e.pipe), jo = (e) => {
419
+ }, Bo = K("Date"), Io = K("File"), Mo = K("Blob"), No = K("FileList"), jo = (e) => ze(e) && _(e.pipe), Uo = (e) => {
420
420
  let t;
421
- return e && (typeof FormData == "function" && e instanceof FormData || H(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
422
- t === "object" && H(e.toString) && e.toString() === "[object FormData]"));
423
- }, Uo = K("URLSearchParams"), [qo, _o, Ho, zo] = ["ReadableStream", "Request", "Response", "Headers"].map(K), Vo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
421
+ return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = _e(e)) === "formdata" || // detect form-data instance
422
+ t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
423
+ }, qo = K("URLSearchParams"), [_o, Ho, zo, Vo] = ["ReadableStream", "Request", "Response", "Headers"].map(K), Wo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
424
424
  function Ae(e, t, { allOwnKeys: n = !1 } = {}) {
425
425
  if (e === null || typeof e > "u")
426
426
  return;
@@ -435,7 +435,7 @@ function Ae(e, t, { allOwnKeys: n = !1 } = {}) {
435
435
  l = s[r], t.call(null, e[l], l, e);
436
436
  }
437
437
  }
438
- function Hn(e, t) {
438
+ function zn(e, t) {
439
439
  t = t.toLowerCase();
440
440
  const n = Object.keys(e);
441
441
  let r = n.length, o;
@@ -444,23 +444,23 @@ function Hn(e, t) {
444
444
  return o;
445
445
  return null;
446
446
  }
447
- const ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zn = (e) => !Se(e) && e !== ie;
447
+ const ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Vn = (e) => !Se(e) && e !== ie;
448
448
  function ft() {
449
- const { caseless: e } = zn(this) && this || {}, t = {}, n = (r, o) => {
450
- const s = e && Hn(t, o) || o;
451
- Te(t[s]) && Te(r) ? t[s] = ft(t[s], r) : Te(r) ? t[s] = ft({}, r) : pe(r) ? t[s] = r.slice() : t[s] = r;
449
+ const { caseless: e } = Vn(this) && this || {}, t = {}, n = (r, o) => {
450
+ const s = e && zn(t, o) || o;
451
+ De(t[s]) && De(r) ? t[s] = ft(t[s], r) : De(r) ? t[s] = ft({}, r) : pe(r) ? t[s] = r.slice() : t[s] = r;
452
452
  };
453
453
  for (let r = 0, o = arguments.length; r < o; r++)
454
454
  arguments[r] && Ae(arguments[r], n);
455
455
  return t;
456
456
  }
457
- const Wo = (e, t, n, { allOwnKeys: r } = {}) => (Ae(t, (o, s) => {
458
- n && H(o) ? e[s] = Un(o, n) : e[s] = o;
459
- }, { allOwnKeys: r }), e), $o = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ko = (e, t, n, r) => {
457
+ const $o = (e, t, n, { allOwnKeys: r } = {}) => (Ae(t, (o, s) => {
458
+ n && _(o) ? e[s] = qn(o, n) : e[s] = o;
459
+ }, { allOwnKeys: r }), e), Ko = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Yo = (e, t, n, r) => {
460
460
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
461
461
  value: t.prototype
462
462
  }), n && Object.assign(e.prototype, n);
463
- }, Yo = (e, t, n, r) => {
463
+ }, Jo = (e, t, n, r) => {
464
464
  let o, s, a;
465
465
  const l = {};
466
466
  if (t = t || {}, e == null) return t;
@@ -470,49 +470,49 @@ const Wo = (e, t, n, { allOwnKeys: r } = {}) => (Ae(t, (o, s) => {
470
470
  e = n !== !1 && It(e);
471
471
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
472
472
  return t;
473
- }, Jo = (e, t, n) => {
473
+ }, Go = (e, t, n) => {
474
474
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
475
475
  const r = e.indexOf(t, n);
476
476
  return r !== -1 && r === n;
477
- }, Go = (e) => {
477
+ }, Zo = (e) => {
478
478
  if (!e) return null;
479
479
  if (pe(e)) return e;
480
480
  let t = e.length;
481
- if (!_n(t)) return null;
481
+ if (!Hn(t)) return null;
482
482
  const n = new Array(t);
483
483
  for (; t-- > 0; )
484
484
  n[t] = e[t];
485
485
  return n;
486
- }, Zo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && It(Uint8Array)), Xo = (e, t) => {
486
+ }, Xo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && It(Uint8Array)), Qo = (e, t) => {
487
487
  const r = (e && e[Symbol.iterator]).call(e);
488
488
  let o;
489
489
  for (; (o = r.next()) && !o.done; ) {
490
490
  const s = o.value;
491
491
  t.call(e, s[0], s[1]);
492
492
  }
493
- }, Qo = (e, t) => {
493
+ }, es = (e, t) => {
494
494
  let n;
495
495
  const r = [];
496
496
  for (; (n = e.exec(t)) !== null; )
497
497
  r.push(n);
498
498
  return r;
499
- }, es = K("HTMLFormElement"), ts = (e) => e.toLowerCase().replace(
499
+ }, ts = K("HTMLFormElement"), ns = (e) => e.toLowerCase().replace(
500
500
  /[-_\s]([a-z\d])(\w*)/g,
501
501
  function(n, r, o) {
502
502
  return r.toUpperCase() + o;
503
503
  }
504
- ), Gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ns = K("RegExp"), Vn = (e, t) => {
504
+ ), Zt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), rs = K("RegExp"), Wn = (e, t) => {
505
505
  const n = Object.getOwnPropertyDescriptors(e), r = {};
506
506
  Ae(n, (o, s) => {
507
507
  let a;
508
508
  (a = t(o, s, e)) !== !1 && (r[s] = a || o);
509
509
  }), Object.defineProperties(e, r);
510
- }, rs = (e) => {
511
- Vn(e, (t, n) => {
512
- if (H(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
510
+ }, os = (e) => {
511
+ Wn(e, (t, n) => {
512
+ if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
513
513
  return !1;
514
514
  const r = e[n];
515
- if (H(r)) {
515
+ if (_(r)) {
516
516
  if (t.enumerable = !1, "writable" in t) {
517
517
  t.writable = !1;
518
518
  return;
@@ -522,31 +522,31 @@ const Wo = (e, t, n, { allOwnKeys: r } = {}) => (Ae(t, (o, s) => {
522
522
  });
523
523
  }
524
524
  });
525
- }, os = (e, t) => {
525
+ }, ss = (e, t) => {
526
526
  const n = {}, r = (o) => {
527
527
  o.forEach((s) => {
528
528
  n[s] = !0;
529
529
  });
530
530
  };
531
531
  return pe(e) ? r(e) : r(String(e).split(t)), n;
532
- }, ss = () => {
533
- }, as = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Ze = "abcdefghijklmnopqrstuvwxyz", Zt = "0123456789", Wn = {
534
- DIGIT: Zt,
532
+ }, as = () => {
533
+ }, is = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Ze = "abcdefghijklmnopqrstuvwxyz", Xt = "0123456789", $n = {
534
+ DIGIT: Xt,
535
535
  ALPHA: Ze,
536
- ALPHA_DIGIT: Ze + Ze.toUpperCase() + Zt
537
- }, is = (e = 16, t = Wn.ALPHA_DIGIT) => {
536
+ ALPHA_DIGIT: Ze + Ze.toUpperCase() + Xt
537
+ }, ls = (e = 16, t = $n.ALPHA_DIGIT) => {
538
538
  let n = "";
539
539
  const { length: r } = t;
540
540
  for (; e--; )
541
541
  n += t[Math.random() * r | 0];
542
542
  return n;
543
543
  };
544
- function ls(e) {
545
- return !!(e && H(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
544
+ function cs(e) {
545
+ return !!(e && _(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
546
546
  }
547
- const cs = (e) => {
547
+ const us = (e) => {
548
548
  const t = new Array(10), n = (r, o) => {
549
- if (He(r)) {
549
+ if (ze(r)) {
550
550
  if (t.indexOf(r) >= 0)
551
551
  return;
552
552
  if (!("toJSON" in r)) {
@@ -561,72 +561,72 @@ const cs = (e) => {
561
561
  return r;
562
562
  };
563
563
  return n(e, 0);
564
- }, us = K("AsyncFunction"), ds = (e) => e && (He(e) || H(e)) && H(e.then) && H(e.catch), $n = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
564
+ }, ds = K("AsyncFunction"), fs = (e) => e && (ze(e) || _(e)) && _(e.then) && _(e.catch), Kn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ie.addEventListener("message", ({ source: o, data: s }) => {
565
565
  o === ie && s === n && r.length && r.shift()();
566
566
  }, !1), (o) => {
567
567
  r.push(o), ie.postMessage(n, "*");
568
568
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
569
569
  typeof setImmediate == "function",
570
- H(ie.postMessage)
571
- ), fs = typeof queueMicrotask < "u" ? queueMicrotask.bind(ie) : typeof process < "u" && process.nextTick || $n, f = {
570
+ _(ie.postMessage)
571
+ ), hs = typeof queueMicrotask < "u" ? queueMicrotask.bind(ie) : typeof process < "u" && process.nextTick || Kn, f = {
572
572
  isArray: pe,
573
- isArrayBuffer: qn,
574
- isBuffer: Ro,
575
- isFormData: jo,
576
- isArrayBufferView: Po,
577
- isString: vo,
578
- isNumber: _n,
579
- isBoolean: Fo,
580
- isObject: He,
581
- isPlainObject: Te,
582
- isReadableStream: qo,
583
- isRequest: _o,
584
- isResponse: Ho,
585
- isHeaders: zo,
573
+ isArrayBuffer: _n,
574
+ isBuffer: Po,
575
+ isFormData: Uo,
576
+ isArrayBufferView: vo,
577
+ isString: Fo,
578
+ isNumber: Hn,
579
+ isBoolean: Lo,
580
+ isObject: ze,
581
+ isPlainObject: De,
582
+ isReadableStream: _o,
583
+ isRequest: Ho,
584
+ isResponse: zo,
585
+ isHeaders: Vo,
586
586
  isUndefined: Se,
587
- isDate: Lo,
588
- isFile: Bo,
589
- isBlob: Io,
590
- isRegExp: ns,
591
- isFunction: H,
592
- isStream: No,
593
- isURLSearchParams: Uo,
594
- isTypedArray: Zo,
595
- isFileList: Mo,
587
+ isDate: Bo,
588
+ isFile: Io,
589
+ isBlob: Mo,
590
+ isRegExp: rs,
591
+ isFunction: _,
592
+ isStream: jo,
593
+ isURLSearchParams: qo,
594
+ isTypedArray: Xo,
595
+ isFileList: No,
596
596
  forEach: Ae,
597
597
  merge: ft,
598
- extend: Wo,
599
- trim: Vo,
600
- stripBOM: $o,
601
- inherits: Ko,
602
- toFlatObject: Yo,
603
- kindOf: qe,
598
+ extend: $o,
599
+ trim: Wo,
600
+ stripBOM: Ko,
601
+ inherits: Yo,
602
+ toFlatObject: Jo,
603
+ kindOf: _e,
604
604
  kindOfTest: K,
605
- endsWith: Jo,
606
- toArray: Go,
607
- forEachEntry: Xo,
608
- matchAll: Qo,
609
- isHTMLForm: es,
610
- hasOwnProperty: Gt,
611
- hasOwnProp: Gt,
605
+ endsWith: Go,
606
+ toArray: Zo,
607
+ forEachEntry: Qo,
608
+ matchAll: es,
609
+ isHTMLForm: ts,
610
+ hasOwnProperty: Zt,
611
+ hasOwnProp: Zt,
612
612
  // an alias to avoid ESLint no-prototype-builtins detection
613
- reduceDescriptors: Vn,
614
- freezeMethods: rs,
615
- toObjectSet: os,
616
- toCamelCase: ts,
617
- noop: ss,
618
- toFiniteNumber: as,
619
- findKey: Hn,
613
+ reduceDescriptors: Wn,
614
+ freezeMethods: os,
615
+ toObjectSet: ss,
616
+ toCamelCase: ns,
617
+ noop: as,
618
+ toFiniteNumber: is,
619
+ findKey: zn,
620
620
  global: ie,
621
- isContextDefined: zn,
622
- ALPHABET: Wn,
623
- generateString: is,
624
- isSpecCompliantForm: ls,
625
- toJSONObject: cs,
626
- isAsyncFn: us,
627
- isThenable: ds,
628
- setImmediate: $n,
629
- asap: fs
621
+ isContextDefined: Vn,
622
+ ALPHABET: $n,
623
+ generateString: ls,
624
+ isSpecCompliantForm: cs,
625
+ toJSONObject: us,
626
+ isAsyncFn: ds,
627
+ isThenable: fs,
628
+ setImmediate: Kn,
629
+ asap: hs
630
630
  };
631
631
  function C(e, t, n, r, o) {
632
632
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
@@ -652,7 +652,7 @@ f.inherits(C, Error, {
652
652
  };
653
653
  }
654
654
  });
655
- const Kn = C.prototype, Yn = {};
655
+ const Yn = C.prototype, Jn = {};
656
656
  [
657
657
  "ERR_BAD_OPTION_VALUE",
658
658
  "ERR_BAD_OPTION",
@@ -668,35 +668,35 @@ const Kn = C.prototype, Yn = {};
668
668
  "ERR_INVALID_URL"
669
669
  // eslint-disable-next-line func-names
670
670
  ].forEach((e) => {
671
- Yn[e] = { value: e };
671
+ Jn[e] = { value: e };
672
672
  });
673
- Object.defineProperties(C, Yn);
674
- Object.defineProperty(Kn, "isAxiosError", { value: !0 });
673
+ Object.defineProperties(C, Jn);
674
+ Object.defineProperty(Yn, "isAxiosError", { value: !0 });
675
675
  C.from = (e, t, n, r, o, s) => {
676
- const a = Object.create(Kn);
676
+ const a = Object.create(Yn);
677
677
  return f.toFlatObject(e, a, function(d) {
678
678
  return d !== Error.prototype;
679
679
  }, (l) => l !== "isAxiosError"), C.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
680
680
  };
681
- const hs = null;
681
+ const ps = null;
682
682
  function ht(e) {
683
683
  return f.isPlainObject(e) || f.isArray(e);
684
684
  }
685
- function Jn(e) {
685
+ function Gn(e) {
686
686
  return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
687
687
  }
688
- function Xt(e, t, n) {
688
+ function Qt(e, t, n) {
689
689
  return e ? e.concat(t).map(function(o, s) {
690
- return o = Jn(o), !n && s ? "[" + o + "]" : o;
690
+ return o = Gn(o), !n && s ? "[" + o + "]" : o;
691
691
  }).join(n ? "." : "") : t;
692
692
  }
693
- function ps(e) {
693
+ function ms(e) {
694
694
  return f.isArray(e) && !e.some(ht);
695
695
  }
696
- const ms = f.toFlatObject(f, {}, null, function(t) {
696
+ const gs = f.toFlatObject(f, {}, null, function(t) {
697
697
  return /^is[A-Z]/.test(t);
698
698
  });
699
- function ze(e, t, n) {
699
+ function Ve(e, t, n) {
700
700
  if (!f.isObject(e))
701
701
  throw new TypeError("target must be an object");
702
702
  t = t || new FormData(), n = f.toFlatObject(n, {
@@ -722,18 +722,18 @@ function ze(e, t, n) {
722
722
  if (b && !g && typeof b == "object") {
723
723
  if (f.endsWith(p, "{}"))
724
724
  p = r ? p : p.slice(0, -2), b = JSON.stringify(b);
725
- else if (f.isArray(b) && ps(b) || (f.isFileList(b) || f.endsWith(p, "[]")) && (A = f.toArray(b)))
726
- return p = Jn(p), A.forEach(function(E, P) {
725
+ else if (f.isArray(b) && ms(b) || (f.isFileList(b) || f.endsWith(p, "[]")) && (A = f.toArray(b)))
726
+ return p = Gn(p), A.forEach(function(E, P) {
727
727
  !(f.isUndefined(E) || E === null) && t.append(
728
728
  // eslint-disable-next-line no-nested-ternary
729
- a === !0 ? Xt([p], P, s) : a === null ? p : p + "[]",
729
+ a === !0 ? Qt([p], P, s) : a === null ? p : p + "[]",
730
730
  c(E)
731
731
  );
732
732
  }), !1;
733
733
  }
734
- return ht(b) ? !0 : (t.append(Xt(g, p, s), c(b)), !1);
734
+ return ht(b) ? !0 : (t.append(Qt(g, p, s), c(b)), !1);
735
735
  }
736
- const h = [], y = Object.assign(ms, {
736
+ const h = [], y = Object.assign(gs, {
737
737
  defaultVisitor: u,
738
738
  convertValue: c,
739
739
  isVisitable: ht
@@ -757,7 +757,7 @@ function ze(e, t, n) {
757
757
  throw new TypeError("data must be an object");
758
758
  return S(e), t;
759
759
  }
760
- function Qt(e) {
760
+ function en(e) {
761
761
  const t = {
762
762
  "!": "%21",
763
763
  "'": "%27",
@@ -772,27 +772,27 @@ function Qt(e) {
772
772
  });
773
773
  }
774
774
  function Mt(e, t) {
775
- this._pairs = [], e && ze(e, this, t);
775
+ this._pairs = [], e && Ve(e, this, t);
776
776
  }
777
- const Gn = Mt.prototype;
778
- Gn.append = function(t, n) {
777
+ const Zn = Mt.prototype;
778
+ Zn.append = function(t, n) {
779
779
  this._pairs.push([t, n]);
780
780
  };
781
- Gn.toString = function(t) {
781
+ Zn.toString = function(t) {
782
782
  const n = t ? function(r) {
783
- return t.call(this, r, Qt);
784
- } : Qt;
783
+ return t.call(this, r, en);
784
+ } : en;
785
785
  return this._pairs.map(function(o) {
786
786
  return n(o[0]) + "=" + n(o[1]);
787
787
  }, "").join("&");
788
788
  };
789
- function gs(e) {
789
+ function bs(e) {
790
790
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
791
791
  }
792
- function Zn(e, t, n) {
792
+ function Xn(e, t, n) {
793
793
  if (!t)
794
794
  return e;
795
- const r = n && n.encode || gs, o = n && n.serialize;
795
+ const r = n && n.encode || bs, o = n && n.serialize;
796
796
  let s;
797
797
  if (o ? s = o(t, n) : s = f.isURLSearchParams(t) ? t.toString() : new Mt(t, n).toString(r), s) {
798
798
  const a = e.indexOf("#");
@@ -800,7 +800,7 @@ function Zn(e, t, n) {
800
800
  }
801
801
  return e;
802
802
  }
803
- class en {
803
+ class tn {
804
804
  constructor() {
805
805
  this.handlers = [];
806
806
  }
@@ -854,41 +854,41 @@ class en {
854
854
  });
855
855
  }
856
856
  }
857
- const Xn = {
857
+ const Qn = {
858
858
  silentJSONParsing: !0,
859
859
  forcedJSONParsing: !0,
860
860
  clarifyTimeoutError: !1
861
- }, bs = typeof URLSearchParams < "u" ? URLSearchParams : Mt, ys = typeof FormData < "u" ? FormData : null, ws = typeof Blob < "u" ? Blob : null, Ss = {
861
+ }, ys = typeof URLSearchParams < "u" ? URLSearchParams : Mt, ws = typeof FormData < "u" ? FormData : null, Ss = typeof Blob < "u" ? Blob : null, xs = {
862
862
  isBrowser: !0,
863
863
  classes: {
864
- URLSearchParams: bs,
865
- FormData: ys,
866
- Blob: ws
864
+ URLSearchParams: ys,
865
+ FormData: ws,
866
+ Blob: Ss
867
867
  },
868
868
  protocols: ["http", "https", "file", "blob", "url", "data"]
869
- }, Nt = typeof window < "u" && typeof document < "u", pt = typeof navigator == "object" && navigator || void 0, xs = Nt && (!pt || ["ReactNative", "NativeScript", "NS"].indexOf(pt.product) < 0), As = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
870
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cs = Nt && window.location.href || "http://localhost", Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
869
+ }, Nt = typeof window < "u" && typeof document < "u", pt = typeof navigator == "object" && navigator || void 0, As = Nt && (!pt || ["ReactNative", "NativeScript", "NS"].indexOf(pt.product) < 0), Cs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
870
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Es = Nt && window.location.href || "http://localhost", ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
871
871
  __proto__: null,
872
872
  hasBrowserEnv: Nt,
873
- hasStandardBrowserEnv: xs,
874
- hasStandardBrowserWebWorkerEnv: As,
873
+ hasStandardBrowserEnv: As,
874
+ hasStandardBrowserWebWorkerEnv: Cs,
875
875
  navigator: pt,
876
- origin: Cs
876
+ origin: Es
877
877
  }, Symbol.toStringTag, { value: "Module" })), j = {
878
- ...Es,
879
- ...Ss
878
+ ...ks,
879
+ ...xs
880
880
  };
881
- function ks(e, t) {
882
- return ze(e, new j.classes.URLSearchParams(), Object.assign({
881
+ function Ts(e, t) {
882
+ return Ve(e, new j.classes.URLSearchParams(), Object.assign({
883
883
  visitor: function(n, r, o, s) {
884
884
  return j.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
885
885
  }
886
886
  }, t));
887
887
  }
888
- function Ts(e) {
888
+ function Ds(e) {
889
889
  return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
890
890
  }
891
- function Ds(e) {
891
+ function Os(e) {
892
892
  const t = {}, n = Object.keys(e);
893
893
  let r;
894
894
  const o = n.length;
@@ -897,22 +897,22 @@ function Ds(e) {
897
897
  s = n[r], t[s] = e[s];
898
898
  return t;
899
899
  }
900
- function Qn(e) {
900
+ function er(e) {
901
901
  function t(n, r, o, s) {
902
902
  let a = n[s++];
903
903
  if (a === "__proto__") return !0;
904
904
  const l = Number.isFinite(+a), d = s >= n.length;
905
- return a = !a && f.isArray(o) ? o.length : a, d ? (f.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !l) : ((!o[a] || !f.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && f.isArray(o[a]) && (o[a] = Ds(o[a])), !l);
905
+ return a = !a && f.isArray(o) ? o.length : a, d ? (f.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !l) : ((!o[a] || !f.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && f.isArray(o[a]) && (o[a] = Os(o[a])), !l);
906
906
  }
907
907
  if (f.isFormData(e) && f.isFunction(e.entries)) {
908
908
  const n = {};
909
909
  return f.forEachEntry(e, (r, o) => {
910
- t(Ts(r), o, n, 0);
910
+ t(Ds(r), o, n, 0);
911
911
  }), n;
912
912
  }
913
913
  return null;
914
914
  }
915
- function Os(e, t, n) {
915
+ function Rs(e, t, n) {
916
916
  if (f.isString(e))
917
917
  try {
918
918
  return (t || JSON.parse)(e), f.trim(e);
@@ -923,12 +923,12 @@ function Os(e, t, n) {
923
923
  return (0, JSON.stringify)(e);
924
924
  }
925
925
  const Ce = {
926
- transitional: Xn,
926
+ transitional: Qn,
927
927
  adapter: ["xhr", "http", "fetch"],
928
928
  transformRequest: [function(t, n) {
929
929
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = f.isObject(t);
930
930
  if (s && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
931
- return o ? JSON.stringify(Qn(t)) : t;
931
+ return o ? JSON.stringify(er(t)) : t;
932
932
  if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t) || f.isReadableStream(t))
933
933
  return t;
934
934
  if (f.isArrayBufferView(t))
@@ -938,17 +938,17 @@ const Ce = {
938
938
  let l;
939
939
  if (s) {
940
940
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
941
- return ks(t, this.formSerializer).toString();
941
+ return Ts(t, this.formSerializer).toString();
942
942
  if ((l = f.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
943
943
  const d = this.env && this.env.FormData;
944
- return ze(
944
+ return Ve(
945
945
  l ? { "files[]": t } : t,
946
946
  d && new d(),
947
947
  this.formSerializer
948
948
  );
949
949
  }
950
950
  }
951
- return s || o ? (n.setContentType("application/json", !1), Os(t)) : t;
951
+ return s || o ? (n.setContentType("application/json", !1), Rs(t)) : t;
952
952
  }],
953
953
  transformResponse: [function(t) {
954
954
  const n = this.transitional || Ce.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
@@ -991,7 +991,7 @@ const Ce = {
991
991
  f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
992
992
  Ce.headers[e] = {};
993
993
  });
994
- const Rs = f.toObjectSet([
994
+ const Ps = f.toObjectSet([
995
995
  "age",
996
996
  "authorization",
997
997
  "content-length",
@@ -1009,28 +1009,28 @@ const Rs = f.toObjectSet([
1009
1009
  "referer",
1010
1010
  "retry-after",
1011
1011
  "user-agent"
1012
- ]), Ps = (e) => {
1012
+ ]), vs = (e) => {
1013
1013
  const t = {};
1014
1014
  let n, r, o;
1015
1015
  return e && e.split(`
1016
1016
  `).forEach(function(a) {
1017
- o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Rs[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1017
+ o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Ps[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1018
1018
  }), t;
1019
- }, tn = Symbol("internals");
1019
+ }, nn = Symbol("internals");
1020
1020
  function be(e) {
1021
1021
  return e && String(e).trim().toLowerCase();
1022
1022
  }
1023
- function De(e) {
1024
- return e === !1 || e == null ? e : f.isArray(e) ? e.map(De) : String(e);
1023
+ function Oe(e) {
1024
+ return e === !1 || e == null ? e : f.isArray(e) ? e.map(Oe) : String(e);
1025
1025
  }
1026
- function vs(e) {
1026
+ function Fs(e) {
1027
1027
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1028
1028
  let r;
1029
1029
  for (; r = n.exec(e); )
1030
1030
  t[r[1]] = r[2];
1031
1031
  return t;
1032
1032
  }
1033
- const Fs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1033
+ const Ls = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1034
1034
  function Xe(e, t, n, r, o) {
1035
1035
  if (f.isFunction(r))
1036
1036
  return r.call(this, t, n);
@@ -1041,10 +1041,10 @@ function Xe(e, t, n, r, o) {
1041
1041
  return r.test(t);
1042
1042
  }
1043
1043
  }
1044
- function Ls(e) {
1044
+ function Bs(e) {
1045
1045
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1046
1046
  }
1047
- function Bs(e, t) {
1047
+ function Is(e, t) {
1048
1048
  const n = f.toCamelCase(" " + t);
1049
1049
  ["get", "set", "has"].forEach((r) => {
1050
1050
  Object.defineProperty(e, r + n, {
@@ -1066,13 +1066,13 @@ let U = class {
1066
1066
  if (!u)
1067
1067
  throw new Error("header name must be a non-empty string");
1068
1068
  const h = f.findKey(o, u);
1069
- (!h || o[h] === void 0 || c === !0 || c === void 0 && o[h] !== !1) && (o[h || d] = De(l));
1069
+ (!h || o[h] === void 0 || c === !0 || c === void 0 && o[h] !== !1) && (o[h || d] = Oe(l));
1070
1070
  }
1071
1071
  const a = (l, d) => f.forEach(l, (c, u) => s(c, u, d));
1072
1072
  if (f.isPlainObject(t) || t instanceof this.constructor)
1073
1073
  a(t, n);
1074
- else if (f.isString(t) && (t = t.trim()) && !Fs(t))
1075
- a(Ps(t), n);
1074
+ else if (f.isString(t) && (t = t.trim()) && !Ls(t))
1075
+ a(vs(t), n);
1076
1076
  else if (f.isHeaders(t))
1077
1077
  for (const [l, d] of t.entries())
1078
1078
  s(d, l, r);
@@ -1088,7 +1088,7 @@ let U = class {
1088
1088
  if (!n)
1089
1089
  return o;
1090
1090
  if (n === !0)
1091
- return vs(o);
1091
+ return Fs(o);
1092
1092
  if (f.isFunction(n))
1093
1093
  return n.call(this, o, r);
1094
1094
  if (f.isRegExp(n))
@@ -1129,11 +1129,11 @@ let U = class {
1129
1129
  return f.forEach(this, (o, s) => {
1130
1130
  const a = f.findKey(r, s);
1131
1131
  if (a) {
1132
- n[a] = De(o), delete n[s];
1132
+ n[a] = Oe(o), delete n[s];
1133
1133
  return;
1134
1134
  }
1135
- const l = t ? Ls(s) : String(s).trim();
1136
- l !== s && delete n[s], n[l] = De(o), r[l] = !0;
1135
+ const l = t ? Bs(s) : String(s).trim();
1136
+ l !== s && delete n[s], n[l] = Oe(o), r[l] = !0;
1137
1137
  }), this;
1138
1138
  }
1139
1139
  concat(...t) {
@@ -1163,12 +1163,12 @@ let U = class {
1163
1163
  return n.forEach((o) => r.set(o)), r;
1164
1164
  }
1165
1165
  static accessor(t) {
1166
- const r = (this[tn] = this[tn] = {
1166
+ const r = (this[nn] = this[nn] = {
1167
1167
  accessors: {}
1168
1168
  }).accessors, o = this.prototype;
1169
1169
  function s(a) {
1170
1170
  const l = be(a);
1171
- r[l] || (Bs(o, a), r[l] = !0);
1171
+ r[l] || (Is(o, a), r[l] = !0);
1172
1172
  }
1173
1173
  return f.isArray(t) ? t.forEach(s) : s(t), this;
1174
1174
  }
@@ -1191,7 +1191,7 @@ function Qe(e, t) {
1191
1191
  s = l.call(n, s, o.normalize(), t ? t.status : void 0);
1192
1192
  }), o.normalize(), s;
1193
1193
  }
1194
- function er(e) {
1194
+ function tr(e) {
1195
1195
  return !!(e && e.__CANCEL__);
1196
1196
  }
1197
1197
  function me(e, t, n) {
@@ -1200,7 +1200,7 @@ function me(e, t, n) {
1200
1200
  f.inherits(me, C, {
1201
1201
  __CANCEL__: !0
1202
1202
  });
1203
- function tr(e, t, n) {
1203
+ function nr(e, t, n) {
1204
1204
  const r = n.config.validateStatus;
1205
1205
  !n.status || !r || r(n.status) ? e(n) : t(new C(
1206
1206
  "Request failed with status code " + n.status,
@@ -1210,11 +1210,11 @@ function tr(e, t, n) {
1210
1210
  n
1211
1211
  ));
1212
1212
  }
1213
- function Is(e) {
1213
+ function Ms(e) {
1214
1214
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1215
1215
  return t && t[1] || "";
1216
1216
  }
1217
- function Ms(e, t) {
1217
+ function Ns(e, t) {
1218
1218
  e = e || 10;
1219
1219
  const n = new Array(e), r = new Array(e);
1220
1220
  let o = 0, s = 0, a;
@@ -1230,7 +1230,7 @@ function Ms(e, t) {
1230
1230
  return S ? Math.round(y * 1e3 / S) : void 0;
1231
1231
  };
1232
1232
  }
1233
- function Ns(e, t) {
1233
+ function js(e, t) {
1234
1234
  let n = 0, r = 1e3 / t, o, s;
1235
1235
  const a = (c, u = Date.now()) => {
1236
1236
  n = u, o = null, s && (clearTimeout(s), s = null), e.apply(null, c);
@@ -1242,10 +1242,10 @@ function Ns(e, t) {
1242
1242
  }, r - h)));
1243
1243
  }, () => o && a(o)];
1244
1244
  }
1245
- const Le = (e, t, n = 3) => {
1245
+ const Be = (e, t, n = 3) => {
1246
1246
  let r = 0;
1247
- const o = Ms(50, 250);
1248
- return Ns((s) => {
1247
+ const o = Ns(50, 250);
1248
+ return js((s) => {
1249
1249
  const a = s.loaded, l = s.lengthComputable ? s.total : void 0, d = a - r, c = o(d), u = a <= l;
1250
1250
  r = a;
1251
1251
  const h = {
@@ -1261,14 +1261,14 @@ const Le = (e, t, n = 3) => {
1261
1261
  };
1262
1262
  e(h);
1263
1263
  }, n);
1264
- }, nn = (e, t) => {
1264
+ }, rn = (e, t) => {
1265
1265
  const n = e != null;
1266
1266
  return [(r) => t[0]({
1267
1267
  lengthComputable: n,
1268
1268
  total: e,
1269
1269
  loaded: r
1270
1270
  }), t[1]];
1271
- }, rn = (e) => (...t) => f.asap(() => e(...t)), js = j.hasStandardBrowserEnv ? (
1271
+ }, on = (e) => (...t) => f.asap(() => e(...t)), Us = j.hasStandardBrowserEnv ? (
1272
1272
  // Standard browser envs have full support of the APIs needed to test
1273
1273
  // whether the request URL is of the same origin as current location.
1274
1274
  function() {
@@ -1299,7 +1299,7 @@ const Le = (e, t, n = 3) => {
1299
1299
  return !0;
1300
1300
  };
1301
1301
  }()
1302
- ), Us = j.hasStandardBrowserEnv ? (
1302
+ ), qs = j.hasStandardBrowserEnv ? (
1303
1303
  // Standard browser envs support document.cookie
1304
1304
  {
1305
1305
  write(e, t, n, r, o, s) {
@@ -1326,16 +1326,16 @@ const Le = (e, t, n = 3) => {
1326
1326
  }
1327
1327
  }
1328
1328
  );
1329
- function qs(e) {
1329
+ function _s(e) {
1330
1330
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1331
1331
  }
1332
- function _s(e, t) {
1332
+ function Hs(e, t) {
1333
1333
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1334
1334
  }
1335
- function nr(e, t) {
1336
- return e && !qs(t) ? _s(e, t) : t;
1335
+ function rr(e, t) {
1336
+ return e && !_s(t) ? Hs(e, t) : t;
1337
1337
  }
1338
- const on = (e) => e instanceof U ? { ...e } : e;
1338
+ const sn = (e) => e instanceof U ? { ...e } : e;
1339
1339
  function ue(e, t) {
1340
1340
  t = t || {};
1341
1341
  const n = {};
@@ -1393,17 +1393,17 @@ function ue(e, t) {
1393
1393
  socketPath: a,
1394
1394
  responseEncoding: a,
1395
1395
  validateStatus: l,
1396
- headers: (c, u) => o(on(c), on(u), !0)
1396
+ headers: (c, u) => o(sn(c), sn(u), !0)
1397
1397
  };
1398
1398
  return f.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
1399
1399
  const h = d[u] || o, y = h(e[u], t[u], u);
1400
1400
  f.isUndefined(y) && h !== l || (n[u] = y);
1401
1401
  }), n;
1402
1402
  }
1403
- const rr = (e) => {
1403
+ const or = (e) => {
1404
1404
  const t = ue({}, e);
1405
1405
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: l } = t;
1406
- t.headers = a = U.from(a), t.url = Zn(nr(t.baseURL, t.url), e.params, e.paramsSerializer), l && a.set(
1406
+ t.headers = a = U.from(a), t.url = Xn(rr(t.baseURL, t.url), e.params, e.paramsSerializer), l && a.set(
1407
1407
  "Authorization",
1408
1408
  "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
1409
1409
  );
@@ -1416,14 +1416,14 @@ const rr = (e) => {
1416
1416
  a.setContentType([c || "multipart/form-data", ...u].join("; "));
1417
1417
  }
1418
1418
  }
1419
- if (j.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(t)), r || r !== !1 && js(t.url))) {
1420
- const c = o && s && Us.read(s);
1419
+ if (j.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(t)), r || r !== !1 && Us(t.url))) {
1420
+ const c = o && s && qs.read(s);
1421
1421
  c && a.set(o, c);
1422
1422
  }
1423
1423
  return t;
1424
- }, Hs = typeof XMLHttpRequest < "u", zs = Hs && function(e) {
1424
+ }, zs = typeof XMLHttpRequest < "u", Vs = zs && function(e) {
1425
1425
  return new Promise(function(n, r) {
1426
- const o = rr(e);
1426
+ const o = or(e);
1427
1427
  let s = o.data;
1428
1428
  const a = U.from(o.headers).normalize();
1429
1429
  let { responseType: l, onUploadProgress: d, onDownloadProgress: c } = o, u, h, y, S, b;
@@ -1445,7 +1445,7 @@ const rr = (e) => {
1445
1445
  config: e,
1446
1446
  request: g
1447
1447
  };
1448
- tr(function(D) {
1448
+ nr(function(D) {
1449
1449
  n(D), p();
1450
1450
  }, function(D) {
1451
1451
  r(D), p();
@@ -1459,7 +1459,7 @@ const rr = (e) => {
1459
1459
  r(new C("Network Error", C.ERR_NETWORK, e, g)), g = null;
1460
1460
  }, g.ontimeout = function() {
1461
1461
  let P = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1462
- const O = o.transitional || Xn;
1462
+ const O = o.transitional || Qn;
1463
1463
  o.timeoutErrorMessage && (P = o.timeoutErrorMessage), r(new C(
1464
1464
  P,
1465
1465
  O.clarifyTimeoutError ? C.ETIMEDOUT : C.ECONNABORTED,
@@ -1468,17 +1468,17 @@ const rr = (e) => {
1468
1468
  )), g = null;
1469
1469
  }, s === void 0 && a.setContentType(null), "setRequestHeader" in g && f.forEach(a.toJSON(), function(P, O) {
1470
1470
  g.setRequestHeader(O, P);
1471
- }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([y, b] = Le(c, !0), g.addEventListener("progress", y)), d && g.upload && ([h, S] = Le(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (E) => {
1471
+ }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([y, b] = Be(c, !0), g.addEventListener("progress", y)), d && g.upload && ([h, S] = Be(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (E) => {
1472
1472
  g && (r(!E || E.type ? new me(null, e, g) : E), g.abort(), g = null);
1473
1473
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1474
- const x = Is(o.url);
1474
+ const x = Ms(o.url);
1475
1475
  if (x && j.protocols.indexOf(x) === -1) {
1476
1476
  r(new C("Unsupported protocol " + x + ":", C.ERR_BAD_REQUEST, e));
1477
1477
  return;
1478
1478
  }
1479
1479
  g.send(s || null);
1480
1480
  });
1481
- }, Vs = (e, t) => {
1481
+ }, Ws = (e, t) => {
1482
1482
  const { length: n } = e = e ? e.filter(Boolean) : [];
1483
1483
  if (t || n) {
1484
1484
  let r = new AbortController(), o;
@@ -1501,7 +1501,7 @@ const rr = (e) => {
1501
1501
  const { signal: d } = r;
1502
1502
  return d.unsubscribe = () => f.asap(l), d;
1503
1503
  }
1504
- }, Ws = function* (e, t) {
1504
+ }, $s = function* (e, t) {
1505
1505
  let n = e.byteLength;
1506
1506
  if (n < t) {
1507
1507
  yield e;
@@ -1510,10 +1510,10 @@ const rr = (e) => {
1510
1510
  let r = 0, o;
1511
1511
  for (; r < n; )
1512
1512
  o = r + t, yield e.slice(r, o), r = o;
1513
- }, $s = async function* (e, t) {
1514
- for await (const n of Ks(e))
1515
- yield* Ws(n, t);
1516
- }, Ks = async function* (e) {
1513
+ }, Ks = async function* (e, t) {
1514
+ for await (const n of Ys(e))
1515
+ yield* $s(n, t);
1516
+ }, Ys = async function* (e) {
1517
1517
  if (e[Symbol.asyncIterator]) {
1518
1518
  yield* e;
1519
1519
  return;
@@ -1529,8 +1529,8 @@ const rr = (e) => {
1529
1529
  } finally {
1530
1530
  await t.cancel();
1531
1531
  }
1532
- }, sn = (e, t, n, r) => {
1533
- const o = $s(e, t);
1532
+ }, an = (e, t, n, r) => {
1533
+ const o = Ks(e, t);
1534
1534
  let s = 0, a, l = (d) => {
1535
1535
  a || (a = !0, r && r(d));
1536
1536
  };
@@ -1558,13 +1558,13 @@ const rr = (e) => {
1558
1558
  }, {
1559
1559
  highWaterMark: 2
1560
1560
  });
1561
- }, Ve = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", or = Ve && typeof ReadableStream == "function", Ys = Ve && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), sr = (e, ...t) => {
1561
+ }, We = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", sr = We && typeof ReadableStream == "function", Js = We && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ar = (e, ...t) => {
1562
1562
  try {
1563
1563
  return !!e(...t);
1564
1564
  } catch {
1565
1565
  return !1;
1566
1566
  }
1567
- }, Js = or && sr(() => {
1567
+ }, Gs = sr && ar(() => {
1568
1568
  let e = !1;
1569
1569
  const t = new Request(j.origin, {
1570
1570
  body: new ReadableStream(),
@@ -1574,17 +1574,17 @@ const rr = (e) => {
1574
1574
  }
1575
1575
  }).headers.has("Content-Type");
1576
1576
  return e && !t;
1577
- }), an = 64 * 1024, mt = or && sr(() => f.isReadableStream(new Response("").body)), Be = {
1577
+ }), ln = 64 * 1024, mt = sr && ar(() => f.isReadableStream(new Response("").body)), Ie = {
1578
1578
  stream: mt && ((e) => e.body)
1579
1579
  };
1580
- Ve && ((e) => {
1580
+ We && ((e) => {
1581
1581
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1582
- !Be[t] && (Be[t] = f.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1582
+ !Ie[t] && (Ie[t] = f.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1583
1583
  throw new C(`Response type '${t}' is not supported`, C.ERR_NOT_SUPPORT, r);
1584
1584
  });
1585
1585
  });
1586
1586
  })(new Response());
1587
- const Gs = async (e) => {
1587
+ const Zs = async (e) => {
1588
1588
  if (e == null)
1589
1589
  return 0;
1590
1590
  if (f.isBlob(e))
@@ -1597,11 +1597,11 @@ const Gs = async (e) => {
1597
1597
  if (f.isArrayBufferView(e) || f.isArrayBuffer(e))
1598
1598
  return e.byteLength;
1599
1599
  if (f.isURLSearchParams(e) && (e = e + ""), f.isString(e))
1600
- return (await Ys(e)).byteLength;
1601
- }, Zs = async (e, t) => {
1600
+ return (await Js(e)).byteLength;
1601
+ }, Xs = async (e, t) => {
1602
1602
  const n = f.toFiniteNumber(e.getContentLength());
1603
- return n ?? Gs(t);
1604
- }, Xs = Ve && (async (e) => {
1603
+ return n ?? Zs(t);
1604
+ }, Qs = We && (async (e) => {
1605
1605
  let {
1606
1606
  url: t,
1607
1607
  method: n,
@@ -1615,26 +1615,26 @@ const Gs = async (e) => {
1615
1615
  headers: u,
1616
1616
  withCredentials: h = "same-origin",
1617
1617
  fetchOptions: y
1618
- } = rr(e);
1618
+ } = or(e);
1619
1619
  c = c ? (c + "").toLowerCase() : "text";
1620
- let S = Vs([o, s && s.toAbortSignal()], a), b;
1620
+ let S = Ws([o, s && s.toAbortSignal()], a), b;
1621
1621
  const p = S && S.unsubscribe && (() => {
1622
1622
  S.unsubscribe();
1623
1623
  });
1624
1624
  let g;
1625
1625
  try {
1626
- if (d && Js && n !== "get" && n !== "head" && (g = await Zs(u, r)) !== 0) {
1626
+ if (d && Gs && n !== "get" && n !== "head" && (g = await Xs(u, r)) !== 0) {
1627
1627
  let O = new Request(t, {
1628
1628
  method: "POST",
1629
1629
  body: r,
1630
1630
  duplex: "half"
1631
1631
  }), R;
1632
1632
  if (f.isFormData(r) && (R = O.headers.get("content-type")) && u.setContentType(R), O.body) {
1633
- const [D, _] = nn(
1633
+ const [D, V] = rn(
1634
1634
  g,
1635
- Le(rn(d))
1635
+ Be(on(d))
1636
1636
  );
1637
- r = sn(O.body, an, D, _);
1637
+ r = an(O.body, ln, D, V);
1638
1638
  }
1639
1639
  }
1640
1640
  f.isString(h) || (h = h ? "include" : "omit");
@@ -1655,21 +1655,21 @@ const Gs = async (e) => {
1655
1655
  ["status", "statusText", "headers"].forEach((Ee) => {
1656
1656
  O[Ee] = x[Ee];
1657
1657
  });
1658
- const R = f.toFiniteNumber(x.headers.get("content-length")), [D, _] = l && nn(
1658
+ const R = f.toFiniteNumber(x.headers.get("content-length")), [D, V] = l && rn(
1659
1659
  R,
1660
- Le(rn(l), !0)
1660
+ Be(on(l), !0)
1661
1661
  ) || [];
1662
1662
  x = new Response(
1663
- sn(x.body, an, D, () => {
1664
- _ && _(), p && p();
1663
+ an(x.body, ln, D, () => {
1664
+ V && V(), p && p();
1665
1665
  }),
1666
1666
  O
1667
1667
  );
1668
1668
  }
1669
1669
  c = c || "text";
1670
- let P = await Be[f.findKey(Be, c) || "text"](x, e);
1670
+ let P = await Ie[f.findKey(Ie, c) || "text"](x, e);
1671
1671
  return !E && p && p(), await new Promise((O, R) => {
1672
- tr(O, R, {
1672
+ nr(O, R, {
1673
1673
  data: P,
1674
1674
  headers: U.from(x.headers),
1675
1675
  status: x.status,
@@ -1687,9 +1687,9 @@ const Gs = async (e) => {
1687
1687
  ) : C.from(A, A && A.code, e, b);
1688
1688
  }
1689
1689
  }), gt = {
1690
- http: hs,
1691
- xhr: zs,
1692
- fetch: Xs
1690
+ http: ps,
1691
+ xhr: Vs,
1692
+ fetch: Qs
1693
1693
  };
1694
1694
  f.forEach(gt, (e, t) => {
1695
1695
  if (e) {
@@ -1700,7 +1700,7 @@ f.forEach(gt, (e, t) => {
1700
1700
  Object.defineProperty(e, "adapterName", { value: t });
1701
1701
  }
1702
1702
  });
1703
- const ln = (e) => `- ${e}`, Qs = (e) => f.isFunction(e) || e === null || e === !1, ar = {
1703
+ const cn = (e) => `- ${e}`, ea = (e) => f.isFunction(e) || e === null || e === !1, ir = {
1704
1704
  getAdapter: (e) => {
1705
1705
  e = f.isArray(e) ? e : [e];
1706
1706
  const { length: t } = e;
@@ -1709,7 +1709,7 @@ const ln = (e) => `- ${e}`, Qs = (e) => f.isFunction(e) || e === null || e === !
1709
1709
  for (let s = 0; s < t; s++) {
1710
1710
  n = e[s];
1711
1711
  let a;
1712
- if (r = n, !Qs(n) && (r = gt[(a = String(n)).toLowerCase()], r === void 0))
1712
+ if (r = n, !ea(n) && (r = gt[(a = String(n)).toLowerCase()], r === void 0))
1713
1713
  throw new C(`Unknown adapter '${a}'`);
1714
1714
  if (r)
1715
1715
  break;
@@ -1720,8 +1720,8 @@ const ln = (e) => `- ${e}`, Qs = (e) => f.isFunction(e) || e === null || e === !
1720
1720
  ([l, d]) => `adapter ${l} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1721
1721
  );
1722
1722
  let a = t ? s.length > 1 ? `since :
1723
- ` + s.map(ln).join(`
1724
- `) : " " + ln(s[0]) : "as no adapter specified";
1723
+ ` + s.map(cn).join(`
1724
+ `) : " " + cn(s[0]) : "as no adapter specified";
1725
1725
  throw new C(
1726
1726
  "There is no suitable adapter to dispatch the request " + a,
1727
1727
  "ERR_NOT_SUPPORT"
@@ -1735,34 +1735,34 @@ function et(e) {
1735
1735
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1736
1736
  throw new me(null, e);
1737
1737
  }
1738
- function cn(e) {
1738
+ function un(e) {
1739
1739
  return et(e), e.headers = U.from(e.headers), e.data = Qe.call(
1740
1740
  e,
1741
1741
  e.transformRequest
1742
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ar.getAdapter(e.adapter || Ce.adapter)(e).then(function(r) {
1742
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ir.getAdapter(e.adapter || Ce.adapter)(e).then(function(r) {
1743
1743
  return et(e), r.data = Qe.call(
1744
1744
  e,
1745
1745
  e.transformResponse,
1746
1746
  r
1747
1747
  ), r.headers = U.from(r.headers), r;
1748
1748
  }, function(r) {
1749
- return er(r) || (et(e), r && r.response && (r.response.data = Qe.call(
1749
+ return tr(r) || (et(e), r && r.response && (r.response.data = Qe.call(
1750
1750
  e,
1751
1751
  e.transformResponse,
1752
1752
  r.response
1753
1753
  ), r.response.headers = U.from(r.response.headers))), Promise.reject(r);
1754
1754
  });
1755
1755
  }
1756
- const ir = "1.7.7", jt = {};
1756
+ const lr = "1.7.7", jt = {};
1757
1757
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1758
1758
  jt[e] = function(r) {
1759
1759
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1760
1760
  };
1761
1761
  });
1762
- const un = {};
1762
+ const dn = {};
1763
1763
  jt.transitional = function(t, n, r) {
1764
1764
  function o(s, a) {
1765
- return "[Axios v" + ir + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
1765
+ return "[Axios v" + lr + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
1766
1766
  }
1767
1767
  return (s, a, l) => {
1768
1768
  if (t === !1)
@@ -1770,7 +1770,7 @@ jt.transitional = function(t, n, r) {
1770
1770
  o(a, " has been removed" + (n ? " in " + n : "")),
1771
1771
  C.ERR_DEPRECATED
1772
1772
  );
1773
- return n && !un[a] && (un[a] = !0, console.warn(
1773
+ return n && !dn[a] && (dn[a] = !0, console.warn(
1774
1774
  o(
1775
1775
  a,
1776
1776
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1778,7 +1778,7 @@ jt.transitional = function(t, n, r) {
1778
1778
  )), t ? t(s, a, l) : !0;
1779
1779
  };
1780
1780
  };
1781
- function ea(e, t, n) {
1781
+ function ta(e, t, n) {
1782
1782
  if (typeof e != "object")
1783
1783
  throw new C("options must be an object", C.ERR_BAD_OPTION_VALUE);
1784
1784
  const r = Object.keys(e);
@@ -1796,14 +1796,14 @@ function ea(e, t, n) {
1796
1796
  }
1797
1797
  }
1798
1798
  const bt = {
1799
- assertOptions: ea,
1799
+ assertOptions: ta,
1800
1800
  validators: jt
1801
1801
  }, ne = bt.validators;
1802
1802
  let le = class {
1803
1803
  constructor(t) {
1804
1804
  this.defaults = t, this.interceptors = {
1805
- request: new en(),
1806
- response: new en()
1805
+ request: new tn(),
1806
+ response: new tn()
1807
1807
  };
1808
1808
  }
1809
1809
  /**
@@ -1865,7 +1865,7 @@ let le = class {
1865
1865
  });
1866
1866
  let u, h = 0, y;
1867
1867
  if (!d) {
1868
- const b = [cn.bind(this), void 0];
1868
+ const b = [un.bind(this), void 0];
1869
1869
  for (b.unshift.apply(b, l), b.push.apply(b, c), y = b.length, u = Promise.resolve(n); h < y; )
1870
1870
  u = u.then(b[h++], b[h++]);
1871
1871
  return u;
@@ -1882,7 +1882,7 @@ let le = class {
1882
1882
  }
1883
1883
  }
1884
1884
  try {
1885
- u = cn.call(this, S);
1885
+ u = un.call(this, S);
1886
1886
  } catch (b) {
1887
1887
  return Promise.reject(b);
1888
1888
  }
@@ -1892,8 +1892,8 @@ let le = class {
1892
1892
  }
1893
1893
  getUri(t) {
1894
1894
  t = ue(this.defaults, t);
1895
- const n = nr(t.baseURL, t.url);
1896
- return Zn(n, t.params, t.paramsSerializer);
1895
+ const n = rr(t.baseURL, t.url);
1896
+ return Xn(n, t.params, t.paramsSerializer);
1897
1897
  }
1898
1898
  };
1899
1899
  f.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1920,7 +1920,7 @@ f.forEach(["post", "put", "patch"], function(t) {
1920
1920
  }
1921
1921
  le.prototype[t] = n(), le.prototype[t + "Form"] = n(!0);
1922
1922
  });
1923
- let ta = class lr {
1923
+ let na = class cr {
1924
1924
  constructor(t) {
1925
1925
  if (typeof t != "function")
1926
1926
  throw new TypeError("executor must be a function.");
@@ -1986,19 +1986,19 @@ let ta = class lr {
1986
1986
  static source() {
1987
1987
  let t;
1988
1988
  return {
1989
- token: new lr(function(o) {
1989
+ token: new cr(function(o) {
1990
1990
  t = o;
1991
1991
  }),
1992
1992
  cancel: t
1993
1993
  };
1994
1994
  }
1995
1995
  };
1996
- function na(e) {
1996
+ function ra(e) {
1997
1997
  return function(n) {
1998
1998
  return e.apply(null, n);
1999
1999
  };
2000
2000
  }
2001
- function ra(e) {
2001
+ function oa(e) {
2002
2002
  return f.isObject(e) && e.isAxiosError === !0;
2003
2003
  }
2004
2004
  const yt = {
@@ -2069,49 +2069,49 @@ const yt = {
2069
2069
  Object.entries(yt).forEach(([e, t]) => {
2070
2070
  yt[t] = e;
2071
2071
  });
2072
- function cr(e) {
2073
- const t = new le(e), n = Un(le.prototype.request, t);
2072
+ function ur(e) {
2073
+ const t = new le(e), n = qn(le.prototype.request, t);
2074
2074
  return f.extend(n, le.prototype, t, { allOwnKeys: !0 }), f.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2075
- return cr(ue(e, o));
2075
+ return ur(ue(e, o));
2076
2076
  }, n;
2077
2077
  }
2078
- const F = cr(Ce);
2078
+ const F = ur(Ce);
2079
2079
  F.Axios = le;
2080
2080
  F.CanceledError = me;
2081
- F.CancelToken = ta;
2082
- F.isCancel = er;
2083
- F.VERSION = ir;
2084
- F.toFormData = ze;
2081
+ F.CancelToken = na;
2082
+ F.isCancel = tr;
2083
+ F.VERSION = lr;
2084
+ F.toFormData = Ve;
2085
2085
  F.AxiosError = C;
2086
2086
  F.Cancel = F.CanceledError;
2087
2087
  F.all = function(t) {
2088
2088
  return Promise.all(t);
2089
2089
  };
2090
- F.spread = na;
2091
- F.isAxiosError = ra;
2090
+ F.spread = ra;
2091
+ F.isAxiosError = oa;
2092
2092
  F.mergeConfig = ue;
2093
2093
  F.AxiosHeaders = U;
2094
- F.formToJSON = (e) => Qn(f.isHTMLForm(e) ? new FormData(e) : e);
2095
- F.getAdapter = ar.getAdapter;
2094
+ F.formToJSON = (e) => er(f.isHTMLForm(e) ? new FormData(e) : e);
2095
+ F.getAdapter = ir.getAdapter;
2096
2096
  F.HttpStatusCode = yt;
2097
2097
  F.default = F;
2098
2098
  const {
2099
- Axios: Bi,
2100
- AxiosError: Ii,
2101
- CanceledError: Mi,
2102
- isCancel: Ni,
2103
- CancelToken: ji,
2104
- VERSION: Ui,
2105
- all: qi,
2106
- Cancel: _i,
2107
- isAxiosError: oa,
2108
- spread: Hi,
2109
- toFormData: zi,
2110
- AxiosHeaders: Vi,
2111
- HttpStatusCode: Wi,
2112
- formToJSON: $i,
2113
- getAdapter: Ki,
2114
- mergeConfig: Yi
2099
+ Axios: Ii,
2100
+ AxiosError: Mi,
2101
+ CanceledError: Ni,
2102
+ isCancel: ji,
2103
+ CancelToken: Ui,
2104
+ VERSION: qi,
2105
+ all: _i,
2106
+ Cancel: Hi,
2107
+ isAxiosError: sa,
2108
+ spread: zi,
2109
+ toFormData: Vi,
2110
+ AxiosHeaders: Wi,
2111
+ HttpStatusCode: $i,
2112
+ formToJSON: Ki,
2113
+ getAdapter: Yi,
2114
+ mergeConfig: Ji
2115
2115
  } = F;
2116
2116
  function ce(e) {
2117
2117
  return (t) => {
@@ -2119,7 +2119,7 @@ function ce(e) {
2119
2119
  if (!(t instanceof Error))
2120
2120
  throw t;
2121
2121
  e({
2122
- message: oa(t) ? ((n = t.response) == null ? void 0 : n.data.message) ?? t.message : t.message,
2122
+ message: sa(t) ? ((n = t.response) == null ? void 0 : n.data.message) ?? t.message : t.message,
2123
2123
  severity: "error"
2124
2124
  });
2125
2125
  };
@@ -2127,25 +2127,25 @@ function ce(e) {
2127
2127
  function Ut() {
2128
2128
  return m.useContext(Lt).notify;
2129
2129
  }
2130
- function sa() {
2130
+ function aa() {
2131
2131
  const e = Ut();
2132
2132
  return m.useCallback((t) => {
2133
2133
  ce(e)(t);
2134
2134
  }, [e]);
2135
2135
  }
2136
- const aa = ({ create: e = !1 }) => {
2137
- const [t, n] = m.useState(), { id: r } = xr(), { t: o } = L(), s = Ut(), a = At(), l = te(), d = V("breakpoint", "md");
2136
+ const ia = ({ create: e = !1 }) => {
2137
+ const [t, n] = m.useState(), { id: r } = Ar(), { t: o } = L(), s = Ut(), a = At(), l = te(), d = z("breakpoint", "md");
2138
2138
  Bt(
2139
2139
  t != null && t.exists ? o("Edit :model “:label“", { model: l.singular(), label: (t == null ? void 0 : t.getLabel()) || "..." }) : o("Create :model", { model: l.singular() })
2140
- ), Do();
2140
+ ), Oo();
2141
2141
  const c = T("cms").getComponent("Breadcrumbs");
2142
2142
  m.useEffect(() => {
2143
2143
  e ? n(new l()) : l.find(r).then((S) => n(S ?? void 0));
2144
2144
  }, [r, l, e]);
2145
2145
  const u = m.useCallback(() => {
2146
2146
  s(o(":model saved successfully", { model: l.singular() })), t != null && t.wasRecentlyCreated && a(`/${k.kebab(l.plural())}/${t.getKey()}`);
2147
- }, [s, a, l, t, o]), h = sa(), y = m.useMemo(() => T("cms").getModelFormProps(t), [t]);
2148
- return t ? /* @__PURE__ */ i(z, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: /* @__PURE__ */ w(Q, { container: !0, children: [
2147
+ }, [s, a, l, t, o]), h = aa(), y = m.useMemo(() => T("cms").getModelFormProps(t), [t]);
2148
+ return t ? /* @__PURE__ */ i(H, { sx: { p: { xs: 1, sm: 2, md: 3 } }, children: /* @__PURE__ */ w(Q, { container: !0, children: [
2149
2149
  /* @__PURE__ */ i(Q, { xs: 12, children: /* @__PURE__ */ i(
2150
2150
  c,
2151
2151
  {
@@ -2161,7 +2161,7 @@ const aa = ({ create: e = !1 }) => {
2161
2161
  xs: 12,
2162
2162
  [d]: 6,
2163
2163
  children: /* @__PURE__ */ i(
2164
- Er,
2164
+ kr,
2165
2165
  {
2166
2166
  submitText: "Save",
2167
2167
  ...y,
@@ -2174,7 +2174,7 @@ const aa = ({ create: e = !1 }) => {
2174
2174
  )
2175
2175
  ] }) }) : null;
2176
2176
  };
2177
- function ia(e) {
2177
+ function la(e) {
2178
2178
  const {
2179
2179
  setDisplacement: t
2180
2180
  } = m.useContext(Lt), n = Ft(), r = v(), o = n.spacing(r ? 3 : 1), s = e === !1 ? o : n.spacing(e);
@@ -2182,24 +2182,24 @@ function ia(e) {
2182
2182
  t(o);
2183
2183
  }), [s, o, t]);
2184
2184
  }
2185
- function la() {
2186
- return m.useContext(jn).dialog;
2185
+ function ca() {
2186
+ return m.useContext(Un).dialog;
2187
2187
  }
2188
2188
  function qt() {
2189
- const e = At(), t = Ut(), n = la(), { t: r } = L(), { refresh: o } = xe();
2189
+ const e = At(), t = Ut(), n = ca(), { t: r } = L(), { refresh: o } = xe();
2190
2190
  return { navigate: e, notify: t, dialog: n, t: r, refresh: o };
2191
2191
  }
2192
- const ca = Z(vr)(({ theme: e }) => ({
2192
+ const ua = Z(Fr)(({ theme: e }) => ({
2193
2193
  position: "fixed",
2194
2194
  bottom: e.spacing(2),
2195
2195
  right: e.spacing(2)
2196
- })), ua = Z(Fr)(({ theme: e }) => ({
2196
+ })), da = Z(Lr)(({ theme: e }) => ({
2197
2197
  position: "fixed",
2198
2198
  bottom: e.spacing(2),
2199
2199
  right: e.spacing(2)
2200
- })), da = ({ variant: e = "default" }) => {
2200
+ })), fa = ({ variant: e = "default" }) => {
2201
2201
  const t = te(), n = v(), [r] = G(), o = r.get("tab") ?? "all", [s, a] = m.useState(!1), l = m.useRef(null), [d, c] = m.useState(0), u = qt(), h = m.useMemo(() => T("cms").getStaticActions(t, o), [t, o]);
2202
- if (ia(
2202
+ if (la(
2203
2203
  e === "fab" && h.length > 0 ? n ? 12 : 10 : !1
2204
2204
  ), h.length === 0)
2205
2205
  return null;
@@ -2210,9 +2210,9 @@ const ca = Z(vr)(({ theme: e }) => ({
2210
2210
  }, b = (p) => {
2211
2211
  l.current && l.current.contains(p.target) || a(!1);
2212
2212
  };
2213
- return e === "fab" ? h.length === 1 ? Jt.createPortal(
2213
+ return e === "fab" ? h.length === 1 ? Gt.createPortal(
2214
2214
  /* @__PURE__ */ i(
2215
- ca,
2215
+ ua,
2216
2216
  {
2217
2217
  color: "primary",
2218
2218
  onClick: () => h[0].callback(u),
@@ -2220,18 +2220,18 @@ const ca = Z(vr)(({ theme: e }) => ({
2220
2220
  }
2221
2221
  ),
2222
2222
  document.body
2223
- ) : Jt.createPortal(
2223
+ ) : Gt.createPortal(
2224
2224
  /* @__PURE__ */ i(
2225
- ua,
2225
+ da,
2226
2226
  {
2227
2227
  ariaLabel: `actions for ${t.singular()}`,
2228
- icon: /* @__PURE__ */ i(Lr, {}),
2228
+ icon: /* @__PURE__ */ i(Br, {}),
2229
2229
  color: "primary",
2230
2230
  onClose: () => a(!1),
2231
2231
  onOpen: () => a(!0),
2232
2232
  open: s,
2233
2233
  children: h.map((p) => /* @__PURE__ */ i(
2234
- Br,
2234
+ Ir,
2235
2235
  {
2236
2236
  icon: p.icon || p.label.charAt(0).toUpperCase(),
2237
2237
  tooltipTitle: p.label,
@@ -2244,7 +2244,7 @@ const ca = Z(vr)(({ theme: e }) => ({
2244
2244
  document.body
2245
2245
  ) : /* @__PURE__ */ w(B, { children: [
2246
2246
  /* @__PURE__ */ w(
2247
- Ir,
2247
+ Mr,
2248
2248
  {
2249
2249
  variant: "contained",
2250
2250
  ref: l,
@@ -2261,27 +2261,27 @@ const ca = Z(vr)(({ theme: e }) => ({
2261
2261
  "aria-label": `select ${t.singular()} actions`,
2262
2262
  "aria-haspopup": "menu",
2263
2263
  onClick: S,
2264
- children: /* @__PURE__ */ i(Tn, {})
2264
+ children: /* @__PURE__ */ i(Dn, {})
2265
2265
  }
2266
2266
  )
2267
2267
  ]
2268
2268
  }
2269
2269
  ),
2270
2270
  /* @__PURE__ */ i(
2271
- Mr,
2271
+ Nr,
2272
2272
  {
2273
2273
  open: s,
2274
2274
  anchorEl: l.current,
2275
2275
  role: void 0,
2276
2276
  transition: !0,
2277
2277
  children: ({ TransitionProps: p, placement: g }) => /* @__PURE__ */ i(
2278
- Nr,
2278
+ jr,
2279
2279
  {
2280
2280
  ...p,
2281
2281
  style: {
2282
2282
  transformOrigin: g === "bottom" ? "center top" : "center bottom"
2283
2283
  },
2284
- children: /* @__PURE__ */ i(Ot, { children: /* @__PURE__ */ i(jr, { onClickAway: b, children: /* @__PURE__ */ i(Ur, { id: "split-button-menu", children: h.map((A, x) => /* @__PURE__ */ i(
2284
+ children: /* @__PURE__ */ i(Ot, { children: /* @__PURE__ */ i(Ur, { onClickAway: b, children: /* @__PURE__ */ i(qr, { id: "split-button-menu", children: h.map((A, x) => /* @__PURE__ */ i(
2285
2285
  se,
2286
2286
  {
2287
2287
  selected: x === d,
@@ -2311,20 +2311,20 @@ function _t() {
2311
2311
  }
2312
2312
  };
2313
2313
  }
2314
- function ur() {
2314
+ function dr() {
2315
2315
  const { currentPage: e } = m.useContext(X);
2316
2316
  return e;
2317
2317
  }
2318
- function dr() {
2318
+ function fr() {
2319
2319
  const { showSearch: e } = m.useContext(X);
2320
2320
  return e;
2321
2321
  }
2322
- function fr() {
2322
+ function hr() {
2323
2323
  const { showBackButton: e } = m.useContext(X);
2324
2324
  return e;
2325
2325
  }
2326
- const fa = Z(
2327
- wn,
2326
+ const ha = Z(
2327
+ Sn,
2328
2328
  { shouldForwardProp: (e) => !["open", "drawerWidth", "height"].includes(String(e)) }
2329
2329
  )(({ theme: e, open: t, drawerWidth: n, height: r }) => ({
2330
2330
  zIndex: e.zIndex.drawer + 1,
@@ -2341,20 +2341,20 @@ const fa = Z(
2341
2341
  duration: e.transitions.duration.enteringScreen
2342
2342
  })
2343
2343
  }
2344
- })), ha = Z(
2345
- wn,
2344
+ })), pa = Z(
2345
+ Sn,
2346
2346
  { shouldForwardProp: (e) => !["open", "drawerWidth", "height"].includes(String(e)) }
2347
- )(({ height: e }) => ({ height: e })), pa = ({ slots: e = {}, ...t }) => {
2348
- const n = v(), r = n ? fa : ha, {
2347
+ )(({ height: e }) => ({ height: e })), ma = ({ slots: e = {}, ...t }) => {
2348
+ const n = v(), r = n ? ha : pa, {
2349
2349
  ["Layout.AppBar.MenuButton"]: o,
2350
2350
  ["Layout.SearchBar"]: s,
2351
2351
  ["Layout.BackButton"]: a,
2352
2352
  ["Layout.AppLogo"]: l
2353
- } = T("cms").getComponents(), { open: d } = _t(), c = dr(), u = fr(), h = V("appBar.height"), y = V("drawer.width", 280), {
2353
+ } = T("cms").getComponents(), { open: d } = _t(), c = fr(), u = hr(), h = z("appBar.height"), y = z("drawer.width", 280), {
2354
2354
  start: S = null,
2355
2355
  //: title = config('app.name', document.title),
2356
2356
  end: b = null
2357
- } = e, p = ur();
2357
+ } = e, p = dr();
2358
2358
  return /* @__PURE__ */ i(
2359
2359
  r,
2360
2360
  {
@@ -2362,7 +2362,7 @@ const fa = Z(
2362
2362
  height: h,
2363
2363
  drawerWidth: y,
2364
2364
  ...t,
2365
- children: /* @__PURE__ */ w(qr, { children: [
2365
+ children: /* @__PURE__ */ w(_r, { children: [
2366
2366
  (n && !d || !n && !u) && /* @__PURE__ */ i(o, {}),
2367
2367
  !n && u && /* @__PURE__ */ i(a, {}),
2368
2368
  n ? null : S,
@@ -2376,9 +2376,9 @@ const fa = Z(
2376
2376
  children: !n && p || oe("app.name", document.title)
2377
2377
  }
2378
2378
  ),
2379
- /* @__PURE__ */ i(z, { sx: { flexGrow: 1 } }),
2379
+ /* @__PURE__ */ i(H, { sx: { flexGrow: 1 } }),
2380
2380
  /* @__PURE__ */ w(
2381
- z,
2381
+ H,
2382
2382
  {
2383
2383
  display: "flex",
2384
2384
  alignItems: "center",
@@ -2392,28 +2392,28 @@ const fa = Z(
2392
2392
  }
2393
2393
  );
2394
2394
  };
2395
- function ma(e) {
2395
+ function ga(e) {
2396
2396
  return /* @__PURE__ */ i(
2397
2397
  q,
2398
2398
  {
2399
- component: Pe,
2399
+ component: ve,
2400
2400
  to: -1,
2401
2401
  edge: "start",
2402
2402
  color: "inherit",
2403
2403
  "aria-label": "back",
2404
2404
  ...e,
2405
- children: /* @__PURE__ */ i(je, {})
2405
+ children: /* @__PURE__ */ i(Ue, {})
2406
2406
  }
2407
2407
  );
2408
2408
  }
2409
- const dn = (e, t) => ({
2409
+ const fn = (e, t) => ({
2410
2410
  width: t,
2411
2411
  transition: e.transitions.create("width", {
2412
2412
  easing: e.transitions.easing.sharp,
2413
2413
  duration: e.transitions.duration.enteringScreen
2414
2414
  }),
2415
2415
  overflowX: "hidden"
2416
- }), fn = (e) => ({
2416
+ }), hn = (e) => ({
2417
2417
  transition: e.transitions.create("width", {
2418
2418
  easing: e.transitions.easing.sharp,
2419
2419
  duration: e.transitions.duration.leavingScreen
@@ -2421,33 +2421,33 @@ const dn = (e, t) => ({
2421
2421
  overflowX: "hidden",
2422
2422
  width: `calc(${e.spacing(9)} + 1px)`,
2423
2423
  [e.breakpoints.up("sm")]: { width: `calc(${e.spacing(10)} + 1px)` }
2424
- }), ga = Z(
2425
- Sn,
2424
+ }), ba = Z(
2425
+ xn,
2426
2426
  { shouldForwardProp: (e) => !["open", "width"].includes(String(e)) }
2427
2427
  )(({ theme: e, open: t, width: n }) => ({
2428
2428
  flexShrink: 0,
2429
2429
  whiteSpace: "nowrap",
2430
2430
  boxSizing: "border-box",
2431
2431
  ...t && {
2432
- ...dn(e, n),
2433
- "& .MuiDrawer-paper": dn(e, n)
2432
+ ...fn(e, n),
2433
+ "& .MuiDrawer-paper": fn(e, n)
2434
2434
  },
2435
2435
  ...!t && {
2436
- ...fn(e),
2437
- "& .MuiDrawer-paper": fn(e)
2436
+ ...hn(e),
2437
+ "& .MuiDrawer-paper": hn(e)
2438
2438
  }
2439
- })), ba = Z(
2440
- Sn,
2439
+ })), ya = Z(
2440
+ xn,
2441
2441
  { shouldForwardProp: (e) => e !== "width" }
2442
- )(() => ({})), ya = Z("div")(({ theme: e }) => ({
2442
+ )(() => ({})), wa = Z("div")(({ theme: e }) => ({
2443
2443
  display: "flex",
2444
2444
  alignItems: "center",
2445
2445
  justifyContent: "space-between",
2446
2446
  padding: e.spacing(0, 1),
2447
2447
  // necessary for content to be below app bar
2448
2448
  ...e.mixins.toolbar
2449
- })), wa = (e) => {
2450
- const t = Ft(), n = v(), { open: r, handleDrawerClose: o } = _t(), s = n ? ga : ba, a = V("drawer.width", 280), l = V("appBar.height"), d = T("cms").getComponent("RecursiveList"), c = T("cms").getMenuItems();
2449
+ })), Sa = (e) => {
2450
+ const t = Ft(), n = v(), { open: r, handleDrawerClose: o } = _t(), s = n ? ba : ya, a = z("drawer.width", 280), l = z("appBar.height"), d = T("cms").getComponent("RecursiveList"), c = T("cms").getMenuItems();
2451
2451
  return /* @__PURE__ */ w(
2452
2452
  s,
2453
2453
  {
@@ -2464,9 +2464,9 @@ const dn = (e, t) => ({
2464
2464
  },
2465
2465
  ...e,
2466
2466
  children: [
2467
- /* @__PURE__ */ i(ya, { style: { height: l }, children: /* @__PURE__ */ i(q, { onClick: o, children: t.direction === "ltr" ? /* @__PURE__ */ i(je, {}) : /* @__PURE__ */ i(Ue, {}) }) }),
2468
- /* @__PURE__ */ i(ve, {}),
2469
- /* @__PURE__ */ i(z, { sx: { flexGrow: 1, overflowY: "auto", overflowX: "hidden" }, children: /* @__PURE__ */ i(
2467
+ /* @__PURE__ */ i(wa, { style: { height: l }, children: /* @__PURE__ */ i(q, { onClick: o, children: t.direction === "ltr" ? /* @__PURE__ */ i(Ue, {}) : /* @__PURE__ */ i(qe, {}) }) }),
2468
+ /* @__PURE__ */ i(Fe, {}),
2469
+ /* @__PURE__ */ i(H, { sx: { flexGrow: 1, overflowY: "auto", overflowX: "hidden" }, children: /* @__PURE__ */ i(
2470
2470
  d,
2471
2471
  {
2472
2472
  collapsed: !r && n,
@@ -2477,8 +2477,8 @@ const dn = (e, t) => ({
2477
2477
  ]
2478
2478
  }
2479
2479
  );
2480
- }, Sa = () => {
2481
- const e = ur(), t = V("breakpoint", "md"), n = fr(), {
2480
+ }, xa = () => {
2481
+ const e = dr(), t = z("breakpoint", "md"), n = hr(), {
2482
2482
  ["Layout.BackButton"]: r
2483
2483
  } = T("cms").getComponents();
2484
2484
  return /* @__PURE__ */ w(
@@ -2532,17 +2532,17 @@ const dn = (e, t) => ({
2532
2532
  },
2533
2533
  setIsRelation: () => {
2534
2534
  }
2535
- }), xa = (e) => {
2535
+ }), Aa = (e) => {
2536
2536
  if (!Array.isArray(e))
2537
2537
  return e;
2538
2538
  let t;
2539
2539
  return J.isEmpty(e) ? t = "" : t = e[0], t;
2540
- }, Aa = (e) => {
2540
+ }, Ca = (e) => {
2541
2541
  if (Array.isArray(e))
2542
2542
  return e;
2543
2543
  let t;
2544
2544
  return J.isEmpty(e) ? t = [] : t = [e, ""], t;
2545
- }, Ca = async (e, t, n) => {
2545
+ }, Ea = async (e, t, n) => {
2546
2546
  const r = e.getSchema().relations[t], o = we().make(r.model), s = o.getSchema().primaryKey, a = [];
2547
2547
  for (const l of n) {
2548
2548
  const d = await o.where(s, l).first();
@@ -2550,17 +2550,18 @@ const dn = (e, t) => ({
2550
2550
  }
2551
2551
  return a;
2552
2552
  };
2553
- function Ea(e, t) {
2553
+ function ka(e, t) {
2554
2554
  const n = T("filter"), { Model: r, setColumnsFilter: o } = m.useContext(Ht), [s, a] = m.useState(t.key), [l, d] = m.useState(t.operator), [c, u] = m.useState(t.type), [h, y] = m.useState(t.value), [S, b] = m.useState(t.nullable), [p, g] = m.useState(t.is_relation), A = m.useMemo(() => n.getFilterableColumns(r), [r]), x = (O) => () => {
2555
- o((R) => R.filter((D, _) => _ !== O));
2555
+ o((R) => R.filter((D, V) => V !== O));
2556
2556
  }, E = async (O) => {
2557
- const R = O.target.value, D = A.find((mr) => mr.key === R), _ = (D == null ? void 0 : D.type) ?? "text", Ee = (D == null ? void 0 : D.nullable) ?? !1, Wt = (D == null ? void 0 : D.is_relation) ?? !1;
2558
- Wt ? (d("relation"), y([])) : p && d("equals"), g(Wt), b(Ee), _ !== c && (d(
2559
- _ === "text" ? "contains" : "equals"
2560
- ), y(() => {
2557
+ var $t;
2558
+ const R = O.target.value, D = A.find((gr) => gr.key === R), V = (D == null ? void 0 : D.type) ?? "text", Ee = (D == null ? void 0 : D.nullable) ?? !1, Wt = (D == null ? void 0 : D.is_relation) ?? !1;
2559
+ d(
2560
+ (($t = n.getMatchingOperators(D)[0]) == null ? void 0 : $t.key) ?? "equals"
2561
+ ), Wt && y([]), g(Wt), b(Ee), V !== c && y(() => {
2561
2562
  if (["between", "notBetween"].includes(l))
2562
2563
  return [];
2563
- switch (n.getInputType(_)) {
2564
+ switch (n.getInputType(V)) {
2564
2565
  case "number":
2565
2566
  return 0;
2566
2567
  case "boolean":
@@ -2568,24 +2569,24 @@ function Ea(e, t) {
2568
2569
  default:
2569
2570
  return "";
2570
2571
  }
2571
- })), a(R), u(_);
2572
+ }), a(R), u(V);
2572
2573
  }, P = async (O) => {
2573
2574
  const R = O.target.value;
2574
2575
  l !== R && y((D) => {
2575
2576
  switch (R) {
2576
2577
  case "between":
2577
2578
  case "notBetween":
2578
- return Aa(D);
2579
+ return Ca(D);
2579
2580
  case "null":
2580
2581
  case "notNull":
2581
2582
  return "1";
2582
2583
  default:
2583
- return xa(D);
2584
+ return Aa(D);
2584
2585
  }
2585
2586
  }), d(R);
2586
2587
  };
2587
2588
  return m.useEffect(() => {
2588
- o((O) => O.map((D, _) => e === _ ? {
2589
+ o((O) => O.map((D, V) => e === V ? {
2589
2590
  ...D,
2590
2591
  key: s,
2591
2592
  operator: l,
@@ -2613,13 +2614,13 @@ function Ea(e, t) {
2613
2614
  handleRemoveColumn: x
2614
2615
  };
2615
2616
  }
2616
- const hn = async (e, t, n) => {
2617
+ const pn = async (e, t, n) => {
2617
2618
  const r = e.getSchema().relations[t].model, { data: o } = await we().make(r).get(), s = o.all().filter((c) => !n.find((u) => u.getKey() === c.getKey())), a = s.length, l = n.length, d = 15;
2618
2619
  return a + l > d ? W([...n, ...s.slice(0, d - l)]) : W([...n, ...s]);
2619
- }, ka = async (e, t, n = "", r) => {
2620
+ }, Ta = async (e, t, n = "", r) => {
2620
2621
  const o = e.getSchema().relations[t], s = we().make(o.model), a = s.getSchema().primaryKey, { data: l } = await s.searchBy(n).get();
2621
2622
  return W([...r, ...l]).unique(a);
2622
- }, Ta = () => {
2623
+ }, Da = () => {
2623
2624
  const e = v(), t = te(), {
2624
2625
  key: n,
2625
2626
  value: r,
@@ -2628,20 +2629,20 @@ const hn = async (e, t, n) => {
2628
2629
  () => s && c.count() === 0,
2629
2630
  [s, c]
2630
2631
  ), b = async (p, g) => {
2631
- d(g), J.isEmpty(g) || u(await ka(t, n, g, W(h)));
2632
+ d(g), J.isEmpty(g) || u(await Ta(t, n, g, W(h)));
2632
2633
  };
2633
2634
  return m.useEffect(() => {
2634
- r.length > 0 && (async () => y(await Ca(t, n, r)))();
2635
+ r.length > 0 && (async () => y(await Ea(t, n, r)))();
2635
2636
  }, []), m.useEffect(() => {
2636
2637
  let p = !0;
2637
2638
  if (S)
2638
- return (async () => p && u(await hn(t, n, h)))(), () => {
2639
+ return (async () => p && u(await pn(t, n, h)))(), () => {
2639
2640
  p = !1;
2640
2641
  };
2641
2642
  }, [S]), m.useEffect(() => {
2642
- o(h.map((p) => p.getKey())), J.isEmpty(l) ? (async () => u(await hn(t, n, h)))() : u(W([]));
2643
+ o(h.map((p) => p.getKey())), J.isEmpty(l) ? (async () => u(await pn(t, n, h)))() : u(W([]));
2643
2644
  }, [h]), /* @__PURE__ */ i(
2644
- _r,
2645
+ Hr,
2645
2646
  {
2646
2647
  sx: { width: e ? 377 : "100%" },
2647
2648
  open: s,
@@ -2662,7 +2663,7 @@ const hn = async (e, t, n) => {
2662
2663
  isOptionEqualToValue: (p, g) => p.getKey() === g.getKey(),
2663
2664
  filterOptions: (p) => p,
2664
2665
  renderInput: (p) => /* @__PURE__ */ i(
2665
- Da,
2666
+ Oa,
2666
2667
  {
2667
2668
  params: p,
2668
2669
  loading: S
@@ -2675,7 +2676,7 @@ const hn = async (e, t, n) => {
2675
2676
  multiple: !0
2676
2677
  }
2677
2678
  );
2678
- }, Da = ({ params: e, loading: t }) => {
2679
+ }, Oa = ({ params: e, loading: t }) => {
2679
2680
  const { t: n } = L();
2680
2681
  return /* @__PURE__ */ i(
2681
2682
  fe,
@@ -2685,7 +2686,7 @@ const hn = async (e, t, n) => {
2685
2686
  InputProps: {
2686
2687
  ...e.InputProps,
2687
2688
  endAdornment: /* @__PURE__ */ w(m.Fragment, { children: [
2688
- t ? /* @__PURE__ */ i(Hr, { color: "inherit", size: 20 }) : null,
2689
+ t ? /* @__PURE__ */ i(zr, { color: "inherit", size: 20 }) : null,
2689
2690
  e.InputProps.endAdornment
2690
2691
  ] })
2691
2692
  }
@@ -2710,17 +2711,17 @@ const hn = async (e, t, n) => {
2710
2711
  {
2711
2712
  type: r.getInputType(o),
2712
2713
  label: c,
2713
- value: Oe.toDateTimeLocal(Oe.parse(u)),
2714
+ value: Re.toDateTimeLocal(Re.parse(u)),
2714
2715
  onChange: h,
2715
2716
  size: "small",
2716
2717
  sx: { width: n ? d : "100%" }
2717
2718
  }
2718
2719
  );
2719
- }, Oa = () => {
2720
+ }, Ra = () => {
2720
2721
  const e = v(), { value: t, setValue: n } = m.useContext(ge);
2721
2722
  return /* @__PURE__ */ w(B, { children: [
2722
2723
  /* @__PURE__ */ i(
2723
- zr,
2724
+ Vr,
2724
2725
  {
2725
2726
  checked: t,
2726
2727
  onChange: (o) => {
@@ -2731,7 +2732,7 @@ const hn = async (e, t, n) => {
2731
2732
  size: "small"
2732
2733
  }
2733
2734
  ),
2734
- e && /* @__PURE__ */ i(z, { width: 325 })
2735
+ e && /* @__PURE__ */ i(H, { width: 325 })
2735
2736
  ] });
2736
2737
  }, nt = ({ index: e = null }) => {
2737
2738
  const { t } = L(), n = v(), r = T("filter"), {
@@ -2764,7 +2765,7 @@ const hn = async (e, t, n) => {
2764
2765
  [r]
2765
2766
  );
2766
2767
  if (["null", "notNull"].includes(r))
2767
- return e ? /* @__PURE__ */ i(z, { width: 230 }) : null;
2768
+ return e ? /* @__PURE__ */ i(H, { width: 230 }) : null;
2768
2769
  if (o)
2769
2770
  switch (t.getInputType(n)) {
2770
2771
  case "date":
@@ -2784,14 +2785,14 @@ const hn = async (e, t, n) => {
2784
2785
  case "datetime-local":
2785
2786
  return /* @__PURE__ */ i(tt, {});
2786
2787
  case "autocomplete":
2787
- return /* @__PURE__ */ i(Ta, {});
2788
+ return /* @__PURE__ */ i(Da, {});
2788
2789
  case "boolean":
2789
- return /* @__PURE__ */ i(Oa, {});
2790
+ return /* @__PURE__ */ i(Ra, {});
2790
2791
  default:
2791
2792
  return /* @__PURE__ */ i(nt, {});
2792
2793
  }
2793
- }, Ra = ({ index: e, column: t }) => {
2794
- const { t: n } = L(), r = v(), o = V("breakpoint", "md"), s = T("filter"), a = m.useMemo(() => s.getMatchingOperators(t), [t]), {
2794
+ }, Pa = ({ index: e, column: t }) => {
2795
+ const { t: n } = L(), r = v(), o = z("breakpoint", "md"), s = T("filter"), a = m.useMemo(() => s.getMatchingOperators(t), [t]), {
2795
2796
  columns: l,
2796
2797
  key: d,
2797
2798
  setKey: c,
@@ -2806,7 +2807,7 @@ const hn = async (e, t, n) => {
2806
2807
  handleKey: x,
2807
2808
  handleOperator: E,
2808
2809
  handleRemoveColumn: P
2809
- } = Ea(e, t), O = ["boolean"].includes(s.getInputType(y));
2810
+ } = ka(e, t), O = ["boolean"].includes(s.getInputType(y));
2810
2811
  return /* @__PURE__ */ i(
2811
2812
  ge.Provider,
2812
2813
  {
@@ -2872,7 +2873,7 @@ const hn = async (e, t, n) => {
2872
2873
  }
2873
2874
  ),
2874
2875
  /* @__PURE__ */ i(
2875
- Fe,
2876
+ Le,
2876
2877
  {
2877
2878
  labelId: "filter-column-select-label",
2878
2879
  id: "filter-column-select",
@@ -2924,7 +2925,7 @@ const hn = async (e, t, n) => {
2924
2925
  }
2925
2926
  ),
2926
2927
  /* @__PURE__ */ i(
2927
- Fe,
2928
+ Le,
2928
2929
  {
2929
2930
  labelId: "filter-operator-select-label",
2930
2931
  id: "filter-operator-select",
@@ -2961,8 +2962,8 @@ const hn = async (e, t, n) => {
2961
2962
  )
2962
2963
  }
2963
2964
  );
2964
- }, pn = ({ dialog: e = !1 }) => {
2965
- const { t } = L(), n = v(), r = V("breakpoint", "md"), o = T("filter"), {
2965
+ }, mn = ({ dialog: e = !1 }) => {
2966
+ const { t } = L(), n = v(), r = z("breakpoint", "md"), o = T("filter"), {
2966
2967
  columnsFilter: s,
2967
2968
  setColumnsFilter: a,
2968
2969
  handleApplyFilters: l,
@@ -2982,7 +2983,7 @@ const hn = async (e, t, n) => {
2982
2983
  ]);
2983
2984
  };
2984
2985
  return /* @__PURE__ */ w(
2985
- z,
2986
+ H,
2986
2987
  {
2987
2988
  sx: {
2988
2989
  minWidth: { [r]: 567.5 },
@@ -2993,14 +2994,14 @@ const hn = async (e, t, n) => {
2993
2994
  const S = h == y.length - 1;
2994
2995
  return /* @__PURE__ */ w(B, { children: [
2995
2996
  /* @__PURE__ */ i(
2996
- Ra,
2997
+ Pa,
2997
2998
  {
2998
2999
  index: h,
2999
3000
  column: u
3000
3001
  },
3001
3002
  `row_${u.key}`
3002
3003
  ),
3003
- !n && /* @__PURE__ */ i(ve, { sx: {
3004
+ !n && /* @__PURE__ */ i(Fe, { sx: {
3004
3005
  mt: S ? 0.625 : 1.25,
3005
3006
  mb: S ? 0.75 : 1.5,
3006
3007
  ...S && {
@@ -3030,7 +3031,7 @@ const hn = async (e, t, n) => {
3030
3031
  onClick: c,
3031
3032
  color: "primary",
3032
3033
  sx: { fontSize: 32 },
3033
- children: /* @__PURE__ */ i(Dn, { fontSize: "inherit" })
3034
+ children: /* @__PURE__ */ i(On, { fontSize: "inherit" })
3034
3035
  }
3035
3036
  )
3036
3037
  }
@@ -3059,8 +3060,8 @@ const hn = async (e, t, n) => {
3059
3060
  }
3060
3061
  );
3061
3062
  };
3062
- function Pa(e, t) {
3063
- const n = [], r = mn.toObject(t);
3063
+ function va(e, t) {
3064
+ const n = [], r = gn.toObject(t);
3064
3065
  return !("where" in r) || J.isEmpty(r.where) ? [] : (Object.entries(r.where).forEach(([o, s]) => {
3065
3066
  let [a, l = "equals"] = o.split(":");
3066
3067
  const d = e.find((u) => u.key === a);
@@ -3074,7 +3075,7 @@ function Pa(e, t) {
3074
3075
  break;
3075
3076
  }
3076
3077
  case "datetime-local": {
3077
- Array.isArray(s) ? c = s.map((u) => Oe.toDateTimeLocal(u)) : c = Oe.toDateTimeLocal(s);
3078
+ Array.isArray(s) ? c = s.map((u) => Re.toDateTimeLocal(u)) : c = Re.toDateTimeLocal(s);
3078
3079
  break;
3079
3080
  }
3080
3081
  case "boolean": {
@@ -3092,7 +3093,7 @@ function Pa(e, t) {
3092
3093
  });
3093
3094
  }), n);
3094
3095
  }
3095
- const va = (e) => {
3096
+ const Fa = (e) => {
3096
3097
  const t = T("filter"), n = new URLSearchParams();
3097
3098
  return e.forEach((r) => {
3098
3099
  const { key: o, operator: s, value: a, type: l } = r;
@@ -3119,8 +3120,8 @@ const va = (e) => {
3119
3120
  n.set(`where[${o}${d}]`, c);
3120
3121
  }
3121
3122
  }), n;
3122
- }, Fa = () => {
3123
- const { t: e } = L(), t = T("filter"), n = v(), r = te(), [o, s] = G(), a = m.useMemo(() => "where" in mn.toObject(o), [o]), [l, d] = m.useState(null), [c, u] = m.useState([]), h = !!l, y = m.useMemo(() => t.getFilterableColumns(r), [r]), S = (x) => {
3123
+ }, La = () => {
3124
+ const { t: e } = L(), t = T("filter"), n = v(), r = te(), [o, s] = G(), a = m.useMemo(() => "where" in gn.toObject(o), [o]), [l, d] = m.useState(null), [c, u] = m.useState([]), h = !!l, y = m.useMemo(() => t.getFilterableColumns(r), [r]), S = (x) => {
3124
3125
  d(x.currentTarget);
3125
3126
  }, b = () => {
3126
3127
  d(null), setTimeout(() => {
@@ -3128,7 +3129,7 @@ const va = (e) => {
3128
3129
  }, 300);
3129
3130
  }, p = () => {
3130
3131
  g();
3131
- const x = va(c);
3132
+ const x = Fa(c);
3132
3133
  s(x, { replace: !0 }), b();
3133
3134
  }, g = () => {
3134
3135
  s((x) => {
@@ -3143,7 +3144,7 @@ const va = (e) => {
3143
3144
  }, 300);
3144
3145
  };
3145
3146
  return m.useEffect(() => {
3146
- const x = Pa(y, o);
3147
+ const x = va(y, o);
3147
3148
  u(x);
3148
3149
  }, [y, o, l]), /* @__PURE__ */ w(
3149
3150
  Ht.Provider,
@@ -3173,13 +3174,13 @@ const va = (e) => {
3173
3174
  color: "secondary",
3174
3175
  variant: "dot",
3175
3176
  invisible: !a,
3176
- children: /* @__PURE__ */ i(On, {})
3177
+ children: /* @__PURE__ */ i(Rn, {})
3177
3178
  }
3178
3179
  )
3179
3180
  }
3180
3181
  ),
3181
3182
  n ? /* @__PURE__ */ i(
3182
- Vr,
3183
+ Wr,
3183
3184
  {
3184
3185
  id: "model-filter-popover",
3185
3186
  open: h,
@@ -3189,7 +3190,7 @@ const va = (e) => {
3189
3190
  vertical: "bottom",
3190
3191
  horizontal: "left"
3191
3192
  },
3192
- children: /* @__PURE__ */ i(pn, {})
3193
+ children: /* @__PURE__ */ i(mn, {})
3193
3194
  }
3194
3195
  ) : /* @__PURE__ */ w(
3195
3196
  Et,
@@ -3205,11 +3206,11 @@ const va = (e) => {
3205
3206
  {
3206
3207
  onClick: b,
3207
3208
  sx: { position: "absolute", right: 8, top: 8 },
3208
- children: /* @__PURE__ */ i(Ne, {})
3209
+ children: /* @__PURE__ */ i(je, {})
3209
3210
  }
3210
3211
  )
3211
3212
  ] }),
3212
- /* @__PURE__ */ i(Tt, { dividers: !0, children: /* @__PURE__ */ i(pn, { dialog: !0 }) }),
3213
+ /* @__PURE__ */ i(Tt, { dividers: !0, children: /* @__PURE__ */ i(mn, { dialog: !0 }) }),
3213
3214
  /* @__PURE__ */ w(Dt, { children: [
3214
3215
  /* @__PURE__ */ i(
3215
3216
  M,
@@ -3248,7 +3249,7 @@ function Vt() {
3248
3249
  const {
3249
3250
  selected: e,
3250
3251
  items: t
3251
- } = m.useContext(zt), n = yn(e), r = () => {
3252
+ } = m.useContext(zt), n = wn(e), r = () => {
3252
3253
  e.splice(0, e.count());
3253
3254
  }, o = (c) => {
3254
3255
  const u = e.search(c);
@@ -3279,7 +3280,7 @@ function Vt() {
3279
3280
  function ae() {
3280
3281
  return m.useContext(zt);
3281
3282
  }
3282
- function La(e) {
3283
+ function Ba(e) {
3283
3284
  const [t, n] = m.useState(""), { selected: r } = Vt(), { t: o } = L(), s = qt(), { massActions: a } = ae(), l = (c) => {
3284
3285
  n(c.target.value);
3285
3286
  };
@@ -3303,7 +3304,7 @@ function La(e) {
3303
3304
  children: [
3304
3305
  /* @__PURE__ */ i(it, { id: "mass-actions-select-label", children: d }),
3305
3306
  /* @__PURE__ */ w(
3306
- Fe,
3307
+ Le,
3307
3308
  {
3308
3309
  labelId: "mass-actions-select-label",
3309
3310
  id: "mass-actions-select",
@@ -3346,7 +3347,7 @@ function La(e) {
3346
3347
  }
3347
3348
  );
3348
3349
  }
3349
- const Ba = () => {
3350
+ const Ia = () => {
3350
3351
  const { handleDrawerOpen: e } = _t();
3351
3352
  return /* @__PURE__ */ i(
3352
3353
  q,
@@ -3356,13 +3357,13 @@ const Ba = () => {
3356
3357
  edge: "start",
3357
3358
  onClick: e,
3358
3359
  sx: { mr: { md: 2 } },
3359
- children: /* @__PURE__ */ i(Rn, {})
3360
+ children: /* @__PURE__ */ i(Pn, {})
3360
3361
  }
3361
3362
  );
3362
- }, We = m.forwardRef(({ to: e, children: t, ...n }, r) => /* @__PURE__ */ i(
3363
+ }, $e = m.forwardRef(({ to: e, children: t, ...n }, r) => /* @__PURE__ */ i(
3363
3364
  lt,
3364
3365
  {
3365
- component: Pe,
3366
+ component: ve,
3366
3367
  to: e,
3367
3368
  ref: r,
3368
3369
  sx: { textDecoration: "none" },
@@ -3370,13 +3371,13 @@ const Ba = () => {
3370
3371
  children: t
3371
3372
  }
3372
3373
  ));
3373
- We.displayName = "Link";
3374
- const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */ i(B, { children: {
3375
- "&laquo; Previous": /* @__PURE__ */ i(je, {}),
3376
- "Next &raquo;": /* @__PURE__ */ i(Ue, {}),
3377
- "Last &raquo;": /* @__PURE__ */ i(Pn, {}),
3378
- "&laquo; First": /* @__PURE__ */ i(vn, {})
3379
- }[e] || e }) : /* @__PURE__ */ i(B, { children: e }), Ma = ({ variant: e = "default", ...t }) => {
3374
+ $e.displayName = "Link";
3375
+ const Ma = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */ i(B, { children: {
3376
+ "&laquo; Previous": /* @__PURE__ */ i(Ue, {}),
3377
+ "Next &raquo;": /* @__PURE__ */ i(qe, {}),
3378
+ "Last &raquo;": /* @__PURE__ */ i(vn, {}),
3379
+ "&laquo; First": /* @__PURE__ */ i(Fn, {})
3380
+ }[e] || e }) : /* @__PURE__ */ i(B, { children: e }), Na = ({ variant: e = "default", ...t }) => {
3380
3381
  const n = e === "default", [r, o] = G(), [s, a] = m.useState(r.get("page") || "1"), {
3381
3382
  links: l,
3382
3383
  meta: {
@@ -3396,7 +3397,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3396
3397
  { url: y, label: "&laquo; Previous", active: !1 },
3397
3398
  {
3398
3399
  element: /* @__PURE__ */ i(
3399
- Ar,
3400
+ Cr,
3400
3401
  {
3401
3402
  onSubmit: p,
3402
3403
  preventScrollReset: !0,
@@ -3459,15 +3460,15 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3459
3460
  borderRadius: "50%"
3460
3461
  },
3461
3462
  disabled: !A.url,
3462
- component: We,
3463
+ component: $e,
3463
3464
  to: A.url,
3464
- children: /* @__PURE__ */ i(Ia, { label: A.label })
3465
+ children: /* @__PURE__ */ i(Ma, { label: A.label })
3465
3466
  },
3466
3467
  x
3467
3468
  ))
3468
3469
  }
3469
3470
  );
3470
- }, Na = () => {
3471
+ }, ja = () => {
3471
3472
  const { t: e } = L(), {
3472
3473
  meta: {
3473
3474
  total: t = 0,
@@ -3480,7 +3481,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3480
3481
  to: r,
3481
3482
  total: t
3482
3483
  }) });
3483
- }, ja = () => {
3484
+ }, Ua = () => {
3484
3485
  const { t: e } = L(), {
3485
3486
  meta: {
3486
3487
  per_page: t = 15
@@ -3507,7 +3508,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3507
3508
  ":"
3508
3509
  ] }),
3509
3510
  /* @__PURE__ */ i(
3510
- Fe,
3511
+ Le,
3511
3512
  {
3512
3513
  value: t,
3513
3514
  onChange: r,
@@ -3539,7 +3540,7 @@ const Ia = ({ label: e }) => isNaN(e) || isNaN(parseFloat(e)) ? /* @__PURE__ */
3539
3540
  }
3540
3541
  );
3541
3542
  };
3542
- function Ua(e, t) {
3543
+ function qa(e, t) {
3543
3544
  const [n, r] = m.useState(!1);
3544
3545
  return m.useEffect(() => {
3545
3546
  const o = /* @__PURE__ */ new Set(), s = (l) => {
@@ -3552,25 +3553,25 @@ function Ua(e, t) {
3552
3553
  };
3553
3554
  }, [e, t]), n;
3554
3555
  }
3555
- const qa = Z(fe)(({ theme: e }) => ({
3556
+ const _a = Z(fe)(({ theme: e }) => ({
3556
3557
  "& .MuiInputBase-root": {
3557
3558
  backgroundColor: e.palette.background.paper
3558
3559
  }
3559
3560
  // transition: 'width 250ms ease-in-out',
3560
- })), _a = yr.throttle((e, t) => {
3561
+ })), Ha = wr.throttle((e, t) => {
3561
3562
  t((n) => {
3562
3563
  const r = new URLSearchParams(n);
3563
3564
  return e ? r.set("q", e) : r.delete("q"), r;
3564
3565
  });
3565
- }, 500), Ha = () => {
3566
+ }, 500), za = () => {
3566
3567
  const [e, t] = G(), n = e.get("q") || "", [r, o] = m.useState(n), [s, a] = m.useState(!1), l = m.useRef(null), { t: d } = L();
3567
3568
  m.useEffect(() => {
3568
3569
  o(n);
3569
3570
  }, [n]);
3570
3571
  const c = (y) => {
3571
- o(y.target.value), _a(y.target.value, t);
3572
+ o(y.target.value), Ha(y.target.value, t);
3572
3573
  }, u = v();
3573
- Ua(["Control", "/"], () => {
3574
+ qa(["Control", "/"], () => {
3574
3575
  l.current.focus();
3575
3576
  });
3576
3577
  const h = u ? 300 : "calc(100vw - 58px)";
@@ -3589,7 +3590,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3589
3590
  }
3590
3591
  ) }),
3591
3592
  /* @__PURE__ */ i(
3592
- xn,
3593
+ An,
3593
3594
  {
3594
3595
  orientation: "horizontal",
3595
3596
  in: u || s,
@@ -3599,7 +3600,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3599
3600
  },
3600
3601
  unmountOnExit: !1,
3601
3602
  children: /* @__PURE__ */ i(
3602
- qa,
3603
+ _a,
3603
3604
  {
3604
3605
  placeholder: u ? `(Ctrl + /) ${d("Search...")}` : `${d("Search...")}`,
3605
3606
  value: r,
@@ -3618,7 +3619,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3618
3619
  }
3619
3620
  )
3620
3621
  ] });
3621
- }, za = ({ children: e, ...t }) => /* @__PURE__ */ i(
3622
+ }, Va = ({ children: e, ...t }) => /* @__PURE__ */ i(
3622
3623
  ee,
3623
3624
  {
3624
3625
  sx: { width: "1px" },
@@ -3626,7 +3627,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3626
3627
  ...t,
3627
3628
  children: e
3628
3629
  }
3629
- ), Va = () => {
3630
+ ), Wa = () => {
3630
3631
  const { t: e } = L(), [t, n] = G(), {
3631
3632
  columns: r,
3632
3633
  Model: o
@@ -3656,7 +3657,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3656
3657
  color: "secondary",
3657
3658
  variant: "dot",
3658
3659
  invisible: !a,
3659
- children: /* @__PURE__ */ i(Fn, {})
3660
+ children: /* @__PURE__ */ i(Ln, {})
3660
3661
  }
3661
3662
  ) }),
3662
3663
  /* @__PURE__ */ w(Et, { open: y, onClose: p, fullWidth: !0, children: [
@@ -3667,13 +3668,13 @@ const qa = Z(fe)(({ theme: e }) => ({
3667
3668
  {
3668
3669
  onClick: p,
3669
3670
  sx: { position: "absolute", right: 8, top: 8 },
3670
- children: /* @__PURE__ */ i(Ne, {})
3671
+ children: /* @__PURE__ */ i(je, {})
3671
3672
  }
3672
3673
  )
3673
3674
  ] }),
3674
3675
  /* @__PURE__ */ w(Tt, { dividers: !0, children: [
3675
3676
  /* @__PURE__ */ w(
3676
- $t,
3677
+ Kt,
3677
3678
  {
3678
3679
  value: d,
3679
3680
  onChange: (x) => {
@@ -3681,7 +3682,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3681
3682
  },
3682
3683
  children: [
3683
3684
  /* @__PURE__ */ i($, { variant: "caption", children: e("Column") }),
3684
- /* @__PURE__ */ i(ve, {}),
3685
+ /* @__PURE__ */ i(Fe, {}),
3685
3686
  W(r).whereStrict("sortable", "!=", !1).map(({ key: x, label: E }) => /* @__PURE__ */ i(
3686
3687
  Ke,
3687
3688
  {
@@ -3695,9 +3696,9 @@ const qa = Z(fe)(({ theme: e }) => ({
3695
3696
  }
3696
3697
  ),
3697
3698
  /* @__PURE__ */ i($, { variant: "caption", children: e("Direction") }),
3698
- /* @__PURE__ */ i(ve, {}),
3699
+ /* @__PURE__ */ i(Fe, {}),
3699
3700
  /* @__PURE__ */ w(
3700
- $t,
3701
+ Kt,
3701
3702
  {
3702
3703
  value: u,
3703
3704
  onChange: (x) => h(x.target.value),
@@ -3709,7 +3710,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3709
3710
  control: /* @__PURE__ */ i(Ye, {}),
3710
3711
  label: /* @__PURE__ */ w(B, { children: [
3711
3712
  e("Ascending"),
3712
- /* @__PURE__ */ i(Ln, {})
3713
+ /* @__PURE__ */ i(Bn, {})
3713
3714
  ] })
3714
3715
  }
3715
3716
  ),
@@ -3720,7 +3721,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3720
3721
  control: /* @__PURE__ */ i(Ye, {}),
3721
3722
  label: /* @__PURE__ */ w(B, { children: [
3722
3723
  e("Descending"),
3723
- /* @__PURE__ */ i(Bn, {})
3724
+ /* @__PURE__ */ i(In, {})
3724
3725
  ] })
3725
3726
  }
3726
3727
  )
@@ -3734,7 +3735,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3734
3735
  ] })
3735
3736
  ] })
3736
3737
  ] });
3737
- }, Wa = ({ items: e, loading: t, children: n, error: r }) => {
3738
+ }, $a = ({ items: e, loading: t, children: n, error: r }) => {
3738
3739
  const o = te(), s = m.useMemo(() => W([]), [o, e]), [a] = G(), l = a.get("tab") ?? "all", d = m.useMemo(() => [
3739
3740
  {
3740
3741
  key: o.getSchema().labeledBy,
@@ -3755,21 +3756,21 @@ const qa = Z(fe)(({ theme: e }) => ({
3755
3756
  Model: o
3756
3757
  };
3757
3758
  return /* @__PURE__ */ i(zt.Provider, { value: b, children: n });
3758
- }, $a = ({
3759
+ }, Ka = ({
3759
3760
  items: e,
3760
3761
  loading: t,
3761
3762
  error: n,
3762
3763
  children: r,
3763
3764
  ...o
3764
3765
  }) => /* @__PURE__ */ i(
3765
- Wa,
3766
+ $a,
3766
3767
  {
3767
3768
  items: e,
3768
3769
  loading: t,
3769
3770
  error: n,
3770
- children: /* @__PURE__ */ i(Wr, { component: Ot, children: /* @__PURE__ */ i($r, { ...o, children: r }) })
3771
+ children: /* @__PURE__ */ i($r, { component: Ot, children: /* @__PURE__ */ i(Kr, { ...o, children: r }) })
3771
3772
  }
3772
- ), Ka = ({ children: e, ...t }) => {
3773
+ ), Ya = ({ children: e, ...t }) => {
3773
3774
  const {
3774
3775
  massActions: n,
3775
3776
  columns: r,
@@ -3789,7 +3790,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3789
3790
  return x.set("order_by", `${g}:asc`), x;
3790
3791
  });
3791
3792
  };
3792
- return /* @__PURE__ */ w(Kr, { ...t, children: [
3793
+ return /* @__PURE__ */ w(Yr, { ...t, children: [
3793
3794
  e,
3794
3795
  s && /* @__PURE__ */ w(he, { children: [
3795
3796
  n.length > 0 && /* @__PURE__ */ i(h, { children: /* @__PURE__ */ i(
@@ -3807,14 +3808,14 @@ const qa = Z(fe)(({ theme: e }) => ({
3807
3808
  sortDirection: x && S === g && b || !1,
3808
3809
  ...E,
3809
3810
  children: /* @__PURE__ */ w(
3810
- Yr,
3811
+ Jr,
3811
3812
  {
3812
3813
  active: x && S === g,
3813
3814
  direction: b,
3814
3815
  onClick: p(g),
3815
3816
  children: [
3816
3817
  A,
3817
- x && S === g ? /* @__PURE__ */ i(z, { component: "span", sx: { visibility: "hidden", display: "none" }, children: b === "desc" ? "sorted descending" : "sorted ascending" }) : null
3818
+ x && S === g ? /* @__PURE__ */ i(H, { component: "span", sx: { visibility: "hidden", display: "none" }, children: b === "desc" ? "sorted descending" : "sorted ascending" }) : null
3818
3819
  ]
3819
3820
  }
3820
3821
  )
@@ -3824,7 +3825,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3824
3825
  /* @__PURE__ */ i(h, {})
3825
3826
  ] })
3826
3827
  ] });
3827
- }, Ya = () => {
3828
+ }, Ja = () => {
3828
3829
  const {
3829
3830
  massActions: e,
3830
3831
  columns: t,
@@ -3835,14 +3836,14 @@ const qa = Z(fe)(({ theme: e }) => ({
3835
3836
  return /* @__PURE__ */ i(B, { children: Array.from({ length: s }).map((a, l) => /* @__PURE__ */ w(he, { children: [
3836
3837
  e.length > 0 && /* @__PURE__ */ i(o, { children: /* @__PURE__ */ i(Pt, {}) }),
3837
3838
  r && t.map(({ key: d, label: c, sortable: u, ...h }, y) => /* @__PURE__ */ i(ee, { ...h, children: /* @__PURE__ */ i(
3838
- Kt,
3839
+ Yt,
3839
3840
  {
3840
3841
  variant: "text",
3841
3842
  height: 24
3842
3843
  }
3843
3844
  ) }, y)),
3844
3845
  !r && /* @__PURE__ */ i(ee, { sx: { px: 0 }, children: Array.from({ length: t.length }).map((d, c) => /* @__PURE__ */ i(
3845
- Kt,
3846
+ Yt,
3846
3847
  {
3847
3848
  variant: "text",
3848
3849
  width: "100%",
@@ -3852,7 +3853,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3852
3853
  )) }),
3853
3854
  /* @__PURE__ */ i(o, { children: /* @__PURE__ */ i(q, { children: /* @__PURE__ */ i(vt, {}) }) })
3854
3855
  ] }, l)) });
3855
- }, Ja = ({ children: e, ...t }) => {
3856
+ }, Ga = ({ children: e, ...t }) => {
3856
3857
  const n = te(), { t: r } = L(), {
3857
3858
  items: o,
3858
3859
  loading: s,
@@ -3860,7 +3861,7 @@ const qa = Z(fe)(({ theme: e }) => ({
3860
3861
  } = ae(), {
3861
3862
  ["ModelIndex.StaticActions"]: l
3862
3863
  } = T("cms").getComponents(), d = m.isValidElement(e) ? e : (o || W([])).map(e);
3863
- return /* @__PURE__ */ i(Jr, { ...t, children: s || !(o != null && o.every((c) => c.getType() === n.getSchemaName())) ? /* @__PURE__ */ i(Ya, {}) : o && o.count() ? d : /* @__PURE__ */ i(he, { children: /* @__PURE__ */ w(ee, { colSpan: a, sx: { textAlign: "center", py: 10 }, children: [
3864
+ return /* @__PURE__ */ i(Gr, { ...t, children: s || !(o != null && o.every((c) => c.getType() === n.getSchemaName())) ? /* @__PURE__ */ i(Ja, {}) : o && o.count() ? d : /* @__PURE__ */ i(he, { children: /* @__PURE__ */ w(ee, { colSpan: a, sx: { textAlign: "center", py: 10 }, children: [
3864
3865
  /* @__PURE__ */ i($, { children: r("No :model found", {
3865
3866
  model: n.plural().toLocaleLowerCase()
3866
3867
  }) }),
@@ -3868,19 +3869,19 @@ const qa = Z(fe)(({ theme: e }) => ({
3868
3869
  /* @__PURE__ */ i(l, {})
3869
3870
  ] }) }) });
3870
3871
  };
3871
- class Ga {
3872
+ class Za {
3872
3873
  getFacadeAccessor() {
3873
3874
  return "cms";
3874
3875
  }
3875
3876
  }
3876
- const I = St(Ga, xt), de = Z($)(() => ({
3877
+ const I = St(Za, xt), de = Z($)(() => ({
3877
3878
  whiteSpace: "nowrap",
3878
3879
  overflow: "hidden",
3879
3880
  textOverflow: "ellipsis",
3880
3881
  "& label": {
3881
3882
  fontWeight: "bold"
3882
3883
  }
3883
- })), Za = ({ content: e }) => ["string", "number"].includes(typeof e) ? /* @__PURE__ */ i(de, { children: e }) : e instanceof Date ? /* @__PURE__ */ i(de, { children: e.toLocaleString(oe("app.locale", "en")) }) : typeof e == "object" && !m.isValidElement(e) ? /* @__PURE__ */ i(de, { children: JSON.stringify(e) }) : /* @__PURE__ */ i(m.Fragment, { children: e }), Xa = ({ label: e, content: t }) => ["string", "number"].includes(typeof t) ? /* @__PURE__ */ w(de, { children: [
3884
+ })), Xa = ({ content: e }) => ["string", "number"].includes(typeof e) ? /* @__PURE__ */ i(de, { children: e }) : e instanceof Date ? /* @__PURE__ */ i(de, { children: e.toLocaleString(oe("app.locale", "en")) }) : typeof e == "object" && !m.isValidElement(e) ? /* @__PURE__ */ i(de, { children: JSON.stringify(e) }) : /* @__PURE__ */ i(m.Fragment, { children: e }), Qa = ({ label: e, content: t }) => ["string", "number"].includes(typeof t) ? /* @__PURE__ */ w(de, { children: [
3884
3885
  /* @__PURE__ */ w("label", { children: [
3885
3886
  e,
3886
3887
  ":"
@@ -3907,7 +3908,7 @@ const I = St(Ga, xt), de = Z($)(() => ({
3907
3908
  ] }) }),
3908
3909
  " ",
3909
3910
  t
3910
- ] }), Qa = ({ item: e, ...t }) => {
3911
+ ] }), ei = ({ item: e, ...t }) => {
3911
3912
  const n = v(), r = At(), o = te(), { massActions: s, columns: a } = ae(), l = m.useMemo(() => a.map((y) => ({
3912
3913
  ...y,
3913
3914
  content: I[`model${k.studly(e.getType())}Get${k.studly(y.key)}Content`](J.get(e, y.key), e)
@@ -3942,7 +3943,7 @@ const I = St(Ga, xt), de = Z($)(() => ({
3942
3943
  e.deletedAt || r(`/${k.kebab(o.plural())}/${e.getKey()}`);
3943
3944
  },
3944
3945
  children: /* @__PURE__ */ i(
3945
- Za,
3946
+ Xa,
3946
3947
  {
3947
3948
  label: S,
3948
3949
  content: p
@@ -3958,22 +3959,22 @@ const I = St(Ga, xt), de = Z($)(() => ({
3958
3959
  onClick: () => {
3959
3960
  e.deletedAt || r(`/${k.kebab(o.plural())}/${e.getKey()}`);
3960
3961
  },
3961
- children: l.map(({ key: y, ...S }) => /* @__PURE__ */ i(Xa, { ...S }, y))
3962
+ children: l.map(({ key: y, ...S }) => /* @__PURE__ */ i(Qa, { ...S }, y))
3962
3963
  }
3963
3964
  ),
3964
3965
  /* @__PURE__ */ i(d, { children: /* @__PURE__ */ i(c, { item: e }) })
3965
3966
  ]
3966
3967
  }
3967
3968
  );
3968
- }, ei = ({ children: e, ...t }) => {
3969
+ }, ti = ({ children: e, ...t }) => {
3969
3970
  const {
3970
3971
  columnCount: n
3971
- } = ae(), r = v(), o = V("breakpoint", "md"), {
3972
+ } = ae(), r = v(), o = z("breakpoint", "md"), {
3972
3973
  ["ModelIndex.Pagination"]: s,
3973
3974
  ["ModelIndex.PaginationDetails"]: a,
3974
3975
  ["ModelIndex.PerPageSwitch"]: l
3975
3976
  } = T("cms").getComponents();
3976
- return /* @__PURE__ */ w(Gr, { ...t, children: [
3977
+ return /* @__PURE__ */ w(Zr, { ...t, children: [
3977
3978
  /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i(ee, { colSpan: n, children: /* @__PURE__ */ w(
3978
3979
  N,
3979
3980
  {
@@ -4008,7 +4009,7 @@ const I = St(Ga, xt), de = Z($)(() => ({
4008
4009
  ) }) }),
4009
4010
  e
4010
4011
  ] });
4011
- }, ti = () => {
4012
+ }, ni = () => {
4012
4013
  const {
4013
4014
  columnCount: e
4014
4015
  } = ae(), {
@@ -4017,7 +4018,7 @@ const I = St(Ga, xt), de = Z($)(() => ({
4017
4018
  ["ModelIndex.Sort"]: r,
4018
4019
  ["ModelIndex.Pagination"]: o
4019
4020
  // ['ModelIndex.PaginationDetails']: PaginationDetails,
4020
- } = T("cms").getComponents(), s = v(), a = V("breakpoint", "md");
4021
+ } = T("cms").getComponents(), s = v(), a = z("breakpoint", "md");
4021
4022
  return /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i(ee, { colSpan: e, sx: { p: 1 }, children: /* @__PURE__ */ w(
4022
4023
  N,
4023
4024
  {
@@ -4058,7 +4059,7 @@ const I = St(Ga, xt), de = Z($)(() => ({
4058
4059
  }
4059
4060
  ) }) });
4060
4061
  };
4061
- function ni() {
4062
+ function ri() {
4062
4063
  const e = te(), { t } = L(), [n, r] = G(), o = n.get("tab") || "all", s = (d, c) => {
4063
4064
  r(() => {
4064
4065
  const u = new URLSearchParams();
@@ -4069,8 +4070,8 @@ function ni() {
4069
4070
  `model${k.studly(e.getSchemaName())}Tabs`,
4070
4071
  a
4071
4072
  );
4072
- return l.length === 0 ? null : /* @__PURE__ */ i(z, { sx: { maxWidth: { xs: 320, sm: 480 }, bgcolor: "background.paper" }, children: /* @__PURE__ */ w(
4073
- Zr,
4073
+ return l.length === 0 ? null : /* @__PURE__ */ i(H, { sx: { maxWidth: { xs: 320, sm: 480 }, bgcolor: "background.paper" }, children: /* @__PURE__ */ w(
4074
+ Xr,
4074
4075
  {
4075
4076
  value: o,
4076
4077
  onChange: s,
@@ -4080,14 +4081,14 @@ function ni() {
4080
4081
  allowScrollButtonsMobile: !0,
4081
4082
  children: [
4082
4083
  /* @__PURE__ */ i(
4083
- Yt,
4084
+ Jt,
4084
4085
  {
4085
4086
  label: t("All"),
4086
4087
  value: "all"
4087
4088
  }
4088
4089
  ),
4089
4090
  l.map((d) => /* @__PURE__ */ i(
4090
- Yt,
4091
+ Jt,
4091
4092
  {
4092
4093
  label: d.label,
4093
4094
  value: d.value
@@ -4098,13 +4099,13 @@ function ni() {
4098
4099
  }
4099
4100
  ) });
4100
4101
  }
4101
- function ri(e) {
4102
+ function oi(e) {
4102
4103
  const {
4103
4104
  parts: t,
4104
4105
  ...n
4105
4106
  } = e;
4106
4107
  return /* @__PURE__ */ w(
4107
- Xr,
4108
+ Qr,
4108
4109
  {
4109
4110
  "aria-label": "breadcrumb",
4110
4111
  ...n,
@@ -4115,7 +4116,7 @@ function ri(e) {
4115
4116
  underline: "hover",
4116
4117
  color: "inherit",
4117
4118
  to: "/",
4118
- component: Pe,
4119
+ component: ve,
4119
4120
  children: oe("app.name", "Laravel")
4120
4121
  }
4121
4122
  ),
@@ -4125,7 +4126,7 @@ function ri(e) {
4125
4126
  underline: "hover",
4126
4127
  color: "inherit",
4127
4128
  to: o,
4128
- component: Pe,
4129
+ component: ve,
4129
4130
  children: r
4130
4131
  },
4131
4132
  s
@@ -4141,14 +4142,14 @@ function ri(e) {
4141
4142
  }
4142
4143
  );
4143
4144
  }
4144
- const hr = ({
4145
+ const pr = ({
4145
4146
  collapsed: e = !1,
4146
4147
  items: t,
4147
4148
  onClick: n,
4148
4149
  ...r
4149
4150
  }) => {
4150
- const [o, s] = m.useState(null), [a, l] = m.useState(null), [d, c] = m.useState({}), u = V("drawer.width", 280), h = T("cms").getComponent("RecursiveMenu");
4151
- return /* @__PURE__ */ w(Qr, { ...r, children: [
4151
+ const [o, s] = m.useState(null), [a, l] = m.useState(null), [d, c] = m.useState({}), u = z("drawer.width", 280), h = T("cms").getComponent("RecursiveMenu");
4152
+ return /* @__PURE__ */ w(eo, { ...r, children: [
4152
4153
  t.map((y) => {
4153
4154
  const {
4154
4155
  text: S,
@@ -4160,13 +4161,13 @@ const hr = ({
4160
4161
  onClick: E
4161
4162
  } = y;
4162
4163
  return p || /* @__PURE__ */ w(
4163
- eo,
4164
+ to,
4164
4165
  {
4165
4166
  disablePadding: !0,
4166
4167
  sx: { display: "block" },
4167
4168
  children: [
4168
4169
  /* @__PURE__ */ w(
4169
- to,
4170
+ no,
4170
4171
  {
4171
4172
  sx: {
4172
4173
  minHeight: 48,
@@ -4187,10 +4188,10 @@ const hr = ({
4187
4188
  }
4188
4189
  n && n(P);
4189
4190
  },
4190
- ...x ? { to: x, component: We } : {},
4191
+ ...x ? { to: x, component: $e } : {},
4191
4192
  children: [
4192
4193
  /* @__PURE__ */ w(
4193
- An,
4194
+ Cn,
4194
4195
  {
4195
4196
  sx: {
4196
4197
  minWidth: 0,
@@ -4213,19 +4214,19 @@ const hr = ({
4213
4214
  ]
4214
4215
  }
4215
4216
  ),
4216
- !e && /* @__PURE__ */ i(Cn, { primary: S }),
4217
- !e && A && (d[g] ? /* @__PURE__ */ i(In, {}) : /* @__PURE__ */ i(Mn, {}))
4217
+ !e && /* @__PURE__ */ i(En, { primary: S }),
4218
+ !e && A && (d[g] ? /* @__PURE__ */ i(Mn, {}) : /* @__PURE__ */ i(Nn, {}))
4218
4219
  ]
4219
4220
  }
4220
4221
  ),
4221
4222
  A && !e && /* @__PURE__ */ i(
4222
- xn,
4223
+ An,
4223
4224
  {
4224
4225
  in: d[g],
4225
4226
  timeout: "auto",
4226
4227
  unmountOnExit: !0,
4227
4228
  children: /* @__PURE__ */ i(
4228
- hr,
4229
+ pr,
4229
4230
  {
4230
4231
  items: A,
4231
4232
  onClick: n,
@@ -4257,15 +4258,15 @@ const hr = ({
4257
4258
  }
4258
4259
  )
4259
4260
  ] });
4260
- }, pr = ({
4261
+ }, mr = ({
4261
4262
  collapsed: e = !1,
4262
4263
  items: t,
4263
4264
  onClick: n,
4264
4265
  ...r
4265
4266
  }) => {
4266
- const [o, s] = m.useState({}), a = V("drawer.width", 280);
4267
+ const [o, s] = m.useState({}), a = z("drawer.width", 280);
4267
4268
  return /* @__PURE__ */ w(B, { children: [
4268
- /* @__PURE__ */ i(En, { ...r, children: t.map((l) => {
4269
+ /* @__PURE__ */ i(kn, { ...r, children: t.map((l) => {
4269
4270
  const {
4270
4271
  text: d,
4271
4272
  icon: c,
@@ -4289,13 +4290,13 @@ const hr = ({
4289
4290
  n && n(p);
4290
4291
  },
4291
4292
  ...b ? {
4292
- component: We,
4293
+ component: $e,
4293
4294
  to: b
4294
4295
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4295
4296
  } : {},
4296
4297
  children: [
4297
4298
  c && /* @__PURE__ */ i(
4298
- An,
4299
+ Cn,
4299
4300
  {
4300
4301
  sx: {
4301
4302
  minWidth: 0,
@@ -4306,8 +4307,8 @@ const hr = ({
4306
4307
  children: c
4307
4308
  }
4308
4309
  ),
4309
- /* @__PURE__ */ i(Cn, { sx: { opacity: e ? 0 : 1 }, children: d }),
4310
- !e && y && /* @__PURE__ */ i(Ue, {})
4310
+ /* @__PURE__ */ i(En, { sx: { opacity: e ? 0 : 1 }, children: d }),
4311
+ !e && y && /* @__PURE__ */ i(qe, {})
4311
4312
  ]
4312
4313
  },
4313
4314
  h
@@ -4316,7 +4317,7 @@ const hr = ({
4316
4317
  t.map((l) => {
4317
4318
  const { key: d, children: c } = l;
4318
4319
  return c ? /* @__PURE__ */ i(
4319
- pr,
4320
+ mr,
4320
4321
  {
4321
4322
  items: c,
4322
4323
  onClick: n,
@@ -4444,21 +4445,27 @@ const hr = ({
4444
4445
  ce(n)(l);
4445
4446
  }
4446
4447
  }
4447
- }, oi = {
4448
+ }, si = {
4448
4449
  create: (e) => ({ navigate: t }) => {
4449
4450
  t(`/${k.kebab(e.plural())}/create`);
4450
4451
  }
4451
4452
  };
4452
- class si {
4453
+ class ai {
4453
4454
  getFacadeAccessor() {
4454
4455
  return "icon";
4455
4456
  }
4456
4457
  }
4457
- const ke = St(si, xt);
4458
- class ai {
4458
+ const Te = St(ai, xt);
4459
+ class ii {
4460
+ constructor() {
4461
+ ke(this, "components", {});
4462
+ }
4463
+ booted() {
4464
+ this.components = this.componentMap({});
4465
+ }
4459
4466
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4460
4467
  getComponents() {
4461
- return this.componentMap({});
4468
+ return this.components;
4462
4469
  }
4463
4470
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
4464
4471
  getComponent(t) {
@@ -4495,8 +4502,8 @@ class ai {
4495
4502
  );
4496
4503
  }
4497
4504
  }
4498
- const ii = gn(ai), ye = (e) => !(typeof e > "u" || e === null || J.isEmpty(e));
4499
- class li {
4505
+ const li = bn(ii), ye = (e) => !(typeof e > "u" || e === null || J.isEmpty(e));
4506
+ class ci {
4500
4507
  getInputType(t) {
4501
4508
  switch (t) {
4502
4509
  case "int":
@@ -4598,11 +4605,11 @@ class li {
4598
4605
  }).includes(!0));
4599
4606
  }
4600
4607
  }
4601
- const ci = gn(li);
4602
- class ui {
4608
+ const ui = bn(ci);
4609
+ class di {
4603
4610
  constructor() {
4604
- $e(this, "icons", []);
4605
- Re.reducer(
4611
+ ke(this, "icons", []);
4612
+ Pe.reducer(
4606
4613
  "model",
4607
4614
  (t) => {
4608
4615
  const n = this;
@@ -4616,7 +4623,7 @@ class ui {
4616
4623
  );
4617
4624
  }
4618
4625
  forModel(t, n) {
4619
- Re.reducer(`model${k.studly(t)}`, (r) => {
4626
+ Pe.reducer(`model${k.studly(t)}`, (r) => {
4620
4627
  const o = this;
4621
4628
  return class extends r {
4622
4629
  static icon() {
@@ -4641,7 +4648,7 @@ class ui {
4641
4648
  return this.icons.map((t) => t.name);
4642
4649
  }
4643
4650
  }
4644
- const di = ({ item: e }) => {
4651
+ const fi = ({ item: e }) => {
4645
4652
  const t = qt(), [n] = G(), r = n.get("tab") ?? "all", o = m.useMemo(() => T("cms").getInstanceActions(T("model").make(e.getType()), r), [e, r]), [s, a] = m.useState(null), l = !!s, d = (u) => {
4646
4653
  a(u.currentTarget);
4647
4654
  }, c = () => {
@@ -4658,7 +4665,7 @@ const di = ({ item: e }) => {
4658
4665
  }
4659
4666
  ),
4660
4667
  /* @__PURE__ */ i(
4661
- En,
4668
+ kn,
4662
4669
  {
4663
4670
  id: "model-item-actions",
4664
4671
  anchorEl: s,
@@ -4687,13 +4694,13 @@ const di = ({ item: e }) => {
4687
4694
  }
4688
4695
  )
4689
4696
  ] });
4690
- }, fi = "data:image/png;base64,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", hi = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABbWlDQ1BpY2MAACiRdZG9S0JRGMZ/aqWU0VBDRIOBRYORFERj2eAiIWaQ1aI3PwI/LvcqIa1BS4PQELX0NfQf1Bq0FgRBEUQ0Nve1hNzeo4ISdS7nvj+ec56Xc54D9lBWy5ltfsjli0YkGPAsxZY9zldcdADjDMU1U58Nh0P8O77usal6N6Z6/b/vz9G1ljQ1sLmEpzTdKArPCIc2irriHeE+LRNfEz4S9hlyQOFrpSfq/KI4XecPxUY0Mgd21dOTbuFEC2sZIyc8KuzNZUta4zzqJu5kfnFB6oDMQUwiBAngIUGJdbIUGZOal8z+9vlrvnkK4tHkr1PGEEeajHh9opaka1JqSvSkfFnKKvffeZqpyYl6d3cA2p8t630YnLtQrVjW97FlVU/A8QSX+aa/IDlNf4peaWreQ+jZgvOrppbYg4tt6H/U40a8Jjlk2lMpeDuD7hj03kLnSj2rxjqnDxDdlCe6gf0DGJH9Pas/3QVn+hiI/rEAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAUfSURBVFhHzZhdTFxFFMfPwsKypUCBlAS2XWyKfPSB0qZay6ql6NK1NE3TJjWxD/pgfCD6Uq2JMcZYY1RelKrVWmtTqTEmYuqTJiYWGwVpwkLLZwKWBhXS8lEEkd1l2fX8Z7lm6Z17996rLp5kumQ6d+Z3/3POmXPHRmyRaDSDf562ER2NEm3h33T0m7WfZ2Zof8uXNBcKUYqNZ0lgi5EIrXM46H2vl2rcGzE6xK2f2wVu79lstoCd4Zzo4OkOYUTiaTFKbic7/TS1sEAZdrt8QFxvaGmJCjIz6XSdl3YVFSn/A2Gqllt1NBo9ipkaAMfKCbMK6L95ky4ODZHDAFyQ4Yqzs+nDvXVUVVCwvLLqB4I1pPA/jytgVuF4F6iJ1VsIhxO+YIDHlObmUnP9Pj04hfYJO0NVqNhNdlwaHaVvb9xIqB5eYBsrdsa3VyhowCqwxYkdRmcm+BLUW2IV9SYCXLWriD6oq6NC9j2DZsBhEsx0cWiYOsbHyZGaqjkScLVuN8N5KTcDCcO46b10wll+DwbpHb9fN6X8yXAHS0ro7do9tDbdfPb6R4DNff00OD1NTslGICsgIB6rqKDG3Q8aSj0yRSwDjs/P09meHkrX2NoIJ+GGbVX0iscjW9dwn2XA091X6de5Oal6OCF8m+6iR8vLhcKccFVACCr4bQmnHL30ZuOH1U+rplvZgSNt3xctNL+4qOl/OE3CDCoz9EP5N3nrD5WW6gJaUrCps5OmAwGpegoQIldmgFvD8Aia/Zs3y4as6DMN2PbbGH02MIgCgxChKAoyJH4o2zZsfc5ycbAnVhwkBDS9xT+NjYm8B0CcqeN/zNNXw8MiUcugFAKlODjD5+/OwsKEYMoA04B3zny89Xtq7uvTjGaMB5wray195POJo86Mmd7i+MlPdXXT+d5e3RwHlTfl5NDHj/hoS36+GTYxFtWMYZvkWk+x77hAaLxyRVe5AMOV5+WJysUKnGlAnByIztHZWTp+qVX4oFbljFNk6/r19AnD3c25zqoZVhARiLJqYGqKnmttpV84SaelyB/HS+zkKvlCfb3RskqT33CQIDnX8/cG6rieiQmya8Ah9XiLi+mU92HTlYuM0nCQfDMyQvDBWa5gtOCg3AFOvk0P1VKWhcrFMiDA4H/prJoe3GE+tt7iE0JW3cgWN9Ind6K4J6MUpRNt7XSdt1gGh4McyqGsOsnK/ZtwwNDd4hneztfa2+nzwUFprgNckOGerKykV+/3SF/AiEp6YzQBv74+Qm90dFDf5CStSUtTzYEiKMSR/cz27fTirvs0043qQZMd0ig+19NLL1y+LBTBN8QMVy78lf/31DiHw9yev/ceOrZjh8klzQ1X+eDVW7fY59oE0MueanJzWgGMYoBDO8GV8n8NhzVVgJ/2D9AER+2RsjLxgd3NwEpCVioWFJpPba00J4XF0SofRLRmss+5s7PopR9+jJXrrOYS+1sa132NNbsFfLJMpWBZfp5Y+92uLhq+fVuohyrYydBII8mEA4cK0OPaIADDEb4pYDhEKk4FXJEd4O/bZJtqi6Ga4msoEBDFqII9Lley2cR6KkBcPsKwrYA7yxc9cfd3SYdUbXG+0ykCAkfWHZeLSYfDggBc8X2IG6hs/vJ6nVPJAxti/rgqZLFFw0gj1/DxrhhvbZQL0/iu1fz7GhQ8H69QKue8mo3iQvv/YOegoJNby2rKpLE2mGKXifyHg9uz3Lq4BTUeSEY31vZzOwYmbOFfRuevM6ot++oAAAAASUVORK5CYII=";
4691
- function pi() {
4692
- const e = Me("(prefers-color-scheme: dark)"), t = dr();
4697
+ }, hi = "data:image/png;base64,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", pi = "data:image/png;base64,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";
4698
+ function mi() {
4699
+ const e = Ne("(prefers-color-scheme: dark)"), t = fr();
4693
4700
  return /* @__PURE__ */ i(
4694
- no,
4701
+ ro,
4695
4702
  {
4696
- src: e ? fi : hi,
4703
+ src: e ? hi : pi,
4697
4704
  alt: "Luminix",
4698
4705
  variant: "square",
4699
4706
  sx: {
@@ -4704,12 +4711,14 @@ function pi() {
4704
4711
  }
4705
4712
  );
4706
4713
  }
4707
- const Ie = class Ie extends bn {
4714
+ const Me = class Me extends yn {
4708
4715
  register() {
4709
- this.app.singleton("cms", () => new ii()), this.app.singleton("filter", () => new ci()), this.app.singleton("icon", () => new ui()), this.registerIcons();
4716
+ this.app.singleton("cms", () => new li()), this.app.singleton("filter", () => new ui()), this.app.singleton("icon", () => new di()), this.registerIcons();
4710
4717
  }
4711
4718
  boot() {
4712
- this.bootComponents(), this.bootRoutes(), this.bootMenu(), this.bootMassActions(), this.bootInstanceActions(), this.bootStaticActions(), Ie.applyUserDefaults && this.bootDefaultUserModifiers();
4719
+ this.bootComponents(), this.bootRoutes(), this.bootMenu(), this.bootMassActions(), this.bootInstanceActions(), this.bootStaticActions(), Me.applyUserDefaults && this.bootDefaultUserModifiers(), this.app.on("booted", () => {
4720
+ this.app.make("cms").booted();
4721
+ });
4713
4722
  }
4714
4723
  // private addIconsToModels() {
4715
4724
  // Model.reducer(
@@ -4728,69 +4737,69 @@ const Ie = class Ie extends bn {
4728
4737
  // );
4729
4738
  // }
4730
4739
  registerIcons() {
4731
- ke.registerIcon({
4732
- Add: ao,
4733
- AddCircleOutline: Dn,
4734
- ArrowDownward: Bn,
4735
- ArrowDropDown: Tn,
4736
- ArrowUpward: Ln,
4737
- CategoryOutlined: io,
4738
- ChevronLeft: je,
4739
- ChevronRight: Ue,
4740
- Close: Ne,
4741
- DashboardOutlined: lo,
4742
- ExpandLess: In,
4743
- ExpandMore: Mn,
4744
- FilterList: On,
4745
- FirstPage: vn,
4740
+ Te.registerIcon({
4741
+ Add: io,
4742
+ AddCircleOutline: On,
4743
+ ArrowDownward: In,
4744
+ ArrowDropDown: Dn,
4745
+ ArrowUpward: Bn,
4746
+ CategoryOutlined: lo,
4747
+ ChevronLeft: Ue,
4748
+ ChevronRight: qe,
4749
+ Close: je,
4750
+ DashboardOutlined: co,
4751
+ ExpandLess: Mn,
4752
+ ExpandMore: Nn,
4753
+ FilterList: Rn,
4754
+ FirstPage: Fn,
4746
4755
  HighlightOffOutlined: ct,
4747
- LastPage: Pn,
4748
- Menu: Rn,
4756
+ LastPage: vn,
4757
+ Menu: Pn,
4749
4758
  MoreVert: vt,
4750
- PeopleOutlined: co,
4759
+ PeopleOutlined: uo,
4751
4760
  Search: ut,
4752
- SwapVert: Fn
4753
- }), ke.forModel("user", "PeopleOutlined");
4761
+ SwapVert: Ln
4762
+ }), Te.forModel("user", "PeopleOutlined");
4754
4763
  }
4755
4764
  bootRoutes() {
4756
- I.reducer("cmsRoutes", So, 0), wr.reducer("domRouterOptions", (t) => ({
4765
+ I.reducer("cmsRoutes", xo, 0), Sr.reducer("domRouterOptions", (t) => ({
4757
4766
  ...t,
4758
4767
  basename: re.get("luminix.admin.url", "/admin")
4759
4768
  }));
4760
4769
  }
4761
4770
  bootComponents() {
4762
4771
  I.reducer("componentMap", () => ({
4763
- Layout: Eo,
4764
- Dashboard: xo,
4765
- ModelIndex: To,
4766
- ModelItem: aa,
4767
- Error: Ao,
4768
- DesktopPageTitle: Sa,
4769
- RecursiveList: hr,
4770
- RecursiveMenu: pr,
4771
- Breadcrumbs: ri,
4772
- "Layout.AppBar": pa,
4773
- "Layout.AppLogo": pi,
4774
- "Layout.Drawer": wa,
4775
- "Layout.AppBar.MenuButton": Ba,
4776
- "Layout.SearchBar": Ha,
4777
- "Layout.BackButton": ma,
4778
- "ModelIndex.Filter": Fa,
4779
- "ModelIndex.InstanceActions": di,
4780
- "ModelIndex.MassActions": La,
4781
- "ModelIndex.Pagination": Ma,
4782
- "ModelIndex.PaginationDetails": Na,
4783
- "ModelIndex.PerPageSwitch": ja,
4784
- "ModelIndex.Sort": Va,
4785
- "ModelIndex.StaticActions": da,
4786
- "ModelIndex.Table": $a,
4787
- "ModelIndex.Table.TableHead": Ka,
4788
- "ModelIndex.Table.TableBody": Ja,
4789
- "ModelIndex.Table.TableFooter": ei,
4790
- "ModelIndex.Table.TableToolbar": ti,
4791
- "ModelIndex.Table.TableBody.TableRow": Qa,
4792
- "ModelIndex.Table.ShrinkedCell": za,
4793
- "ModelIndex.Tabs": ni
4772
+ Layout: ko,
4773
+ Dashboard: Ao,
4774
+ ModelIndex: Do,
4775
+ ModelItem: ia,
4776
+ Error: Co,
4777
+ DesktopPageTitle: xa,
4778
+ RecursiveList: pr,
4779
+ RecursiveMenu: mr,
4780
+ Breadcrumbs: oi,
4781
+ "Layout.AppBar": ma,
4782
+ "Layout.AppLogo": mi,
4783
+ "Layout.Drawer": Sa,
4784
+ "Layout.AppBar.MenuButton": Ia,
4785
+ "Layout.SearchBar": za,
4786
+ "Layout.BackButton": ga,
4787
+ "ModelIndex.Filter": La,
4788
+ "ModelIndex.InstanceActions": fi,
4789
+ "ModelIndex.MassActions": Ba,
4790
+ "ModelIndex.Pagination": Na,
4791
+ "ModelIndex.PaginationDetails": ja,
4792
+ "ModelIndex.PerPageSwitch": Ua,
4793
+ "ModelIndex.Sort": Wa,
4794
+ "ModelIndex.StaticActions": fa,
4795
+ "ModelIndex.Table": Ka,
4796
+ "ModelIndex.Table.TableHead": Ya,
4797
+ "ModelIndex.Table.TableBody": Ga,
4798
+ "ModelIndex.Table.TableFooter": ti,
4799
+ "ModelIndex.Table.TableToolbar": ni,
4800
+ "ModelIndex.Table.TableBody.TableRow": ei,
4801
+ "ModelIndex.Table.ShrinkedCell": Va,
4802
+ "ModelIndex.Tabs": ri
4794
4803
  }), 0);
4795
4804
  }
4796
4805
  bootMenu() {
@@ -4800,7 +4809,7 @@ const Ie = class Ie extends bn {
4800
4809
  key: "dashboard",
4801
4810
  text: "Dashboard",
4802
4811
  to: "/",
4803
- icon: ke.render("DashboardOutlined")
4812
+ icon: Te.render("DashboardOutlined")
4804
4813
  },
4805
4814
  ...Object.entries(n).sort(([r], [o]) => r.localeCompare(o)).map(([r, o]) => ({
4806
4815
  key: r,
@@ -4881,15 +4890,15 @@ const Ie = class Ie extends bn {
4881
4890
  {
4882
4891
  key: "create",
4883
4892
  label: `Create ${n.singular()}`,
4884
- callback: oi.create(n),
4885
- icon: ke.render("Add")
4893
+ callback: si.create(n),
4894
+ icon: Te.render("Add")
4886
4895
  }
4887
4896
  ], 0);
4888
4897
  }
4889
4898
  };
4890
- $e(Ie, "applyUserDefaults", !0);
4891
- let wt = Ie;
4892
- class mi extends bn {
4899
+ ke(Me, "applyUserDefaults", !0);
4900
+ let wt = Me;
4901
+ class gi extends yn {
4893
4902
  register() {
4894
4903
  this.app.once("booting", () => {
4895
4904
  this.initI18Next(), this.translateModelNames();
@@ -4899,7 +4908,7 @@ class mi extends bn {
4899
4908
  this.translateModelColumns(), this.translateMenuEntries(), this.translateInstanceActions(), this.translateMassActions(), this.translateFormLabels(), this.translateStaticActions();
4900
4909
  }
4901
4910
  initI18Next() {
4902
- Y.use(so).init({
4911
+ Y.use(ao).init({
4903
4912
  lng: re.get("app.locale", "en"),
4904
4913
  fallbackLng: re.get("app.fallback_locale", "en"),
4905
4914
  resources: {
@@ -4921,7 +4930,7 @@ class mi extends bn {
4921
4930
  });
4922
4931
  }
4923
4932
  translateModelNames() {
4924
- Re.reducer(
4933
+ Pe.reducer(
4925
4934
  "model",
4926
4935
  (t) => class extends t {
4927
4936
  static singular() {
@@ -4935,7 +4944,7 @@ class mi extends bn {
4935
4944
  );
4936
4945
  }
4937
4946
  translateModelColumns() {
4938
- for (const t of Object.keys(Re.make()))
4947
+ for (const t of Object.keys(Pe.make()))
4939
4948
  I.reducer(
4940
4949
  `model${k.studly(t)}Columns`,
4941
4950
  (n) => n.map((r) => ({
@@ -4987,7 +4996,7 @@ class mi extends bn {
4987
4996
  );
4988
4997
  }
4989
4998
  translateFormLabels() {
4990
- kr.reducer(
4999
+ Tr.reducer(
4991
5000
  "getDefaultInputProps",
4992
5001
  (t) => Array.isArray(t) ? t.map((n) => ({
4993
5002
  ...n,
@@ -5001,7 +5010,7 @@ class mi extends bn {
5001
5010
  );
5002
5011
  }
5003
5012
  }
5004
- const gi = {
5013
+ const bi = {
5005
5014
  palette: {
5006
5015
  primary: {
5007
5016
  main: "#1d9798"
@@ -5010,13 +5019,13 @@ const gi = {
5010
5019
  main: "#fa510c"
5011
5020
  }
5012
5021
  }
5013
- }, bi = (e) => e.make("cms").getRoutes(), Ji = ({
5014
- theme: e = gi,
5022
+ }, yi = (e) => e.make("cms").getRoutes(), Gi = ({
5023
+ theme: e = bi,
5015
5024
  themeArgs: t,
5016
5025
  providers: n,
5017
5026
  ...r
5018
5027
  }) => {
5019
- const o = Me("(prefers-color-scheme: dark)"), s = m.useMemo(() => uo({
5028
+ const o = Ne("(prefers-color-scheme: dark)"), s = m.useMemo(() => fo({
5020
5029
  ...e,
5021
5030
  palette: {
5022
5031
  ...e.palette,
@@ -5024,53 +5033,53 @@ const gi = {
5024
5033
  }
5025
5034
  }, ...t ?? []), [e, o, t]), a = m.useMemo(() => [
5026
5035
  wt,
5027
- mi,
5036
+ gi,
5028
5037
  ...n || []
5029
5038
  ], [n]);
5030
- return /* @__PURE__ */ w(fo, { theme: s, children: [
5031
- /* @__PURE__ */ i(ro, {}),
5039
+ return /* @__PURE__ */ w(ho, { theme: s, children: [
5040
+ /* @__PURE__ */ i(oo, {}),
5032
5041
  /* @__PURE__ */ i(
5033
- Tr,
5042
+ Dr,
5034
5043
  {
5035
- routes: bi,
5044
+ routes: yi,
5036
5045
  providers: a,
5037
5046
  ...r
5038
5047
  }
5039
5048
  )
5040
5049
  ] });
5041
5050
  };
5042
- class yi {
5051
+ class wi {
5043
5052
  getFacadeAccessor() {
5044
5053
  return "filter";
5045
5054
  }
5046
5055
  }
5047
- const Gi = St(yi, xt);
5056
+ const Zi = St(wi, xt);
5048
5057
  export {
5049
5058
  I as Cms,
5050
5059
  wt as CmsServiceProvider,
5051
- go as DialogProvider,
5052
- Gi as Filter,
5053
- ke as Icon,
5054
- po as LayoutProvider,
5055
- We as Link,
5056
- Ji as LuminixCms,
5060
+ bo as DialogProvider,
5061
+ Zi as Filter,
5062
+ Te as Icon,
5063
+ mo as LayoutProvider,
5064
+ $e as Link,
5065
+ Gi as LuminixCms,
5057
5066
  Ge as ModelProvider,
5058
- yo as NotificationProvider,
5059
- Wa as TableProvider,
5060
- mi as i18NextServiceProvider,
5067
+ wo as NotificationProvider,
5068
+ $a as TableProvider,
5069
+ gi as i18NextServiceProvider,
5061
5070
  qt as useActionEvent,
5062
- Do as useBackButton,
5071
+ Oo as useBackButton,
5063
5072
  te as useCurrentModel,
5064
- la as useDialog,
5065
- ia as useDisplaceNotifications,
5066
- sa as useHandleError,
5067
- dr as useHasSearch,
5073
+ ca as useDialog,
5074
+ la as useDisplaceNotifications,
5075
+ aa as useHandleError,
5076
+ fr as useHasSearch,
5068
5077
  v as useIsDesktopMode,
5069
- V as useLayoutConfig,
5078
+ z as useLayoutConfig,
5070
5079
  _t as useMenu,
5071
5080
  Ut as useNotify,
5072
- ur as usePageTitle,
5073
- ko as useSearch,
5081
+ dr as usePageTitle,
5082
+ To as useSearch,
5074
5083
  Vt as useSelection,
5075
5084
  Bt as useSetPageTitle,
5076
5085
  ae as useTable