@solostylist/ui-kit 1.0.62 → 1.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{Box-59IuS_L5.js → Box-6v9dDzdR.js} +21 -20
  2. package/dist/{Close-je3Um4HX.js → Close-Cq0bfDqS.js} +1 -1
  3. package/dist/{HelpOutlineOutlined-KaKitLEg.js → HelpOutlineOutlined-CrsJM_1C.js} +1 -1
  4. package/dist/{Menu-BryWw38A.js → Menu-C3Ku2lqS.js} +10 -9
  5. package/dist/{MenuItem-C960l-k0.js → MenuItem-ODcKB-fe.js} +25 -24
  6. package/dist/{Select-Dn200g2G.js → Select-CukDtghB.js} +24 -23
  7. package/dist/{Stack-pbzhmSem.js → Stack-DvJ0EY9Z.js} +24 -23
  8. package/dist/{TransitionGroup-SMeOIin5.js → TransitionGroup-D2o-MIVr.js} +1 -1
  9. package/dist/{Typography-TjZNaHX9.js → Typography-BnBI5JmA.js} +27 -26
  10. package/dist/{buttonBaseClasses-CZ6KQy34.js → buttonBaseClasses-jvvoR1a5.js} +2 -2
  11. package/dist/{chipClasses-C2-PvwSn.js → chipClasses-DCs-mJQc.js} +2 -2
  12. package/dist/chunk-GIMSRCVW-DUi-T6vz.js +10072 -0
  13. package/dist/{createSvgIcon-BeTgaSim.js → createSvgIcon-BTLVR-ad.js} +21 -20
  14. package/dist/createTheme-BlQh0eyI.js +2268 -0
  15. package/dist/{defaultTheme-kN8jLC95.js → defaultTheme-CkLTWyeE.js} +1 -1
  16. package/dist/{extendSxProp-BuqOAkIB.js → extendSxProp-B_wB9j9Z.js} +1 -1
  17. package/dist/{generateUtilityClasses-CTfRViuv.js → generateUtilityClasses-DMkCz287.js} +1 -1
  18. package/dist/{iconButtonClasses-Bjc802it.js → iconButtonClasses-FfLS-X2M.js} +2 -2
  19. package/dist/index-5OJKu9qh.js +667 -0
  20. package/dist/{index-CUjJ3gl6.js → index-Bs0mGmsj.js} +4 -4
  21. package/dist/main.d.ts +2 -0
  22. package/dist/main.js +44 -42
  23. package/dist/{outlinedInputClasses-CBivYvoh.js → outlinedInputClasses-rfxFh721.js} +2 -2
  24. package/dist/s-copilot-kit-provider/index.d.ts +2 -0
  25. package/dist/s-copilot-kit-provider/index.js +4 -0
  26. package/dist/s-copilot-kit-provider/package.json +5 -0
  27. package/dist/s-copilot-kit-provider/s-copilot-kit-provider.d.ts +7 -0
  28. package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +9 -0
  29. package/dist/s-data-table/s-data-table.js +46 -45
  30. package/dist/s-date-picker/s-date-picker.js +26 -25
  31. package/dist/s-datetime-picker/s-datetime-picker.js +73 -72
  32. package/dist/s-dialog/s-dialog.js +1 -1
  33. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  34. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  35. package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
  36. package/dist/s-file-icon/s-file-icon.js +1 -1
  37. package/dist/s-form/s-form.js +1 -1
  38. package/dist/s-glow-button/s-glow-button.js +3 -3
  39. package/dist/s-gradient-icon/s-gradient-icon.d.ts +2 -1
  40. package/dist/s-gradient-icon/s-gradient-icon.js +4 -3
  41. package/dist/s-label/s-label.js +1 -1
  42. package/dist/s-localization-provider/s-localization-provider.js +1 -1
  43. package/dist/s-multi-select/s-multi-select.js +3 -3
  44. package/dist/s-smart-text-field/s-smart-text-field.d.ts +1 -3
  45. package/dist/s-smart-text-field/s-smart-text-field.js +9259 -18849
  46. package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
  47. package/dist/s-text-editor/s-text-editor.js +1 -1
  48. package/dist/s-tip/s-tip.js +3 -3
  49. package/dist/{tabClasses-ENprUfJ-.js → tabClasses-PH6lKUvl.js} +2 -2
  50. package/dist/theme/components/avatar.js +1 -1
  51. package/dist/theme/customizations/data-display.js +7 -7
  52. package/dist/theme/customizations/feedback.js +1 -1
  53. package/dist/theme/customizations/inputs.js +4 -4
  54. package/dist/theme/customizations/navigation.js +3 -3
  55. package/dist/theme/customizations/surfaces.js +1 -1
  56. package/dist/theme/theme-primitives.js +1 -1
  57. package/dist/{typographyClasses-DiFekpbX.js → typographyClasses-ZiwLh_jE.js} +2 -2
  58. package/dist/{useMobilePicker-DV2vFPGZ.js → useMobilePicker-BzxyifzK.js} +56 -55
  59. package/dist/{useSlot-Cciih_p6.js → useSlot-C4SHe-Bx.js} +5 -5
  60. package/dist/{useTheme-BM5dU4pp.js → useTheme-Bn9C3FUK.js} +1 -1
  61. package/dist/{useThemeProps-hdzu913B.js → useThemeProps-BUFb1TtB.js} +2 -2
  62. package/dist/{warning-BeMCQpXj.js → warning-D7W5-6D5.js} +3 -3
  63. package/package.json +2 -2
  64. package/dist/createTheme-CozHbEju.js +0 -2932
