@amateescu/portal-ui-components 0.0.34 → 0.0.35-beta0

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