@notificationapi/react 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/assets/Badge.js +60 -64
  2. package/dist/assets/Box.js +26 -24
  3. package/dist/assets/Button.js +22 -19
  4. package/dist/assets/ButtonBase.js +193 -185
  5. package/dist/assets/DefaultPropsProvider.js +416 -4199
  6. package/dist/assets/DefaultPropsProvider2.js +992 -0
  7. package/dist/assets/Divider.js +22 -18
  8. package/dist/assets/GlobalStyles.js +23 -0
  9. package/dist/assets/Grow.js +1513 -120
  10. package/dist/assets/IconButton.js +8 -7
  11. package/dist/assets/List.js +12 -11
  12. package/dist/assets/Modal.js +18 -17
  13. package/dist/assets/Notification.js +787 -770
  14. package/dist/assets/Paper.js +8 -8
  15. package/dist/assets/Popover.js +37 -36
  16. package/dist/assets/Portal.js +39 -49
  17. package/dist/assets/Stack.js +32 -30
  18. package/dist/assets/Typography.js +84 -97
  19. package/dist/assets/createSvgIcon.js +25 -24
  20. package/dist/assets/createTheme.js +2828 -0
  21. package/dist/assets/exactProp.js +13 -0
  22. package/dist/assets/index.js +19 -148
  23. package/dist/assets/index2.js +151 -0
  24. package/dist/assets/useControlled.js +49 -0
  25. package/dist/assets/usePreviousProps.js +10 -0
  26. package/dist/assets/useTheme.js +6 -7
  27. package/dist/assets/{useTheme2.js → useThemeWithoutDefault.js} +63 -67
  28. package/dist/assets/utils.js +4 -4
  29. package/dist/components/Notifications/Inbox.js +593 -583
  30. package/dist/components/Notifications/InboxHeader.js +360 -1754
  31. package/dist/components/Notifications/Notification.js +4 -2
  32. package/dist/components/Notifications/NotificationFeed.js +40 -32
  33. package/dist/components/Notifications/NotificationLauncher.js +90 -64
  34. package/dist/components/Notifications/NotificationPopup.js +76 -65
  35. package/dist/components/Preferences/NotificationPreferencesInline.js +57 -39
  36. package/dist/components/Preferences/NotificationPreferencesPopup.js +111 -99
  37. package/dist/components/Preferences/PreferenceInput.js +427 -414
  38. package/dist/components/Preferences/Preferences.js +329 -278
  39. package/dist/components/Provider/index.d.ts +2 -0
  40. package/dist/components/Provider/index.js +1008 -401
  41. package/dist/components/Slack/SlackConnect.js +4627 -2024
  42. package/dist/main.d.ts +2 -0
  43. package/dist/main.js +6 -3
  44. package/dist/utils/theme.d.ts +17 -0
  45. package/dist/utils/theme.js +104 -0
  46. package/package.json +1 -1
  47. package/dist/assets/dividerClasses.js +0 -56