@@ -0,0 +1,2268 @@
1
+ import * as Je from "react";
2
+ import { P as re } from "./index-5OJKu9qh.js";
3
+ const Fe = (e) => e, dt = () => {
4
+ let e = Fe;
5
+ return {
6
+ configure(t) {
7
+ e = t;
8
+ },
9
+ generate(t) {
10
+ return e(t);
11
+ },
12
+ reset() {
13
+ e = Fe;
14
+ }
15
+ };
16
+ }, pt = dt();
17
+ function Y(e, ...t) {
18
+ const r = new URL(`https://mui.com/production-error/?code=${e}`);
19
+ return t.forEach((n) => r.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${r} for the full message.`;
20
+ }
21
+ function Ze(e) {
22
+ if (typeof e != "string")
23
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Y(7));
24
+ return e.charAt(0).toUpperCase() + e.slice(1);
25
+ }
26
+ var de = { exports: {} }, T = {};
27
+ /**
28
+ * @license React
29
+ * react-is.production.js
30
+ *
31
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var Le;
37
+ function gt() {
38
+ if (Le) return T;
39
+ Le = 1;
40
+ var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), d = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
41
+ function m(s) {
42
+ if (typeof s == "object" && s !== null) {
43
+ var C = s.$$typeof;
44
+ switch (C) {
45
+ case e:
46
+ switch (s = s.type, s) {
47
+ case r:
48
+ case i:
49
+ case n:
50
+ case f:
51
+ case p:
52
+ case d:
53
+ return s;
54
+ default:
55
+ switch (s = s && s.$$typeof, s) {
56
+ case l:
57
+ case u:
58
+ case g:
59
+ case h:
60
+ return s;
61
+ case a:
62
+ return s;
63
+ default:
64
+ return C;
65
+ }
66
+ }
67
+ case t:
68
+ return C;
69
+ }
70
+ }
71
+ }
72
+ return T.ContextConsumer = a, T.ContextProvider = l, T.Element = e, T.ForwardRef = u, T.Fragment = r, T.Lazy = g, T.Memo = h, T.Portal = t, T.Profiler = i, T.StrictMode = n, T.Suspense = f, T.SuspenseList = p, T.isContextConsumer = function(s) {
73
+ return m(s) === a;
74
+ }, T.isContextProvider = function(s) {
75
+ return m(s) === l;
76
+ }, T.isElement = function(s) {
77
+ return typeof s == "object" && s !== null && s.$$typeof === e;
78
+ }, T.isForwardRef = function(s) {
79
+ return m(s) === u;
80
+ }, T.isFragment = function(s) {
81
+ return m(s) === r;
82
+ }, T.isLazy = function(s) {
83
+ return m(s) === g;
84
+ }, T.isMemo = function(s) {
85
+ return m(s) === h;
86
+ }, T.isPortal = function(s) {
87
+ return m(s) === t;
88
+ }, T.isProfiler = function(s) {
89
+ return m(s) === i;
90
+ }, T.isStrictMode = function(s) {
91
+ return m(s) === n;
92
+ }, T.isSuspense = function(s) {
93
+ return m(s) === f;
94
+ }, T.isSuspenseList = function(s) {
95
+ return m(s) === p;
96
+ }, T.isValidElementType = function(s) {
97
+ return typeof s == "string" || typeof s == "function" || s === r || s === i || s === n || s === f || s === p || typeof s == "object" && s !== null && (s.$$typeof === g || s.$$typeof === h || s.$$typeof === l || s.$$typeof === a || s.$$typeof === u || s.$$typeof === b || s.getModuleId !== void 0);
98
+ }, T.typeOf = m, T;
99
+ }
100
+ var $ = {};
101
+ /**
102
+ * @license React
103
+ * react-is.development.js
104
+ *
105
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
106
+ *
107
+ * This source code is licensed under the MIT license found in the
108
+ * LICENSE file in the root directory of this source tree.
109
+ */
110
+ var Ve;
111
+ function mt() {
112
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
113
+ function e(s) {
114
+ if (typeof s == "object" && s !== null) {
115
+ var C = s.$$typeof;
116
+ switch (C) {
117
+ case t:
118
+ switch (s = s.type, s) {
119
+ case n:
120
+ case a:
121
+ case i:
122
+ case p:
123
+ case h:
124
+ case b:
125
+ return s;
126
+ default:
127
+ switch (s = s && s.$$typeof, s) {
128
+ case u:
129
+ case f:
130
+ case d:
131
+ case g:
132
+ return s;
133
+ case l:
134
+ return s;
135
+ default:
136
+ return C;
137
+ }
138
+ }
139
+ case r:
140
+ return C;
141
+ }
142
+ }
143
+ }
144
+ var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.view_transition"), m = Symbol.for("react.client.reference");
145
+ $.ContextConsumer = l, $.ContextProvider = u, $.Element = t, $.ForwardRef = f, $.Fragment = n, $.Lazy = d, $.Memo = g, $.Portal = r, $.Profiler = a, $.StrictMode = i, $.Suspense = p, $.SuspenseList = h, $.isContextConsumer = function(s) {
146
+ return e(s) === l;
147
+ }, $.isContextProvider = function(s) {
148
+ return e(s) === u;
149
+ }, $.isElement = function(s) {
150
+ return typeof s == "object" && s !== null && s.$$typeof === t;
151
+ }, $.isForwardRef = function(s) {
152
+ return e(s) === f;
153
+ }, $.isFragment = function(s) {
154
+ return e(s) === n;
155
+ }, $.isLazy = function(s) {
156
+ return e(s) === d;
157
+ }, $.isMemo = function(s) {
158
+ return e(s) === g;
159
+ }, $.isPortal = function(s) {
160
+ return e(s) === r;
161
+ }, $.isProfiler = function(s) {
162
+ return e(s) === a;
163
+ }, $.isStrictMode = function(s) {
164
+ return e(s) === i;
165
+ }, $.isSuspense = function(s) {
166
+ return e(s) === p;
167
+ }, $.isSuspenseList = function(s) {
168
+ return e(s) === h;
169
+ }, $.isValidElementType = function(s) {
170
+ return typeof s == "string" || typeof s == "function" || s === n || s === a || s === i || s === p || s === h || typeof s == "object" && s !== null && (s.$$typeof === d || s.$$typeof === g || s.$$typeof === u || s.$$typeof === l || s.$$typeof === f || s.$$typeof === m || s.getModuleId !== void 0);
171
+ }, $.typeOf = e;
172
+ }()), $;
173
+ }
174
+ var Ue;
175
+ function ht() {
176
+ return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? de.exports = /* @__PURE__ */ gt() : de.exports = /* @__PURE__ */ mt()), de.exports;
177
+ }
178
+ var et = /* @__PURE__ */ ht();
179
+ function G(e) {
180
+ if (typeof e != "object" || e === null)
181
+ return !1;
182
+ const t = Object.getPrototypeOf(e);
183
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
184
+ }
185
+ function tt(e) {
186
+ if (/* @__PURE__ */ Je.isValidElement(e) || et.isValidElementType(e) || !G(e))
187
+ return e;
188
+ const t = {};
189
+ return Object.keys(e).forEach((r) => {
190
+ t[r] = tt(e[r]);
191
+ }), t;
192
+ }
193
+ function I(e, t, r = {
194
+ clone: !0
195
+ }) {
196
+ const n = r.clone ? {
197
+ ...e
198
+ } : e;
199
+ return G(e) && G(t) && Object.keys(t).forEach((i) => {
200
+ /* @__PURE__ */ Je.isValidElement(t[i]) || et.isValidElementType(t[i]) ? n[i] = t[i] : G(t[i]) && // Avoid prototype pollution
201
+ Object.prototype.hasOwnProperty.call(e, i) && G(e[i]) ? n[i] = I(e[i], t[i], r) : r.clone ? n[i] = G(t[i]) ? tt(t[i]) : t[i] : n[i] = t[i];
202
+ }), n;
203
+ }
204
+ function ae(e, t) {
205
+ return t ? I(e, t, {
206
+ clone: !1
207
+ // No need to clone deep, it's way faster.
208
+ }) : e;
209
+ }
210
+ const H = process.env.NODE_ENV !== "production" ? re.oneOfType([re.number, re.string, re.object, re.array]) : {};
211
+ function yt(e, t) {
212
+ if (!e.containerQueries)
213
+ return t;
214
+ const r = Object.keys(t).filter((n) => n.startsWith("@container")).sort((n, i) => {
215
+ var l, u;
216
+ const a = /min-width:\s*([0-9.]+)/;
217
+ return +(((l = n.match(a)) == null ? void 0 : l[1]) || 0) - +(((u = i.match(a)) == null ? void 0 : u[1]) || 0);
218
+ });
219
+ return r.length ? r.reduce((n, i) => {
220
+ const a = t[i];
221
+ return delete n[i], n[i] = a, n;
222
+ }, {
223
+ ...t
224
+ }) : t;
225
+ }
226
+ function bt(e, t) {
227
+ return t === "@" || t.startsWith("@") && (e.some((r) => t.startsWith(`@${r}`)) || !!t.match(/^@\d/));
228
+ }
229
+ function St(e, t) {
230
+ const r = t.match(/^@([^/]+)?\/?(.+)?$/);
231
+ if (!r) {
232
+ if (process.env.NODE_ENV !== "production")
233
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
234
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Y(18, `(${t})`));
235
+ return null;
236
+ }
237
+ const [, n, i] = r, a = Number.isNaN(+n) ? n || 0 : +n;
238
+ return e.containerQueries(i).up(a);
239
+ }
240
+ function Ct(e) {
241
+ const t = (a, l) => a.replace("@media", l ? `@container ${l}` : "@container");
242
+ function r(a, l) {
243
+ a.up = (...u) => t(e.breakpoints.up(...u), l), a.down = (...u) => t(e.breakpoints.down(...u), l), a.between = (...u) => t(e.breakpoints.between(...u), l), a.only = (...u) => t(e.breakpoints.only(...u), l), a.not = (...u) => {
244
+ const f = t(e.breakpoints.not(...u), l);
245
+ return f.includes("not all and") ? f.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : f;
246
+ };
247
+ }
248
+ const n = {}, i = (a) => (r(n, a), n);
249
+ return r(i), {
250
+ ...e,
251
+ containerQueries: i
252
+ };
253
+ }
254
+ const he = {
255
+ xs: 0,
256
+ // phone
257
+ sm: 600,
258
+ // tablet
259
+ md: 900,
260
+ // small laptop
261
+ lg: 1200,
262
+ // desktop
263
+ xl: 1536
264
+ // large screen
265
+ }, We = {
266
+ // Sorted ASC by size. That's important.
267
+ // It can't be configured as it's used statically for propTypes.
268
+ keys: ["xs", "sm", "md", "lg", "xl"],
269
+ up: (e) => `@media (min-width:${he[e]}px)`
270
+ }, Et = {
271
+ containerQueries: (e) => ({
272
+ up: (t) => {
273
+ let r = typeof t == "number" ? t : he[t] || t;
274
+ return typeof r == "number" && (r = `${r}px`), e ? `@container ${e} (min-width:${r})` : `@container (min-width:${r})`;
275
+ }
276
+ })
277
+ };
278
+ function j(e, t, r) {
279
+ const n = e.theme || {};
280
+ if (Array.isArray(t)) {
281
+ const a = n.breakpoints || We;
282
+ return t.reduce((l, u, f) => (l[a.up(a.keys[f])] = r(t[f]), l), {});
283
+ }
284
+ if (typeof t == "object") {
285
+ const a = n.breakpoints || We;
286
+ return Object.keys(t).reduce((l, u) => {
287
+ if (bt(a.keys, u)) {
288
+ const f = St(n.containerQueries ? n : Et, u);
289
+ f && (l[f] = r(t[u], u));
290
+ } else if (Object.keys(a.values || he).includes(u)) {
291
+ const f = a.up(u);
292
+ l[f] = r(t[u], u);
293
+ } else {
294
+ const f = u;
295
+ l[f] = t[f];
296
+ }
297
+ return l;
298
+ }, {});
299
+ }
300
+ return r(t);
301
+ }
302
+ function rt(e = {}) {
303
+ var r;
304
+ return ((r = e.keys) == null ? void 0 : r.reduce((n, i) => {
305
+ const a = e.up(i);
306
+ return n[a] = {}, n;
307
+ }, {})) || {};
308
+ }
309
+ function nt(e, t) {
310
+ return e.reduce((r, n) => {
311
+ const i = r[n];
312
+ return (!i || Object.keys(i).length === 0) && delete r[n], r;
313
+ }, t);
314
+ }
315
+ function an(e, ...t) {
316
+ const r = rt(e), n = [r, ...t].reduce((i, a) => I(i, a), {});
317
+ return nt(Object.keys(r), n);
318
+ }
319
+ function Tt(e, t) {
320
+ if (typeof e != "object")
321
+ return {};
322
+ const r = {}, n = Object.keys(t);
323
+ return Array.isArray(e) ? n.forEach((i, a) => {
324
+ a < e.length && (r[i] = !0);
325
+ }) : n.forEach((i) => {
326
+ e[i] != null && (r[i] = !0);
327
+ }), r;
328
+ }
329
+ function sn({
330
+ values: e,
331
+ breakpoints: t,
332
+ base: r
333
+ }) {
334
+ const n = r || Tt(e, t), i = Object.keys(n);
335
+ if (i.length === 0)
336
+ return e;
337
+ let a;
338
+ return i.reduce((l, u, f) => (Array.isArray(e) ? (l[u] = e[f] != null ? e[f] : e[a], a = f) : typeof e == "object" ? (l[u] = e[u] != null ? e[u] : e[a], a = u) : l[u] = e, l), {});
339
+ }
340
+ function ye(e, t, r = !0) {
341
+ if (!t || typeof t != "string")
342
+ return null;
343
+ if (e && e.vars && r) {
344
+ const n = `vars.${t}`.split(".").reduce((i, a) => i && i[a] ? i[a] : null, e);
345
+ if (n != null)
346
+ return n;
347
+ }
348
+ return t.split(".").reduce((n, i) => n && n[i] != null ? n[i] : null, e);
349
+ }
350
+ function me(e, t, r, n = r) {
351
+ let i;
352
+ return typeof e == "function" ? i = e(r) : Array.isArray(e) ? i = e[r] || n : i = ye(e, r) || n, t && (i = t(i, n, e)), i;
353
+ }
354
+ function R(e) {
355
+ const {
356
+ prop: t,
357
+ cssProperty: r = e.prop,
358
+ themeKey: n,
359
+ transform: i
360
+ } = e, a = (l) => {
361
+ if (l[t] == null)
362
+ return null;
363
+ const u = l[t], f = l.theme, p = ye(f, n) || {};
364
+ return j(l, u, (g) => {
365
+ let d = me(p, i, g);
366
+ return g === d && typeof g == "string" && (d = me(p, i, `${t}${g === "default" ? "" : Ze(g)}`, g)), r === !1 ? d : {
367
+ [r]: d
368
+ };
369
+ });
370
+ };
371
+ return a.propTypes = process.env.NODE_ENV !== "production" ? {
372
+ [t]: H
373
+ } : {}, a.filterProps = [t], a;
374
+ }
375
+ function $t(e) {
376
+ const t = {};
377
+ return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
378
+ }
379
+ const wt = {
380
+ m: "margin",
381
+ p: "padding"
382
+ }, At = {
383
+ t: "Top",
384
+ r: "Right",
385
+ b: "Bottom",
386
+ l: "Left",
387
+ x: ["Left", "Right"],
388
+ y: ["Top", "Bottom"]
389
+ }, je = {
390
+ marginX: "mx",
391
+ marginY: "my",
392
+ paddingX: "px",
393
+ paddingY: "py"
394
+ }, vt = $t((e) => {
395
+ if (e.length > 2)
396
+ if (je[e])
397
+ e = je[e];
398
+ else
399
+ return [e];
400
+ const [t, r] = e.split(""), n = wt[t], i = At[r] || "";
401
+ return Array.isArray(i) ? i.map((a) => n + a) : [n + i];
402
+ }), be = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Se = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], xt = [...be, ...Se];
403
+ function le(e, t, r, n) {
404
+ const i = ye(e, t, !0) ?? r;
405
+ return typeof i == "number" || typeof i == "string" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`), typeof i == "string" ? i.startsWith("var(") && a === 0 ? 0 : i.startsWith("var(") && a === 1 ? i : `calc(${a} * ${i})` : i * a) : Array.isArray(i) ? (a) => {
406
+ if (typeof a == "string")
407
+ return a;
408
+ const l = Math.abs(a);
409
+ process.env.NODE_ENV !== "production" && (Number.isInteger(l) ? l > i.length - 1 && console.error([`MUI: The value provided (${l}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${l} > ${i.length - 1}, you need to add the missing values.`].join(`
410
+ `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
411
+ `)));
412
+ const u = i[l];
413
+ return a >= 0 ? u : typeof u == "number" ? -u : typeof u == "string" && u.startsWith("var(") ? `calc(-1 * ${u})` : `-${u}`;
414
+ } : typeof i == "function" ? i : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join(`
415
+ `)), () => {
416
+ });
417
+ }
418
+ function Ne(e) {
419
+ return le(e, "spacing", 8, "spacing");
420
+ }
421
+ function ce(e, t) {
422
+ return typeof t == "string" || t == null ? t : e(t);
423
+ }
424
+ function Ot(e, t) {
425
+ return (r) => e.reduce((n, i) => (n[i] = ce(t, r), n), {});
426
+ }
427
+ function kt(e, t, r, n) {
428
+ if (!t.includes(r))
429
+ return null;
430
+ const i = vt(r), a = Ot(i, n), l = e[r];
431
+ return j(e, l, a);
432
+ }
433
+ function ot(e, t) {
434
+ const r = Ne(e.theme);
435
+ return Object.keys(e).map((n) => kt(e, t, n, r)).reduce(ae, {});
436
+ }
437
+ function k(e) {
438
+ return ot(e, be);
439
+ }
440
+ k.propTypes = process.env.NODE_ENV !== "production" ? be.reduce((e, t) => (e[t] = H, e), {}) : {};
441
+ k.filterProps = be;
442
+ function _(e) {
443
+ return ot(e, Se);
444
+ }
445
+ _.propTypes = process.env.NODE_ENV !== "production" ? Se.reduce((e, t) => (e[t] = H, e), {}) : {};
446
+ _.filterProps = Se;
447
+ process.env.NODE_ENV !== "production" && xt.reduce((e, t) => (e[t] = H, e), {});
448
+ function Ce(...e) {
449
+ const t = e.reduce((n, i) => (i.filterProps.forEach((a) => {
450
+ n[a] = i;
451
+ }), n), {}), r = (n) => Object.keys(n).reduce((i, a) => t[a] ? ae(i, t[a](n)) : i, {});
452
+ return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, i) => Object.assign(n, i.propTypes), {}) : {}, r.filterProps = e.reduce((n, i) => n.concat(i.filterProps), []), r;
453
+ }
454
+ function D(e) {
455
+ return typeof e != "number" ? e : `${e}px solid`;
456
+ }
457
+ function M(e, t) {
458
+ return R({
459
+ prop: e,
460
+ themeKey: "borders",
461
+ transform: t
462
+ });
463
+ }
464
+ const _t = M("border", D), Rt = M("borderTop", D), Nt = M("borderRight", D), Bt = M("borderBottom", D), It = M("borderLeft", D), Pt = M("borderColor"), Dt = M("borderTopColor"), Mt = M("borderRightColor"), Ft = M("borderBottomColor"), Lt = M("borderLeftColor"), Vt = M("outline", D), Ut = M("outlineColor"), Ee = (e) => {
465
+ if (e.borderRadius !== void 0 && e.borderRadius !== null) {
466
+ const t = le(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
467
+ borderRadius: ce(t, n)
468
+ });
469
+ return j(e, e.borderRadius, r);
470
+ }
471
+ return null;
472
+ };
473
+ Ee.propTypes = process.env.NODE_ENV !== "production" ? {
474
+ borderRadius: H
475
+ } : {};
476
+ Ee.filterProps = ["borderRadius"];
477
+ Ce(_t, Rt, Nt, Bt, It, Pt, Dt, Mt, Ft, Lt, Ee, Vt, Ut);
478
+ const Te = (e) => {
479
+ if (e.gap !== void 0 && e.gap !== null) {
480
+ const t = le(e.theme, "spacing", 8, "gap"), r = (n) => ({
481
+ gap: ce(t, n)
482
+ });
483
+ return j(e, e.gap, r);
484
+ }
485
+ return null;
486
+ };
487
+ Te.propTypes = process.env.NODE_ENV !== "production" ? {
488
+ gap: H
489
+ } : {};
490
+ Te.filterProps = ["gap"];
491
+ const $e = (e) => {
492
+ if (e.columnGap !== void 0 && e.columnGap !== null) {
493
+ const t = le(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
494
+ columnGap: ce(t, n)
495
+ });
496
+ return j(e, e.columnGap, r);
497
+ }
498
+ return null;
499
+ };
500
+ $e.propTypes = process.env.NODE_ENV !== "production" ? {
501
+ columnGap: H
502
+ } : {};
503
+ $e.filterProps = ["columnGap"];
504
+ const we = (e) => {
505
+ if (e.rowGap !== void 0 && e.rowGap !== null) {
506
+ const t = le(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
507
+ rowGap: ce(t, n)
508
+ });
509
+ return j(e, e.rowGap, r);
510
+ }
511
+ return null;
512
+ };
513
+ we.propTypes = process.env.NODE_ENV !== "production" ? {
514
+ rowGap: H
515
+ } : {};
516
+ we.filterProps = ["rowGap"];
517
+ const Wt = R({
518
+ prop: "gridColumn"
519
+ }), jt = R({
520
+ prop: "gridRow"
521
+ }), zt = R({
522
+ prop: "gridAutoFlow"
523
+ }), Gt = R({
524
+ prop: "gridAutoColumns"
525
+ }), Yt = R({
526
+ prop: "gridAutoRows"
527
+ }), Kt = R({
528
+ prop: "gridTemplateColumns"
529
+ }), Ht = R({
530
+ prop: "gridTemplateRows"
531
+ }), qt = R({
532
+ prop: "gridTemplateAreas"
533
+ }), Qt = R({
534
+ prop: "gridArea"
535
+ });
536
+ Ce(Te, $e, we, Wt, jt, zt, Gt, Yt, Kt, Ht, qt, Qt);
537
+ function ee(e, t) {
538
+ return t === "grey" ? t : e;
539
+ }
540
+ const Xt = R({
541
+ prop: "color",
542
+ themeKey: "palette",
543
+ transform: ee
544
+ }), Jt = R({
545
+ prop: "bgcolor",
546
+ cssProperty: "backgroundColor",
547
+ themeKey: "palette",
548
+ transform: ee
549
+ }), Zt = R({
550
+ prop: "backgroundColor",
551
+ themeKey: "palette",
552
+ transform: ee
553
+ });
554
+ Ce(Xt, Jt, Zt);
555
+ function P(e) {
556
+ return e <= 1 && e !== 0 ? `${e * 100}%` : e;
557
+ }
558
+ const er = R({
559
+ prop: "width",
560
+ transform: P
561
+ }), Be = (e) => {
562
+ if (e.maxWidth !== void 0 && e.maxWidth !== null) {
563
+ const t = (r) => {
564
+ var i, a, l, u, f;
565
+ const n = ((l = (a = (i = e.theme) == null ? void 0 : i.breakpoints) == null ? void 0 : a.values) == null ? void 0 : l[r]) || he[r];
566
+ return n ? ((f = (u = e.theme) == null ? void 0 : u.breakpoints) == null ? void 0 : f.unit) !== "px" ? {
567
+ maxWidth: `${n}${e.theme.breakpoints.unit}`
568
+ } : {
569
+ maxWidth: n
570
+ } : {
571
+ maxWidth: P(r)
572
+ };
573
+ };
574
+ return j(e, e.maxWidth, t);
575
+ }
576
+ return null;
577
+ };
578
+ Be.filterProps = ["maxWidth"];
579
+ const tr = R({
580
+ prop: "minWidth",
581
+ transform: P
582
+ }), rr = R({
583
+ prop: "height",
584
+ transform: P
585
+ }), nr = R({
586
+ prop: "maxHeight",
587
+ transform: P
588
+ }), or = R({
589
+ prop: "minHeight",
590
+ transform: P
591
+ });
592
+ R({
593
+ prop: "size",
594
+ cssProperty: "width",
595
+ transform: P
596
+ });
597
+ R({
598
+ prop: "size",
599
+ cssProperty: "height",
600
+ transform: P
601
+ });
602
+ const ir = R({
603
+ prop: "boxSizing"
604
+ });
605
+ Ce(er, Be, tr, rr, nr, or, ir);
606
+ const Ae = {
607
+ // borders
608
+ border: {
609
+ themeKey: "borders",
610
+ transform: D
611
+ },
612
+ borderTop: {
613
+ themeKey: "borders",
614
+ transform: D
615
+ },
616
+ borderRight: {
617
+ themeKey: "borders",
618
+ transform: D
619
+ },
620
+ borderBottom: {
621
+ themeKey: "borders",
622
+ transform: D
623
+ },
624
+ borderLeft: {
625
+ themeKey: "borders",
626
+ transform: D
627
+ },
628
+ borderColor: {
629
+ themeKey: "palette"
630
+ },
631
+ borderTopColor: {
632
+ themeKey: "palette"
633
+ },
634
+ borderRightColor: {
635
+ themeKey: "palette"
636
+ },
637
+ borderBottomColor: {
638
+ themeKey: "palette"
639
+ },
640
+ borderLeftColor: {
641
+ themeKey: "palette"
642
+ },
643
+ outline: {
644
+ themeKey: "borders",
645
+ transform: D
646
+ },
647
+ outlineColor: {
648
+ themeKey: "palette"
649
+ },
650
+ borderRadius: {
651
+ themeKey: "shape.borderRadius",
652
+ style: Ee
653
+ },
654
+ // palette
655
+ color: {
656
+ themeKey: "palette",
657
+ transform: ee
658
+ },
659
+ bgcolor: {
660
+ themeKey: "palette",
661
+ cssProperty: "backgroundColor",
662
+ transform: ee
663
+ },
664
+ backgroundColor: {
665
+ themeKey: "palette",
666
+ transform: ee
667
+ },
668
+ // spacing
669
+ p: {
670
+ style: _
671
+ },
672
+ pt: {
673
+ style: _
674
+ },
675
+ pr: {
676
+ style: _
677
+ },
678
+ pb: {
679
+ style: _
680
+ },
681
+ pl: {
682
+ style: _
683
+ },
684
+ px: {
685
+ style: _
686
+ },
687
+ py: {
688
+ style: _
689
+ },
690
+ padding: {
691
+ style: _
692
+ },
693
+ paddingTop: {
694
+ style: _
695
+ },
696
+ paddingRight: {
697
+ style: _
698
+ },
699
+ paddingBottom: {
700
+ style: _
701
+ },
702
+ paddingLeft: {
703
+ style: _
704
+ },
705
+ paddingX: {
706
+ style: _
707
+ },
708
+ paddingY: {
709
+ style: _
710
+ },
711
+ paddingInline: {
712
+ style: _
713
+ },
714
+ paddingInlineStart: {
715
+ style: _
716
+ },
717
+ paddingInlineEnd: {
718
+ style: _
719
+ },
720
+ paddingBlock: {
721
+ style: _
722
+ },
723
+ paddingBlockStart: {
724
+ style: _
725
+ },
726
+ paddingBlockEnd: {
727
+ style: _
728
+ },
729
+ m: {
730
+ style: k
731
+ },
732
+ mt: {
733
+ style: k
734
+ },
735
+ mr: {
736
+ style: k
737
+ },
738
+ mb: {
739
+ style: k
740
+ },
741
+ ml: {
742
+ style: k
743
+ },
744
+ mx: {
745
+ style: k
746
+ },
747
+ my: {
748
+ style: k
749
+ },
750
+ margin: {
751
+ style: k
752
+ },
753
+ marginTop: {
754
+ style: k
755
+ },
756
+ marginRight: {
757
+ style: k
758
+ },
759
+ marginBottom: {
760
+ style: k
761
+ },
762
+ marginLeft: {
763
+ style: k
764
+ },
765
+ marginX: {
766
+ style: k
767
+ },
768
+ marginY: {
769
+ style: k
770
+ },
771
+ marginInline: {
772
+ style: k
773
+ },
774
+ marginInlineStart: {
775
+ style: k
776
+ },
777
+ marginInlineEnd: {
778
+ style: k
779
+ },
780
+ marginBlock: {
781
+ style: k
782
+ },
783
+ marginBlockStart: {
784
+ style: k
785
+ },
786
+ marginBlockEnd: {
787
+ style: k
788
+ },
789
+ // display
790
+ displayPrint: {
791
+ cssProperty: !1,
792
+ transform: (e) => ({
793
+ "@media print": {
794
+ display: e
795
+ }
796
+ })
797
+ },
798
+ display: {},
799
+ overflow: {},
800
+ textOverflow: {},
801
+ visibility: {},
802
+ whiteSpace: {},
803
+ // flexbox
804
+ flexBasis: {},
805
+ flexDirection: {},
806
+ flexWrap: {},
807
+ justifyContent: {},
808
+ alignItems: {},
809
+ alignContent: {},
810
+ order: {},
811
+ flex: {},
812
+ flexGrow: {},
813
+ flexShrink: {},
814
+ alignSelf: {},
815
+ justifyItems: {},
816
+ justifySelf: {},
817
+ // grid
818
+ gap: {
819
+ style: Te
820
+ },
821
+ rowGap: {
822
+ style: we
823
+ },
824
+ columnGap: {
825
+ style: $e
826
+ },
827
+ gridColumn: {},
828
+ gridRow: {},
829
+ gridAutoFlow: {},
830
+ gridAutoColumns: {},
831
+ gridAutoRows: {},
832
+ gridTemplateColumns: {},
833
+ gridTemplateRows: {},
834
+ gridTemplateAreas: {},
835
+ gridArea: {},
836
+ // positions
837
+ position: {},
838
+ zIndex: {
839
+ themeKey: "zIndex"
840
+ },
841
+ top: {},
842
+ right: {},
843
+ bottom: {},
844
+ left: {},
845
+ // shadows
846
+ boxShadow: {
847
+ themeKey: "shadows"
848
+ },
849
+ // sizing
850
+ width: {
851
+ transform: P
852
+ },
853
+ maxWidth: {
854
+ style: Be
855
+ },
856
+ minWidth: {
857
+ transform: P
858
+ },
859
+ height: {
860
+ transform: P
861
+ },
862
+ maxHeight: {
863
+ transform: P
864
+ },
865
+ minHeight: {
866
+ transform: P
867
+ },
868
+ boxSizing: {},
869
+ // typography
870
+ font: {
871
+ themeKey: "font"
872
+ },
873
+ fontFamily: {
874
+ themeKey: "typography"
875
+ },
876
+ fontSize: {
877
+ themeKey: "typography"
878
+ },
879
+ fontStyle: {
880
+ themeKey: "typography"
881
+ },
882
+ fontWeight: {
883
+ themeKey: "typography"
884
+ },
885
+ letterSpacing: {},
886
+ textTransform: {},
887
+ lineHeight: {},
888
+ textAlign: {},
889
+ typography: {
890
+ cssProperty: !1,
891
+ themeKey: "typography"
892
+ }
893
+ };
894
+ function ar(...e) {
895
+ const t = e.reduce((n, i) => n.concat(Object.keys(i)), []), r = new Set(t);
896
+ return e.every((n) => r.size === Object.keys(n).length);
897
+ }
898
+ function sr(e, t) {
899
+ return typeof e == "function" ? e(t) : e;
900
+ }
901
+ function lr() {
902
+ function e(r, n, i, a) {
903
+ const l = {
904
+ [r]: n,
905
+ theme: i
906
+ }, u = a[r];
907
+ if (!u)
908
+ return {
909
+ [r]: n
910
+ };
911
+ const {
912
+ cssProperty: f = r,
913
+ themeKey: p,
914
+ transform: h,
915
+ style: g
916
+ } = u;
917
+ if (n == null)
918
+ return null;
919
+ if (p === "typography" && n === "inherit")
920
+ return {
921
+ [r]: n
922
+ };
923
+ const d = ye(i, p) || {};
924
+ return g ? g(l) : j(l, n, (m) => {
925
+ let s = me(d, h, m);
926
+ return m === s && typeof m == "string" && (s = me(d, h, `${r}${m === "default" ? "" : Ze(m)}`, m)), f === !1 ? s : {
927
+ [f]: s
928
+ };
929
+ });
930
+ }
931
+ function t(r) {
932
+ const {
933
+ sx: n,
934
+ theme: i = {}
935
+ } = r || {};
936
+ if (!n)
937
+ return null;
938
+ const a = i.unstable_sxConfig ?? Ae;
939
+ function l(u) {
940
+ let f = u;
941
+ if (typeof u == "function")
942
+ f = u(i);
943
+ else if (typeof u != "object")
944
+ return u;
945
+ if (!f)
946
+ return null;
947
+ const p = rt(i.breakpoints), h = Object.keys(p);
948
+ let g = p;
949
+ return Object.keys(f).forEach((d) => {
950
+ const b = sr(f[d], i);
951
+ if (b != null)
952
+ if (typeof b == "object")
953
+ if (a[d])
954
+ g = ae(g, e(d, b, i, a));
955
+ else {
956
+ const m = j({
957
+ theme: i
958
+ }, b, (s) => ({
959
+ [d]: s
960
+ }));
961
+ ar(m, b) ? g[d] = t({
962
+ sx: b,
963
+ theme: i
964
+ }) : g = ae(g, m);
965
+ }
966
+ else
967
+ g = ae(g, e(d, b, i, a));
968
+ }), yt(i, nt(h, g));
969
+ }
970
+ return Array.isArray(n) ? n.map(l) : l(n);
971
+ }
972
+ return t;
973
+ }
974
+ const ve = lr();
975
+ ve.filterProps = ["sx"];
976
+ const cr = (e) => {
977
+ const t = Object.keys(e).map((r) => ({
978
+ key: r,
979
+ val: e[r]
980
+ })) || [];
981
+ return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => ({
982
+ ...r,
983
+ [n.key]: n.val
984
+ }), {});
985
+ };
986
+ function ur(e) {
987
+ const {
988
+ // The breakpoint **start** at this value.
989
+ // For instance with the first breakpoint xs: [xs, sm).
990
+ values: t = {
991
+ xs: 0,
992
+ // phone
993
+ sm: 600,
994
+ // tablet
995
+ md: 900,
996
+ // small laptop
997
+ lg: 1200,
998
+ // desktop
999
+ xl: 1536
1000
+ // large screen
1001
+ },
1002
+ unit: r = "px",
1003
+ step: n = 5,
1004
+ ...i
1005
+ } = e, a = cr(t), l = Object.keys(a);
1006
+ function u(d) {
1007
+ return `@media (min-width:${typeof t[d] == "number" ? t[d] : d}${r})`;
1008
+ }
1009
+ function f(d) {
1010
+ return `@media (max-width:${(typeof t[d] == "number" ? t[d] : d) - n / 100}${r})`;
1011
+ }
1012
+ function p(d, b) {
1013
+ const m = l.indexOf(b);
1014
+ return `@media (min-width:${typeof t[d] == "number" ? t[d] : d}${r}) and (max-width:${(m !== -1 && typeof t[l[m]] == "number" ? t[l[m]] : b) - n / 100}${r})`;
1015
+ }
1016
+ function h(d) {
1017
+ return l.indexOf(d) + 1 < l.length ? p(d, l[l.indexOf(d) + 1]) : u(d);
1018
+ }
1019
+ function g(d) {
1020
+ const b = l.indexOf(d);
1021
+ return b === 0 ? u(l[1]) : b === l.length - 1 ? f(l[b]) : p(d, l[l.indexOf(d) + 1]).replace("@media", "@media not all and");
1022
+ }
1023
+ return {
1024
+ keys: l,
1025
+ values: a,
1026
+ up: u,
1027
+ down: f,
1028
+ between: p,
1029
+ only: h,
1030
+ not: g,
1031
+ unit: r,
1032
+ ...i
1033
+ };
1034
+ }
1035
+ const fr = {
1036
+ borderRadius: 4
1037
+ };
1038
+ function it(e = 8, t = Ne({
1039
+ spacing: e
1040
+ })) {
1041
+ if (e.mui)
1042
+ return e;
1043
+ const r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((a) => {
1044
+ const l = t(a);
1045
+ return typeof l == "number" ? `${l}px` : l;
1046
+ }).join(" "));
1047
+ return r.mui = !0, r;
1048
+ }
1049
+ function dr(e, t) {
1050
+ var n;
1051
+ const r = this;
1052
+ if (r.vars) {
1053
+ if (!((n = r.colorSchemes) != null && n[e]) || typeof r.getColorSchemeSelector != "function")
1054
+ return {};
1055
+ let i = r.getColorSchemeSelector(e);
1056
+ return i === "&" ? t : ((i.includes("data-") || i.includes(".")) && (i = `*:where(${i.replace(/\s*&$/, "")}) &`), {
1057
+ [i]: t
1058
+ });
1059
+ }
1060
+ return r.palette.mode === e ? t : {};
1061
+ }
1062
+ function pr(e = {}, ...t) {
1063
+ const {
1064
+ breakpoints: r = {},
1065
+ palette: n = {},
1066
+ spacing: i,
1067
+ shape: a = {},
1068
+ ...l
1069
+ } = e, u = ur(r), f = it(i);
1070
+ let p = I({
1071
+ breakpoints: u,
1072
+ direction: "ltr",
1073
+ components: {},
1074
+ // Inject component definitions.
1075
+ palette: {
1076
+ mode: "light",
1077
+ ...n
1078
+ },
1079
+ spacing: f,
1080
+ shape: {
1081
+ ...fr,
1082
+ ...a
1083
+ }
1084
+ }, l);
1085
+ return p = Ct(p), p.applyStyles = dr, p = t.reduce((h, g) => I(h, g), p), p.unstable_sxConfig = {
1086
+ ...Ae,
1087
+ ...l == null ? void 0 : l.unstable_sxConfig
1088
+ }, p.unstable_sx = function(g) {
1089
+ return ve({
1090
+ sx: g,
1091
+ theme: this
1092
+ });
1093
+ }, p;
1094
+ }
1095
+ const gr = {
1096
+ active: "active",
1097
+ checked: "checked",
1098
+ completed: "completed",
1099
+ disabled: "disabled",
1100
+ error: "error",
1101
+ expanded: "expanded",
1102
+ focused: "focused",
1103
+ focusVisible: "focusVisible",
1104
+ open: "open",
1105
+ readOnly: "readOnly",
1106
+ required: "required",
1107
+ selected: "selected"
1108
+ };
1109
+ function mr(e, t, r = "Mui") {
1110
+ const n = gr[t];
1111
+ return n ? `${r}-${n}` : `${pt.generate(e)}-${t}`;
1112
+ }
1113
+ function hr(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
1114
+ return Math.max(t, Math.min(e, r));
1115
+ }
1116
+ function Ie(e, t = 0, r = 1) {
1117
+ return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), hr(e, t, r);
1118
+ }
1119
+ function yr(e) {
1120
+ e = e.slice(1);
1121
+ const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1122
+ let r = e.match(t);
1123
+ return r && r[0].length === 1 && (r = r.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, i) => i < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1124
+ }
1125
+ function K(e) {
1126
+ if (e.type)
1127
+ return e;
1128
+ if (e.charAt(0) === "#")
1129
+ return K(yr(e));
1130
+ const t = e.indexOf("("), r = e.substring(0, t);
1131
+ if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(r))
1132
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
1133
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Y(9, e));
1134
+ let n = e.substring(t + 1, e.length - 1), i;
1135
+ if (r === "color") {
1136
+ if (n = n.split(" "), i = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(i))
1137
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${i}\` color space.
1138
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Y(10, i));
1139
+ } else
1140
+ n = n.split(",");
1141
+ return n = n.map((a) => parseFloat(a)), {
1142
+ type: r,
1143
+ values: n,
1144
+ colorSpace: i
1145
+ };
1146
+ }
1147
+ const br = (e) => {
1148
+ const t = K(e);
1149
+ return t.values.slice(0, 3).map((r, n) => t.type.includes("hsl") && n !== 0 ? `${r}%` : r).join(" ");
1150
+ }, oe = (e, t) => {
1151
+ try {
1152
+ return br(e);
1153
+ } catch {
1154
+ return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
1155
+ }
1156
+ };
1157
+ function xe(e) {
1158
+ const {
1159
+ type: t,
1160
+ colorSpace: r
1161
+ } = e;
1162
+ let {
1163
+ values: n
1164
+ } = e;
1165
+ return t.includes("rgb") ? n = n.map((i, a) => a < 3 ? parseInt(i, 10) : i) : t.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.includes("color") ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
1166
+ }
1167
+ function at(e) {
1168
+ e = K(e);
1169
+ const {
1170
+ values: t
1171
+ } = e, r = t[0], n = t[1] / 100, i = t[2] / 100, a = n * Math.min(i, 1 - i), l = (p, h = (p + r / 30) % 12) => i - a * Math.max(Math.min(h - 3, 9 - h, 1), -1);
1172
+ let u = "rgb";
1173
+ const f = [Math.round(l(0) * 255), Math.round(l(8) * 255), Math.round(l(4) * 255)];
1174
+ return e.type === "hsla" && (u += "a", f.push(t[3])), xe({
1175
+ type: u,
1176
+ values: f
1177
+ });
1178
+ }
1179
+ function _e(e) {
1180
+ e = K(e);
1181
+ let t = e.type === "hsl" || e.type === "hsla" ? K(at(e)).values : e.values;
1182
+ return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
1183
+ }
1184
+ function ze(e, t) {
1185
+ const r = _e(e), n = _e(t);
1186
+ return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
1187
+ }
1188
+ function Sr(e, t) {
1189
+ return e = K(e), t = Ie(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, xe(e);
1190
+ }
1191
+ function pe(e, t, r) {
1192
+ try {
1193
+ return Sr(e, t);
1194
+ } catch {
1195
+ return e;
1196
+ }
1197
+ }
1198
+ function Pe(e, t) {
1199
+ if (e = K(e), t = Ie(t), e.type.includes("hsl"))
1200
+ e.values[2] *= 1 - t;
1201
+ else if (e.type.includes("rgb") || e.type.includes("color"))
1202
+ for (let r = 0; r < 3; r += 1)
1203
+ e.values[r] *= 1 - t;
1204
+ return xe(e);
1205
+ }
1206
+ function A(e, t, r) {
1207
+ try {
1208
+ return Pe(e, t);
1209
+ } catch {
1210
+ return e;
1211
+ }
1212
+ }
1213
+ function De(e, t) {
1214
+ if (e = K(e), t = Ie(t), e.type.includes("hsl"))
1215
+ e.values[2] += (100 - e.values[2]) * t;
1216
+ else if (e.type.includes("rgb"))
1217
+ for (let r = 0; r < 3; r += 1)
1218
+ e.values[r] += (255 - e.values[r]) * t;
1219
+ else if (e.type.includes("color"))
1220
+ for (let r = 0; r < 3; r += 1)
1221
+ e.values[r] += (1 - e.values[r]) * t;
1222
+ return xe(e);
1223
+ }
1224
+ function v(e, t, r) {
1225
+ try {
1226
+ return De(e, t);
1227
+ } catch {
1228
+ return e;
1229
+ }
1230
+ }
1231
+ function Cr(e, t = 0.15) {
1232
+ return _e(e) > 0.5 ? Pe(e, t) : De(e, t);
1233
+ }
1234
+ function ge(e, t, r) {
1235
+ try {
1236
+ return Cr(e, t);
1237
+ } catch {
1238
+ return e;
1239
+ }
1240
+ }
1241
+ function Er(e = "") {
1242
+ function t(...n) {
1243
+ if (!n.length)
1244
+ return "";
1245
+ const i = n[0];
1246
+ return typeof i == "string" && !i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/) ? `, var(--${e ? `${e}-` : ""}${i}${t(...n.slice(1))})` : `, ${i}`;
1247
+ }
1248
+ return (n, ...i) => `var(--${e ? `${e}-` : ""}${n}${t(...i)})`;
1249
+ }
1250
+ const Ge = (e, t, r, n = []) => {
1251
+ let i = e;
1252
+ t.forEach((a, l) => {
1253
+ l === t.length - 1 ? Array.isArray(i) ? i[Number(a)] = r : i && typeof i == "object" && (i[a] = r) : i && typeof i == "object" && (i[a] || (i[a] = n.includes(a) ? [] : {}), i = i[a]);
1254
+ });
1255
+ }, Tr = (e, t, r) => {
1256
+ function n(i, a = [], l = []) {
1257
+ Object.entries(i).forEach(([u, f]) => {
1258
+ (!r || r && !r([...a, u])) && f != null && (typeof f == "object" && Object.keys(f).length > 0 ? n(f, [...a, u], Array.isArray(f) ? [...l, u] : l) : t([...a, u], f, l));
1259
+ });
1260
+ }
1261
+ n(e);
1262
+ }, $r = (e, t) => typeof t == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
1263
+ function Oe(e, t) {
1264
+ const {
1265
+ prefix: r,
1266
+ shouldSkipGeneratingVar: n
1267
+ } = t || {}, i = {}, a = {}, l = {};
1268
+ return Tr(
1269
+ e,
1270
+ (u, f, p) => {
1271
+ if ((typeof f == "string" || typeof f == "number") && (!n || !n(u, f))) {
1272
+ const h = `--${r ? `${r}-` : ""}${u.join("-")}`, g = $r(u, f);
1273
+ Object.assign(i, {
1274
+ [h]: g
1275
+ }), Ge(a, u, `var(${h})`, p), Ge(l, u, `var(${h}, ${g})`, p);
1276
+ }
1277
+ },
1278
+ (u) => u[0] === "vars"
1279
+ // skip 'vars/*' paths
1280
+ ), {
1281
+ css: i,
1282
+ vars: a,
1283
+ varsWithDefaults: l
1284
+ };
1285
+ }
1286
+ function wr(e, t = {}) {
1287
+ const {
1288
+ getSelector: r = C,
1289
+ disableCssColorScheme: n,
1290
+ colorSchemeSelector: i
1291
+ } = t, {
1292
+ colorSchemes: a = {},
1293
+ components: l,
1294
+ defaultColorScheme: u = "light",
1295
+ ...f
1296
+ } = e, {
1297
+ vars: p,
1298
+ css: h,
1299
+ varsWithDefaults: g
1300
+ } = Oe(f, t);
1301
+ let d = g;
1302
+ const b = {}, {
1303
+ [u]: m,
1304
+ ...s
1305
+ } = a;
1306
+ if (Object.entries(s || {}).forEach(([E, S]) => {
1307
+ const {
1308
+ vars: B,
1309
+ css: U,
1310
+ varsWithDefaults: z
1311
+ } = Oe(S, t);
1312
+ d = I(d, z), b[E] = {
1313
+ css: U,
1314
+ vars: B
1315
+ };
1316
+ }), m) {
1317
+ const {
1318
+ css: E,
1319
+ vars: S,
1320
+ varsWithDefaults: B
1321
+ } = Oe(m, t);
1322
+ d = I(d, B), b[u] = {
1323
+ css: E,
1324
+ vars: S
1325
+ };
1326
+ }
1327
+ function C(E, S) {
1328
+ var U, z;
1329
+ let B = i;
1330
+ if (i === "class" && (B = ".%s"), i === "data" && (B = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (B = `[${i}="%s"]`), E) {
1331
+ if (B === "media")
1332
+ return e.defaultColorScheme === E ? ":root" : {
1333
+ [`@media (prefers-color-scheme: ${((z = (U = a[E]) == null ? void 0 : U.palette) == null ? void 0 : z.mode) || E})`]: {
1334
+ ":root": S
1335
+ }
1336
+ };
1337
+ if (B)
1338
+ return e.defaultColorScheme === E ? `:root, ${B.replace("%s", String(E))}` : B.replace("%s", String(E));
1339
+ }
1340
+ return ":root";
1341
+ }
1342
+ return {
1343
+ vars: d,
1344
+ generateThemeVars: () => {
1345
+ let E = {
1346
+ ...p
1347
+ };
1348
+ return Object.entries(b).forEach(([, {
1349
+ vars: S
1350
+ }]) => {
1351
+ E = I(E, S);
1352
+ }), E;
1353
+ },
1354
+ generateStyleSheets: () => {
1355
+ var te, L;
1356
+ const E = [], S = e.defaultColorScheme || "light";
1357
+ function B(o, y) {
1358
+ Object.keys(y).length && E.push(typeof o == "string" ? {
1359
+ [o]: {
1360
+ ...y
1361
+ }
1362
+ } : o);
1363
+ }
1364
+ B(r(void 0, {
1365
+ ...h
1366
+ }), h);
1367
+ const {
1368
+ [S]: U,
1369
+ ...z
1370
+ } = b;
1371
+ if (U) {
1372
+ const {
1373
+ css: o
1374
+ } = U, y = (L = (te = a[S]) == null ? void 0 : te.palette) == null ? void 0 : L.mode, w = !n && y ? {
1375
+ colorScheme: y,
1376
+ ...o
1377
+ } : {
1378
+ ...o
1379
+ };
1380
+ B(r(S, {
1381
+ ...w
1382
+ }), w);
1383
+ }
1384
+ return Object.entries(z).forEach(([o, {
1385
+ css: y
1386
+ }]) => {
1387
+ var ue, fe;
1388
+ const w = (fe = (ue = a[o]) == null ? void 0 : ue.palette) == null ? void 0 : fe.mode, N = !n && w ? {
1389
+ colorScheme: w,
1390
+ ...y
1391
+ } : {
1392
+ ...y
1393
+ };
1394
+ B(r(o, {
1395
+ ...N
1396
+ }), N);
1397
+ }), E;
1398
+ }
1399
+ };
1400
+ }
1401
+ function Ar(e) {
1402
+ return function(r) {
1403
+ return e === "media" ? (process.env.NODE_ENV !== "production" && r !== "light" && r !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`), `@media (prefers-color-scheme: ${r})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${r}"] &` : e === "class" ? `.${r} &` : e === "data" ? `[data-${r}] &` : `${e.replace("%s", r)} &` : "&";
1404
+ };
1405
+ }
1406
+ const se = {
1407
+ black: "#000",
1408
+ white: "#fff"
1409
+ }, vr = {
1410
+ 50: "#fafafa",
1411
+ 100: "#f5f5f5",
1412
+ 200: "#eeeeee",
1413
+ 300: "#e0e0e0",
1414
+ 400: "#bdbdbd",
1415
+ 500: "#9e9e9e",
1416
+ 600: "#757575",
1417
+ 700: "#616161",
1418
+ 800: "#424242",
1419
+ 900: "#212121",
1420
+ A100: "#f5f5f5",
1421
+ A200: "#eeeeee",
1422
+ A400: "#bdbdbd",
1423
+ A700: "#616161"
1424
+ }, q = {
1425
+ 50: "#f3e5f5",
1426
+ 200: "#ce93d8",
1427
+ 300: "#ba68c8",
1428
+ 400: "#ab47bc",
1429
+ 500: "#9c27b0",
1430
+ 700: "#7b1fa2"
1431
+ }, Q = {
1432
+ 300: "#e57373",
1433
+ 400: "#ef5350",
1434
+ 500: "#f44336",
1435
+ 700: "#d32f2f",
1436
+ 800: "#c62828"
1437
+ }, ne = {
1438
+ 300: "#ffb74d",
1439
+ 400: "#ffa726",
1440
+ 500: "#ff9800",
1441
+ 700: "#f57c00",
1442
+ 900: "#e65100"
1443
+ }, X = {
1444
+ 50: "#e3f2fd",
1445
+ 200: "#90caf9",
1446
+ 400: "#42a5f5",
1447
+ 700: "#1976d2",
1448
+ 800: "#1565c0"
1449
+ }, J = {
1450
+ 300: "#4fc3f7",
1451
+ 400: "#29b6f6",
1452
+ 500: "#03a9f4",
1453
+ 700: "#0288d1",
1454
+ 900: "#01579b"
1455
+ }, Z = {
1456
+ 300: "#81c784",
1457
+ 400: "#66bb6a",
1458
+ 500: "#4caf50",
1459
+ 700: "#388e3c",
1460
+ 800: "#2e7d32",
1461
+ 900: "#1b5e20"
1462
+ };
1463
+ function st() {
1464
+ return {
1465
+ // The colors used to style the text.
1466
+ text: {
1467
+ // The most important text.
1468
+ primary: "rgba(0, 0, 0, 0.87)",
1469
+ // Secondary text.
1470
+ secondary: "rgba(0, 0, 0, 0.6)",
1471
+ // Disabled text have even lower visual prominence.
1472
+ disabled: "rgba(0, 0, 0, 0.38)"
1473
+ },
1474
+ // The color used to divide different elements.
1475
+ divider: "rgba(0, 0, 0, 0.12)",
1476
+ // The background colors used to style the surfaces.
1477
+ // Consistency between these values is important.
1478
+ background: {
1479
+ paper: se.white,
1480
+ default: se.white
1481
+ },
1482
+ // The colors used to style the action elements.
1483
+ action: {
1484
+ // The color of an active action like an icon button.
1485
+ active: "rgba(0, 0, 0, 0.54)",
1486
+ // The color of an hovered action.
1487
+ hover: "rgba(0, 0, 0, 0.04)",
1488
+ hoverOpacity: 0.04,
1489
+ // The color of a selected action.
1490
+ selected: "rgba(0, 0, 0, 0.08)",
1491
+ selectedOpacity: 0.08,
1492
+ // The color of a disabled action.
1493
+ disabled: "rgba(0, 0, 0, 0.26)",
1494
+ // The background color of a disabled action.
1495
+ disabledBackground: "rgba(0, 0, 0, 0.12)",
1496
+ disabledOpacity: 0.38,
1497
+ focus: "rgba(0, 0, 0, 0.12)",
1498
+ focusOpacity: 0.12,
1499
+ activatedOpacity: 0.12
1500
+ }
1501
+ };
1502
+ }
1503
+ const xr = st();
1504
+ function lt() {
1505
+ return {
1506
+ text: {
1507
+ primary: se.white,
1508
+ secondary: "rgba(255, 255, 255, 0.7)",
1509
+ disabled: "rgba(255, 255, 255, 0.5)",
1510
+ icon: "rgba(255, 255, 255, 0.5)"
1511
+ },
1512
+ divider: "rgba(255, 255, 255, 0.12)",
1513
+ background: {
1514
+ paper: "#121212",
1515
+ default: "#121212"
1516
+ },
1517
+ action: {
1518
+ active: se.white,
1519
+ hover: "rgba(255, 255, 255, 0.08)",
1520
+ hoverOpacity: 0.08,
1521
+ selected: "rgba(255, 255, 255, 0.16)",
1522
+ selectedOpacity: 0.16,
1523
+ disabled: "rgba(255, 255, 255, 0.3)",
1524
+ disabledBackground: "rgba(255, 255, 255, 0.12)",
1525
+ disabledOpacity: 0.38,
1526
+ focus: "rgba(255, 255, 255, 0.12)",
1527
+ focusOpacity: 0.12,
1528
+ activatedOpacity: 0.24
1529
+ }
1530
+ };
1531
+ }
1532
+ const Ye = lt();
1533
+ function Ke(e, t, r, n) {
1534
+ const i = n.light || n, a = n.dark || n * 1.5;
1535
+ e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = De(e.main, i) : t === "dark" && (e.dark = Pe(e.main, a)));
1536
+ }
1537
+ function Or(e = "light") {
1538
+ return e === "dark" ? {
1539
+ main: X[200],
1540
+ light: X[50],
1541
+ dark: X[400]
1542
+ } : {
1543
+ main: X[700],
1544
+ light: X[400],
1545
+ dark: X[800]
1546
+ };
1547
+ }
1548
+ function kr(e = "light") {
1549
+ return e === "dark" ? {
1550
+ main: q[200],
1551
+ light: q[50],
1552
+ dark: q[400]
1553
+ } : {
1554
+ main: q[500],
1555
+ light: q[300],
1556
+ dark: q[700]
1557
+ };
1558
+ }
1559
+ function _r(e = "light") {
1560
+ return e === "dark" ? {
1561
+ main: Q[500],
1562
+ light: Q[300],
1563
+ dark: Q[700]
1564
+ } : {
1565
+ main: Q[700],
1566
+ light: Q[400],
1567
+ dark: Q[800]
1568
+ };
1569
+ }
1570
+ function Rr(e = "light") {
1571
+ return e === "dark" ? {
1572
+ main: J[400],
1573
+ light: J[300],
1574
+ dark: J[700]
1575
+ } : {
1576
+ main: J[700],
1577
+ light: J[500],
1578
+ dark: J[900]
1579
+ };
1580
+ }
1581
+ function Nr(e = "light") {
1582
+ return e === "dark" ? {
1583
+ main: Z[400],
1584
+ light: Z[300],
1585
+ dark: Z[700]
1586
+ } : {
1587
+ main: Z[800],
1588
+ light: Z[500],
1589
+ dark: Z[900]
1590
+ };
1591
+ }
1592
+ function Br(e = "light") {
1593
+ return e === "dark" ? {
1594
+ main: ne[400],
1595
+ light: ne[300],
1596
+ dark: ne[700]
1597
+ } : {
1598
+ main: "#ed6c02",
1599
+ // closest to orange[800] that pass 3:1.
1600
+ light: ne[500],
1601
+ dark: ne[900]
1602
+ };
1603
+ }
1604
+ function Me(e) {
1605
+ const {
1606
+ mode: t = "light",
1607
+ contrastThreshold: r = 3,
1608
+ tonalOffset: n = 0.2,
1609
+ ...i
1610
+ } = e, a = e.primary || Or(t), l = e.secondary || kr(t), u = e.error || _r(t), f = e.info || Rr(t), p = e.success || Nr(t), h = e.warning || Br(t);
1611
+ function g(s) {
1612
+ const C = ze(s, Ye.text.primary) >= r ? Ye.text.primary : xr.text.primary;
1613
+ if (process.env.NODE_ENV !== "production") {
1614
+ const x = ze(s, C);
1615
+ x < 3 && console.error([`MUI: The contrast ratio of ${x}:1 for ${C} on ${s}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
1616
+ `));
1617
+ }
1618
+ return C;
1619
+ }
1620
+ const d = ({
1621
+ color: s,
1622
+ name: C,
1623
+ mainShade: x = 500,
1624
+ lightShade: F = 300,
1625
+ darkShade: E = 700
1626
+ }) => {
1627
+ if (s = {
1628
+ ...s
1629
+ }, !s.main && s[x] && (s.main = s[x]), !s.hasOwnProperty("main"))
1630
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
1631
+ The color object needs to have a \`main\` property or a \`${x}\` property.` : Y(11, C ? ` (${C})` : "", x));
1632
+ if (typeof s.main != "string")
1633
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${C ? ` (${C})` : ""} provided to augmentColor(color) is invalid.
1634
+ \`color.main\` should be a string, but \`${JSON.stringify(s.main)}\` was provided instead.
1635
+
1636
+ Did you intend to use one of the following approaches?
1637
+
1638
+ import { green } from "@mui/material/colors";
1639
+
1640
+ const theme1 = createTheme({ palette: {
1641
+ primary: green,
1642
+ } });
1643
+
1644
+ const theme2 = createTheme({ palette: {
1645
+ primary: { main: green[500] },
1646
+ } });` : Y(12, C ? ` (${C})` : "", JSON.stringify(s.main)));
1647
+ return Ke(s, "light", F, n), Ke(s, "dark", E, n), s.contrastText || (s.contrastText = g(s.main)), s;
1648
+ };
1649
+ let b;
1650
+ return t === "light" ? b = st() : t === "dark" && (b = lt()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), I({
1651
+ // A collection of common colors.
1652
+ common: {
1653
+ ...se
1654
+ },
1655
+ // prevent mutable object.
1656
+ // The palette mode, can be light or dark.
1657
+ mode: t,
1658
+ // The colors used to represent primary interface elements for a user.
1659
+ primary: d({
1660
+ color: a,
1661
+ name: "primary"
1662
+ }),
1663
+ // The colors used to represent secondary interface elements for a user.
1664
+ secondary: d({
1665
+ color: l,
1666
+ name: "secondary",
1667
+ mainShade: "A400",
1668
+ lightShade: "A200",
1669
+ darkShade: "A700"
1670
+ }),
1671
+ // The colors used to represent interface elements that the user should be made aware of.
1672
+ error: d({
1673
+ color: u,
1674
+ name: "error"
1675
+ }),
1676
+ // The colors used to represent potentially dangerous actions or important messages.
1677
+ warning: d({
1678
+ color: h,
1679
+ name: "warning"
1680
+ }),
1681
+ // The colors used to present information to the user that is neutral and not necessarily important.
1682
+ info: d({
1683
+ color: f,
1684
+ name: "info"
1685
+ }),
1686
+ // The colors used to indicate the successful completion of an action that user triggered.
1687
+ success: d({
1688
+ color: p,
1689
+ name: "success"
1690
+ }),
1691
+ // The grey colors.
1692
+ grey: vr,
1693
+ // Used by `getContrastText()` to maximize the contrast between
1694
+ // the background and the text.
1695
+ contrastThreshold: r,
1696
+ // Takes a background color and returns the text color that maximizes the contrast.
1697
+ getContrastText: g,
1698
+ // Generate a rich color object.
1699
+ augmentColor: d,
1700
+ // Used by the functions below to shift a color's luminance by approximately
1701
+ // two indexes within its tonal palette.
1702
+ // E.g., shift from Red 500 to Red 300 or Red 700.
1703
+ tonalOffset: n,
1704
+ // The light and dark mode object.
1705
+ ...b
1706
+ }, i);
1707
+ }
1708
+ function Ir(e) {
1709
+ const t = {};
1710
+ return Object.entries(e).forEach((n) => {
1711
+ const [i, a] = n;
1712
+ typeof a == "object" && (t[i] = `${a.fontStyle ? `${a.fontStyle} ` : ""}${a.fontVariant ? `${a.fontVariant} ` : ""}${a.fontWeight ? `${a.fontWeight} ` : ""}${a.fontStretch ? `${a.fontStretch} ` : ""}${a.fontSize || ""}${a.lineHeight ? `/${a.lineHeight} ` : ""}${a.fontFamily || ""}`);
1713
+ }), t;
1714
+ }
1715
+ function Pr(e, t) {
1716
+ return {
1717
+ toolbar: {
1718
+ minHeight: 56,
1719
+ [e.up("xs")]: {
1720
+ "@media (orientation: landscape)": {
1721
+ minHeight: 48
1722
+ }
1723
+ },
1724
+ [e.up("sm")]: {
1725
+ minHeight: 64
1726
+ }
1727
+ },
1728
+ ...t
1729
+ };
1730
+ }
1731
+ function Dr(e) {
1732
+ return Math.round(e * 1e5) / 1e5;
1733
+ }
1734
+ const He = {
1735
+ textTransform: "uppercase"
1736
+ }, qe = '"Roboto", "Helvetica", "Arial", sans-serif';
1737
+ function Mr(e, t) {
1738
+ const {
1739
+ fontFamily: r = qe,
1740
+ // The default font size of the Material Specification.
1741
+ fontSize: n = 14,
1742
+ // px
1743
+ fontWeightLight: i = 300,
1744
+ fontWeightRegular: a = 400,
1745
+ fontWeightMedium: l = 500,
1746
+ fontWeightBold: u = 700,
1747
+ // Tell MUI what's the font-size on the html element.
1748
+ // 16px is the default font-size used by browsers.
1749
+ htmlFontSize: f = 16,
1750
+ // Apply the CSS properties to all the variants.
1751
+ allVariants: p,
1752
+ pxToRem: h,
1753
+ ...g
1754
+ } = typeof t == "function" ? t(e) : t;
1755
+ process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
1756
+ const d = n / 14, b = h || ((C) => `${C / f * d}rem`), m = (C, x, F, E, S) => ({
1757
+ fontFamily: r,
1758
+ fontWeight: C,
1759
+ fontSize: b(x),
1760
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
1761
+ lineHeight: F,
1762
+ // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
1763
+ // across font-families can cause issues with the kerning.
1764
+ ...r === qe ? {
1765
+ letterSpacing: `${Dr(E / x)}em`
1766
+ } : {},
1767
+ ...S,
1768
+ ...p
1769
+ }), s = {
1770
+ h1: m(i, 96, 1.167, -1.5),
1771
+ h2: m(i, 60, 1.2, -0.5),
1772
+ h3: m(a, 48, 1.167, 0),
1773
+ h4: m(a, 34, 1.235, 0.25),
1774
+ h5: m(a, 24, 1.334, 0),
1775
+ h6: m(l, 20, 1.6, 0.15),
1776
+ subtitle1: m(a, 16, 1.75, 0.15),
1777
+ subtitle2: m(l, 14, 1.57, 0.1),
1778
+ body1: m(a, 16, 1.5, 0.15),
1779
+ body2: m(a, 14, 1.43, 0.15),
1780
+ button: m(l, 14, 1.75, 0.4, He),
1781
+ caption: m(a, 12, 1.66, 0.4),
1782
+ overline: m(a, 12, 2.66, 1, He),
1783
+ // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
1784
+ inherit: {
1785
+ fontFamily: "inherit",
1786
+ fontWeight: "inherit",
1787
+ fontSize: "inherit",
1788
+ lineHeight: "inherit",
1789
+ letterSpacing: "inherit"
1790
+ }
1791
+ };
1792
+ return I({
1793
+ htmlFontSize: f,
1794
+ pxToRem: b,
1795
+ fontFamily: r,
1796
+ fontSize: n,
1797
+ fontWeightLight: i,
1798
+ fontWeightRegular: a,
1799
+ fontWeightMedium: l,
1800
+ fontWeightBold: u,
1801
+ ...s
1802
+ }, g, {
1803
+ clone: !1
1804
+ // No need to clone deep
1805
+ });
1806
+ }
1807
+ const Fr = 0.2, Lr = 0.14, Vr = 0.12;
1808
+ function O(...e) {
1809
+ return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fr})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Lr})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vr})`].join(",");
1810
+ }
1811
+ const Ur = ["none", O(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), O(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), O(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), O(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), O(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), O(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), O(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), O(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), O(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), O(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), O(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), O(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), O(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), O(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), O(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), O(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), O(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), O(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), O(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), O(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), O(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), O(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), O(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), O(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Wr = {
1812
+ // This is the most common easing curve.
1813
+ easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
1814
+ // Objects enter the screen at full velocity from off-screen and
1815
+ // slowly decelerate to a resting point.
1816
+ easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
1817
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
1818
+ easeIn: "cubic-bezier(0.4, 0, 1, 1)",
1819
+ // The sharp curve is used by objects that may return to the screen at any time.
1820
+ sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
1821
+ }, jr = {
1822
+ shortest: 150,
1823
+ shorter: 200,
1824
+ short: 250,
1825
+ // most basic recommended timing
1826
+ standard: 300,
1827
+ // this is to be used in complex animations
1828
+ complex: 375,
1829
+ // recommended when something is entering screen
1830
+ enteringScreen: 225,
1831
+ // recommended when something is leaving screen
1832
+ leavingScreen: 195
1833
+ };
1834
+ function Qe(e) {
1835
+ return `${Math.round(e)}ms`;
1836
+ }
1837
+ function zr(e) {
1838
+ if (!e)
1839
+ return 0;
1840
+ const t = e / 36;
1841
+ return Math.min(Math.round((4 + 15 * t ** 0.25 + t / 5) * 10), 3e3);
1842
+ }
1843
+ function Gr(e) {
1844
+ const t = {
1845
+ ...Wr,
1846
+ ...e.easing
1847
+ }, r = {
1848
+ ...jr,
1849
+ ...e.duration
1850
+ };
1851
+ return {
1852
+ getAutoHeightDuration: zr,
1853
+ create: (i = ["all"], a = {}) => {
1854
+ const {
1855
+ duration: l = r.standard,
1856
+ easing: u = t.easeInOut,
1857
+ delay: f = 0,
1858
+ ...p
1859
+ } = a;
1860
+ if (process.env.NODE_ENV !== "production") {
1861
+ const h = (d) => typeof d == "string", g = (d) => !Number.isNaN(parseFloat(d));
1862
+ !h(i) && !Array.isArray(i) && console.error('MUI: Argument "props" must be a string or Array.'), !g(l) && !h(l) && console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`), h(u) || console.error('MUI: Argument "easing" must be a string.'), !g(f) && !h(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
1863
+ `)), Object.keys(p).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`);
1864
+ }
1865
+ return (Array.isArray(i) ? i : [i]).map((h) => `${h} ${typeof l == "string" ? l : Qe(l)} ${u} ${typeof f == "string" ? f : Qe(f)}`).join(",");
1866
+ },
1867
+ ...e,
1868
+ easing: t,
1869
+ duration: r
1870
+ };
1871
+ }
1872
+ const Yr = {
1873
+ mobileStepper: 1e3,
1874
+ fab: 1050,
1875
+ speedDial: 1050,
1876
+ appBar: 1100,
1877
+ drawer: 1200,
1878
+ modal: 1300,
1879
+ snackbar: 1400,
1880
+ tooltip: 1500
1881
+ };
1882
+ function Kr(e) {
1883
+ return G(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
1884
+ }
1885
+ function ct(e = {}) {
1886
+ const t = {
1887
+ ...e
1888
+ };
1889
+ function r(n) {
1890
+ const i = Object.entries(n);
1891
+ for (let a = 0; a < i.length; a++) {
1892
+ const [l, u] = i[a];
1893
+ !Kr(u) || l.startsWith("unstable_") ? delete n[l] : G(u) && (n[l] = {
1894
+ ...u
1895
+ }, r(n[l]));
1896
+ }
1897
+ }
1898
+ return r(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
1899
+
1900
+ const theme = ${JSON.stringify(t, null, 2)};
1901
+
1902
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
1903
+ theme.transitions = createTransitions(theme.transitions || {});
1904
+
1905
+ export default theme;`;
1906
+ }
1907
+ function Re(e = {}, ...t) {
1908
+ const {
1909
+ breakpoints: r,
1910
+ mixins: n = {},
1911
+ spacing: i,
1912
+ palette: a = {},
1913
+ transitions: l = {},
1914
+ typography: u = {},
1915
+ shape: f,
1916
+ ...p
1917
+ } = e;
1918
+ if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
1919
+ // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
1920
+ e.generateThemeVars === void 0)
1921
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Y(20));
1922
+ const h = Me(a), g = pr(e);
1923
+ let d = I(g, {
1924
+ mixins: Pr(g.breakpoints, n),
1925
+ palette: h,
1926
+ // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
1927
+ shadows: Ur.slice(),
1928
+ typography: Mr(h, u),
1929
+ transitions: Gr(l),
1930
+ zIndex: {
1931
+ ...Yr
1932
+ }
1933
+ });
1934
+ if (d = I(d, p), d = t.reduce((b, m) => I(b, m), d), process.env.NODE_ENV !== "production") {
1935
+ const b = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], m = (s, C) => {
1936
+ let x;
1937
+ for (x in s) {
1938
+ const F = s[x];
1939
+ if (b.includes(x) && Object.keys(F).length > 0) {
1940
+ if (process.env.NODE_ENV !== "production") {
1941
+ const E = mr("", x);
1942
+ console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${x}\` internal state.`, "You can not override it like this: ", JSON.stringify(s, null, 2), "", `Instead, you need to use the '&.${E}' syntax:`, JSON.stringify({
1943
+ root: {
1944
+ [`&.${E}`]: F
1945
+ }
1946
+ }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
1947
+ `));
1948
+ }
1949
+ s[x] = {};
1950
+ }
1951
+ }
1952
+ };
1953
+ Object.keys(d.components).forEach((s) => {
1954
+ const C = d.components[s].styleOverrides;
1955
+ C && s.startsWith("Mui") && m(C, s);
1956
+ });
1957
+ }
1958
+ return d.unstable_sxConfig = {
1959
+ ...Ae,
1960
+ ...p == null ? void 0 : p.unstable_sxConfig
1961
+ }, d.unstable_sx = function(m) {
1962
+ return ve({
1963
+ sx: m,
1964
+ theme: this
1965
+ });
1966
+ }, d.toRuntimeSource = ct, d;
1967
+ }
1968
+ function Hr(e) {
1969
+ let t;
1970
+ return e < 1 ? t = 5.11916 * e ** 2 : t = 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
1971
+ }
1972
+ const qr = [...Array(25)].map((e, t) => {
1973
+ if (t === 0)
1974
+ return "none";
1975
+ const r = Hr(t);
1976
+ return `linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`;
1977
+ });
1978
+ function ut(e) {
1979
+ return {
1980
+ inputPlaceholder: e === "dark" ? 0.5 : 0.42,
1981
+ inputUnderline: e === "dark" ? 0.7 : 0.42,
1982
+ switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
1983
+ switchTrack: e === "dark" ? 0.3 : 0.38
1984
+ };
1985
+ }
1986
+ function ft(e) {
1987
+ return e === "dark" ? qr : [];
1988
+ }
1989
+ function Qr(e) {
1990
+ const {
1991
+ palette: t = {
1992
+ mode: "light"
1993
+ },
1994
+ // need to cast to avoid module augmentation test
1995
+ opacity: r,
1996
+ overlays: n,
1997
+ ...i
1998
+ } = e, a = Me(t);
1999
+ return {
2000
+ palette: a,
2001
+ opacity: {
2002
+ ...ut(a.mode),
2003
+ ...r
2004
+ },
2005
+ overlays: n || ft(a.mode),
2006
+ ...i
2007
+ };
2008
+ }
2009
+ function Xr(e) {
2010
+ var t;
2011
+ return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
2012
+ e[0] === "palette" && !!((t = e[1]) != null && t.match(/(mode|contrastThreshold|tonalOffset)/));
2013
+ }
2014
+ const Jr = (e) => [...[...Array(25)].map((t, r) => `--${e ? `${e}-` : ""}overlays-${r}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Zr = (e) => (t, r) => {
2015
+ const n = e.rootSelector || ":root", i = e.colorSchemeSelector;
2016
+ let a = i;
2017
+ if (i === "class" && (a = ".%s"), i === "data" && (a = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (a = `[${i}="%s"]`), e.defaultColorScheme === t) {
2018
+ if (t === "dark") {
2019
+ const l = {};
2020
+ return Jr(e.cssVarPrefix).forEach((u) => {
2021
+ l[u] = r[u], delete r[u];
2022
+ }), a === "media" ? {
2023
+ [n]: r,
2024
+ "@media (prefers-color-scheme: dark)": {
2025
+ [n]: l
2026
+ }
2027
+ } : a ? {
2028
+ [a.replace("%s", t)]: l,
2029
+ [`${n}, ${a.replace("%s", t)}`]: r
2030
+ } : {
2031
+ [n]: {
2032
+ ...r,
2033
+ ...l
2034
+ }
2035
+ };
2036
+ }
2037
+ if (a && a !== "media")
2038
+ return `${n}, ${a.replace("%s", String(t))}`;
2039
+ } else if (t) {
2040
+ if (a === "media")
2041
+ return {
2042
+ [`@media (prefers-color-scheme: ${String(t)})`]: {
2043
+ [n]: r
2044
+ }
2045
+ };
2046
+ if (a)
2047
+ return a.replace("%s", String(t));
2048
+ }
2049
+ return n;
2050
+ };
2051
+ function en(e, t) {
2052
+ t.forEach((r) => {
2053
+ e[r] || (e[r] = {});
2054
+ });
2055
+ }
2056
+ function c(e, t, r) {
2057
+ !e[t] && r && (e[t] = r);
2058
+ }
2059
+ function ie(e) {
2060
+ return typeof e != "string" || !e.startsWith("hsl") ? e : at(e);
2061
+ }
2062
+ function W(e, t) {
2063
+ `${t}Channel` in e || (e[`${t}Channel`] = oe(ie(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
2064
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
2065
+ }
2066
+ function tn(e) {
2067
+ return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
2068
+ }
2069
+ const V = (e) => {
2070
+ try {
2071
+ return e();
2072
+ } catch {
2073
+ }
2074
+ }, rn = (e = "mui") => Er(e);
2075
+ function ke(e, t, r, n) {
2076
+ if (!t)
2077
+ return;
2078
+ t = t === !0 ? {} : t;
2079
+ const i = n === "dark" ? "dark" : "light";
2080
+ if (!r) {
2081
+ e[n] = Qr({
2082
+ ...t,
2083
+ palette: {
2084
+ mode: i,
2085
+ ...t == null ? void 0 : t.palette
2086
+ }
2087
+ });
2088
+ return;
2089
+ }
2090
+ const {
2091
+ palette: a,
2092
+ ...l
2093
+ } = Re({
2094
+ ...r,
2095
+ palette: {
2096
+ mode: i,
2097
+ ...t == null ? void 0 : t.palette
2098
+ }
2099
+ });
2100
+ return e[n] = {
2101
+ ...t,
2102
+ palette: a,
2103
+ opacity: {
2104
+ ...ut(i),
2105
+ ...t == null ? void 0 : t.opacity
2106
+ },
2107
+ overlays: (t == null ? void 0 : t.overlays) || ft(i)
2108
+ }, l;
2109
+ }
2110
+ function nn(e = {}, ...t) {
2111
+ const {
2112
+ colorSchemes: r = {
2113
+ light: !0
2114
+ },
2115
+ defaultColorScheme: n,
2116
+ disableCssColorScheme: i = !1,
2117
+ cssVarPrefix: a = "mui",
2118
+ shouldSkipGeneratingVar: l = Xr,
2119
+ colorSchemeSelector: u = r.light && r.dark ? "media" : void 0,
2120
+ rootSelector: f = ":root",
2121
+ ...p
2122
+ } = e, h = Object.keys(r)[0], g = n || (r.light && h !== "light" ? "light" : h), d = rn(a), {
2123
+ [g]: b,
2124
+ light: m,
2125
+ dark: s,
2126
+ ...C
2127
+ } = r, x = {
2128
+ ...C
2129
+ };
2130
+ let F = b;
2131
+ if ((g === "dark" && !("dark" in r) || g === "light" && !("light" in r)) && (F = !0), !F)
2132
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${g}\` option is either missing or invalid.` : Y(21, g));
2133
+ const E = ke(x, F, p, g);
2134
+ m && !x.light && ke(x, m, void 0, "light"), s && !x.dark && ke(x, s, void 0, "dark");
2135
+ let S = {
2136
+ defaultColorScheme: g,
2137
+ ...E,
2138
+ cssVarPrefix: a,
2139
+ colorSchemeSelector: u,
2140
+ rootSelector: f,
2141
+ getCssVar: d,
2142
+ colorSchemes: x,
2143
+ font: {
2144
+ ...Ir(E.typography),
2145
+ ...E.font
2146
+ },
2147
+ spacing: tn(p.spacing)
2148
+ };
2149
+ Object.keys(S.colorSchemes).forEach((L) => {
2150
+ const o = S.colorSchemes[L].palette, y = (w) => {
2151
+ const N = w.split("-"), ue = N[1], fe = N[2];
2152
+ return d(w, o[ue][fe]);
2153
+ };
2154
+ if (o.mode === "light" && (c(o.common, "background", "#fff"), c(o.common, "onBackground", "#000")), o.mode === "dark" && (c(o.common, "background", "#000"), c(o.common, "onBackground", "#fff")), en(o, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), o.mode === "light") {
2155
+ c(o.Alert, "errorColor", A(o.error.light, 0.6)), c(o.Alert, "infoColor", A(o.info.light, 0.6)), c(o.Alert, "successColor", A(o.success.light, 0.6)), c(o.Alert, "warningColor", A(o.warning.light, 0.6)), c(o.Alert, "errorFilledBg", y("palette-error-main")), c(o.Alert, "infoFilledBg", y("palette-info-main")), c(o.Alert, "successFilledBg", y("palette-success-main")), c(o.Alert, "warningFilledBg", y("palette-warning-main")), c(o.Alert, "errorFilledColor", V(() => o.getContrastText(o.error.main))), c(o.Alert, "infoFilledColor", V(() => o.getContrastText(o.info.main))), c(o.Alert, "successFilledColor", V(() => o.getContrastText(o.success.main))), c(o.Alert, "warningFilledColor", V(() => o.getContrastText(o.warning.main))), c(o.Alert, "errorStandardBg", v(o.error.light, 0.9)), c(o.Alert, "infoStandardBg", v(o.info.light, 0.9)), c(o.Alert, "successStandardBg", v(o.success.light, 0.9)), c(o.Alert, "warningStandardBg", v(o.warning.light, 0.9)), c(o.Alert, "errorIconColor", y("palette-error-main")), c(o.Alert, "infoIconColor", y("palette-info-main")), c(o.Alert, "successIconColor", y("palette-success-main")), c(o.Alert, "warningIconColor", y("palette-warning-main")), c(o.AppBar, "defaultBg", y("palette-grey-100")), c(o.Avatar, "defaultBg", y("palette-grey-400")), c(o.Button, "inheritContainedBg", y("palette-grey-300")), c(o.Button, "inheritContainedHoverBg", y("palette-grey-A100")), c(o.Chip, "defaultBorder", y("palette-grey-400")), c(o.Chip, "defaultAvatarColor", y("palette-grey-700")), c(o.Chip, "defaultIconColor", y("palette-grey-700")), c(o.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), c(o.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), c(o.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), c(o.LinearProgress, "primaryBg", v(o.primary.main, 0.62)), c(o.LinearProgress, "secondaryBg", v(o.secondary.main, 0.62)), c(o.LinearProgress, "errorBg", v(o.error.main, 0.62)), c(o.LinearProgress, "infoBg", v(o.info.main, 0.62)), c(o.LinearProgress, "successBg", v(o.success.main, 0.62)), c(o.LinearProgress, "warningBg", v(o.warning.main, 0.62)), c(o.Skeleton, "bg", `rgba(${y("palette-text-primaryChannel")} / 0.11)`), c(o.Slider, "primaryTrack", v(o.primary.main, 0.62)), c(o.Slider, "secondaryTrack", v(o.secondary.main, 0.62)), c(o.Slider, "errorTrack", v(o.error.main, 0.62)), c(o.Slider, "infoTrack", v(o.info.main, 0.62)), c(o.Slider, "successTrack", v(o.success.main, 0.62)), c(o.Slider, "warningTrack", v(o.warning.main, 0.62));
2156
+ const w = ge(o.background.default, 0.8);
2157
+ c(o.SnackbarContent, "bg", w), c(o.SnackbarContent, "color", V(() => o.getContrastText(w))), c(o.SpeedDialAction, "fabHoverBg", ge(o.background.paper, 0.15)), c(o.StepConnector, "border", y("palette-grey-400")), c(o.StepContent, "border", y("palette-grey-400")), c(o.Switch, "defaultColor", y("palette-common-white")), c(o.Switch, "defaultDisabledColor", y("palette-grey-100")), c(o.Switch, "primaryDisabledColor", v(o.primary.main, 0.62)), c(o.Switch, "secondaryDisabledColor", v(o.secondary.main, 0.62)), c(o.Switch, "errorDisabledColor", v(o.error.main, 0.62)), c(o.Switch, "infoDisabledColor", v(o.info.main, 0.62)), c(o.Switch, "successDisabledColor", v(o.success.main, 0.62)), c(o.Switch, "warningDisabledColor", v(o.warning.main, 0.62)), c(o.TableCell, "border", v(pe(o.divider, 1), 0.88)), c(o.Tooltip, "bg", pe(o.grey[700], 0.92));
2158
+ }
2159
+ if (o.mode === "dark") {
2160
+ c(o.Alert, "errorColor", v(o.error.light, 0.6)), c(o.Alert, "infoColor", v(o.info.light, 0.6)), c(o.Alert, "successColor", v(o.success.light, 0.6)), c(o.Alert, "warningColor", v(o.warning.light, 0.6)), c(o.Alert, "errorFilledBg", y("palette-error-dark")), c(o.Alert, "infoFilledBg", y("palette-info-dark")), c(o.Alert, "successFilledBg", y("palette-success-dark")), c(o.Alert, "warningFilledBg", y("palette-warning-dark")), c(o.Alert, "errorFilledColor", V(() => o.getContrastText(o.error.dark))), c(o.Alert, "infoFilledColor", V(() => o.getContrastText(o.info.dark))), c(o.Alert, "successFilledColor", V(() => o.getContrastText(o.success.dark))), c(o.Alert, "warningFilledColor", V(() => o.getContrastText(o.warning.dark))), c(o.Alert, "errorStandardBg", A(o.error.light, 0.9)), c(o.Alert, "infoStandardBg", A(o.info.light, 0.9)), c(o.Alert, "successStandardBg", A(o.success.light, 0.9)), c(o.Alert, "warningStandardBg", A(o.warning.light, 0.9)), c(o.Alert, "errorIconColor", y("palette-error-main")), c(o.Alert, "infoIconColor", y("palette-info-main")), c(o.Alert, "successIconColor", y("palette-success-main")), c(o.Alert, "warningIconColor", y("palette-warning-main")), c(o.AppBar, "defaultBg", y("palette-grey-900")), c(o.AppBar, "darkBg", y("palette-background-paper")), c(o.AppBar, "darkColor", y("palette-text-primary")), c(o.Avatar, "defaultBg", y("palette-grey-600")), c(o.Button, "inheritContainedBg", y("palette-grey-800")), c(o.Button, "inheritContainedHoverBg", y("palette-grey-700")), c(o.Chip, "defaultBorder", y("palette-grey-700")), c(o.Chip, "defaultAvatarColor", y("palette-grey-300")), c(o.Chip, "defaultIconColor", y("palette-grey-300")), c(o.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), c(o.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), c(o.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), c(o.LinearProgress, "primaryBg", A(o.primary.main, 0.5)), c(o.LinearProgress, "secondaryBg", A(o.secondary.main, 0.5)), c(o.LinearProgress, "errorBg", A(o.error.main, 0.5)), c(o.LinearProgress, "infoBg", A(o.info.main, 0.5)), c(o.LinearProgress, "successBg", A(o.success.main, 0.5)), c(o.LinearProgress, "warningBg", A(o.warning.main, 0.5)), c(o.Skeleton, "bg", `rgba(${y("palette-text-primaryChannel")} / 0.13)`), c(o.Slider, "primaryTrack", A(o.primary.main, 0.5)), c(o.Slider, "secondaryTrack", A(o.secondary.main, 0.5)), c(o.Slider, "errorTrack", A(o.error.main, 0.5)), c(o.Slider, "infoTrack", A(o.info.main, 0.5)), c(o.Slider, "successTrack", A(o.success.main, 0.5)), c(o.Slider, "warningTrack", A(o.warning.main, 0.5));
2161
+ const w = ge(o.background.default, 0.98);
2162
+ c(o.SnackbarContent, "bg", w), c(o.SnackbarContent, "color", V(() => o.getContrastText(w))), c(o.SpeedDialAction, "fabHoverBg", ge(o.background.paper, 0.15)), c(o.StepConnector, "border", y("palette-grey-600")), c(o.StepContent, "border", y("palette-grey-600")), c(o.Switch, "defaultColor", y("palette-grey-300")), c(o.Switch, "defaultDisabledColor", y("palette-grey-600")), c(o.Switch, "primaryDisabledColor", A(o.primary.main, 0.55)), c(o.Switch, "secondaryDisabledColor", A(o.secondary.main, 0.55)), c(o.Switch, "errorDisabledColor", A(o.error.main, 0.55)), c(o.Switch, "infoDisabledColor", A(o.info.main, 0.55)), c(o.Switch, "successDisabledColor", A(o.success.main, 0.55)), c(o.Switch, "warningDisabledColor", A(o.warning.main, 0.55)), c(o.TableCell, "border", A(pe(o.divider, 1), 0.68)), c(o.Tooltip, "bg", pe(o.grey[700], 0.92));
2163
+ }
2164
+ W(o.background, "default"), W(o.background, "paper"), W(o.common, "background"), W(o.common, "onBackground"), W(o, "divider"), Object.keys(o).forEach((w) => {
2165
+ const N = o[w];
2166
+ w !== "tonalOffset" && N && typeof N == "object" && (N.main && c(o[w], "mainChannel", oe(ie(N.main))), N.light && c(o[w], "lightChannel", oe(ie(N.light))), N.dark && c(o[w], "darkChannel", oe(ie(N.dark))), N.contrastText && c(o[w], "contrastTextChannel", oe(ie(N.contrastText))), w === "text" && (W(o[w], "primary"), W(o[w], "secondary")), w === "action" && (N.active && W(o[w], "active"), N.selected && W(o[w], "selected")));
2167
+ });
2168
+ }), S = t.reduce((L, o) => I(L, o), S);
2169
+ const B = {
2170
+ prefix: a,
2171
+ disableCssColorScheme: i,
2172
+ shouldSkipGeneratingVar: l,
2173
+ getSelector: Zr(S)
2174
+ }, {
2175
+ vars: U,
2176
+ generateThemeVars: z,
2177
+ generateStyleSheets: te
2178
+ } = wr(S, B);
2179
+ return S.vars = U, Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([L, o]) => {
2180
+ S[L] = o;
2181
+ }), S.generateThemeVars = z, S.generateStyleSheets = te, S.generateSpacing = function() {
2182
+ return it(p.spacing, Ne(this));
2183
+ }, S.getColorSchemeSelector = Ar(u), S.spacing = S.generateSpacing(), S.shouldSkipGeneratingVar = l, S.unstable_sxConfig = {
2184
+ ...Ae,
2185
+ ...p == null ? void 0 : p.unstable_sxConfig
2186
+ }, S.unstable_sx = function(o) {
2187
+ return ve({
2188
+ sx: o,
2189
+ theme: this
2190
+ });
2191
+ }, S.toRuntimeSource = ct, S;
2192
+ }
2193
+ function Xe(e, t, r) {
2194
+ e.colorSchemes && r && (e.colorSchemes[t] = {
2195
+ ...r !== !0 && r,
2196
+ palette: Me({
2197
+ ...r === !0 ? {} : r.palette,
2198
+ mode: t
2199
+ })
2200
+ // cast type to skip module augmentation test
2201
+ });
2202
+ }
2203
+ function ln(e = {}, ...t) {
2204
+ const {
2205
+ palette: r,
2206
+ cssVariables: n = !1,
2207
+ colorSchemes: i = r ? void 0 : {
2208
+ light: !0
2209
+ },
2210
+ defaultColorScheme: a = r == null ? void 0 : r.mode,
2211
+ ...l
2212
+ } = e, u = a || "light", f = i == null ? void 0 : i[u], p = {
2213
+ ...i,
2214
+ ...r ? {
2215
+ [u]: {
2216
+ ...typeof f != "boolean" && f,
2217
+ palette: r
2218
+ }
2219
+ } : void 0
2220
+ };
2221
+ if (n === !1) {
2222
+ if (!("colorSchemes" in e))
2223
+ return Re(e, ...t);
2224
+ let h = r;
2225
+ "palette" in e || p[u] && (p[u] !== !0 ? h = p[u].palette : u === "dark" && (h = {
2226
+ mode: "dark"
2227
+ }));
2228
+ const g = Re({
2229
+ ...e,
2230
+ palette: h
2231
+ }, ...t);
2232
+ return g.defaultColorScheme = u, g.colorSchemes = p, g.palette.mode === "light" && (g.colorSchemes.light = {
2233
+ ...p.light !== !0 && p.light,
2234
+ palette: g.palette
2235
+ }, Xe(g, "dark", p.dark)), g.palette.mode === "dark" && (g.colorSchemes.dark = {
2236
+ ...p.dark !== !0 && p.dark,
2237
+ palette: g.palette
2238
+ }, Xe(g, "light", p.light)), g;
2239
+ }
2240
+ return !r && !("light" in p) && u === "light" && (p.light = !0), nn({
2241
+ ...l,
2242
+ colorSchemes: p,
2243
+ defaultColorScheme: u,
2244
+ ...typeof n != "boolean" && n
2245
+ }, ...t);
2246
+ }
2247
+ export {
2248
+ pt as C,
2249
+ Sr as a,
2250
+ ln as b,
2251
+ Ze as c,
2252
+ Ae as d,
2253
+ pr as e,
2254
+ Ne as f,
2255
+ mr as g,
2256
+ j as h,
2257
+ G as i,
2258
+ I as j,
2259
+ ce as k,
2260
+ et as l,
2261
+ an as m,
2262
+ De as n,
2263
+ Pe as o,
2264
+ Y as p,
2265
+ Hr as q,
2266
+ sn as r,
2267
+ ve as s
2268
+ };