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