@amateescu/portal-ui-components 0.0.24 → 0.0.25-react19

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