@@ -0,0 +1,2828 @@
1
+ import * as Rr from "react";
2
+ const $e = {
3
+ black: "#000",
4
+ white: "#fff"
5
+ }, ge = {
6
+ 50: "#ffebee",
7
+ 100: "#ffcdd2",
8
+ 200: "#ef9a9a",
9
+ 300: "#e57373",
10
+ 400: "#ef5350",
11
+ 500: "#f44336",
12
+ 600: "#e53935",
13
+ 700: "#d32f2f",
14
+ 800: "#c62828",
15
+ 900: "#b71c1c",
16
+ A100: "#ff8a80",
17
+ A200: "#ff5252",
18
+ A400: "#ff1744",
19
+ A700: "#d50000"
20
+ }, me = {
21
+ 50: "#f3e5f5",
22
+ 100: "#e1bee7",
23
+ 200: "#ce93d8",
24
+ 300: "#ba68c8",
25
+ 400: "#ab47bc",
26
+ 500: "#9c27b0",
27
+ 600: "#8e24aa",
28
+ 700: "#7b1fa2",
29
+ 800: "#6a1b9a",
30
+ 900: "#4a148c",
31
+ A100: "#ea80fc",
32
+ A200: "#e040fb",
33
+ A400: "#d500f9",
34
+ A700: "#aa00ff"
35
+ }, he = {
36
+ 50: "#e3f2fd",
37
+ 100: "#bbdefb",
38
+ 200: "#90caf9",
39
+ 300: "#64b5f6",
40
+ 400: "#42a5f5",
41
+ 500: "#2196f3",
42
+ 600: "#1e88e5",
43
+ 700: "#1976d2",
44
+ 800: "#1565c0",
45
+ 900: "#0d47a1",
46
+ A100: "#82b1ff",
47
+ A200: "#448aff",
48
+ A400: "#2979ff",
49
+ A700: "#2962ff"
50
+ }, ye = {
51
+ 50: "#e1f5fe",
52
+ 100: "#b3e5fc",
53
+ 200: "#81d4fa",
54
+ 300: "#4fc3f7",
55
+ 400: "#29b6f6",
56
+ 500: "#03a9f4",
57
+ 600: "#039be5",
58
+ 700: "#0288d1",
59
+ 800: "#0277bd",
60
+ 900: "#01579b",
61
+ A100: "#80d8ff",
62
+ A200: "#40c4ff",
63
+ A400: "#00b0ff",
64
+ A700: "#0091ea"
65
+ }, be = {
66
+ 50: "#e8f5e9",
67
+ 100: "#c8e6c9",
68
+ 200: "#a5d6a7",
69
+ 300: "#81c784",
70
+ 400: "#66bb6a",
71
+ 500: "#4caf50",
72
+ 600: "#43a047",
73
+ 700: "#388e3c",
74
+ 800: "#2e7d32",
75
+ 900: "#1b5e20",
76
+ A100: "#b9f6ca",
77
+ A200: "#69f0ae",
78
+ A400: "#00e676",
79
+ A700: "#00c853"
80
+ }, Se = {
81
+ 50: "#fff3e0",
82
+ 100: "#ffe0b2",
83
+ 200: "#ffcc80",
84
+ 300: "#ffb74d",
85
+ 400: "#ffa726",
86
+ 500: "#ff9800",
87
+ 600: "#fb8c00",
88
+ 700: "#f57c00",
89
+ 800: "#ef6c00",
90
+ 900: "#e65100",
91
+ A100: "#ffd180",
92
+ A200: "#ffab40",
93
+ A400: "#ff9100",
94
+ A700: "#ff6d00"
95
+ }, qr = {
96
+ 50: "#fafafa",
97
+ 100: "#f5f5f5",
98
+ 200: "#eeeeee",
99
+ 300: "#e0e0e0",
100
+ 400: "#bdbdbd",
101
+ 500: "#9e9e9e",
102
+ 600: "#757575",
103
+ 700: "#616161",
104
+ 800: "#424242",
105
+ 900: "#212121",
106
+ A100: "#f5f5f5",
107
+ A200: "#eeeeee",
108
+ A400: "#bdbdbd",
109
+ A700: "#616161"
110
+ };
111
+ function ue(e, ...r) {
112
+ const t = new URL(`https://mui.com/production-error/?code=${e}`);
113
+ return r.forEach((n) => t.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${t} for the full message.`;
114
+ }
115
+ var qn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
116
+ function Kr(e) {
117
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
118
+ }
119
+ var rr = { exports: {} }, Pe = { exports: {} }, D = {};
120
+ /** @license React v16.13.1
121
+ * react-is.production.min.js
122
+ *
123
+ * Copyright (c) Facebook, Inc. and its affiliates.
124
+ *
125
+ * This source code is licensed under the MIT license found in the
126
+ * LICENSE file in the root directory of this source tree.
127
+ */
128
+ var dr;
129
+ function Hr() {
130
+ if (dr) return D;
131
+ dr = 1;
132
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
133
+ function w(m) {
134
+ if (typeof m == "object" && m !== null) {
135
+ var q = m.$$typeof;
136
+ switch (q) {
137
+ case r:
138
+ switch (m = m.type, m) {
139
+ case u:
140
+ case d:
141
+ case n:
142
+ case a:
143
+ case i:
144
+ case p:
145
+ return m;
146
+ default:
147
+ switch (m = m && m.$$typeof, m) {
148
+ case c:
149
+ case h:
150
+ case T:
151
+ case S:
152
+ case s:
153
+ return m;
154
+ default:
155
+ return q;
156
+ }
157
+ }
158
+ case t:
159
+ return q;
160
+ }
161
+ }
162
+ }
163
+ function E(m) {
164
+ return w(m) === d;
165
+ }
166
+ return D.AsyncMode = u, D.ConcurrentMode = d, D.ContextConsumer = c, D.ContextProvider = s, D.Element = r, D.ForwardRef = h, D.Fragment = n, D.Lazy = T, D.Memo = S, D.Portal = t, D.Profiler = a, D.StrictMode = i, D.Suspense = p, D.isAsyncMode = function(m) {
167
+ return E(m) || w(m) === u;
168
+ }, D.isConcurrentMode = E, D.isContextConsumer = function(m) {
169
+ return w(m) === c;
170
+ }, D.isContextProvider = function(m) {
171
+ return w(m) === s;
172
+ }, D.isElement = function(m) {
173
+ return typeof m == "object" && m !== null && m.$$typeof === r;
174
+ }, D.isForwardRef = function(m) {
175
+ return w(m) === h;
176
+ }, D.isFragment = function(m) {
177
+ return w(m) === n;
178
+ }, D.isLazy = function(m) {
179
+ return w(m) === T;
180
+ }, D.isMemo = function(m) {
181
+ return w(m) === S;
182
+ }, D.isPortal = function(m) {
183
+ return w(m) === t;
184
+ }, D.isProfiler = function(m) {
185
+ return w(m) === a;
186
+ }, D.isStrictMode = function(m) {
187
+ return w(m) === i;
188
+ }, D.isSuspense = function(m) {
189
+ return w(m) === p;
190
+ }, D.isValidElementType = function(m) {
191
+ return typeof m == "string" || typeof m == "function" || m === n || m === d || m === a || m === i || m === p || m === f || typeof m == "object" && m !== null && (m.$$typeof === T || m.$$typeof === S || m.$$typeof === s || m.$$typeof === c || m.$$typeof === h || m.$$typeof === $ || m.$$typeof === A || m.$$typeof === Y || m.$$typeof === b);
192
+ }, D.typeOf = w, D;
193
+ }
194
+ var M = {};
195
+ /** @license React v16.13.1
196
+ * react-is.development.js
197
+ *
198
+ * Copyright (c) Facebook, Inc. and its affiliates.
199
+ *
200
+ * This source code is licensed under the MIT license found in the
201
+ * LICENSE file in the root directory of this source tree.
202
+ */
203
+ var pr;
204
+ function Qr() {
205
+ return pr || (pr = 1, process.env.NODE_ENV !== "production" && function() {
206
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, $ = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
207
+ function w(y) {
208
+ return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
209
+ y === n || y === d || y === a || y === i || y === p || y === f || typeof y == "object" && y !== null && (y.$$typeof === T || y.$$typeof === S || y.$$typeof === s || y.$$typeof === c || y.$$typeof === h || y.$$typeof === $ || y.$$typeof === A || y.$$typeof === Y || y.$$typeof === b);
210
+ }
211
+ function E(y) {
212
+ if (typeof y == "object" && y !== null) {
213
+ var ne = y.$$typeof;
214
+ switch (ne) {
215
+ case r:
216
+ var ke = y.type;
217
+ switch (ke) {
218
+ case u:
219
+ case d:
220
+ case n:
221
+ case a:
222
+ case i:
223
+ case p:
224
+ return ke;
225
+ default:
226
+ var fr = ke && ke.$$typeof;
227
+ switch (fr) {
228
+ case c:
229
+ case h:
230
+ case T:
231
+ case S:
232
+ case s:
233
+ return fr;
234
+ default:
235
+ return ne;
236
+ }
237
+ }
238
+ case t:
239
+ return ne;
240
+ }
241
+ }
242
+ }
243
+ var m = u, q = d, X = c, ie = s, K = r, o = h, C = n, j = T, L = S, re = t, ce = a, te = i, pe = p, xe = !1;
244
+ function Ye(y) {
245
+ return xe || (xe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(y) || E(y) === u;
246
+ }
247
+ function g(y) {
248
+ return E(y) === d;
249
+ }
250
+ function v(y) {
251
+ return E(y) === c;
252
+ }
253
+ function _(y) {
254
+ return E(y) === s;
255
+ }
256
+ function k(y) {
257
+ return typeof y == "object" && y !== null && y.$$typeof === r;
258
+ }
259
+ function O(y) {
260
+ return E(y) === h;
261
+ }
262
+ function R(y) {
263
+ return E(y) === n;
264
+ }
265
+ function x(y) {
266
+ return E(y) === T;
267
+ }
268
+ function P(y) {
269
+ return E(y) === S;
270
+ }
271
+ function I(y) {
272
+ return E(y) === t;
273
+ }
274
+ function N(y) {
275
+ return E(y) === a;
276
+ }
277
+ function B(y) {
278
+ return E(y) === i;
279
+ }
280
+ function H(y) {
281
+ return E(y) === p;
282
+ }
283
+ M.AsyncMode = m, M.ConcurrentMode = q, M.ContextConsumer = X, M.ContextProvider = ie, M.Element = K, M.ForwardRef = o, M.Fragment = C, M.Lazy = j, M.Memo = L, M.Portal = re, M.Profiler = ce, M.StrictMode = te, M.Suspense = pe, M.isAsyncMode = Ye, M.isConcurrentMode = g, M.isContextConsumer = v, M.isContextProvider = _, M.isElement = k, M.isForwardRef = O, M.isFragment = R, M.isLazy = x, M.isMemo = P, M.isPortal = I, M.isProfiler = N, M.isStrictMode = B, M.isSuspense = H, M.isValidElementType = w, M.typeOf = E;
284
+ }()), M;
285
+ }
286
+ var gr;
287
+ function Ir() {
288
+ return gr || (gr = 1, process.env.NODE_ENV === "production" ? Pe.exports = Hr() : Pe.exports = Qr()), Pe.exports;
289
+ }
290
+ /*
291
+ object-assign
292
+ (c) Sindre Sorhus
293
+ @license MIT
294
+ */
295
+ var qe, mr;
296
+ function Jr() {
297
+ if (mr) return qe;
298
+ mr = 1;
299
+ var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
300
+ function n(a) {
301
+ if (a == null)
302
+ throw new TypeError("Object.assign cannot be called with null or undefined");
303
+ return Object(a);
304
+ }
305
+ function i() {
306
+ try {
307
+ if (!Object.assign)
308
+ return !1;
309
+ var a = new String("abc");
310
+ if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
311
+ return !1;
312
+ for (var s = {}, c = 0; c < 10; c++)
313
+ s["_" + String.fromCharCode(c)] = c;
314
+ var u = Object.getOwnPropertyNames(s).map(function(h) {
315
+ return s[h];
316
+ });
317
+ if (u.join("") !== "0123456789")
318
+ return !1;
319
+ var d = {};
320
+ return "abcdefghijklmnopqrst".split("").forEach(function(h) {
321
+ d[h] = h;
322
+ }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
323
+ } catch {
324
+ return !1;
325
+ }
326
+ }
327
+ return qe = i() ? Object.assign : function(a, s) {
328
+ for (var c, u = n(a), d, h = 1; h < arguments.length; h++) {
329
+ c = Object(arguments[h]);
330
+ for (var p in c)
331
+ r.call(c, p) && (u[p] = c[p]);
332
+ if (e) {
333
+ d = e(c);
334
+ for (var f = 0; f < d.length; f++)
335
+ t.call(c, d[f]) && (u[d[f]] = c[d[f]]);
336
+ }
337
+ }
338
+ return u;
339
+ }, qe;
340
+ }
341
+ var Ke, hr;
342
+ function or() {
343
+ if (hr) return Ke;
344
+ hr = 1;
345
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
346
+ return Ke = e, Ke;
347
+ }
348
+ var He, yr;
349
+ function Br() {
350
+ return yr || (yr = 1, He = Function.call.bind(Object.prototype.hasOwnProperty)), He;
351
+ }
352
+ var Qe, br;
353
+ function Xr() {
354
+ if (br) return Qe;
355
+ br = 1;
356
+ var e = function() {
357
+ };
358
+ if (process.env.NODE_ENV !== "production") {
359
+ var r = or(), t = {}, n = Br();
360
+ e = function(a) {
361
+ var s = "Warning: " + a;
362
+ typeof console < "u" && console.error(s);
363
+ try {
364
+ throw new Error(s);
365
+ } catch {
366
+ }
367
+ };
368
+ }
369
+ function i(a, s, c, u, d) {
370
+ if (process.env.NODE_ENV !== "production") {
371
+ for (var h in a)
372
+ if (n(a, h)) {
373
+ var p;
374
+ try {
375
+ if (typeof a[h] != "function") {
376
+ var f = Error(
377
+ (u || "React class") + ": " + c + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
378
+ );
379
+ throw f.name = "Invariant Violation", f;
380
+ }
381
+ p = a[h](s, h, u, c, null, r);
382
+ } catch (T) {
383
+ p = T;
384
+ }
385
+ if (p && !(p instanceof Error) && e(
386
+ (u || "React class") + ": type specification of " + c + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
387
+ ), p instanceof Error && !(p.message in t)) {
388
+ t[p.message] = !0;
389
+ var S = d ? d() : "";
390
+ e(
391
+ "Failed " + c + " type: " + p.message + (S ?? "")
392
+ );
393
+ }
394
+ }
395
+ }
396
+ }
397
+ return i.resetWarningCache = function() {
398
+ process.env.NODE_ENV !== "production" && (t = {});
399
+ }, Qe = i, Qe;
400
+ }
401
+ var Je, vr;
402
+ function Zr() {
403
+ if (vr) return Je;
404
+ vr = 1;
405
+ var e = Ir(), r = Jr(), t = or(), n = Br(), i = Xr(), a = function() {
406
+ };
407
+ process.env.NODE_ENV !== "production" && (a = function(c) {
408
+ var u = "Warning: " + c;
409
+ typeof console < "u" && console.error(u);
410
+ try {
411
+ throw new Error(u);
412
+ } catch {
413
+ }
414
+ });
415
+ function s() {
416
+ return null;
417
+ }
418
+ return Je = function(c, u) {
419
+ var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
420
+ function p(g) {
421
+ var v = g && (d && g[d] || g[h]);
422
+ if (typeof v == "function")
423
+ return v;
424
+ }
425
+ var f = "<<anonymous>>", S = {
426
+ array: A("array"),
427
+ bigint: A("bigint"),
428
+ bool: A("boolean"),
429
+ func: A("function"),
430
+ number: A("number"),
431
+ object: A("object"),
432
+ string: A("string"),
433
+ symbol: A("symbol"),
434
+ any: Y(),
435
+ arrayOf: w,
436
+ element: E(),
437
+ elementType: m(),
438
+ instanceOf: q,
439
+ node: o(),
440
+ objectOf: ie,
441
+ oneOf: X,
442
+ oneOfType: K,
443
+ shape: j,
444
+ exact: L
445
+ };
446
+ function T(g, v) {
447
+ return g === v ? g !== 0 || 1 / g === 1 / v : g !== g && v !== v;
448
+ }
449
+ function b(g, v) {
450
+ this.message = g, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
451
+ }
452
+ b.prototype = Error.prototype;
453
+ function $(g) {
454
+ if (process.env.NODE_ENV !== "production")
455
+ var v = {}, _ = 0;
456
+ function k(R, x, P, I, N, B, H) {
457
+ if (I = I || f, B = B || P, H !== t) {
458
+ if (u) {
459
+ var y = new Error(
460
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
461
+ );
462
+ throw y.name = "Invariant Violation", y;
463
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
464
+ var ne = I + ":" + P;
465
+ !v[ne] && // Avoid spamming the console because they are often not actionable except for lib authors
466
+ _ < 3 && (a(
467
+ "You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
468
+ ), v[ne] = !0, _++);
469
+ }
470
+ }
471
+ return x[P] == null ? R ? x[P] === null ? new b("The " + N + " `" + B + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new b("The " + N + " `" + B + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : g(x, P, I, N, B);
472
+ }
473
+ var O = k.bind(null, !1);
474
+ return O.isRequired = k.bind(null, !0), O;
475
+ }
476
+ function A(g) {
477
+ function v(_, k, O, R, x, P) {
478
+ var I = _[k], N = te(I);
479
+ if (N !== g) {
480
+ var B = pe(I);
481
+ return new b(
482
+ "Invalid " + R + " `" + x + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected ") + ("`" + g + "`."),
483
+ { expectedType: g }
484
+ );
485
+ }
486
+ return null;
487
+ }
488
+ return $(v);
489
+ }
490
+ function Y() {
491
+ return $(s);
492
+ }
493
+ function w(g) {
494
+ function v(_, k, O, R, x) {
495
+ if (typeof g != "function")
496
+ return new b("Property `" + x + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
497
+ var P = _[k];
498
+ if (!Array.isArray(P)) {
499
+ var I = te(P);
500
+ return new b("Invalid " + R + " `" + x + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected an array."));
501
+ }
502
+ for (var N = 0; N < P.length; N++) {
503
+ var B = g(P, N, O, R, x + "[" + N + "]", t);
504
+ if (B instanceof Error)
505
+ return B;
506
+ }
507
+ return null;
508
+ }
509
+ return $(v);
510
+ }
511
+ function E() {
512
+ function g(v, _, k, O, R) {
513
+ var x = v[_];
514
+ if (!c(x)) {
515
+ var P = te(x);
516
+ return new b("Invalid " + O + " `" + R + "` of type " + ("`" + P + "` supplied to `" + k + "`, expected a single ReactElement."));
517
+ }
518
+ return null;
519
+ }
520
+ return $(g);
521
+ }
522
+ function m() {
523
+ function g(v, _, k, O, R) {
524
+ var x = v[_];
525
+ if (!e.isValidElementType(x)) {
526
+ var P = te(x);
527
+ return new b("Invalid " + O + " `" + R + "` of type " + ("`" + P + "` supplied to `" + k + "`, expected a single ReactElement type."));
528
+ }
529
+ return null;
530
+ }
531
+ return $(g);
532
+ }
533
+ function q(g) {
534
+ function v(_, k, O, R, x) {
535
+ if (!(_[k] instanceof g)) {
536
+ var P = g.name || f, I = Ye(_[k]);
537
+ return new b("Invalid " + R + " `" + x + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected ") + ("instance of `" + P + "`."));
538
+ }
539
+ return null;
540
+ }
541
+ return $(v);
542
+ }
543
+ function X(g) {
544
+ if (!Array.isArray(g))
545
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
546
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
547
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
548
+ function v(_, k, O, R, x) {
549
+ for (var P = _[k], I = 0; I < g.length; I++)
550
+ if (T(P, g[I]))
551
+ return null;
552
+ var N = JSON.stringify(g, function(H, y) {
553
+ var ne = pe(y);
554
+ return ne === "symbol" ? String(y) : y;
555
+ });
556
+ return new b("Invalid " + R + " `" + x + "` of value `" + String(P) + "` " + ("supplied to `" + O + "`, expected one of " + N + "."));
557
+ }
558
+ return $(v);
559
+ }
560
+ function ie(g) {
561
+ function v(_, k, O, R, x) {
562
+ if (typeof g != "function")
563
+ return new b("Property `" + x + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
564
+ var P = _[k], I = te(P);
565
+ if (I !== "object")
566
+ return new b("Invalid " + R + " `" + x + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected an object."));
567
+ for (var N in P)
568
+ if (n(P, N)) {
569
+ var B = g(P, N, O, R, x + "." + N, t);
570
+ if (B instanceof Error)
571
+ return B;
572
+ }
573
+ return null;
574
+ }
575
+ return $(v);
576
+ }
577
+ function K(g) {
578
+ if (!Array.isArray(g))
579
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
580
+ for (var v = 0; v < g.length; v++) {
581
+ var _ = g[v];
582
+ if (typeof _ != "function")
583
+ return a(
584
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + xe(_) + " at index " + v + "."
585
+ ), s;
586
+ }
587
+ function k(O, R, x, P, I) {
588
+ for (var N = [], B = 0; B < g.length; B++) {
589
+ var H = g[B], y = H(O, R, x, P, I, t);
590
+ if (y == null)
591
+ return null;
592
+ y.data && n(y.data, "expectedType") && N.push(y.data.expectedType);
593
+ }
594
+ var ne = N.length > 0 ? ", expected one of type [" + N.join(", ") + "]" : "";
595
+ return new b("Invalid " + P + " `" + I + "` supplied to " + ("`" + x + "`" + ne + "."));
596
+ }
597
+ return $(k);
598
+ }
599
+ function o() {
600
+ function g(v, _, k, O, R) {
601
+ return re(v[_]) ? null : new b("Invalid " + O + " `" + R + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
602
+ }
603
+ return $(g);
604
+ }
605
+ function C(g, v, _, k, O) {
606
+ return new b(
607
+ (g || "React class") + ": " + v + " type `" + _ + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
608
+ );
609
+ }
610
+ function j(g) {
611
+ function v(_, k, O, R, x) {
612
+ var P = _[k], I = te(P);
613
+ if (I !== "object")
614
+ return new b("Invalid " + R + " `" + x + "` of type `" + I + "` " + ("supplied to `" + O + "`, expected `object`."));
615
+ for (var N in g) {
616
+ var B = g[N];
617
+ if (typeof B != "function")
618
+ return C(O, R, x, N, pe(B));
619
+ var H = B(P, N, O, R, x + "." + N, t);
620
+ if (H)
621
+ return H;
622
+ }
623
+ return null;
624
+ }
625
+ return $(v);
626
+ }
627
+ function L(g) {
628
+ function v(_, k, O, R, x) {
629
+ var P = _[k], I = te(P);
630
+ if (I !== "object")
631
+ return new b("Invalid " + R + " `" + x + "` of type `" + I + "` " + ("supplied to `" + O + "`, expected `object`."));
632
+ var N = r({}, _[k], g);
633
+ for (var B in N) {
634
+ var H = g[B];
635
+ if (n(g, B) && typeof H != "function")
636
+ return C(O, R, x, B, pe(H));
637
+ if (!H)
638
+ return new b(
639
+ "Invalid " + R + " `" + x + "` key `" + B + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(_[k], null, " ") + `
640
+ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
641
+ );
642
+ var y = H(P, B, O, R, x + "." + B, t);
643
+ if (y)
644
+ return y;
645
+ }
646
+ return null;
647
+ }
648
+ return $(v);
649
+ }
650
+ function re(g) {
651
+ switch (typeof g) {
652
+ case "number":
653
+ case "string":
654
+ case "undefined":
655
+ return !0;
656
+ case "boolean":
657
+ return !g;
658
+ case "object":
659
+ if (Array.isArray(g))
660
+ return g.every(re);
661
+ if (g === null || c(g))
662
+ return !0;
663
+ var v = p(g);
664
+ if (v) {
665
+ var _ = v.call(g), k;
666
+ if (v !== g.entries) {
667
+ for (; !(k = _.next()).done; )
668
+ if (!re(k.value))
669
+ return !1;
670
+ } else
671
+ for (; !(k = _.next()).done; ) {
672
+ var O = k.value;
673
+ if (O && !re(O[1]))
674
+ return !1;
675
+ }
676
+ } else
677
+ return !1;
678
+ return !0;
679
+ default:
680
+ return !1;
681
+ }
682
+ }
683
+ function ce(g, v) {
684
+ return g === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
685
+ }
686
+ function te(g) {
687
+ var v = typeof g;
688
+ return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : ce(v, g) ? "symbol" : v;
689
+ }
690
+ function pe(g) {
691
+ if (typeof g > "u" || g === null)
692
+ return "" + g;
693
+ var v = te(g);
694
+ if (v === "object") {
695
+ if (g instanceof Date)
696
+ return "date";
697
+ if (g instanceof RegExp)
698
+ return "regexp";
699
+ }
700
+ return v;
701
+ }
702
+ function xe(g) {
703
+ var v = pe(g);
704
+ switch (v) {
705
+ case "array":
706
+ case "object":
707
+ return "an " + v;
708
+ case "boolean":
709
+ case "date":
710
+ case "regexp":
711
+ return "a " + v;
712
+ default:
713
+ return v;
714
+ }
715
+ }
716
+ function Ye(g) {
717
+ return !g.constructor || !g.constructor.name ? f : g.constructor.name;
718
+ }
719
+ return S.checkPropTypes = i, S.resetWarningCache = i.resetWarningCache, S.PropTypes = S, S;
720
+ }, Je;
721
+ }
722
+ var Xe, Sr;
723
+ function et() {
724
+ if (Sr) return Xe;
725
+ Sr = 1;
726
+ var e = or();
727
+ function r() {
728
+ }
729
+ function t() {
730
+ }
731
+ return t.resetWarningCache = r, Xe = function() {
732
+ function n(s, c, u, d, h, p) {
733
+ if (p !== e) {
734
+ var f = new Error(
735
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
736
+ );
737
+ throw f.name = "Invariant Violation", f;
738
+ }
739
+ }
740
+ n.isRequired = n;
741
+ function i() {
742
+ return n;
743
+ }
744
+ var a = {
745
+ array: n,
746
+ bigint: n,
747
+ bool: n,
748
+ func: n,
749
+ number: n,
750
+ object: n,
751
+ string: n,
752
+ symbol: n,
753
+ any: n,
754
+ arrayOf: i,
755
+ element: n,
756
+ elementType: n,
757
+ instanceOf: i,
758
+ node: n,
759
+ objectOf: i,
760
+ oneOf: i,
761
+ oneOfType: i,
762
+ shape: i,
763
+ exact: i,
764
+ checkPropTypes: t,
765
+ resetWarningCache: r
766
+ };
767
+ return a.PropTypes = a, a;
768
+ }, Xe;
769
+ }
770
+ if (process.env.NODE_ENV !== "production") {
771
+ var rt = Ir(), tt = !0;
772
+ rr.exports = Zr()(rt.isElement, tt);
773
+ } else
774
+ rr.exports = et()();
775
+ var nt = rr.exports;
776
+ const Ce = /* @__PURE__ */ Kr(nt);
777
+ function le(e) {
778
+ if (typeof e != "object" || e === null)
779
+ return !1;
780
+ const r = Object.getPrototypeOf(e);
781
+ return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
782
+ }
783
+ function jr(e) {
784
+ if (/* @__PURE__ */ Rr.isValidElement(e) || !le(e))
785
+ return e;
786
+ const r = {};
787
+ return Object.keys(e).forEach((t) => {
788
+ r[t] = jr(e[t]);
789
+ }), r;
790
+ }
791
+ function Q(e, r, t = {
792
+ clone: !0
793
+ }) {
794
+ const n = t.clone ? {
795
+ ...e
796
+ } : e;
797
+ return le(e) && le(r) && Object.keys(r).forEach((i) => {
798
+ /* @__PURE__ */ Rr.isValidElement(r[i]) ? n[i] = r[i] : le(r[i]) && // Avoid prototype pollution
799
+ Object.prototype.hasOwnProperty.call(e, i) && le(e[i]) ? n[i] = Q(e[i], r[i], t) : t.clone ? n[i] = le(r[i]) ? jr(r[i]) : r[i] : n[i] = r[i];
800
+ }), n;
801
+ }
802
+ const ot = (e) => {
803
+ const r = Object.keys(e).map((t) => ({
804
+ key: t,
805
+ val: e[t]
806
+ })) || [];
807
+ return r.sort((t, n) => t.val - n.val), r.reduce((t, n) => ({
808
+ ...t,
809
+ [n.key]: n.val
810
+ }), {});
811
+ };
812
+ function it(e) {
813
+ const {
814
+ // The breakpoint **start** at this value.
815
+ // For instance with the first breakpoint xs: [xs, sm).
816
+ values: r = {
817
+ xs: 0,
818
+ // phone
819
+ sm: 600,
820
+ // tablet
821
+ md: 900,
822
+ // small laptop
823
+ lg: 1200,
824
+ // desktop
825
+ xl: 1536
826
+ // large screen
827
+ },
828
+ unit: t = "px",
829
+ step: n = 5,
830
+ ...i
831
+ } = e, a = ot(r), s = Object.keys(a);
832
+ function c(f) {
833
+ return `@media (min-width:${typeof r[f] == "number" ? r[f] : f}${t})`;
834
+ }
835
+ function u(f) {
836
+ return `@media (max-width:${(typeof r[f] == "number" ? r[f] : f) - n / 100}${t})`;
837
+ }
838
+ function d(f, S) {
839
+ const T = s.indexOf(S);
840
+ return `@media (min-width:${typeof r[f] == "number" ? r[f] : f}${t}) and (max-width:${(T !== -1 && typeof r[s[T]] == "number" ? r[s[T]] : S) - n / 100}${t})`;
841
+ }
842
+ function h(f) {
843
+ return s.indexOf(f) + 1 < s.length ? d(f, s[s.indexOf(f) + 1]) : c(f);
844
+ }
845
+ function p(f) {
846
+ const S = s.indexOf(f);
847
+ return S === 0 ? c(s[1]) : S === s.length - 1 ? u(s[S]) : d(f, s[s.indexOf(f) + 1]).replace("@media", "@media not all and");
848
+ }
849
+ return {
850
+ keys: s,
851
+ values: a,
852
+ up: c,
853
+ down: u,
854
+ between: d,
855
+ only: h,
856
+ not: p,
857
+ unit: t,
858
+ ...i
859
+ };
860
+ }
861
+ function at(e, r) {
862
+ if (!e.containerQueries)
863
+ return r;
864
+ const t = Object.keys(r).filter((n) => n.startsWith("@container")).sort((n, i) => {
865
+ var s, c;
866
+ const a = /min-width:\s*([0-9.]+)/;
867
+ return +(((s = n.match(a)) == null ? void 0 : s[1]) || 0) - +(((c = i.match(a)) == null ? void 0 : c[1]) || 0);
868
+ });
869
+ return t.length ? t.reduce((n, i) => {
870
+ const a = r[i];
871
+ return delete n[i], n[i] = a, n;
872
+ }, {
873
+ ...r
874
+ }) : r;
875
+ }
876
+ function st(e, r) {
877
+ return r === "@" || r.startsWith("@") && (e.some((t) => r.startsWith(`@${t}`)) || !!r.match(/^@\d/));
878
+ }
879
+ function ct(e, r) {
880
+ const t = r.match(/^@([^/]+)?\/?(.+)?$/);
881
+ if (!t) {
882
+ if (process.env.NODE_ENV !== "production")
883
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
884
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : ue(18, `(${r})`));
885
+ return null;
886
+ }
887
+ const [, n, i] = t, a = Number.isNaN(+n) ? n || 0 : +n;
888
+ return e.containerQueries(i).up(a);
889
+ }
890
+ function lt(e) {
891
+ const r = (a, s) => a.replace("@media", s ? `@container ${s}` : "@container");
892
+ function t(a, s) {
893
+ a.up = (...c) => r(e.breakpoints.up(...c), s), a.down = (...c) => r(e.breakpoints.down(...c), s), a.between = (...c) => r(e.breakpoints.between(...c), s), a.only = (...c) => r(e.breakpoints.only(...c), s), a.not = (...c) => {
894
+ const u = r(e.breakpoints.not(...c), s);
895
+ return u.includes("not all and") ? u.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : u;
896
+ };
897
+ }
898
+ const n = {}, i = (a) => (t(n, a), n);
899
+ return t(i), {
900
+ ...e,
901
+ containerQueries: i
902
+ };
903
+ }
904
+ const ut = {
905
+ borderRadius: 4
906
+ }, de = process.env.NODE_ENV !== "production" ? Ce.oneOfType([Ce.number, Ce.string, Ce.object, Ce.array]) : {};
907
+ function we(e, r) {
908
+ return r ? Q(e, r, {
909
+ clone: !1
910
+ // No need to clone deep, it's way faster.
911
+ }) : e;
912
+ }
913
+ const Be = {
914
+ xs: 0,
915
+ // phone
916
+ sm: 600,
917
+ // tablet
918
+ md: 900,
919
+ // small laptop
920
+ lg: 1200,
921
+ // desktop
922
+ xl: 1536
923
+ // large screen
924
+ }, Cr = {
925
+ // Sorted ASC by size. That's important.
926
+ // It can't be configured as it's used statically for propTypes.
927
+ keys: ["xs", "sm", "md", "lg", "xl"],
928
+ up: (e) => `@media (min-width:${Be[e]}px)`
929
+ }, ft = {
930
+ containerQueries: (e) => ({
931
+ up: (r) => {
932
+ let t = typeof r == "number" ? r : Be[r] || r;
933
+ return typeof t == "number" && (t = `${t}px`), e ? `@container ${e} (min-width:${t})` : `@container (min-width:${t})`;
934
+ }
935
+ })
936
+ };
937
+ function se(e, r, t) {
938
+ const n = e.theme || {};
939
+ if (Array.isArray(r)) {
940
+ const a = n.breakpoints || Cr;
941
+ return r.reduce((s, c, u) => (s[a.up(a.keys[u])] = t(r[u]), s), {});
942
+ }
943
+ if (typeof r == "object") {
944
+ const a = n.breakpoints || Cr;
945
+ return Object.keys(r).reduce((s, c) => {
946
+ if (st(a.keys, c)) {
947
+ const u = ct(n.containerQueries ? n : ft, c);
948
+ u && (s[u] = t(r[c], c));
949
+ } else if (Object.keys(a.values || Be).includes(c)) {
950
+ const u = a.up(c);
951
+ s[u] = t(r[c], c);
952
+ } else {
953
+ const u = c;
954
+ s[u] = r[u];
955
+ }
956
+ return s;
957
+ }, {});
958
+ }
959
+ return t(r);
960
+ }
961
+ function Dr(e = {}) {
962
+ var t;
963
+ return ((t = e.keys) == null ? void 0 : t.reduce((n, i) => {
964
+ const a = e.up(i);
965
+ return n[a] = {}, n;
966
+ }, {})) || {};
967
+ }
968
+ function Mr(e, r) {
969
+ return e.reduce((t, n) => {
970
+ const i = t[n];
971
+ return (!i || Object.keys(i).length === 0) && delete t[n], t;
972
+ }, r);
973
+ }
974
+ function Kn(e, ...r) {
975
+ const t = Dr(e), n = [t, ...r].reduce((i, a) => Q(i, a), {});
976
+ return Mr(Object.keys(t), n);
977
+ }
978
+ function dt(e, r) {
979
+ if (typeof e != "object")
980
+ return {};
981
+ const t = {}, n = Object.keys(r);
982
+ return Array.isArray(e) ? n.forEach((i, a) => {
983
+ a < e.length && (t[i] = !0);
984
+ }) : n.forEach((i) => {
985
+ e[i] != null && (t[i] = !0);
986
+ }), t;
987
+ }
988
+ function Hn({
989
+ values: e,
990
+ breakpoints: r,
991
+ base: t
992
+ }) {
993
+ const n = t || dt(e, r), i = Object.keys(n);
994
+ if (i.length === 0)
995
+ return e;
996
+ let a;
997
+ return i.reduce((s, c, u) => (Array.isArray(e) ? (s[c] = e[u] != null ? e[u] : e[a], a = u) : typeof e == "object" ? (s[c] = e[c] != null ? e[c] : e[a], a = c) : s[c] = e, s), {});
998
+ }
999
+ function Nr(e) {
1000
+ if (typeof e != "string")
1001
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ue(7));
1002
+ return e.charAt(0).toUpperCase() + e.slice(1);
1003
+ }
1004
+ function je(e, r, t = !0) {
1005
+ if (!r || typeof r != "string")
1006
+ return null;
1007
+ if (e && e.vars && t) {
1008
+ const n = `vars.${r}`.split(".").reduce((i, a) => i && i[a] ? i[a] : null, e);
1009
+ if (n != null)
1010
+ return n;
1011
+ }
1012
+ return r.split(".").reduce((n, i) => n && n[i] != null ? n[i] : null, e);
1013
+ }
1014
+ function Ie(e, r, t, n = t) {
1015
+ let i;
1016
+ return typeof e == "function" ? i = e(t) : Array.isArray(e) ? i = e[t] || n : i = je(e, t) || n, r && (i = r(i, n, e)), i;
1017
+ }
1018
+ function G(e) {
1019
+ const {
1020
+ prop: r,
1021
+ cssProperty: t = e.prop,
1022
+ themeKey: n,
1023
+ transform: i
1024
+ } = e, a = (s) => {
1025
+ if (s[r] == null)
1026
+ return null;
1027
+ const c = s[r], u = s.theme, d = je(u, n) || {};
1028
+ return se(s, c, (p) => {
1029
+ let f = Ie(d, i, p);
1030
+ return p === f && typeof p == "string" && (f = Ie(d, i, `${r}${p === "default" ? "" : Nr(p)}`, p)), t === !1 ? f : {
1031
+ [t]: f
1032
+ };
1033
+ });
1034
+ };
1035
+ return a.propTypes = process.env.NODE_ENV !== "production" ? {
1036
+ [r]: de
1037
+ } : {}, a.filterProps = [r], a;
1038
+ }
1039
+ function pt(e) {
1040
+ const r = {};
1041
+ return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
1042
+ }
1043
+ const gt = {
1044
+ m: "margin",
1045
+ p: "padding"
1046
+ }, mt = {
1047
+ t: "Top",
1048
+ r: "Right",
1049
+ b: "Bottom",
1050
+ l: "Left",
1051
+ x: ["Left", "Right"],
1052
+ y: ["Top", "Bottom"]
1053
+ }, Tr = {
1054
+ marginX: "mx",
1055
+ marginY: "my",
1056
+ paddingX: "px",
1057
+ paddingY: "py"
1058
+ }, ht = pt((e) => {
1059
+ if (e.length > 2)
1060
+ if (Tr[e])
1061
+ e = Tr[e];
1062
+ else
1063
+ return [e];
1064
+ const [r, t] = e.split(""), n = gt[r], i = mt[t] || "";
1065
+ return Array.isArray(i) ? i.map((a) => n + a) : [n + i];
1066
+ }), De = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Me = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], yt = [...De, ...Me];
1067
+ function Oe(e, r, t, n) {
1068
+ const i = je(e, r, !0) ?? t;
1069
+ 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" ? `calc(${a} * ${i})` : i * a) : Array.isArray(i) ? (a) => {
1070
+ if (typeof a == "string")
1071
+ return a;
1072
+ const s = Math.abs(a);
1073
+ process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > i.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${s} > ${i.length - 1}, you need to add the missing values.`].join(`
1074
+ `)) : console.error([`MUI: The \`theme.${r}\` 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.${r}\` as a number.`].join(`
1075
+ `)));
1076
+ const c = i[s];
1077
+ return a >= 0 ? c : typeof c == "number" ? -c : `-${c}`;
1078
+ } : typeof i == "function" ? i : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${r}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join(`
1079
+ `)), () => {
1080
+ });
1081
+ }
1082
+ function ir(e) {
1083
+ return Oe(e, "spacing", 8, "spacing");
1084
+ }
1085
+ function Ae(e, r) {
1086
+ return typeof r == "string" || r == null ? r : e(r);
1087
+ }
1088
+ function bt(e, r) {
1089
+ return (t) => e.reduce((n, i) => (n[i] = Ae(r, t), n), {});
1090
+ }
1091
+ function vt(e, r, t, n) {
1092
+ if (!r.includes(t))
1093
+ return null;
1094
+ const i = ht(t), a = bt(i, n), s = e[t];
1095
+ return se(e, s, a);
1096
+ }
1097
+ function Wr(e, r) {
1098
+ const t = ir(e.theme);
1099
+ return Object.keys(e).map((n) => vt(e, r, n, t)).reduce(we, {});
1100
+ }
1101
+ function V(e) {
1102
+ return Wr(e, De);
1103
+ }
1104
+ V.propTypes = process.env.NODE_ENV !== "production" ? De.reduce((e, r) => (e[r] = de, e), {}) : {};
1105
+ V.filterProps = De;
1106
+ function z(e) {
1107
+ return Wr(e, Me);
1108
+ }
1109
+ z.propTypes = process.env.NODE_ENV !== "production" ? Me.reduce((e, r) => (e[r] = de, e), {}) : {};
1110
+ z.filterProps = Me;
1111
+ process.env.NODE_ENV !== "production" && yt.reduce((e, r) => (e[r] = de, e), {});
1112
+ function Ur(e = 8, r = ir({
1113
+ spacing: e
1114
+ })) {
1115
+ if (e.mui)
1116
+ return e;
1117
+ const t = (...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) => {
1118
+ const s = r(a);
1119
+ return typeof s == "number" ? `${s}px` : s;
1120
+ }).join(" "));
1121
+ return t.mui = !0, t;
1122
+ }
1123
+ function Ne(...e) {
1124
+ const r = e.reduce((n, i) => (i.filterProps.forEach((a) => {
1125
+ n[a] = i;
1126
+ }), n), {}), t = (n) => Object.keys(n).reduce((i, a) => r[a] ? we(i, r[a](n)) : i, {});
1127
+ return t.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, i) => Object.assign(n, i.propTypes), {}) : {}, t.filterProps = e.reduce((n, i) => n.concat(i.filterProps), []), t;
1128
+ }
1129
+ function Z(e) {
1130
+ return typeof e != "number" ? e : `${e}px solid`;
1131
+ }
1132
+ function ee(e, r) {
1133
+ return G({
1134
+ prop: e,
1135
+ themeKey: "borders",
1136
+ transform: r
1137
+ });
1138
+ }
1139
+ const St = ee("border", Z), Ct = ee("borderTop", Z), Tt = ee("borderRight", Z), Et = ee("borderBottom", Z), wt = ee("borderLeft", Z), $t = ee("borderColor"), Ot = ee("borderTopColor"), At = ee("borderRightColor"), xt = ee("borderBottomColor"), kt = ee("borderLeftColor"), Pt = ee("outline", Z), _t = ee("outlineColor"), We = (e) => {
1140
+ if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1141
+ const r = Oe(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
1142
+ borderRadius: Ae(r, n)
1143
+ });
1144
+ return se(e, e.borderRadius, t);
1145
+ }
1146
+ return null;
1147
+ };
1148
+ We.propTypes = process.env.NODE_ENV !== "production" ? {
1149
+ borderRadius: de
1150
+ } : {};
1151
+ We.filterProps = ["borderRadius"];
1152
+ Ne(St, Ct, Tt, Et, wt, $t, Ot, At, xt, kt, We, Pt, _t);
1153
+ const Ue = (e) => {
1154
+ if (e.gap !== void 0 && e.gap !== null) {
1155
+ const r = Oe(e.theme, "spacing", 8, "gap"), t = (n) => ({
1156
+ gap: Ae(r, n)
1157
+ });
1158
+ return se(e, e.gap, t);
1159
+ }
1160
+ return null;
1161
+ };
1162
+ Ue.propTypes = process.env.NODE_ENV !== "production" ? {
1163
+ gap: de
1164
+ } : {};
1165
+ Ue.filterProps = ["gap"];
1166
+ const Fe = (e) => {
1167
+ if (e.columnGap !== void 0 && e.columnGap !== null) {
1168
+ const r = Oe(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
1169
+ columnGap: Ae(r, n)
1170
+ });
1171
+ return se(e, e.columnGap, t);
1172
+ }
1173
+ return null;
1174
+ };
1175
+ Fe.propTypes = process.env.NODE_ENV !== "production" ? {
1176
+ columnGap: de
1177
+ } : {};
1178
+ Fe.filterProps = ["columnGap"];
1179
+ const Le = (e) => {
1180
+ if (e.rowGap !== void 0 && e.rowGap !== null) {
1181
+ const r = Oe(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
1182
+ rowGap: Ae(r, n)
1183
+ });
1184
+ return se(e, e.rowGap, t);
1185
+ }
1186
+ return null;
1187
+ };
1188
+ Le.propTypes = process.env.NODE_ENV !== "production" ? {
1189
+ rowGap: de
1190
+ } : {};
1191
+ Le.filterProps = ["rowGap"];
1192
+ const Rt = G({
1193
+ prop: "gridColumn"
1194
+ }), It = G({
1195
+ prop: "gridRow"
1196
+ }), Bt = G({
1197
+ prop: "gridAutoFlow"
1198
+ }), jt = G({
1199
+ prop: "gridAutoColumns"
1200
+ }), Dt = G({
1201
+ prop: "gridAutoRows"
1202
+ }), Mt = G({
1203
+ prop: "gridTemplateColumns"
1204
+ }), Nt = G({
1205
+ prop: "gridTemplateRows"
1206
+ }), Wt = G({
1207
+ prop: "gridTemplateAreas"
1208
+ }), Ut = G({
1209
+ prop: "gridArea"
1210
+ });
1211
+ Ne(Ue, Fe, Le, Rt, It, Bt, jt, Dt, Mt, Nt, Wt, Ut);
1212
+ function ve(e, r) {
1213
+ return r === "grey" ? r : e;
1214
+ }
1215
+ const Ft = G({
1216
+ prop: "color",
1217
+ themeKey: "palette",
1218
+ transform: ve
1219
+ }), Lt = G({
1220
+ prop: "bgcolor",
1221
+ cssProperty: "backgroundColor",
1222
+ themeKey: "palette",
1223
+ transform: ve
1224
+ }), Vt = G({
1225
+ prop: "backgroundColor",
1226
+ themeKey: "palette",
1227
+ transform: ve
1228
+ });
1229
+ Ne(Ft, Lt, Vt);
1230
+ function J(e) {
1231
+ return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1232
+ }
1233
+ const zt = G({
1234
+ prop: "width",
1235
+ transform: J
1236
+ }), ar = (e) => {
1237
+ if (e.maxWidth !== void 0 && e.maxWidth !== null) {
1238
+ const r = (t) => {
1239
+ var i, a, s, c, u;
1240
+ const n = ((s = (a = (i = e.theme) == null ? void 0 : i.breakpoints) == null ? void 0 : a.values) == null ? void 0 : s[t]) || Be[t];
1241
+ return n ? ((u = (c = e.theme) == null ? void 0 : c.breakpoints) == null ? void 0 : u.unit) !== "px" ? {
1242
+ maxWidth: `${n}${e.theme.breakpoints.unit}`
1243
+ } : {
1244
+ maxWidth: n
1245
+ } : {
1246
+ maxWidth: J(t)
1247
+ };
1248
+ };
1249
+ return se(e, e.maxWidth, r);
1250
+ }
1251
+ return null;
1252
+ };
1253
+ ar.filterProps = ["maxWidth"];
1254
+ const Gt = G({
1255
+ prop: "minWidth",
1256
+ transform: J
1257
+ }), Yt = G({
1258
+ prop: "height",
1259
+ transform: J
1260
+ }), qt = G({
1261
+ prop: "maxHeight",
1262
+ transform: J
1263
+ }), Kt = G({
1264
+ prop: "minHeight",
1265
+ transform: J
1266
+ });
1267
+ G({
1268
+ prop: "size",
1269
+ cssProperty: "width",
1270
+ transform: J
1271
+ });
1272
+ G({
1273
+ prop: "size",
1274
+ cssProperty: "height",
1275
+ transform: J
1276
+ });
1277
+ const Ht = G({
1278
+ prop: "boxSizing"
1279
+ });
1280
+ Ne(zt, ar, Gt, Yt, qt, Kt, Ht);
1281
+ const Ve = {
1282
+ // borders
1283
+ border: {
1284
+ themeKey: "borders",
1285
+ transform: Z
1286
+ },
1287
+ borderTop: {
1288
+ themeKey: "borders",
1289
+ transform: Z
1290
+ },
1291
+ borderRight: {
1292
+ themeKey: "borders",
1293
+ transform: Z
1294
+ },
1295
+ borderBottom: {
1296
+ themeKey: "borders",
1297
+ transform: Z
1298
+ },
1299
+ borderLeft: {
1300
+ themeKey: "borders",
1301
+ transform: Z
1302
+ },
1303
+ borderColor: {
1304
+ themeKey: "palette"
1305
+ },
1306
+ borderTopColor: {
1307
+ themeKey: "palette"
1308
+ },
1309
+ borderRightColor: {
1310
+ themeKey: "palette"
1311
+ },
1312
+ borderBottomColor: {
1313
+ themeKey: "palette"
1314
+ },
1315
+ borderLeftColor: {
1316
+ themeKey: "palette"
1317
+ },
1318
+ outline: {
1319
+ themeKey: "borders",
1320
+ transform: Z
1321
+ },
1322
+ outlineColor: {
1323
+ themeKey: "palette"
1324
+ },
1325
+ borderRadius: {
1326
+ themeKey: "shape.borderRadius",
1327
+ style: We
1328
+ },
1329
+ // palette
1330
+ color: {
1331
+ themeKey: "palette",
1332
+ transform: ve
1333
+ },
1334
+ bgcolor: {
1335
+ themeKey: "palette",
1336
+ cssProperty: "backgroundColor",
1337
+ transform: ve
1338
+ },
1339
+ backgroundColor: {
1340
+ themeKey: "palette",
1341
+ transform: ve
1342
+ },
1343
+ // spacing
1344
+ p: {
1345
+ style: z
1346
+ },
1347
+ pt: {
1348
+ style: z
1349
+ },
1350
+ pr: {
1351
+ style: z
1352
+ },
1353
+ pb: {
1354
+ style: z
1355
+ },
1356
+ pl: {
1357
+ style: z
1358
+ },
1359
+ px: {
1360
+ style: z
1361
+ },
1362
+ py: {
1363
+ style: z
1364
+ },
1365
+ padding: {
1366
+ style: z
1367
+ },
1368
+ paddingTop: {
1369
+ style: z
1370
+ },
1371
+ paddingRight: {
1372
+ style: z
1373
+ },
1374
+ paddingBottom: {
1375
+ style: z
1376
+ },
1377
+ paddingLeft: {
1378
+ style: z
1379
+ },
1380
+ paddingX: {
1381
+ style: z
1382
+ },
1383
+ paddingY: {
1384
+ style: z
1385
+ },
1386
+ paddingInline: {
1387
+ style: z
1388
+ },
1389
+ paddingInlineStart: {
1390
+ style: z
1391
+ },
1392
+ paddingInlineEnd: {
1393
+ style: z
1394
+ },
1395
+ paddingBlock: {
1396
+ style: z
1397
+ },
1398
+ paddingBlockStart: {
1399
+ style: z
1400
+ },
1401
+ paddingBlockEnd: {
1402
+ style: z
1403
+ },
1404
+ m: {
1405
+ style: V
1406
+ },
1407
+ mt: {
1408
+ style: V
1409
+ },
1410
+ mr: {
1411
+ style: V
1412
+ },
1413
+ mb: {
1414
+ style: V
1415
+ },
1416
+ ml: {
1417
+ style: V
1418
+ },
1419
+ mx: {
1420
+ style: V
1421
+ },
1422
+ my: {
1423
+ style: V
1424
+ },
1425
+ margin: {
1426
+ style: V
1427
+ },
1428
+ marginTop: {
1429
+ style: V
1430
+ },
1431
+ marginRight: {
1432
+ style: V
1433
+ },
1434
+ marginBottom: {
1435
+ style: V
1436
+ },
1437
+ marginLeft: {
1438
+ style: V
1439
+ },
1440
+ marginX: {
1441
+ style: V
1442
+ },
1443
+ marginY: {
1444
+ style: V
1445
+ },
1446
+ marginInline: {
1447
+ style: V
1448
+ },
1449
+ marginInlineStart: {
1450
+ style: V
1451
+ },
1452
+ marginInlineEnd: {
1453
+ style: V
1454
+ },
1455
+ marginBlock: {
1456
+ style: V
1457
+ },
1458
+ marginBlockStart: {
1459
+ style: V
1460
+ },
1461
+ marginBlockEnd: {
1462
+ style: V
1463
+ },
1464
+ // display
1465
+ displayPrint: {
1466
+ cssProperty: !1,
1467
+ transform: (e) => ({
1468
+ "@media print": {
1469
+ display: e
1470
+ }
1471
+ })
1472
+ },
1473
+ display: {},
1474
+ overflow: {},
1475
+ textOverflow: {},
1476
+ visibility: {},
1477
+ whiteSpace: {},
1478
+ // flexbox
1479
+ flexBasis: {},
1480
+ flexDirection: {},
1481
+ flexWrap: {},
1482
+ justifyContent: {},
1483
+ alignItems: {},
1484
+ alignContent: {},
1485
+ order: {},
1486
+ flex: {},
1487
+ flexGrow: {},
1488
+ flexShrink: {},
1489
+ alignSelf: {},
1490
+ justifyItems: {},
1491
+ justifySelf: {},
1492
+ // grid
1493
+ gap: {
1494
+ style: Ue
1495
+ },
1496
+ rowGap: {
1497
+ style: Le
1498
+ },
1499
+ columnGap: {
1500
+ style: Fe
1501
+ },
1502
+ gridColumn: {},
1503
+ gridRow: {},
1504
+ gridAutoFlow: {},
1505
+ gridAutoColumns: {},
1506
+ gridAutoRows: {},
1507
+ gridTemplateColumns: {},
1508
+ gridTemplateRows: {},
1509
+ gridTemplateAreas: {},
1510
+ gridArea: {},
1511
+ // positions
1512
+ position: {},
1513
+ zIndex: {
1514
+ themeKey: "zIndex"
1515
+ },
1516
+ top: {},
1517
+ right: {},
1518
+ bottom: {},
1519
+ left: {},
1520
+ // shadows
1521
+ boxShadow: {
1522
+ themeKey: "shadows"
1523
+ },
1524
+ // sizing
1525
+ width: {
1526
+ transform: J
1527
+ },
1528
+ maxWidth: {
1529
+ style: ar
1530
+ },
1531
+ minWidth: {
1532
+ transform: J
1533
+ },
1534
+ height: {
1535
+ transform: J
1536
+ },
1537
+ maxHeight: {
1538
+ transform: J
1539
+ },
1540
+ minHeight: {
1541
+ transform: J
1542
+ },
1543
+ boxSizing: {},
1544
+ // typography
1545
+ font: {
1546
+ themeKey: "font"
1547
+ },
1548
+ fontFamily: {
1549
+ themeKey: "typography"
1550
+ },
1551
+ fontSize: {
1552
+ themeKey: "typography"
1553
+ },
1554
+ fontStyle: {
1555
+ themeKey: "typography"
1556
+ },
1557
+ fontWeight: {
1558
+ themeKey: "typography"
1559
+ },
1560
+ letterSpacing: {},
1561
+ textTransform: {},
1562
+ lineHeight: {},
1563
+ textAlign: {},
1564
+ typography: {
1565
+ cssProperty: !1,
1566
+ themeKey: "typography"
1567
+ }
1568
+ };
1569
+ function Qt(...e) {
1570
+ const r = e.reduce((n, i) => n.concat(Object.keys(i)), []), t = new Set(r);
1571
+ return e.every((n) => t.size === Object.keys(n).length);
1572
+ }
1573
+ function Jt(e, r) {
1574
+ return typeof e == "function" ? e(r) : e;
1575
+ }
1576
+ function Xt() {
1577
+ function e(t, n, i, a) {
1578
+ const s = {
1579
+ [t]: n,
1580
+ theme: i
1581
+ }, c = a[t];
1582
+ if (!c)
1583
+ return {
1584
+ [t]: n
1585
+ };
1586
+ const {
1587
+ cssProperty: u = t,
1588
+ themeKey: d,
1589
+ transform: h,
1590
+ style: p
1591
+ } = c;
1592
+ if (n == null)
1593
+ return null;
1594
+ if (d === "typography" && n === "inherit")
1595
+ return {
1596
+ [t]: n
1597
+ };
1598
+ const f = je(i, d) || {};
1599
+ return p ? p(s) : se(s, n, (T) => {
1600
+ let b = Ie(f, h, T);
1601
+ return T === b && typeof T == "string" && (b = Ie(f, h, `${t}${T === "default" ? "" : Nr(T)}`, T)), u === !1 ? b : {
1602
+ [u]: b
1603
+ };
1604
+ });
1605
+ }
1606
+ function r(t) {
1607
+ const {
1608
+ sx: n,
1609
+ theme: i = {}
1610
+ } = t || {};
1611
+ if (!n)
1612
+ return null;
1613
+ const a = i.unstable_sxConfig ?? Ve;
1614
+ function s(c) {
1615
+ let u = c;
1616
+ if (typeof c == "function")
1617
+ u = c(i);
1618
+ else if (typeof c != "object")
1619
+ return c;
1620
+ if (!u)
1621
+ return null;
1622
+ const d = Dr(i.breakpoints), h = Object.keys(d);
1623
+ let p = d;
1624
+ return Object.keys(u).forEach((f) => {
1625
+ const S = Jt(u[f], i);
1626
+ if (S != null)
1627
+ if (typeof S == "object")
1628
+ if (a[f])
1629
+ p = we(p, e(f, S, i, a));
1630
+ else {
1631
+ const T = se({
1632
+ theme: i
1633
+ }, S, (b) => ({
1634
+ [f]: b
1635
+ }));
1636
+ Qt(T, S) ? p[f] = r({
1637
+ sx: S,
1638
+ theme: i
1639
+ }) : p = we(p, T);
1640
+ }
1641
+ else
1642
+ p = we(p, e(f, S, i, a));
1643
+ }), at(i, Mr(h, p));
1644
+ }
1645
+ return Array.isArray(n) ? n.map(s) : s(n);
1646
+ }
1647
+ return r;
1648
+ }
1649
+ const ze = Xt();
1650
+ ze.filterProps = ["sx"];
1651
+ function Zt(e, r) {
1652
+ var n;
1653
+ const t = this;
1654
+ if (t.vars) {
1655
+ if (!((n = t.colorSchemes) != null && n[e]) || typeof t.getColorSchemeSelector != "function")
1656
+ return {};
1657
+ let i = t.getColorSchemeSelector(e);
1658
+ return i === "&" ? r : ((i.includes("data-") || i.includes(".")) && (i = `*:where(${i.replace(/\s*&$/, "")}) &`), {
1659
+ [i]: r
1660
+ });
1661
+ }
1662
+ return t.palette.mode === e ? r : {};
1663
+ }
1664
+ function en(e = {}, ...r) {
1665
+ const {
1666
+ breakpoints: t = {},
1667
+ palette: n = {},
1668
+ spacing: i,
1669
+ shape: a = {},
1670
+ ...s
1671
+ } = e, c = it(t), u = Ur(i);
1672
+ let d = Q({
1673
+ breakpoints: c,
1674
+ direction: "ltr",
1675
+ components: {},
1676
+ // Inject component definitions.
1677
+ palette: {
1678
+ mode: "light",
1679
+ ...n
1680
+ },
1681
+ spacing: u,
1682
+ shape: {
1683
+ ...ut,
1684
+ ...a
1685
+ }
1686
+ }, s);
1687
+ return d = lt(d), d.applyStyles = Zt, d = r.reduce((h, p) => Q(h, p), d), d.unstable_sxConfig = {
1688
+ ...Ve,
1689
+ ...s == null ? void 0 : s.unstable_sxConfig
1690
+ }, d.unstable_sx = function(p) {
1691
+ return ze({
1692
+ sx: p,
1693
+ theme: this
1694
+ });
1695
+ }, d;
1696
+ }
1697
+ const Er = (e) => e, rn = () => {
1698
+ let e = Er;
1699
+ return {
1700
+ configure(r) {
1701
+ e = r;
1702
+ },
1703
+ generate(r) {
1704
+ return e(r);
1705
+ },
1706
+ reset() {
1707
+ e = Er;
1708
+ }
1709
+ };
1710
+ }, tn = rn(), nn = {
1711
+ active: "active",
1712
+ checked: "checked",
1713
+ completed: "completed",
1714
+ disabled: "disabled",
1715
+ error: "error",
1716
+ expanded: "expanded",
1717
+ focused: "focused",
1718
+ focusVisible: "focusVisible",
1719
+ open: "open",
1720
+ readOnly: "readOnly",
1721
+ required: "required",
1722
+ selected: "selected"
1723
+ };
1724
+ function on(e, r, t = "Mui") {
1725
+ const n = nn[r];
1726
+ return n ? `${t}-${n}` : `${tn.generate(e)}-${r}`;
1727
+ }
1728
+ function an(e, r = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
1729
+ return Math.max(r, Math.min(e, t));
1730
+ }
1731
+ function sr(e, r = 0, t = 1) {
1732
+ return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), an(e, r, t);
1733
+ }
1734
+ function sn(e) {
1735
+ e = e.slice(1);
1736
+ const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1737
+ let t = e.match(r);
1738
+ return t && t[0].length === 1 && (t = t.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.`), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, i) => i < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1739
+ }
1740
+ function fe(e) {
1741
+ if (e.type)
1742
+ return e;
1743
+ if (e.charAt(0) === "#")
1744
+ return fe(sn(e));
1745
+ const r = e.indexOf("("), t = e.substring(0, r);
1746
+ if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(t))
1747
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
1748
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ue(9, e));
1749
+ let n = e.substring(r + 1, e.length - 1), i;
1750
+ if (t === "color") {
1751
+ 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))
1752
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${i}\` color space.
1753
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ue(10, i));
1754
+ } else
1755
+ n = n.split(",");
1756
+ return n = n.map((a) => parseFloat(a)), {
1757
+ type: t,
1758
+ values: n,
1759
+ colorSpace: i
1760
+ };
1761
+ }
1762
+ const cn = (e) => {
1763
+ const r = fe(e);
1764
+ return r.values.slice(0, 3).map((t, n) => r.type.includes("hsl") && n !== 0 ? `${t}%` : t).join(" ");
1765
+ }, Te = (e, r) => {
1766
+ try {
1767
+ return cn(e);
1768
+ } catch {
1769
+ return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1770
+ }
1771
+ };
1772
+ function Ge(e) {
1773
+ const {
1774
+ type: r,
1775
+ colorSpace: t
1776
+ } = e;
1777
+ let {
1778
+ values: n
1779
+ } = e;
1780
+ return r.includes("rgb") ? n = n.map((i, a) => a < 3 ? parseInt(i, 10) : i) : r.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.includes("color") ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
1781
+ }
1782
+ function Fr(e) {
1783
+ e = fe(e);
1784
+ const {
1785
+ values: r
1786
+ } = e, t = r[0], n = r[1] / 100, i = r[2] / 100, a = n * Math.min(i, 1 - i), s = (d, h = (d + t / 30) % 12) => i - a * Math.max(Math.min(h - 3, 9 - h, 1), -1);
1787
+ let c = "rgb";
1788
+ const u = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
1789
+ return e.type === "hsla" && (c += "a", u.push(r[3])), Ge({
1790
+ type: c,
1791
+ values: u
1792
+ });
1793
+ }
1794
+ function tr(e) {
1795
+ e = fe(e);
1796
+ let r = e.type === "hsl" || e.type === "hsla" ? fe(Fr(e)).values : e.values;
1797
+ return r = r.map((t) => (e.type !== "color" && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
1798
+ }
1799
+ function wr(e, r) {
1800
+ const t = tr(e), n = tr(r);
1801
+ return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
1802
+ }
1803
+ function ln(e, r) {
1804
+ return e = fe(e), r = sr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, Ge(e);
1805
+ }
1806
+ function _e(e, r, t) {
1807
+ try {
1808
+ return ln(e, r);
1809
+ } catch {
1810
+ return e;
1811
+ }
1812
+ }
1813
+ function cr(e, r) {
1814
+ if (e = fe(e), r = sr(r), e.type.includes("hsl"))
1815
+ e.values[2] *= 1 - r;
1816
+ else if (e.type.includes("rgb") || e.type.includes("color"))
1817
+ for (let t = 0; t < 3; t += 1)
1818
+ e.values[t] *= 1 - r;
1819
+ return Ge(e);
1820
+ }
1821
+ function W(e, r, t) {
1822
+ try {
1823
+ return cr(e, r);
1824
+ } catch {
1825
+ return e;
1826
+ }
1827
+ }
1828
+ function lr(e, r) {
1829
+ if (e = fe(e), r = sr(r), e.type.includes("hsl"))
1830
+ e.values[2] += (100 - e.values[2]) * r;
1831
+ else if (e.type.includes("rgb"))
1832
+ for (let t = 0; t < 3; t += 1)
1833
+ e.values[t] += (255 - e.values[t]) * r;
1834
+ else if (e.type.includes("color"))
1835
+ for (let t = 0; t < 3; t += 1)
1836
+ e.values[t] += (1 - e.values[t]) * r;
1837
+ return Ge(e);
1838
+ }
1839
+ function U(e, r, t) {
1840
+ try {
1841
+ return lr(e, r);
1842
+ } catch {
1843
+ return e;
1844
+ }
1845
+ }
1846
+ function un(e, r = 0.15) {
1847
+ return tr(e) > 0.5 ? cr(e, r) : lr(e, r);
1848
+ }
1849
+ function Re(e, r, t) {
1850
+ try {
1851
+ return un(e, r);
1852
+ } catch {
1853
+ return e;
1854
+ }
1855
+ }
1856
+ function fn(e = "") {
1857
+ function r(...n) {
1858
+ if (!n.length)
1859
+ return "";
1860
+ const i = n[0];
1861
+ 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}${r(...n.slice(1))})` : `, ${i}`;
1862
+ }
1863
+ return (n, ...i) => `var(--${e ? `${e}-` : ""}${n}${r(...i)})`;
1864
+ }
1865
+ const $r = (e, r, t, n = []) => {
1866
+ let i = e;
1867
+ r.forEach((a, s) => {
1868
+ s === r.length - 1 ? Array.isArray(i) ? i[Number(a)] = t : i && typeof i == "object" && (i[a] = t) : i && typeof i == "object" && (i[a] || (i[a] = n.includes(a) ? [] : {}), i = i[a]);
1869
+ });
1870
+ }, dn = (e, r, t) => {
1871
+ function n(i, a = [], s = []) {
1872
+ Object.entries(i).forEach(([c, u]) => {
1873
+ (!t || t && !t([...a, c])) && u != null && (typeof u == "object" && Object.keys(u).length > 0 ? n(u, [...a, c], Array.isArray(u) ? [...s, c] : s) : r([...a, c], u, s));
1874
+ });
1875
+ }
1876
+ n(e);
1877
+ }, pn = (e, r) => typeof r == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? r : `${r}px` : r;
1878
+ function Ze(e, r) {
1879
+ const {
1880
+ prefix: t,
1881
+ shouldSkipGeneratingVar: n
1882
+ } = r || {}, i = {}, a = {}, s = {};
1883
+ return dn(
1884
+ e,
1885
+ (c, u, d) => {
1886
+ if ((typeof u == "string" || typeof u == "number") && (!n || !n(c, u))) {
1887
+ const h = `--${t ? `${t}-` : ""}${c.join("-")}`, p = pn(c, u);
1888
+ Object.assign(i, {
1889
+ [h]: p
1890
+ }), $r(a, c, `var(${h})`, d), $r(s, c, `var(${h}, ${p})`, d);
1891
+ }
1892
+ },
1893
+ (c) => c[0] === "vars"
1894
+ // skip 'vars/*' paths
1895
+ ), {
1896
+ css: i,
1897
+ vars: a,
1898
+ varsWithDefaults: s
1899
+ };
1900
+ }
1901
+ function gn(e, r = {}) {
1902
+ const {
1903
+ getSelector: t = $,
1904
+ disableCssColorScheme: n,
1905
+ colorSchemeSelector: i
1906
+ } = r, {
1907
+ colorSchemes: a = {},
1908
+ components: s,
1909
+ defaultColorScheme: c = "light",
1910
+ ...u
1911
+ } = e, {
1912
+ vars: d,
1913
+ css: h,
1914
+ varsWithDefaults: p
1915
+ } = Ze(u, r);
1916
+ let f = p;
1917
+ const S = {}, {
1918
+ [c]: T,
1919
+ ...b
1920
+ } = a;
1921
+ if (Object.entries(b || {}).forEach(([w, E]) => {
1922
+ const {
1923
+ vars: m,
1924
+ css: q,
1925
+ varsWithDefaults: X
1926
+ } = Ze(E, r);
1927
+ f = Q(f, X), S[w] = {
1928
+ css: q,
1929
+ vars: m
1930
+ };
1931
+ }), T) {
1932
+ const {
1933
+ css: w,
1934
+ vars: E,
1935
+ varsWithDefaults: m
1936
+ } = Ze(T, r);
1937
+ f = Q(f, m), S[c] = {
1938
+ css: w,
1939
+ vars: E
1940
+ };
1941
+ }
1942
+ function $(w, E) {
1943
+ var q, X;
1944
+ let m = i;
1945
+ if (i === "class" && (m = ".%s"), i === "data" && (m = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (m = `[${i}="%s"]`), w) {
1946
+ if (m === "media")
1947
+ return e.defaultColorScheme === w ? ":root" : {
1948
+ [`@media (prefers-color-scheme: ${((X = (q = a[w]) == null ? void 0 : q.palette) == null ? void 0 : X.mode) || w})`]: {
1949
+ ":root": E
1950
+ }
1951
+ };
1952
+ if (m)
1953
+ return e.defaultColorScheme === w ? `:root, ${m.replace("%s", String(w))}` : m.replace("%s", String(w));
1954
+ }
1955
+ return ":root";
1956
+ }
1957
+ return {
1958
+ vars: f,
1959
+ generateThemeVars: () => {
1960
+ let w = {
1961
+ ...d
1962
+ };
1963
+ return Object.entries(S).forEach(([, {
1964
+ vars: E
1965
+ }]) => {
1966
+ w = Q(w, E);
1967
+ }), w;
1968
+ },
1969
+ generateStyleSheets: () => {
1970
+ var ie, K;
1971
+ const w = [], E = e.defaultColorScheme || "light";
1972
+ function m(o, C) {
1973
+ Object.keys(C).length && w.push(typeof o == "string" ? {
1974
+ [o]: {
1975
+ ...C
1976
+ }
1977
+ } : o);
1978
+ }
1979
+ m(t(void 0, {
1980
+ ...h
1981
+ }), h);
1982
+ const {
1983
+ [E]: q,
1984
+ ...X
1985
+ } = S;
1986
+ if (q) {
1987
+ const {
1988
+ css: o
1989
+ } = q, C = (K = (ie = a[E]) == null ? void 0 : ie.palette) == null ? void 0 : K.mode, j = !n && C ? {
1990
+ colorScheme: C,
1991
+ ...o
1992
+ } : {
1993
+ ...o
1994
+ };
1995
+ m(t(E, {
1996
+ ...j
1997
+ }), j);
1998
+ }
1999
+ return Object.entries(X).forEach(([o, {
2000
+ css: C
2001
+ }]) => {
2002
+ var re, ce;
2003
+ const j = (ce = (re = a[o]) == null ? void 0 : re.palette) == null ? void 0 : ce.mode, L = !n && j ? {
2004
+ colorScheme: j,
2005
+ ...C
2006
+ } : {
2007
+ ...C
2008
+ };
2009
+ m(t(o, {
2010
+ ...L
2011
+ }), L);
2012
+ }), w;
2013
+ }
2014
+ };
2015
+ }
2016
+ function mn(e) {
2017
+ return function(t) {
2018
+ return e === "media" ? (process.env.NODE_ENV !== "production" && t !== "light" && t !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`), `@media (prefers-color-scheme: ${t})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${t}"] &` : e === "class" ? `.${t} &` : e === "data" ? `[data-${t}] &` : `${e.replace("%s", t)} &` : "&";
2019
+ };
2020
+ }
2021
+ function Lr() {
2022
+ return {
2023
+ // The colors used to style the text.
2024
+ text: {
2025
+ // The most important text.
2026
+ primary: "rgba(0, 0, 0, 0.87)",
2027
+ // Secondary text.
2028
+ secondary: "rgba(0, 0, 0, 0.6)",
2029
+ // Disabled text have even lower visual prominence.
2030
+ disabled: "rgba(0, 0, 0, 0.38)"
2031
+ },
2032
+ // The color used to divide different elements.
2033
+ divider: "rgba(0, 0, 0, 0.12)",
2034
+ // The background colors used to style the surfaces.
2035
+ // Consistency between these values is important.
2036
+ background: {
2037
+ paper: $e.white,
2038
+ default: $e.white
2039
+ },
2040
+ // The colors used to style the action elements.
2041
+ action: {
2042
+ // The color of an active action like an icon button.
2043
+ active: "rgba(0, 0, 0, 0.54)",
2044
+ // The color of an hovered action.
2045
+ hover: "rgba(0, 0, 0, 0.04)",
2046
+ hoverOpacity: 0.04,
2047
+ // The color of a selected action.
2048
+ selected: "rgba(0, 0, 0, 0.08)",
2049
+ selectedOpacity: 0.08,
2050
+ // The color of a disabled action.
2051
+ disabled: "rgba(0, 0, 0, 0.26)",
2052
+ // The background color of a disabled action.
2053
+ disabledBackground: "rgba(0, 0, 0, 0.12)",
2054
+ disabledOpacity: 0.38,
2055
+ focus: "rgba(0, 0, 0, 0.12)",
2056
+ focusOpacity: 0.12,
2057
+ activatedOpacity: 0.12
2058
+ }
2059
+ };
2060
+ }
2061
+ const hn = Lr();
2062
+ function Vr() {
2063
+ return {
2064
+ text: {
2065
+ primary: $e.white,
2066
+ secondary: "rgba(255, 255, 255, 0.7)",
2067
+ disabled: "rgba(255, 255, 255, 0.5)",
2068
+ icon: "rgba(255, 255, 255, 0.5)"
2069
+ },
2070
+ divider: "rgba(255, 255, 255, 0.12)",
2071
+ background: {
2072
+ paper: "#121212",
2073
+ default: "#121212"
2074
+ },
2075
+ action: {
2076
+ active: $e.white,
2077
+ hover: "rgba(255, 255, 255, 0.08)",
2078
+ hoverOpacity: 0.08,
2079
+ selected: "rgba(255, 255, 255, 0.16)",
2080
+ selectedOpacity: 0.16,
2081
+ disabled: "rgba(255, 255, 255, 0.3)",
2082
+ disabledBackground: "rgba(255, 255, 255, 0.12)",
2083
+ disabledOpacity: 0.38,
2084
+ focus: "rgba(255, 255, 255, 0.12)",
2085
+ focusOpacity: 0.12,
2086
+ activatedOpacity: 0.24
2087
+ }
2088
+ };
2089
+ }
2090
+ const Or = Vr();
2091
+ function Ar(e, r, t, n) {
2092
+ const i = n.light || n, a = n.dark || n * 1.5;
2093
+ e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = lr(e.main, i) : r === "dark" && (e.dark = cr(e.main, a)));
2094
+ }
2095
+ function yn(e = "light") {
2096
+ return e === "dark" ? {
2097
+ main: he[200],
2098
+ light: he[50],
2099
+ dark: he[400]
2100
+ } : {
2101
+ main: he[700],
2102
+ light: he[400],
2103
+ dark: he[800]
2104
+ };
2105
+ }
2106
+ function bn(e = "light") {
2107
+ return e === "dark" ? {
2108
+ main: me[200],
2109
+ light: me[50],
2110
+ dark: me[400]
2111
+ } : {
2112
+ main: me[500],
2113
+ light: me[300],
2114
+ dark: me[700]
2115
+ };
2116
+ }
2117
+ function vn(e = "light") {
2118
+ return e === "dark" ? {
2119
+ main: ge[500],
2120
+ light: ge[300],
2121
+ dark: ge[700]
2122
+ } : {
2123
+ main: ge[700],
2124
+ light: ge[400],
2125
+ dark: ge[800]
2126
+ };
2127
+ }
2128
+ function Sn(e = "light") {
2129
+ return e === "dark" ? {
2130
+ main: ye[400],
2131
+ light: ye[300],
2132
+ dark: ye[700]
2133
+ } : {
2134
+ main: ye[700],
2135
+ light: ye[500],
2136
+ dark: ye[900]
2137
+ };
2138
+ }
2139
+ function Cn(e = "light") {
2140
+ return e === "dark" ? {
2141
+ main: be[400],
2142
+ light: be[300],
2143
+ dark: be[700]
2144
+ } : {
2145
+ main: be[800],
2146
+ light: be[500],
2147
+ dark: be[900]
2148
+ };
2149
+ }
2150
+ function Tn(e = "light") {
2151
+ return e === "dark" ? {
2152
+ main: Se[400],
2153
+ light: Se[300],
2154
+ dark: Se[700]
2155
+ } : {
2156
+ main: "#ed6c02",
2157
+ // closest to orange[800] that pass 3:1.
2158
+ light: Se[500],
2159
+ dark: Se[900]
2160
+ };
2161
+ }
2162
+ function ur(e) {
2163
+ const {
2164
+ mode: r = "light",
2165
+ contrastThreshold: t = 3,
2166
+ tonalOffset: n = 0.2,
2167
+ ...i
2168
+ } = e, a = e.primary || yn(r), s = e.secondary || bn(r), c = e.error || vn(r), u = e.info || Sn(r), d = e.success || Cn(r), h = e.warning || Tn(r);
2169
+ function p(b) {
2170
+ const $ = wr(b, Or.text.primary) >= t ? Or.text.primary : hn.text.primary;
2171
+ if (process.env.NODE_ENV !== "production") {
2172
+ const A = wr(b, $);
2173
+ A < 3 && console.error([`MUI: The contrast ratio of ${A}:1 for ${$} on ${b}`, "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(`
2174
+ `));
2175
+ }
2176
+ return $;
2177
+ }
2178
+ const f = ({
2179
+ color: b,
2180
+ name: $,
2181
+ mainShade: A = 500,
2182
+ lightShade: Y = 300,
2183
+ darkShade: w = 700
2184
+ }) => {
2185
+ if (b = {
2186
+ ...b
2187
+ }, !b.main && b[A] && (b.main = b[A]), !b.hasOwnProperty("main"))
2188
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${$ ? ` (${$})` : ""} provided to augmentColor(color) is invalid.
2189
+ The color object needs to have a \`main\` property or a \`${A}\` property.` : ue(11, $ ? ` (${$})` : "", A));
2190
+ if (typeof b.main != "string")
2191
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${$ ? ` (${$})` : ""} provided to augmentColor(color) is invalid.
2192
+ \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
2193
+
2194
+ Did you intend to use one of the following approaches?
2195
+
2196
+ import { green } from "@mui/material/colors";
2197
+
2198
+ const theme1 = createTheme({ palette: {
2199
+ primary: green,
2200
+ } });
2201
+
2202
+ const theme2 = createTheme({ palette: {
2203
+ primary: { main: green[500] },
2204
+ } });` : ue(12, $ ? ` (${$})` : "", JSON.stringify(b.main)));
2205
+ return Ar(b, "light", Y, n), Ar(b, "dark", w, n), b.contrastText || (b.contrastText = p(b.main)), b;
2206
+ };
2207
+ let S;
2208
+ return r === "light" ? S = Lr() : r === "dark" && (S = Vr()), process.env.NODE_ENV !== "production" && (S || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), Q({
2209
+ // A collection of common colors.
2210
+ common: {
2211
+ ...$e
2212
+ },
2213
+ // prevent mutable object.
2214
+ // The palette mode, can be light or dark.
2215
+ mode: r,
2216
+ // The colors used to represent primary interface elements for a user.
2217
+ primary: f({
2218
+ color: a,
2219
+ name: "primary"
2220
+ }),
2221
+ // The colors used to represent secondary interface elements for a user.
2222
+ secondary: f({
2223
+ color: s,
2224
+ name: "secondary",
2225
+ mainShade: "A400",
2226
+ lightShade: "A200",
2227
+ darkShade: "A700"
2228
+ }),
2229
+ // The colors used to represent interface elements that the user should be made aware of.
2230
+ error: f({
2231
+ color: c,
2232
+ name: "error"
2233
+ }),
2234
+ // The colors used to represent potentially dangerous actions or important messages.
2235
+ warning: f({
2236
+ color: h,
2237
+ name: "warning"
2238
+ }),
2239
+ // The colors used to present information to the user that is neutral and not necessarily important.
2240
+ info: f({
2241
+ color: u,
2242
+ name: "info"
2243
+ }),
2244
+ // The colors used to indicate the successful completion of an action that user triggered.
2245
+ success: f({
2246
+ color: d,
2247
+ name: "success"
2248
+ }),
2249
+ // The grey colors.
2250
+ grey: qr,
2251
+ // Used by `getContrastText()` to maximize the contrast between
2252
+ // the background and the text.
2253
+ contrastThreshold: t,
2254
+ // Takes a background color and returns the text color that maximizes the contrast.
2255
+ getContrastText: p,
2256
+ // Generate a rich color object.
2257
+ augmentColor: f,
2258
+ // Used by the functions below to shift a color's luminance by approximately
2259
+ // two indexes within its tonal palette.
2260
+ // E.g., shift from Red 500 to Red 300 or Red 700.
2261
+ tonalOffset: n,
2262
+ // The light and dark mode object.
2263
+ ...S
2264
+ }, i);
2265
+ }
2266
+ function En(e) {
2267
+ const r = {};
2268
+ return Object.entries(e).forEach((n) => {
2269
+ const [i, a] = n;
2270
+ typeof a == "object" && (r[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 || ""}`);
2271
+ }), r;
2272
+ }
2273
+ function wn(e, r) {
2274
+ return {
2275
+ toolbar: {
2276
+ minHeight: 56,
2277
+ [e.up("xs")]: {
2278
+ "@media (orientation: landscape)": {
2279
+ minHeight: 48
2280
+ }
2281
+ },
2282
+ [e.up("sm")]: {
2283
+ minHeight: 64
2284
+ }
2285
+ },
2286
+ ...r
2287
+ };
2288
+ }
2289
+ function $n(e) {
2290
+ return Math.round(e * 1e5) / 1e5;
2291
+ }
2292
+ const xr = {
2293
+ textTransform: "uppercase"
2294
+ }, kr = '"Roboto", "Helvetica", "Arial", sans-serif';
2295
+ function On(e, r) {
2296
+ const {
2297
+ fontFamily: t = kr,
2298
+ // The default font size of the Material Specification.
2299
+ fontSize: n = 14,
2300
+ // px
2301
+ fontWeightLight: i = 300,
2302
+ fontWeightRegular: a = 400,
2303
+ fontWeightMedium: s = 500,
2304
+ fontWeightBold: c = 700,
2305
+ // Tell MUI what's the font-size on the html element.
2306
+ // 16px is the default font-size used by browsers.
2307
+ htmlFontSize: u = 16,
2308
+ // Apply the CSS properties to all the variants.
2309
+ allVariants: d,
2310
+ pxToRem: h,
2311
+ ...p
2312
+ } = typeof r == "function" ? r(e) : r;
2313
+ process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2314
+ const f = n / 14, S = h || (($) => `${$ / u * f}rem`), T = ($, A, Y, w, E) => ({
2315
+ fontFamily: t,
2316
+ fontWeight: $,
2317
+ fontSize: S(A),
2318
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2319
+ lineHeight: Y,
2320
+ // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
2321
+ // across font-families can cause issues with the kerning.
2322
+ ...t === kr ? {
2323
+ letterSpacing: `${$n(w / A)}em`
2324
+ } : {},
2325
+ ...E,
2326
+ ...d
2327
+ }), b = {
2328
+ h1: T(i, 96, 1.167, -1.5),
2329
+ h2: T(i, 60, 1.2, -0.5),
2330
+ h3: T(a, 48, 1.167, 0),
2331
+ h4: T(a, 34, 1.235, 0.25),
2332
+ h5: T(a, 24, 1.334, 0),
2333
+ h6: T(s, 20, 1.6, 0.15),
2334
+ subtitle1: T(a, 16, 1.75, 0.15),
2335
+ subtitle2: T(s, 14, 1.57, 0.1),
2336
+ body1: T(a, 16, 1.5, 0.15),
2337
+ body2: T(a, 14, 1.43, 0.15),
2338
+ button: T(s, 14, 1.75, 0.4, xr),
2339
+ caption: T(a, 12, 1.66, 0.4),
2340
+ overline: T(a, 12, 2.66, 1, xr),
2341
+ // 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.
2342
+ inherit: {
2343
+ fontFamily: "inherit",
2344
+ fontWeight: "inherit",
2345
+ fontSize: "inherit",
2346
+ lineHeight: "inherit",
2347
+ letterSpacing: "inherit"
2348
+ }
2349
+ };
2350
+ return Q({
2351
+ htmlFontSize: u,
2352
+ pxToRem: S,
2353
+ fontFamily: t,
2354
+ fontSize: n,
2355
+ fontWeightLight: i,
2356
+ fontWeightRegular: a,
2357
+ fontWeightMedium: s,
2358
+ fontWeightBold: c,
2359
+ ...b
2360
+ }, p, {
2361
+ clone: !1
2362
+ // No need to clone deep
2363
+ });
2364
+ }
2365
+ const An = 0.2, xn = 0.14, kn = 0.12;
2366
+ function F(...e) {
2367
+ return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${An})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xn})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kn})`].join(",");
2368
+ }
2369
+ const Pn = ["none", F(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), F(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), F(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), F(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), F(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), F(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), F(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), F(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), F(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), F(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), F(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), F(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), F(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), F(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), F(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), F(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), F(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), F(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), F(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), F(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), F(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), F(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), F(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), F(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], _n = {
2370
+ // This is the most common easing curve.
2371
+ easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2372
+ // Objects enter the screen at full velocity from off-screen and
2373
+ // slowly decelerate to a resting point.
2374
+ easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2375
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2376
+ easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2377
+ // The sharp curve is used by objects that may return to the screen at any time.
2378
+ sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2379
+ }, Rn = {
2380
+ shortest: 150,
2381
+ shorter: 200,
2382
+ short: 250,
2383
+ // most basic recommended timing
2384
+ standard: 300,
2385
+ // this is to be used in complex animations
2386
+ complex: 375,
2387
+ // recommended when something is entering screen
2388
+ enteringScreen: 225,
2389
+ // recommended when something is leaving screen
2390
+ leavingScreen: 195
2391
+ };
2392
+ function Pr(e) {
2393
+ return `${Math.round(e)}ms`;
2394
+ }
2395
+ function In(e) {
2396
+ if (!e)
2397
+ return 0;
2398
+ const r = e / 36;
2399
+ return Math.min(Math.round((4 + 15 * r ** 0.25 + r / 5) * 10), 3e3);
2400
+ }
2401
+ function Bn(e) {
2402
+ const r = {
2403
+ ..._n,
2404
+ ...e.easing
2405
+ }, t = {
2406
+ ...Rn,
2407
+ ...e.duration
2408
+ };
2409
+ return {
2410
+ getAutoHeightDuration: In,
2411
+ create: (i = ["all"], a = {}) => {
2412
+ const {
2413
+ duration: s = t.standard,
2414
+ easing: c = r.easeInOut,
2415
+ delay: u = 0,
2416
+ ...d
2417
+ } = a;
2418
+ if (process.env.NODE_ENV !== "production") {
2419
+ const h = (f) => typeof f == "string", p = (f) => !Number.isNaN(parseFloat(f));
2420
+ !h(i) && !Array.isArray(i) && console.error('MUI: Argument "props" must be a string or Array.'), !p(s) && !h(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), h(c) || console.error('MUI: Argument "easing" must be a string.'), !p(u) && !h(u) && 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(`
2421
+ `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
2422
+ }
2423
+ return (Array.isArray(i) ? i : [i]).map((h) => `${h} ${typeof s == "string" ? s : Pr(s)} ${c} ${typeof u == "string" ? u : Pr(u)}`).join(",");
2424
+ },
2425
+ ...e,
2426
+ easing: r,
2427
+ duration: t
2428
+ };
2429
+ }
2430
+ const jn = {
2431
+ mobileStepper: 1e3,
2432
+ fab: 1050,
2433
+ speedDial: 1050,
2434
+ appBar: 1100,
2435
+ drawer: 1200,
2436
+ modal: 1300,
2437
+ snackbar: 1400,
2438
+ tooltip: 1500
2439
+ };
2440
+ function Dn(e) {
2441
+ return le(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
2442
+ }
2443
+ function zr(e = {}) {
2444
+ const r = {
2445
+ ...e
2446
+ };
2447
+ function t(n) {
2448
+ const i = Object.entries(n);
2449
+ for (let a = 0; a < i.length; a++) {
2450
+ const [s, c] = i[a];
2451
+ !Dn(c) || s.startsWith("unstable_") ? delete n[s] : le(c) && (n[s] = {
2452
+ ...c
2453
+ }, t(n[s]));
2454
+ }
2455
+ }
2456
+ return t(r), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
2457
+
2458
+ const theme = ${JSON.stringify(r, null, 2)};
2459
+
2460
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
2461
+ theme.transitions = createTransitions(theme.transitions || {});
2462
+
2463
+ export default theme;`;
2464
+ }
2465
+ function nr(e = {}, ...r) {
2466
+ const {
2467
+ breakpoints: t,
2468
+ mixins: n = {},
2469
+ spacing: i,
2470
+ palette: a = {},
2471
+ transitions: s = {},
2472
+ typography: c = {},
2473
+ shape: u,
2474
+ ...d
2475
+ } = e;
2476
+ if (e.vars)
2477
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : ue(20));
2478
+ const h = ur(a), p = en(e);
2479
+ let f = Q(p, {
2480
+ mixins: wn(p.breakpoints, n),
2481
+ palette: h,
2482
+ // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
2483
+ shadows: Pn.slice(),
2484
+ typography: On(h, c),
2485
+ transitions: Bn(s),
2486
+ zIndex: {
2487
+ ...jn
2488
+ }
2489
+ });
2490
+ if (f = Q(f, d), f = r.reduce((S, T) => Q(S, T), f), process.env.NODE_ENV !== "production") {
2491
+ const S = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], T = (b, $) => {
2492
+ let A;
2493
+ for (A in b) {
2494
+ const Y = b[A];
2495
+ if (S.includes(A) && Object.keys(Y).length > 0) {
2496
+ if (process.env.NODE_ENV !== "production") {
2497
+ const w = on("", A);
2498
+ console.error([`MUI: The \`${$}\` component increases the CSS specificity of the \`${A}\` internal state.`, "You can not override it like this: ", JSON.stringify(b, null, 2), "", `Instead, you need to use the '&.${w}' syntax:`, JSON.stringify({
2499
+ root: {
2500
+ [`&.${w}`]: Y
2501
+ }
2502
+ }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
2503
+ `));
2504
+ }
2505
+ b[A] = {};
2506
+ }
2507
+ }
2508
+ };
2509
+ Object.keys(f.components).forEach((b) => {
2510
+ const $ = f.components[b].styleOverrides;
2511
+ $ && b.startsWith("Mui") && T($, b);
2512
+ });
2513
+ }
2514
+ return f.unstable_sxConfig = {
2515
+ ...Ve,
2516
+ ...d == null ? void 0 : d.unstable_sxConfig
2517
+ }, f.unstable_sx = function(T) {
2518
+ return ze({
2519
+ sx: T,
2520
+ theme: this
2521
+ });
2522
+ }, f.toRuntimeSource = zr, f;
2523
+ }
2524
+ function Mn(e) {
2525
+ let r;
2526
+ return e < 1 ? r = 5.11916 * e ** 2 : r = 4.5 * Math.log(e + 1) + 2, Math.round(r * 10) / 1e3;
2527
+ }
2528
+ const Nn = [...Array(25)].map((e, r) => {
2529
+ if (r === 0)
2530
+ return "none";
2531
+ const t = Mn(r);
2532
+ return `linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`;
2533
+ });
2534
+ function Gr(e) {
2535
+ return {
2536
+ inputPlaceholder: e === "dark" ? 0.5 : 0.42,
2537
+ inputUnderline: e === "dark" ? 0.7 : 0.42,
2538
+ switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
2539
+ switchTrack: e === "dark" ? 0.3 : 0.38
2540
+ };
2541
+ }
2542
+ function Yr(e) {
2543
+ return e === "dark" ? Nn : [];
2544
+ }
2545
+ function Wn(e) {
2546
+ const {
2547
+ palette: r = {
2548
+ mode: "light"
2549
+ },
2550
+ // need to cast to avoid module augmentation test
2551
+ opacity: t,
2552
+ overlays: n,
2553
+ ...i
2554
+ } = e, a = ur(r);
2555
+ return {
2556
+ palette: a,
2557
+ opacity: {
2558
+ ...Gr(a.mode),
2559
+ ...t
2560
+ },
2561
+ overlays: n || Yr(a.mode),
2562
+ ...i
2563
+ };
2564
+ }
2565
+ function Un(e) {
2566
+ var r;
2567
+ return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
2568
+ e[0] === "palette" && !!((r = e[1]) != null && r.match(/(mode|contrastThreshold|tonalOffset)/));
2569
+ }
2570
+ const Fn = (e) => [...[...Array(25)].map((r, t) => `--${e ? `${e}-` : ""}overlays-${t}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], Ln = (e) => (r, t) => {
2571
+ const n = e.rootSelector || ":root", i = e.colorSchemeSelector;
2572
+ let a = i;
2573
+ if (i === "class" && (a = ".%s"), i === "data" && (a = "[data-%s]"), i != null && i.startsWith("data-") && !i.includes("%s") && (a = `[${i}="%s"]`), e.defaultColorScheme === r) {
2574
+ if (r === "dark") {
2575
+ const s = {};
2576
+ return Fn(e.cssVarPrefix).forEach((c) => {
2577
+ s[c] = t[c], delete t[c];
2578
+ }), a === "media" ? {
2579
+ [n]: t,
2580
+ "@media (prefers-color-scheme: dark)": {
2581
+ [n]: s
2582
+ }
2583
+ } : a ? {
2584
+ [a.replace("%s", r)]: s,
2585
+ [`${n}, ${a.replace("%s", r)}`]: t
2586
+ } : {
2587
+ [n]: {
2588
+ ...t,
2589
+ ...s
2590
+ }
2591
+ };
2592
+ }
2593
+ if (a && a !== "media")
2594
+ return `${n}, ${a.replace("%s", String(r))}`;
2595
+ } else if (r) {
2596
+ if (a === "media")
2597
+ return {
2598
+ [`@media (prefers-color-scheme: ${String(r)})`]: {
2599
+ [n]: t
2600
+ }
2601
+ };
2602
+ if (a)
2603
+ return a.replace("%s", String(r));
2604
+ }
2605
+ return n;
2606
+ };
2607
+ function Vn(e, r) {
2608
+ r.forEach((t) => {
2609
+ e[t] || (e[t] = {});
2610
+ });
2611
+ }
2612
+ function l(e, r, t) {
2613
+ !e[r] && t && (e[r] = t);
2614
+ }
2615
+ function Ee(e) {
2616
+ return typeof e != "string" || !e.startsWith("hsl") ? e : Fr(e);
2617
+ }
2618
+ function ae(e, r) {
2619
+ `${r}Channel` in e || (e[`${r}Channel`] = Te(Ee(e[r]), `MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
2620
+ To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
2621
+ }
2622
+ function zn(e) {
2623
+ return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
2624
+ }
2625
+ const oe = (e) => {
2626
+ try {
2627
+ return e();
2628
+ } catch {
2629
+ }
2630
+ }, Gn = (e = "mui") => fn(e);
2631
+ function er(e, r, t, n) {
2632
+ if (!r)
2633
+ return;
2634
+ r = r === !0 ? {} : r;
2635
+ const i = n === "dark" ? "dark" : "light";
2636
+ if (!t) {
2637
+ e[n] = Wn({
2638
+ ...r,
2639
+ palette: {
2640
+ mode: i,
2641
+ ...r == null ? void 0 : r.palette
2642
+ }
2643
+ });
2644
+ return;
2645
+ }
2646
+ const {
2647
+ palette: a,
2648
+ ...s
2649
+ } = nr({
2650
+ ...t,
2651
+ palette: {
2652
+ mode: i,
2653
+ ...r == null ? void 0 : r.palette
2654
+ }
2655
+ });
2656
+ return e[n] = {
2657
+ ...r,
2658
+ palette: a,
2659
+ opacity: {
2660
+ ...Gr(i),
2661
+ ...r == null ? void 0 : r.opacity
2662
+ },
2663
+ overlays: (r == null ? void 0 : r.overlays) || Yr(i)
2664
+ }, s;
2665
+ }
2666
+ function Yn(e = {}, ...r) {
2667
+ const {
2668
+ colorSchemes: t = {
2669
+ light: !0
2670
+ },
2671
+ defaultColorScheme: n,
2672
+ disableCssColorScheme: i = !1,
2673
+ cssVarPrefix: a = "mui",
2674
+ shouldSkipGeneratingVar: s = Un,
2675
+ colorSchemeSelector: c = t.light && t.dark ? "media" : void 0,
2676
+ rootSelector: u = ":root",
2677
+ ...d
2678
+ } = e, h = Object.keys(t)[0], p = n || (t.light && h !== "light" ? "light" : h), f = Gn(a), {
2679
+ [p]: S,
2680
+ light: T,
2681
+ dark: b,
2682
+ ...$
2683
+ } = t, A = {
2684
+ ...$
2685
+ };
2686
+ let Y = S;
2687
+ if ((p === "dark" && !("dark" in t) || p === "light" && !("light" in t)) && (Y = !0), !Y)
2688
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : ue(21, p));
2689
+ const w = er(A, Y, d, p);
2690
+ T && !A.light && er(A, T, void 0, "light"), b && !A.dark && er(A, b, void 0, "dark");
2691
+ let E = {
2692
+ defaultColorScheme: p,
2693
+ ...w,
2694
+ cssVarPrefix: a,
2695
+ colorSchemeSelector: c,
2696
+ rootSelector: u,
2697
+ getCssVar: f,
2698
+ colorSchemes: A,
2699
+ font: {
2700
+ ...En(w.typography),
2701
+ ...w.font
2702
+ },
2703
+ spacing: zn(d.spacing)
2704
+ };
2705
+ Object.keys(E.colorSchemes).forEach((K) => {
2706
+ const o = E.colorSchemes[K].palette, C = (j) => {
2707
+ const L = j.split("-"), re = L[1], ce = L[2];
2708
+ return f(j, o[re][ce]);
2709
+ };
2710
+ if (o.mode === "light" && (l(o.common, "background", "#fff"), l(o.common, "onBackground", "#000")), o.mode === "dark" && (l(o.common, "background", "#000"), l(o.common, "onBackground", "#fff")), Vn(o, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), o.mode === "light") {
2711
+ l(o.Alert, "errorColor", W(o.error.light, 0.6)), l(o.Alert, "infoColor", W(o.info.light, 0.6)), l(o.Alert, "successColor", W(o.success.light, 0.6)), l(o.Alert, "warningColor", W(o.warning.light, 0.6)), l(o.Alert, "errorFilledBg", C("palette-error-main")), l(o.Alert, "infoFilledBg", C("palette-info-main")), l(o.Alert, "successFilledBg", C("palette-success-main")), l(o.Alert, "warningFilledBg", C("palette-warning-main")), l(o.Alert, "errorFilledColor", oe(() => o.getContrastText(o.error.main))), l(o.Alert, "infoFilledColor", oe(() => o.getContrastText(o.info.main))), l(o.Alert, "successFilledColor", oe(() => o.getContrastText(o.success.main))), l(o.Alert, "warningFilledColor", oe(() => o.getContrastText(o.warning.main))), l(o.Alert, "errorStandardBg", U(o.error.light, 0.9)), l(o.Alert, "infoStandardBg", U(o.info.light, 0.9)), l(o.Alert, "successStandardBg", U(o.success.light, 0.9)), l(o.Alert, "warningStandardBg", U(o.warning.light, 0.9)), l(o.Alert, "errorIconColor", C("palette-error-main")), l(o.Alert, "infoIconColor", C("palette-info-main")), l(o.Alert, "successIconColor", C("palette-success-main")), l(o.Alert, "warningIconColor", C("palette-warning-main")), l(o.AppBar, "defaultBg", C("palette-grey-100")), l(o.Avatar, "defaultBg", C("palette-grey-400")), l(o.Button, "inheritContainedBg", C("palette-grey-300")), l(o.Button, "inheritContainedHoverBg", C("palette-grey-A100")), l(o.Chip, "defaultBorder", C("palette-grey-400")), l(o.Chip, "defaultAvatarColor", C("palette-grey-700")), l(o.Chip, "defaultIconColor", C("palette-grey-700")), l(o.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), l(o.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), l(o.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), l(o.LinearProgress, "primaryBg", U(o.primary.main, 0.62)), l(o.LinearProgress, "secondaryBg", U(o.secondary.main, 0.62)), l(o.LinearProgress, "errorBg", U(o.error.main, 0.62)), l(o.LinearProgress, "infoBg", U(o.info.main, 0.62)), l(o.LinearProgress, "successBg", U(o.success.main, 0.62)), l(o.LinearProgress, "warningBg", U(o.warning.main, 0.62)), l(o.Skeleton, "bg", `rgba(${C("palette-text-primaryChannel")} / 0.11)`), l(o.Slider, "primaryTrack", U(o.primary.main, 0.62)), l(o.Slider, "secondaryTrack", U(o.secondary.main, 0.62)), l(o.Slider, "errorTrack", U(o.error.main, 0.62)), l(o.Slider, "infoTrack", U(o.info.main, 0.62)), l(o.Slider, "successTrack", U(o.success.main, 0.62)), l(o.Slider, "warningTrack", U(o.warning.main, 0.62));
2712
+ const j = Re(o.background.default, 0.8);
2713
+ l(o.SnackbarContent, "bg", j), l(o.SnackbarContent, "color", oe(() => o.getContrastText(j))), l(o.SpeedDialAction, "fabHoverBg", Re(o.background.paper, 0.15)), l(o.StepConnector, "border", C("palette-grey-400")), l(o.StepContent, "border", C("palette-grey-400")), l(o.Switch, "defaultColor", C("palette-common-white")), l(o.Switch, "defaultDisabledColor", C("palette-grey-100")), l(o.Switch, "primaryDisabledColor", U(o.primary.main, 0.62)), l(o.Switch, "secondaryDisabledColor", U(o.secondary.main, 0.62)), l(o.Switch, "errorDisabledColor", U(o.error.main, 0.62)), l(o.Switch, "infoDisabledColor", U(o.info.main, 0.62)), l(o.Switch, "successDisabledColor", U(o.success.main, 0.62)), l(o.Switch, "warningDisabledColor", U(o.warning.main, 0.62)), l(o.TableCell, "border", U(_e(o.divider, 1), 0.88)), l(o.Tooltip, "bg", _e(o.grey[700], 0.92));
2714
+ }
2715
+ if (o.mode === "dark") {
2716
+ l(o.Alert, "errorColor", U(o.error.light, 0.6)), l(o.Alert, "infoColor", U(o.info.light, 0.6)), l(o.Alert, "successColor", U(o.success.light, 0.6)), l(o.Alert, "warningColor", U(o.warning.light, 0.6)), l(o.Alert, "errorFilledBg", C("palette-error-dark")), l(o.Alert, "infoFilledBg", C("palette-info-dark")), l(o.Alert, "successFilledBg", C("palette-success-dark")), l(o.Alert, "warningFilledBg", C("palette-warning-dark")), l(o.Alert, "errorFilledColor", oe(() => o.getContrastText(o.error.dark))), l(o.Alert, "infoFilledColor", oe(() => o.getContrastText(o.info.dark))), l(o.Alert, "successFilledColor", oe(() => o.getContrastText(o.success.dark))), l(o.Alert, "warningFilledColor", oe(() => o.getContrastText(o.warning.dark))), l(o.Alert, "errorStandardBg", W(o.error.light, 0.9)), l(o.Alert, "infoStandardBg", W(o.info.light, 0.9)), l(o.Alert, "successStandardBg", W(o.success.light, 0.9)), l(o.Alert, "warningStandardBg", W(o.warning.light, 0.9)), l(o.Alert, "errorIconColor", C("palette-error-main")), l(o.Alert, "infoIconColor", C("palette-info-main")), l(o.Alert, "successIconColor", C("palette-success-main")), l(o.Alert, "warningIconColor", C("palette-warning-main")), l(o.AppBar, "defaultBg", C("palette-grey-900")), l(o.AppBar, "darkBg", C("palette-background-paper")), l(o.AppBar, "darkColor", C("palette-text-primary")), l(o.Avatar, "defaultBg", C("palette-grey-600")), l(o.Button, "inheritContainedBg", C("palette-grey-800")), l(o.Button, "inheritContainedHoverBg", C("palette-grey-700")), l(o.Chip, "defaultBorder", C("palette-grey-700")), l(o.Chip, "defaultAvatarColor", C("palette-grey-300")), l(o.Chip, "defaultIconColor", C("palette-grey-300")), l(o.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), l(o.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), l(o.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), l(o.LinearProgress, "primaryBg", W(o.primary.main, 0.5)), l(o.LinearProgress, "secondaryBg", W(o.secondary.main, 0.5)), l(o.LinearProgress, "errorBg", W(o.error.main, 0.5)), l(o.LinearProgress, "infoBg", W(o.info.main, 0.5)), l(o.LinearProgress, "successBg", W(o.success.main, 0.5)), l(o.LinearProgress, "warningBg", W(o.warning.main, 0.5)), l(o.Skeleton, "bg", `rgba(${C("palette-text-primaryChannel")} / 0.13)`), l(o.Slider, "primaryTrack", W(o.primary.main, 0.5)), l(o.Slider, "secondaryTrack", W(o.secondary.main, 0.5)), l(o.Slider, "errorTrack", W(o.error.main, 0.5)), l(o.Slider, "infoTrack", W(o.info.main, 0.5)), l(o.Slider, "successTrack", W(o.success.main, 0.5)), l(o.Slider, "warningTrack", W(o.warning.main, 0.5));
2717
+ const j = Re(o.background.default, 0.98);
2718
+ l(o.SnackbarContent, "bg", j), l(o.SnackbarContent, "color", oe(() => o.getContrastText(j))), l(o.SpeedDialAction, "fabHoverBg", Re(o.background.paper, 0.15)), l(o.StepConnector, "border", C("palette-grey-600")), l(o.StepContent, "border", C("palette-grey-600")), l(o.Switch, "defaultColor", C("palette-grey-300")), l(o.Switch, "defaultDisabledColor", C("palette-grey-600")), l(o.Switch, "primaryDisabledColor", W(o.primary.main, 0.55)), l(o.Switch, "secondaryDisabledColor", W(o.secondary.main, 0.55)), l(o.Switch, "errorDisabledColor", W(o.error.main, 0.55)), l(o.Switch, "infoDisabledColor", W(o.info.main, 0.55)), l(o.Switch, "successDisabledColor", W(o.success.main, 0.55)), l(o.Switch, "warningDisabledColor", W(o.warning.main, 0.55)), l(o.TableCell, "border", W(_e(o.divider, 1), 0.68)), l(o.Tooltip, "bg", _e(o.grey[700], 0.92));
2719
+ }
2720
+ ae(o.background, "default"), ae(o.background, "paper"), ae(o.common, "background"), ae(o.common, "onBackground"), ae(o, "divider"), Object.keys(o).forEach((j) => {
2721
+ const L = o[j];
2722
+ j !== "tonalOffset" && L && typeof L == "object" && (L.main && l(o[j], "mainChannel", Te(Ee(L.main))), L.light && l(o[j], "lightChannel", Te(Ee(L.light))), L.dark && l(o[j], "darkChannel", Te(Ee(L.dark))), L.contrastText && l(o[j], "contrastTextChannel", Te(Ee(L.contrastText))), j === "text" && (ae(o[j], "primary"), ae(o[j], "secondary")), j === "action" && (L.active && ae(o[j], "active"), L.selected && ae(o[j], "selected")));
2723
+ });
2724
+ }), E = r.reduce((K, o) => Q(K, o), E);
2725
+ const m = {
2726
+ prefix: a,
2727
+ disableCssColorScheme: i,
2728
+ shouldSkipGeneratingVar: s,
2729
+ getSelector: Ln(E)
2730
+ }, {
2731
+ vars: q,
2732
+ generateThemeVars: X,
2733
+ generateStyleSheets: ie
2734
+ } = gn(E, m);
2735
+ return E.vars = q, Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([K, o]) => {
2736
+ E[K] = o;
2737
+ }), E.generateThemeVars = X, E.generateStyleSheets = ie, E.generateSpacing = function() {
2738
+ return Ur(d.spacing, ir(this));
2739
+ }, E.getColorSchemeSelector = mn(c), E.spacing = E.generateSpacing(), E.shouldSkipGeneratingVar = s, E.unstable_sxConfig = {
2740
+ ...Ve,
2741
+ ...d == null ? void 0 : d.unstable_sxConfig
2742
+ }, E.unstable_sx = function(o) {
2743
+ return ze({
2744
+ sx: o,
2745
+ theme: this
2746
+ });
2747
+ }, E.toRuntimeSource = zr, E;
2748
+ }
2749
+ function _r(e, r, t) {
2750
+ e.colorSchemes && t && (e.colorSchemes[r] = {
2751
+ ...t !== !0 && t,
2752
+ palette: ur({
2753
+ ...t === !0 ? {} : t.palette,
2754
+ mode: r
2755
+ })
2756
+ // cast type to skip module augmentation test
2757
+ });
2758
+ }
2759
+ function Qn(e = {}, ...r) {
2760
+ const {
2761
+ palette: t,
2762
+ cssVariables: n = !1,
2763
+ colorSchemes: i = t ? void 0 : {
2764
+ light: !0
2765
+ },
2766
+ defaultColorScheme: a = t == null ? void 0 : t.mode,
2767
+ ...s
2768
+ } = e, c = a || "light", u = i == null ? void 0 : i[c], d = {
2769
+ ...i,
2770
+ ...t ? {
2771
+ [c]: {
2772
+ ...typeof u != "boolean" && u,
2773
+ palette: t
2774
+ }
2775
+ } : void 0
2776
+ };
2777
+ if (n === !1) {
2778
+ if (!("colorSchemes" in e))
2779
+ return nr(e, ...r);
2780
+ let h = t;
2781
+ "palette" in e || d[c] && (d[c] !== !0 ? h = d[c].palette : c === "dark" && (h = {
2782
+ mode: "dark"
2783
+ }));
2784
+ const p = nr({
2785
+ ...e,
2786
+ palette: h
2787
+ }, ...r);
2788
+ return p.defaultColorScheme = c, p.colorSchemes = d, p.palette.mode === "light" && (p.colorSchemes.light = {
2789
+ ...d.light !== !0 && d.light,
2790
+ palette: p.palette
2791
+ }, _r(p, "dark", d.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
2792
+ ...d.dark !== !0 && d.dark,
2793
+ palette: p.palette
2794
+ }, _r(p, "light", d.light)), p;
2795
+ }
2796
+ return !t && !("light" in d) && c === "light" && (d.light = !0), Yn({
2797
+ ...s,
2798
+ colorSchemes: d,
2799
+ defaultColorScheme: c,
2800
+ ...typeof n != "boolean" && n
2801
+ }, ...r);
2802
+ }
2803
+ export {
2804
+ tn as C,
2805
+ Ce as P,
2806
+ en as a,
2807
+ ln as b,
2808
+ Qn as c,
2809
+ Mn as d,
2810
+ Nr as e,
2811
+ Ve as f,
2812
+ on as g,
2813
+ se as h,
2814
+ le as i,
2815
+ ir as j,
2816
+ Q as k,
2817
+ Ae as l,
2818
+ Kn as m,
2819
+ cr as n,
2820
+ lr as o,
2821
+ Rn as p,
2822
+ Kr as q,
2823
+ Hn as r,
2824
+ ze as s,
2825
+ On as t,
2826
+ ue as u,
2827
+ qn as v
2828
+ };