@loopr-ai/craft 0.7.6 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ButtonBase-85c9347b.js → ButtonBase-08b16b61.js} +3 -3
- package/dist/{TextField-fded06e5.js → TextField-f61d210a.js} +8 -7
- package/dist/{Tooltip-b926c320.js → Tooltip-e797a425.js} +6 -6
- package/dist/{TransitionGroupContext-fe9a562f.js → TransitionGroupContext-0e899f4c.js} +1 -1
- package/dist/{ZoomControllers-36e39bb0.js → ZoomControllers-d04c25f8.js} +5 -5
- package/dist/components/cell/AvatarGroup/index.js +3 -3
- package/dist/components/cell/Button/index.js +3 -3
- package/dist/components/cell/Chip/index.js +5 -5
- package/dist/components/cell/ProgressBar/index.js +3 -3
- package/dist/components/cell/Search/index.js +2 -2
- package/dist/components/cell/Typography/index.js +1 -1
- package/dist/components/organ/Form/Form.interfaces.d.ts +11 -3
- package/dist/components/organ/Form/Form.styles.d.ts +7 -2
- package/dist/components/organ/Form/Form.styles.js +9 -4
- package/dist/components/organ/Form/FormInput.d.ts +1 -0
- package/dist/components/organ/Form/FormInput.js +1284 -270
- package/dist/components/organ/Form/index.d.ts +3 -1
- package/dist/components/organ/Form/index.js +50 -47
- package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +2 -2
- package/dist/components/organ/ZoomControlWithDrag/index.js +2 -2
- package/dist/{createSvgIcon-f773ce57.js → createSvgIcon-45340b5e.js} +17 -17
- package/dist/{createSvgIcon-58aa3adf.js → createSvgIcon-5aac746d.js} +2 -2
- package/dist/{createTheme-a4db2989.js → createTheme-759a022d.js} +507 -477
- package/dist/{exactProp-d79ccada.js → exactProp-23d6a154.js} +1 -1
- package/dist/{extendSxProp-db8b9da5.js → extendSxProp-cf8fd923.js} +1 -1
- package/dist/global/theme.js +1 -1
- package/dist/{index-03287c17.js → index-c9c32237.js} +3 -3
- package/dist/main.js +1 -1
- package/dist/providers/CraftThemeProvider.js +2 -2
- package/dist/{styled-126c6a62.js → styled-78608e1f.js} +16 -14
- package/dist/{useTheme-573c40a2.js → useTheme-8906bd79.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const St = {
|
|
2
2
|
black: "#000",
|
|
3
3
|
white: "#fff"
|
|
4
|
-
}, le =
|
|
4
|
+
}, le = St, wt = {
|
|
5
5
|
50: "#ffebee",
|
|
6
6
|
100: "#ffcdd2",
|
|
7
7
|
200: "#ef9a9a",
|
|
@@ -16,7 +16,7 @@ const Tt = {
|
|
|
16
16
|
A200: "#ff5252",
|
|
17
17
|
A400: "#ff1744",
|
|
18
18
|
A700: "#d50000"
|
|
19
|
-
}, Q =
|
|
19
|
+
}, Q = wt, _t = {
|
|
20
20
|
50: "#f3e5f5",
|
|
21
21
|
100: "#e1bee7",
|
|
22
22
|
200: "#ce93d8",
|
|
@@ -31,7 +31,7 @@ const Tt = {
|
|
|
31
31
|
A200: "#e040fb",
|
|
32
32
|
A400: "#d500f9",
|
|
33
33
|
A700: "#aa00ff"
|
|
34
|
-
}, ee =
|
|
34
|
+
}, ee = _t, At = {
|
|
35
35
|
50: "#e3f2fd",
|
|
36
36
|
100: "#bbdefb",
|
|
37
37
|
200: "#90caf9",
|
|
@@ -46,7 +46,7 @@ const Tt = {
|
|
|
46
46
|
A200: "#448aff",
|
|
47
47
|
A400: "#2979ff",
|
|
48
48
|
A700: "#2962ff"
|
|
49
|
-
}, te =
|
|
49
|
+
}, te = At, Ct = {
|
|
50
50
|
50: "#e1f5fe",
|
|
51
51
|
100: "#b3e5fc",
|
|
52
52
|
200: "#81d4fa",
|
|
@@ -61,7 +61,7 @@ const Tt = {
|
|
|
61
61
|
A200: "#40c4ff",
|
|
62
62
|
A400: "#00b0ff",
|
|
63
63
|
A700: "#0091ea"
|
|
64
|
-
}, re =
|
|
64
|
+
}, re = Ct, Pt = {
|
|
65
65
|
50: "#e8f5e9",
|
|
66
66
|
100: "#c8e6c9",
|
|
67
67
|
200: "#a5d6a7",
|
|
@@ -76,7 +76,7 @@ const Tt = {
|
|
|
76
76
|
A200: "#69f0ae",
|
|
77
77
|
A400: "#00e676",
|
|
78
78
|
A700: "#00c853"
|
|
79
|
-
}, ne =
|
|
79
|
+
}, ne = Pt, Rt = {
|
|
80
80
|
50: "#fff3e0",
|
|
81
81
|
100: "#ffe0b2",
|
|
82
82
|
200: "#ffcc80",
|
|
@@ -91,7 +91,7 @@ const Tt = {
|
|
|
91
91
|
A200: "#ffab40",
|
|
92
92
|
A400: "#ff9100",
|
|
93
93
|
A700: "#ff6d00"
|
|
94
|
-
}, ce =
|
|
94
|
+
}, ce = Rt, It = {
|
|
95
95
|
50: "#fafafa",
|
|
96
96
|
100: "#f5f5f5",
|
|
97
97
|
200: "#eeeeee",
|
|
@@ -106,7 +106,7 @@ const Tt = {
|
|
|
106
106
|
A200: "#eeeeee",
|
|
107
107
|
A400: "#bdbdbd",
|
|
108
108
|
A700: "#616161"
|
|
109
|
-
},
|
|
109
|
+
}, jt = It;
|
|
110
110
|
function U() {
|
|
111
111
|
return U = Object.assign ? Object.assign.bind() : function(e) {
|
|
112
112
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -120,12 +120,12 @@ function U() {
|
|
|
120
120
|
function oe(e) {
|
|
121
121
|
return e !== null && typeof e == "object" && e.constructor === Object;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function mt(e) {
|
|
124
124
|
if (!oe(e))
|
|
125
125
|
return e;
|
|
126
126
|
const t = {};
|
|
127
127
|
return Object.keys(e).forEach((n) => {
|
|
128
|
-
t[n] =
|
|
128
|
+
t[n] = mt(e[n]);
|
|
129
129
|
}), t;
|
|
130
130
|
}
|
|
131
131
|
function F(e, t, n = {
|
|
@@ -133,13 +133,13 @@ function F(e, t, n = {
|
|
|
133
133
|
}) {
|
|
134
134
|
const r = n.clone ? U({}, e) : e;
|
|
135
135
|
return oe(e) && oe(t) && Object.keys(t).forEach((o) => {
|
|
136
|
-
o !== "__proto__" && (oe(t[o]) && o in e && oe(e[o]) ? r[o] = F(e[o], t[o], n) : n.clone ? r[o] = oe(t[o]) ?
|
|
136
|
+
o !== "__proto__" && (oe(t[o]) && o in e && oe(e[o]) ? r[o] = F(e[o], t[o], n) : n.clone ? r[o] = oe(t[o]) ? mt(t[o]) : t[o] : r[o] = t[o]);
|
|
137
137
|
}), r;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function kt(e) {
|
|
140
140
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function On(e) {
|
|
143
143
|
if (e.__esModule)
|
|
144
144
|
return e;
|
|
145
145
|
var t = e.default;
|
|
@@ -160,7 +160,7 @@ function vn(e) {
|
|
|
160
160
|
});
|
|
161
161
|
}), n;
|
|
162
162
|
}
|
|
163
|
-
var Le = { exports: {} }, he = { exports: {} },
|
|
163
|
+
var Le = { exports: {} }, he = { exports: {} }, C = {};
|
|
164
164
|
/** @license React v16.13.1
|
|
165
165
|
* react-is.production.min.js
|
|
166
166
|
*
|
|
@@ -170,73 +170,73 @@ var Le = { exports: {} }, he = { exports: {} }, P = {};
|
|
|
170
170
|
* LICENSE file in the root directory of this source tree.
|
|
171
171
|
*/
|
|
172
172
|
var Je;
|
|
173
|
-
function
|
|
173
|
+
function Mt() {
|
|
174
174
|
if (Je)
|
|
175
|
-
return
|
|
175
|
+
return C;
|
|
176
176
|
Je = 1;
|
|
177
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114,
|
|
178
|
-
function D(
|
|
179
|
-
if (typeof
|
|
180
|
-
var
|
|
181
|
-
switch (
|
|
177
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
178
|
+
function D(y) {
|
|
179
|
+
if (typeof y == "object" && y !== null) {
|
|
180
|
+
var V = y.$$typeof;
|
|
181
|
+
switch (V) {
|
|
182
182
|
case t:
|
|
183
|
-
switch (
|
|
184
|
-
case
|
|
183
|
+
switch (y = y.type, y) {
|
|
184
|
+
case p:
|
|
185
185
|
case f:
|
|
186
186
|
case r:
|
|
187
187
|
case i:
|
|
188
188
|
case o:
|
|
189
189
|
case h:
|
|
190
|
-
return
|
|
190
|
+
return y;
|
|
191
191
|
default:
|
|
192
|
-
switch (
|
|
192
|
+
switch (y = y && y.$$typeof, y) {
|
|
193
193
|
case u:
|
|
194
194
|
case g:
|
|
195
195
|
case v:
|
|
196
196
|
case b:
|
|
197
|
-
case
|
|
198
|
-
return
|
|
197
|
+
case s:
|
|
198
|
+
return y;
|
|
199
199
|
default:
|
|
200
|
-
return
|
|
200
|
+
return V;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
case n:
|
|
204
|
-
return
|
|
204
|
+
return V;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function B(
|
|
209
|
-
return D(
|
|
208
|
+
function B(y) {
|
|
209
|
+
return D(y) === f;
|
|
210
210
|
}
|
|
211
|
-
return
|
|
212
|
-
return B(
|
|
213
|
-
},
|
|
214
|
-
return D(
|
|
215
|
-
},
|
|
216
|
-
return D(
|
|
217
|
-
},
|
|
218
|
-
return typeof
|
|
219
|
-
},
|
|
220
|
-
return D(
|
|
221
|
-
},
|
|
222
|
-
return D(
|
|
223
|
-
},
|
|
224
|
-
return D(
|
|
225
|
-
},
|
|
226
|
-
return D(
|
|
227
|
-
},
|
|
228
|
-
return D(
|
|
229
|
-
},
|
|
230
|
-
return D(
|
|
231
|
-
},
|
|
232
|
-
return D(
|
|
233
|
-
},
|
|
234
|
-
return D(
|
|
235
|
-
},
|
|
236
|
-
return typeof
|
|
237
|
-
},
|
|
238
|
-
}
|
|
239
|
-
var
|
|
211
|
+
return C.AsyncMode = p, C.ConcurrentMode = f, C.ContextConsumer = u, C.ContextProvider = s, C.Element = t, C.ForwardRef = g, C.Fragment = r, C.Lazy = v, C.Memo = b, C.Portal = n, C.Profiler = i, C.StrictMode = o, C.Suspense = h, C.isAsyncMode = function(y) {
|
|
212
|
+
return B(y) || D(y) === p;
|
|
213
|
+
}, C.isConcurrentMode = B, C.isContextConsumer = function(y) {
|
|
214
|
+
return D(y) === u;
|
|
215
|
+
}, C.isContextProvider = function(y) {
|
|
216
|
+
return D(y) === s;
|
|
217
|
+
}, C.isElement = function(y) {
|
|
218
|
+
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
219
|
+
}, C.isForwardRef = function(y) {
|
|
220
|
+
return D(y) === g;
|
|
221
|
+
}, C.isFragment = function(y) {
|
|
222
|
+
return D(y) === r;
|
|
223
|
+
}, C.isLazy = function(y) {
|
|
224
|
+
return D(y) === v;
|
|
225
|
+
}, C.isMemo = function(y) {
|
|
226
|
+
return D(y) === b;
|
|
227
|
+
}, C.isPortal = function(y) {
|
|
228
|
+
return D(y) === n;
|
|
229
|
+
}, C.isProfiler = function(y) {
|
|
230
|
+
return D(y) === i;
|
|
231
|
+
}, C.isStrictMode = function(y) {
|
|
232
|
+
return D(y) === o;
|
|
233
|
+
}, C.isSuspense = function(y) {
|
|
234
|
+
return D(y) === h;
|
|
235
|
+
}, C.isValidElementType = function(y) {
|
|
236
|
+
return typeof y == "string" || typeof y == "function" || y === r || y === f || y === i || y === o || y === h || y === c || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === b || y.$$typeof === s || y.$$typeof === u || y.$$typeof === g || y.$$typeof === x || y.$$typeof === j || y.$$typeof === z || y.$$typeof === l);
|
|
237
|
+
}, C.typeOf = D, C;
|
|
238
|
+
}
|
|
239
|
+
var P = {};
|
|
240
240
|
/** @license React v16.13.1
|
|
241
241
|
* react-is.development.js
|
|
242
242
|
*
|
|
@@ -246,12 +246,12 @@ var A = {};
|
|
|
246
246
|
* LICENSE file in the root directory of this source tree.
|
|
247
247
|
*/
|
|
248
248
|
var Xe;
|
|
249
|
-
function
|
|
249
|
+
function Nt() {
|
|
250
250
|
return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
251
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114,
|
|
251
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
252
252
|
function D(d) {
|
|
253
253
|
return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
254
|
-
d === r || d === f || d === i || d === o || d === h || d === c || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === b || d.$$typeof ===
|
|
254
|
+
d === r || d === f || d === i || d === o || d === h || d === c || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === b || d.$$typeof === s || d.$$typeof === u || d.$$typeof === g || d.$$typeof === x || d.$$typeof === j || d.$$typeof === z || d.$$typeof === l);
|
|
255
255
|
}
|
|
256
256
|
function B(d) {
|
|
257
257
|
if (typeof d == "object" && d !== null) {
|
|
@@ -260,7 +260,7 @@ function jt() {
|
|
|
260
260
|
case t:
|
|
261
261
|
var ge = d.type;
|
|
262
262
|
switch (ge) {
|
|
263
|
-
case
|
|
263
|
+
case p:
|
|
264
264
|
case f:
|
|
265
265
|
case r:
|
|
266
266
|
case i:
|
|
@@ -268,14 +268,14 @@ function jt() {
|
|
|
268
268
|
case h:
|
|
269
269
|
return ge;
|
|
270
270
|
default:
|
|
271
|
-
var
|
|
272
|
-
switch (
|
|
271
|
+
var Ve = ge && ge.$$typeof;
|
|
272
|
+
switch (Ve) {
|
|
273
273
|
case u:
|
|
274
274
|
case g:
|
|
275
275
|
case v:
|
|
276
276
|
case b:
|
|
277
|
-
case
|
|
278
|
-
return
|
|
277
|
+
case s:
|
|
278
|
+
return Ve;
|
|
279
279
|
default:
|
|
280
280
|
return Y;
|
|
281
281
|
}
|
|
@@ -285,18 +285,18 @@ function jt() {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
var
|
|
288
|
+
var y = p, V = f, Ae = u, Ce = s, Pe = t, Re = g, ye = r, Ie = v, je = b, Z = n, ke = i, L = o, J = h, me = !1;
|
|
289
289
|
function Me(d) {
|
|
290
|
-
return
|
|
290
|
+
return me || (me = !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.")), a(d) || B(d) === p;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function a(d) {
|
|
293
293
|
return B(d) === f;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function m(d) {
|
|
296
296
|
return B(d) === u;
|
|
297
297
|
}
|
|
298
298
|
function S(d) {
|
|
299
|
-
return B(d) ===
|
|
299
|
+
return B(d) === s;
|
|
300
300
|
}
|
|
301
301
|
function T(d) {
|
|
302
302
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
@@ -319,18 +319,18 @@ function jt() {
|
|
|
319
319
|
function I(d) {
|
|
320
320
|
return B(d) === i;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function A(d) {
|
|
323
323
|
return B(d) === o;
|
|
324
324
|
}
|
|
325
325
|
function W(d) {
|
|
326
326
|
return B(d) === h;
|
|
327
327
|
}
|
|
328
|
-
|
|
329
|
-
}()),
|
|
328
|
+
P.AsyncMode = y, P.ConcurrentMode = V, P.ContextConsumer = Ae, P.ContextProvider = Ce, P.Element = Pe, P.ForwardRef = Re, P.Fragment = ye, P.Lazy = Ie, P.Memo = je, P.Portal = Z, P.Profiler = ke, P.StrictMode = L, P.Suspense = J, P.isAsyncMode = Me, P.isConcurrentMode = a, P.isContextConsumer = m, P.isContextProvider = S, P.isElement = T, P.isForwardRef = O, P.isFragment = w, P.isLazy = E, P.isMemo = $, P.isPortal = _, P.isProfiler = I, P.isStrictMode = A, P.isSuspense = W, P.isValidElementType = D, P.typeOf = B;
|
|
329
|
+
}()), P;
|
|
330
330
|
}
|
|
331
331
|
var Ze;
|
|
332
332
|
function gt() {
|
|
333
|
-
return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? he.exports =
|
|
333
|
+
return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? he.exports = Mt() : he.exports = Nt()), he.exports;
|
|
334
334
|
}
|
|
335
335
|
/*
|
|
336
336
|
object-assign
|
|
@@ -338,7 +338,7 @@ object-assign
|
|
|
338
338
|
@license MIT
|
|
339
339
|
*/
|
|
340
340
|
var Ne, Qe;
|
|
341
|
-
function
|
|
341
|
+
function Dt() {
|
|
342
342
|
if (Qe)
|
|
343
343
|
return Ne;
|
|
344
344
|
Qe = 1;
|
|
@@ -355,12 +355,12 @@ function Mt() {
|
|
|
355
355
|
var i = new String("abc");
|
|
356
356
|
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
357
357
|
return !1;
|
|
358
|
-
for (var
|
|
359
|
-
|
|
360
|
-
var
|
|
361
|
-
return
|
|
358
|
+
for (var s = {}, u = 0; u < 10; u++)
|
|
359
|
+
s["_" + String.fromCharCode(u)] = u;
|
|
360
|
+
var p = Object.getOwnPropertyNames(s).map(function(g) {
|
|
361
|
+
return s[g];
|
|
362
362
|
});
|
|
363
|
-
if (
|
|
363
|
+
if (p.join("") !== "0123456789")
|
|
364
364
|
return !1;
|
|
365
365
|
var f = {};
|
|
366
366
|
return "abcdefghijklmnopqrst".split("").forEach(function(g) {
|
|
@@ -370,18 +370,18 @@ function Mt() {
|
|
|
370
370
|
return !1;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
return Ne = o() ? Object.assign : function(i,
|
|
374
|
-
for (var u,
|
|
373
|
+
return Ne = o() ? Object.assign : function(i, s) {
|
|
374
|
+
for (var u, p = r(i), f, g = 1; g < arguments.length; g++) {
|
|
375
375
|
u = Object(arguments[g]);
|
|
376
376
|
for (var h in u)
|
|
377
|
-
t.call(u, h) && (
|
|
377
|
+
t.call(u, h) && (p[h] = u[h]);
|
|
378
378
|
if (e) {
|
|
379
379
|
f = e(u);
|
|
380
380
|
for (var c = 0; c < f.length; c++)
|
|
381
|
-
n.call(u, f[c]) && (
|
|
381
|
+
n.call(u, f[c]) && (p[f[c]] = u[f[c]]);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
return
|
|
384
|
+
return p;
|
|
385
385
|
}, Ne;
|
|
386
386
|
}
|
|
387
387
|
var De, et;
|
|
@@ -397,7 +397,7 @@ function ht() {
|
|
|
397
397
|
return tt || (tt = 1, Be = Function.call.bind(Object.prototype.hasOwnProperty)), Be;
|
|
398
398
|
}
|
|
399
399
|
var Ue, rt;
|
|
400
|
-
function
|
|
400
|
+
function Bt() {
|
|
401
401
|
if (rt)
|
|
402
402
|
return Ue;
|
|
403
403
|
rt = 1;
|
|
@@ -406,15 +406,15 @@ function Nt() {
|
|
|
406
406
|
if (process.env.NODE_ENV !== "production") {
|
|
407
407
|
var t = Ye(), n = {}, r = ht();
|
|
408
408
|
e = function(i) {
|
|
409
|
-
var
|
|
410
|
-
typeof console < "u" && console.error(
|
|
409
|
+
var s = "Warning: " + i;
|
|
410
|
+
typeof console < "u" && console.error(s);
|
|
411
411
|
try {
|
|
412
|
-
throw new Error(
|
|
412
|
+
throw new Error(s);
|
|
413
413
|
} catch {
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
function o(i,
|
|
417
|
+
function o(i, s, u, p, f) {
|
|
418
418
|
if (process.env.NODE_ENV !== "production") {
|
|
419
419
|
for (var g in i)
|
|
420
420
|
if (r(i, g)) {
|
|
@@ -422,16 +422,16 @@ function Nt() {
|
|
|
422
422
|
try {
|
|
423
423
|
if (typeof i[g] != "function") {
|
|
424
424
|
var c = Error(
|
|
425
|
-
(
|
|
425
|
+
(p || "React class") + ": " + u + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
426
426
|
);
|
|
427
427
|
throw c.name = "Invariant Violation", c;
|
|
428
428
|
}
|
|
429
|
-
h = i[g](
|
|
429
|
+
h = i[g](s, g, p, u, null, t);
|
|
430
430
|
} catch (v) {
|
|
431
431
|
h = v;
|
|
432
432
|
}
|
|
433
433
|
if (h && !(h instanceof Error) && e(
|
|
434
|
-
(
|
|
434
|
+
(p || "React class") + ": type specification of " + u + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
435
435
|
), h instanceof Error && !(h.message in n)) {
|
|
436
436
|
n[h.message] = !0;
|
|
437
437
|
var b = f ? f() : "";
|
|
@@ -447,101 +447,101 @@ function Nt() {
|
|
|
447
447
|
}, Ue = o, Ue;
|
|
448
448
|
}
|
|
449
449
|
var We, nt;
|
|
450
|
-
function
|
|
450
|
+
function Ut() {
|
|
451
451
|
if (nt)
|
|
452
452
|
return We;
|
|
453
453
|
nt = 1;
|
|
454
|
-
var e = gt(), t =
|
|
454
|
+
var e = gt(), t = Dt(), n = Ye(), r = ht(), o = Bt(), i = function() {
|
|
455
455
|
};
|
|
456
456
|
process.env.NODE_ENV !== "production" && (i = function(u) {
|
|
457
|
-
var
|
|
458
|
-
typeof console < "u" && console.error(
|
|
457
|
+
var p = "Warning: " + u;
|
|
458
|
+
typeof console < "u" && console.error(p);
|
|
459
459
|
try {
|
|
460
|
-
throw new Error(
|
|
460
|
+
throw new Error(p);
|
|
461
461
|
} catch {
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
|
-
function
|
|
464
|
+
function s() {
|
|
465
465
|
return null;
|
|
466
466
|
}
|
|
467
|
-
return We = function(u,
|
|
467
|
+
return We = function(u, p) {
|
|
468
468
|
var f = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
|
|
469
|
-
function h(
|
|
470
|
-
var
|
|
471
|
-
if (typeof
|
|
472
|
-
return
|
|
469
|
+
function h(a) {
|
|
470
|
+
var m = a && (f && a[f] || a[g]);
|
|
471
|
+
if (typeof m == "function")
|
|
472
|
+
return m;
|
|
473
473
|
}
|
|
474
474
|
var c = "<<anonymous>>", b = {
|
|
475
|
-
array:
|
|
476
|
-
bigint:
|
|
477
|
-
bool:
|
|
478
|
-
func:
|
|
479
|
-
number:
|
|
480
|
-
object:
|
|
481
|
-
string:
|
|
482
|
-
symbol:
|
|
475
|
+
array: j("array"),
|
|
476
|
+
bigint: j("bigint"),
|
|
477
|
+
bool: j("boolean"),
|
|
478
|
+
func: j("function"),
|
|
479
|
+
number: j("number"),
|
|
480
|
+
object: j("object"),
|
|
481
|
+
string: j("string"),
|
|
482
|
+
symbol: j("symbol"),
|
|
483
483
|
any: z(),
|
|
484
484
|
arrayOf: D,
|
|
485
485
|
element: B(),
|
|
486
|
-
elementType:
|
|
487
|
-
instanceOf:
|
|
486
|
+
elementType: y(),
|
|
487
|
+
instanceOf: V,
|
|
488
488
|
node: Re(),
|
|
489
|
-
objectOf:
|
|
490
|
-
oneOf:
|
|
491
|
-
oneOfType:
|
|
489
|
+
objectOf: Ce,
|
|
490
|
+
oneOf: Ae,
|
|
491
|
+
oneOfType: Pe,
|
|
492
492
|
shape: Ie,
|
|
493
|
-
exact:
|
|
493
|
+
exact: je
|
|
494
494
|
};
|
|
495
|
-
function v(
|
|
496
|
-
return
|
|
495
|
+
function v(a, m) {
|
|
496
|
+
return a === m ? a !== 0 || 1 / a === 1 / m : a !== a && m !== m;
|
|
497
497
|
}
|
|
498
|
-
function l(
|
|
499
|
-
this.message =
|
|
498
|
+
function l(a, m) {
|
|
499
|
+
this.message = a, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
|
|
500
500
|
}
|
|
501
501
|
l.prototype = Error.prototype;
|
|
502
|
-
function x(
|
|
502
|
+
function x(a) {
|
|
503
503
|
if (process.env.NODE_ENV !== "production")
|
|
504
|
-
var
|
|
505
|
-
function T(w, E, $, _, I,
|
|
506
|
-
if (_ = _ || c,
|
|
507
|
-
if (
|
|
504
|
+
var m = {}, S = 0;
|
|
505
|
+
function T(w, E, $, _, I, A, W) {
|
|
506
|
+
if (_ = _ || c, A = A || $, W !== n) {
|
|
507
|
+
if (p) {
|
|
508
508
|
var d = new Error(
|
|
509
509
|
"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"
|
|
510
510
|
);
|
|
511
511
|
throw d.name = "Invariant Violation", d;
|
|
512
512
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
513
513
|
var Y = _ + ":" + $;
|
|
514
|
-
!
|
|
514
|
+
!m[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
515
515
|
S < 3 && (i(
|
|
516
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
517
|
-
),
|
|
516
|
+
"You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + _ + "`. 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."
|
|
517
|
+
), m[Y] = !0, S++);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
return E[$] == null ? w ? E[$] === null ? new l("The " + I + " `" +
|
|
520
|
+
return E[$] == null ? w ? E[$] === null ? new l("The " + I + " `" + A + "` is marked as required " + ("in `" + _ + "`, but its value is `null`.")) : new l("The " + I + " `" + A + "` is marked as required in " + ("`" + _ + "`, but its value is `undefined`.")) : null : a(E, $, _, I, A);
|
|
521
521
|
}
|
|
522
522
|
var O = T.bind(null, !1);
|
|
523
523
|
return O.isRequired = T.bind(null, !0), O;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
function
|
|
525
|
+
function j(a) {
|
|
526
|
+
function m(S, T, O, w, E, $) {
|
|
527
527
|
var _ = S[T], I = L(_);
|
|
528
|
-
if (I !==
|
|
529
|
-
var
|
|
528
|
+
if (I !== a) {
|
|
529
|
+
var A = J(_);
|
|
530
530
|
return new l(
|
|
531
|
-
"Invalid " + w + " `" + E + "` of type " + ("`" +
|
|
532
|
-
{ expectedType:
|
|
531
|
+
"Invalid " + w + " `" + E + "` of type " + ("`" + A + "` supplied to `" + O + "`, expected ") + ("`" + a + "`."),
|
|
532
|
+
{ expectedType: a }
|
|
533
533
|
);
|
|
534
534
|
}
|
|
535
535
|
return null;
|
|
536
536
|
}
|
|
537
|
-
return x(
|
|
537
|
+
return x(m);
|
|
538
538
|
}
|
|
539
539
|
function z() {
|
|
540
|
-
return x(
|
|
540
|
+
return x(s);
|
|
541
541
|
}
|
|
542
|
-
function D(
|
|
543
|
-
function
|
|
544
|
-
if (typeof
|
|
542
|
+
function D(a) {
|
|
543
|
+
function m(S, T, O, w, E) {
|
|
544
|
+
if (typeof a != "function")
|
|
545
545
|
return new l("Property `" + E + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
546
546
|
var $ = S[T];
|
|
547
547
|
if (!Array.isArray($)) {
|
|
@@ -549,93 +549,93 @@ function Dt() {
|
|
|
549
549
|
return new l("Invalid " + w + " `" + E + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected an array."));
|
|
550
550
|
}
|
|
551
551
|
for (var I = 0; I < $.length; I++) {
|
|
552
|
-
var
|
|
553
|
-
if (
|
|
554
|
-
return
|
|
552
|
+
var A = a($, I, O, w, E + "[" + I + "]", n);
|
|
553
|
+
if (A instanceof Error)
|
|
554
|
+
return A;
|
|
555
555
|
}
|
|
556
556
|
return null;
|
|
557
557
|
}
|
|
558
|
-
return x(
|
|
558
|
+
return x(m);
|
|
559
559
|
}
|
|
560
560
|
function B() {
|
|
561
|
-
function
|
|
562
|
-
var E =
|
|
561
|
+
function a(m, S, T, O, w) {
|
|
562
|
+
var E = m[S];
|
|
563
563
|
if (!u(E)) {
|
|
564
564
|
var $ = L(E);
|
|
565
565
|
return new l("Invalid " + O + " `" + w + "` of type " + ("`" + $ + "` supplied to `" + T + "`, expected a single ReactElement."));
|
|
566
566
|
}
|
|
567
567
|
return null;
|
|
568
568
|
}
|
|
569
|
-
return x(
|
|
569
|
+
return x(a);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
function
|
|
573
|
-
var E =
|
|
571
|
+
function y() {
|
|
572
|
+
function a(m, S, T, O, w) {
|
|
573
|
+
var E = m[S];
|
|
574
574
|
if (!e.isValidElementType(E)) {
|
|
575
575
|
var $ = L(E);
|
|
576
576
|
return new l("Invalid " + O + " `" + w + "` of type " + ("`" + $ + "` supplied to `" + T + "`, expected a single ReactElement type."));
|
|
577
577
|
}
|
|
578
578
|
return null;
|
|
579
579
|
}
|
|
580
|
-
return x(
|
|
580
|
+
return x(a);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
function
|
|
584
|
-
if (!(S[T] instanceof
|
|
585
|
-
var $ =
|
|
582
|
+
function V(a) {
|
|
583
|
+
function m(S, T, O, w, E) {
|
|
584
|
+
if (!(S[T] instanceof a)) {
|
|
585
|
+
var $ = a.name || c, _ = Me(S[T]);
|
|
586
586
|
return new l("Invalid " + w + " `" + E + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected ") + ("instance of `" + $ + "`."));
|
|
587
587
|
}
|
|
588
588
|
return null;
|
|
589
589
|
}
|
|
590
|
-
return x(
|
|
590
|
+
return x(m);
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
if (!Array.isArray(
|
|
592
|
+
function Ae(a) {
|
|
593
|
+
if (!Array.isArray(a))
|
|
594
594
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
595
595
|
"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])."
|
|
596
|
-
) : i("Invalid argument supplied to oneOf, expected an array.")),
|
|
597
|
-
function
|
|
598
|
-
for (var $ = S[T], _ = 0; _ <
|
|
599
|
-
if (v($,
|
|
596
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
597
|
+
function m(S, T, O, w, E) {
|
|
598
|
+
for (var $ = S[T], _ = 0; _ < a.length; _++)
|
|
599
|
+
if (v($, a[_]))
|
|
600
600
|
return null;
|
|
601
|
-
var I = JSON.stringify(
|
|
601
|
+
var I = JSON.stringify(a, function(W, d) {
|
|
602
602
|
var Y = J(d);
|
|
603
603
|
return Y === "symbol" ? String(d) : d;
|
|
604
604
|
});
|
|
605
605
|
return new l("Invalid " + w + " `" + E + "` of value `" + String($) + "` " + ("supplied to `" + O + "`, expected one of " + I + "."));
|
|
606
606
|
}
|
|
607
|
-
return x(
|
|
607
|
+
return x(m);
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
function
|
|
611
|
-
if (typeof
|
|
609
|
+
function Ce(a) {
|
|
610
|
+
function m(S, T, O, w, E) {
|
|
611
|
+
if (typeof a != "function")
|
|
612
612
|
return new l("Property `" + E + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
613
613
|
var $ = S[T], _ = L($);
|
|
614
614
|
if (_ !== "object")
|
|
615
615
|
return new l("Invalid " + w + " `" + E + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected an object."));
|
|
616
616
|
for (var I in $)
|
|
617
617
|
if (r($, I)) {
|
|
618
|
-
var
|
|
619
|
-
if (
|
|
620
|
-
return
|
|
618
|
+
var A = a($, I, O, w, E + "." + I, n);
|
|
619
|
+
if (A instanceof Error)
|
|
620
|
+
return A;
|
|
621
621
|
}
|
|
622
622
|
return null;
|
|
623
623
|
}
|
|
624
|
-
return x(
|
|
624
|
+
return x(m);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
if (!Array.isArray(
|
|
628
|
-
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
629
|
-
for (var
|
|
630
|
-
var S =
|
|
626
|
+
function Pe(a) {
|
|
627
|
+
if (!Array.isArray(a))
|
|
628
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
629
|
+
for (var m = 0; m < a.length; m++) {
|
|
630
|
+
var S = a[m];
|
|
631
631
|
if (typeof S != "function")
|
|
632
632
|
return i(
|
|
633
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
634
|
-
),
|
|
633
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + me(S) + " at index " + m + "."
|
|
634
|
+
), s;
|
|
635
635
|
}
|
|
636
636
|
function T(O, w, E, $, _) {
|
|
637
|
-
for (var I = [],
|
|
638
|
-
var W =
|
|
637
|
+
for (var I = [], A = 0; A < a.length; A++) {
|
|
638
|
+
var W = a[A], d = W(O, w, E, $, _, n);
|
|
639
639
|
if (d == null)
|
|
640
640
|
return null;
|
|
641
641
|
d.data && r(d.data, "expectedType") && I.push(d.data.expectedType);
|
|
@@ -646,73 +646,73 @@ function Dt() {
|
|
|
646
646
|
return x(T);
|
|
647
647
|
}
|
|
648
648
|
function Re() {
|
|
649
|
-
function
|
|
650
|
-
return Z(
|
|
649
|
+
function a(m, S, T, O, w) {
|
|
650
|
+
return Z(m[S]) ? null : new l("Invalid " + O + " `" + w + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
|
|
651
651
|
}
|
|
652
|
-
return x(
|
|
652
|
+
return x(a);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function ye(a, m, S, T, O) {
|
|
655
655
|
return new l(
|
|
656
|
-
(
|
|
656
|
+
(a || "React class") + ": " + m + " type `" + S + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
function Ie(
|
|
660
|
-
function
|
|
659
|
+
function Ie(a) {
|
|
660
|
+
function m(S, T, O, w, E) {
|
|
661
661
|
var $ = S[T], _ = L($);
|
|
662
662
|
if (_ !== "object")
|
|
663
663
|
return new l("Invalid " + w + " `" + E + "` of type `" + _ + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
664
|
-
for (var I in
|
|
665
|
-
var
|
|
666
|
-
if (typeof
|
|
667
|
-
return
|
|
668
|
-
var W =
|
|
664
|
+
for (var I in a) {
|
|
665
|
+
var A = a[I];
|
|
666
|
+
if (typeof A != "function")
|
|
667
|
+
return ye(O, w, E, I, J(A));
|
|
668
|
+
var W = A($, I, O, w, E + "." + I, n);
|
|
669
669
|
if (W)
|
|
670
670
|
return W;
|
|
671
671
|
}
|
|
672
672
|
return null;
|
|
673
673
|
}
|
|
674
|
-
return x(
|
|
674
|
+
return x(m);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
function
|
|
676
|
+
function je(a) {
|
|
677
|
+
function m(S, T, O, w, E) {
|
|
678
678
|
var $ = S[T], _ = L($);
|
|
679
679
|
if (_ !== "object")
|
|
680
680
|
return new l("Invalid " + w + " `" + E + "` of type `" + _ + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
681
|
-
var I = t({}, S[T],
|
|
682
|
-
for (var
|
|
683
|
-
var W =
|
|
684
|
-
if (r(
|
|
685
|
-
return
|
|
681
|
+
var I = t({}, S[T], a);
|
|
682
|
+
for (var A in I) {
|
|
683
|
+
var W = a[A];
|
|
684
|
+
if (r(a, A) && typeof W != "function")
|
|
685
|
+
return ye(O, w, E, A, J(W));
|
|
686
686
|
if (!W)
|
|
687
687
|
return new l(
|
|
688
|
-
"Invalid " + w + " `" + E + "` key `" +
|
|
689
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
688
|
+
"Invalid " + w + " `" + E + "` key `" + A + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(S[T], null, " ") + `
|
|
689
|
+
Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
690
690
|
);
|
|
691
|
-
var d = W($,
|
|
691
|
+
var d = W($, A, O, w, E + "." + A, n);
|
|
692
692
|
if (d)
|
|
693
693
|
return d;
|
|
694
694
|
}
|
|
695
695
|
return null;
|
|
696
696
|
}
|
|
697
|
-
return x(
|
|
697
|
+
return x(m);
|
|
698
698
|
}
|
|
699
|
-
function Z(
|
|
700
|
-
switch (typeof
|
|
699
|
+
function Z(a) {
|
|
700
|
+
switch (typeof a) {
|
|
701
701
|
case "number":
|
|
702
702
|
case "string":
|
|
703
703
|
case "undefined":
|
|
704
704
|
return !0;
|
|
705
705
|
case "boolean":
|
|
706
|
-
return !
|
|
706
|
+
return !a;
|
|
707
707
|
case "object":
|
|
708
|
-
if (Array.isArray(
|
|
709
|
-
return
|
|
710
|
-
if (
|
|
708
|
+
if (Array.isArray(a))
|
|
709
|
+
return a.every(Z);
|
|
710
|
+
if (a === null || u(a))
|
|
711
711
|
return !0;
|
|
712
|
-
var
|
|
713
|
-
if (
|
|
714
|
-
var S =
|
|
715
|
-
if (
|
|
712
|
+
var m = h(a);
|
|
713
|
+
if (m) {
|
|
714
|
+
var S = m.call(a), T;
|
|
715
|
+
if (m !== a.entries) {
|
|
716
716
|
for (; !(T = S.next()).done; )
|
|
717
717
|
if (!Z(T.value))
|
|
718
718
|
return !1;
|
|
@@ -729,47 +729,47 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
|
729
729
|
return !1;
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
return
|
|
732
|
+
function ke(a, m) {
|
|
733
|
+
return a === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
|
|
734
734
|
}
|
|
735
|
-
function L(
|
|
736
|
-
var
|
|
737
|
-
return Array.isArray(
|
|
735
|
+
function L(a) {
|
|
736
|
+
var m = typeof a;
|
|
737
|
+
return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" : ke(m, a) ? "symbol" : m;
|
|
738
738
|
}
|
|
739
|
-
function J(
|
|
740
|
-
if (typeof
|
|
741
|
-
return "" +
|
|
742
|
-
var
|
|
743
|
-
if (
|
|
744
|
-
if (
|
|
739
|
+
function J(a) {
|
|
740
|
+
if (typeof a > "u" || a === null)
|
|
741
|
+
return "" + a;
|
|
742
|
+
var m = L(a);
|
|
743
|
+
if (m === "object") {
|
|
744
|
+
if (a instanceof Date)
|
|
745
745
|
return "date";
|
|
746
|
-
if (
|
|
746
|
+
if (a instanceof RegExp)
|
|
747
747
|
return "regexp";
|
|
748
748
|
}
|
|
749
|
-
return
|
|
749
|
+
return m;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
var
|
|
753
|
-
switch (
|
|
751
|
+
function me(a) {
|
|
752
|
+
var m = J(a);
|
|
753
|
+
switch (m) {
|
|
754
754
|
case "array":
|
|
755
755
|
case "object":
|
|
756
|
-
return "an " +
|
|
756
|
+
return "an " + m;
|
|
757
757
|
case "boolean":
|
|
758
758
|
case "date":
|
|
759
759
|
case "regexp":
|
|
760
|
-
return "a " +
|
|
760
|
+
return "a " + m;
|
|
761
761
|
default:
|
|
762
|
-
return
|
|
762
|
+
return m;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
function Me(
|
|
766
|
-
return !
|
|
765
|
+
function Me(a) {
|
|
766
|
+
return !a.constructor || !a.constructor.name ? c : a.constructor.name;
|
|
767
767
|
}
|
|
768
768
|
return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
|
|
769
769
|
}, We;
|
|
770
770
|
}
|
|
771
771
|
var Ke, ot;
|
|
772
|
-
function
|
|
772
|
+
function Wt() {
|
|
773
773
|
if (ot)
|
|
774
774
|
return Ke;
|
|
775
775
|
ot = 1;
|
|
@@ -779,7 +779,7 @@ function Bt() {
|
|
|
779
779
|
function n() {
|
|
780
780
|
}
|
|
781
781
|
return n.resetWarningCache = t, Ke = function() {
|
|
782
|
-
function r(
|
|
782
|
+
function r(s, u, p, f, g, h) {
|
|
783
783
|
if (h !== e) {
|
|
784
784
|
var c = new Error(
|
|
785
785
|
"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"
|
|
@@ -818,13 +818,13 @@ function Bt() {
|
|
|
818
818
|
}, Ke;
|
|
819
819
|
}
|
|
820
820
|
if (process.env.NODE_ENV !== "production") {
|
|
821
|
-
var
|
|
822
|
-
Le.exports =
|
|
821
|
+
var Kt = gt(), zt = !0;
|
|
822
|
+
Le.exports = Ut()(Kt.isElement, zt);
|
|
823
823
|
} else
|
|
824
|
-
Le.exports =
|
|
825
|
-
var
|
|
826
|
-
const ue = /* @__PURE__ */
|
|
827
|
-
function
|
|
824
|
+
Le.exports = Wt()();
|
|
825
|
+
var Lt = Le.exports;
|
|
826
|
+
const ue = /* @__PURE__ */ kt(Lt);
|
|
827
|
+
function se(e) {
|
|
828
828
|
let t = "https://mui.com/production-error/?code=" + e;
|
|
829
829
|
for (let n = 1; n < arguments.length; n += 1)
|
|
830
830
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
@@ -832,10 +832,10 @@ function ae(e) {
|
|
|
832
832
|
}
|
|
833
833
|
function bt(e) {
|
|
834
834
|
if (typeof e != "string")
|
|
835
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." :
|
|
835
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : se(7));
|
|
836
836
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
837
837
|
}
|
|
838
|
-
const it = (e) => e,
|
|
838
|
+
const it = (e) => e, Yt = () => {
|
|
839
839
|
let e = it;
|
|
840
840
|
return {
|
|
841
841
|
configure(t) {
|
|
@@ -848,7 +848,7 @@ const it = (e) => e, zt = () => {
|
|
|
848
848
|
e = it;
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
},
|
|
851
|
+
}, qt = Yt(), Ft = qt, Gt = {
|
|
852
852
|
active: "active",
|
|
853
853
|
checked: "checked",
|
|
854
854
|
completed: "completed",
|
|
@@ -862,11 +862,11 @@ const it = (e) => e, zt = () => {
|
|
|
862
862
|
required: "required",
|
|
863
863
|
selected: "selected"
|
|
864
864
|
};
|
|
865
|
-
function
|
|
866
|
-
const r =
|
|
867
|
-
return r ? `${n}-${r}` : `${
|
|
865
|
+
function Ht(e, t, n = "Mui") {
|
|
866
|
+
const r = Gt[t];
|
|
867
|
+
return r ? `${n}-${r}` : `${Ft.generate(e)}-${t}`;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function ae(e, t) {
|
|
870
870
|
if (e == null)
|
|
871
871
|
return {};
|
|
872
872
|
var n = {}, r = Object.keys(e), o, i;
|
|
@@ -874,7 +874,7 @@ function se(e, t) {
|
|
|
874
874
|
o = r[i], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
875
875
|
return n;
|
|
876
876
|
}
|
|
877
|
-
const
|
|
877
|
+
const Vt = ["values", "unit", "step"], Jt = (e) => {
|
|
878
878
|
const t = Object.keys(e).map((n) => ({
|
|
879
879
|
key: n,
|
|
880
880
|
val: e[n]
|
|
@@ -883,7 +883,7 @@ const Gt = ["values", "unit", "step"], Vt = (e) => {
|
|
|
883
883
|
[r.key]: r.val
|
|
884
884
|
}), {});
|
|
885
885
|
};
|
|
886
|
-
function
|
|
886
|
+
function Xt(e) {
|
|
887
887
|
const {
|
|
888
888
|
// The breakpoint **start** at this value.
|
|
889
889
|
// For instance with the first breakpoint xs: [xs, sm).
|
|
@@ -901,38 +901,38 @@ function Ht(e) {
|
|
|
901
901
|
},
|
|
902
902
|
unit: n = "px",
|
|
903
903
|
step: r = 5
|
|
904
|
-
} = e, o =
|
|
904
|
+
} = e, o = ae(e, Vt), i = Jt(t), s = Object.keys(i);
|
|
905
905
|
function u(c) {
|
|
906
906
|
return `@media (min-width:${typeof t[c] == "number" ? t[c] : c}${n})`;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function p(c) {
|
|
909
909
|
return `@media (max-width:${(typeof t[c] == "number" ? t[c] : c) - r / 100}${n})`;
|
|
910
910
|
}
|
|
911
911
|
function f(c, b) {
|
|
912
|
-
const v =
|
|
913
|
-
return `@media (min-width:${typeof t[c] == "number" ? t[c] : c}${n}) and (max-width:${(v !== -1 && typeof t[
|
|
912
|
+
const v = s.indexOf(b);
|
|
913
|
+
return `@media (min-width:${typeof t[c] == "number" ? t[c] : c}${n}) and (max-width:${(v !== -1 && typeof t[s[v]] == "number" ? t[s[v]] : b) - r / 100}${n})`;
|
|
914
914
|
}
|
|
915
915
|
function g(c) {
|
|
916
|
-
return
|
|
916
|
+
return s.indexOf(c) + 1 < s.length ? f(c, s[s.indexOf(c) + 1]) : u(c);
|
|
917
917
|
}
|
|
918
918
|
function h(c) {
|
|
919
|
-
const b =
|
|
920
|
-
return b === 0 ? u(
|
|
919
|
+
const b = s.indexOf(c);
|
|
920
|
+
return b === 0 ? u(s[1]) : b === s.length - 1 ? p(s[b]) : f(c, s[s.indexOf(c) + 1]).replace("@media", "@media not all and");
|
|
921
921
|
}
|
|
922
922
|
return U({
|
|
923
|
-
keys:
|
|
923
|
+
keys: s,
|
|
924
924
|
values: i,
|
|
925
925
|
up: u,
|
|
926
|
-
down:
|
|
926
|
+
down: p,
|
|
927
927
|
between: f,
|
|
928
928
|
only: g,
|
|
929
929
|
not: h,
|
|
930
930
|
unit: n
|
|
931
931
|
}, o);
|
|
932
932
|
}
|
|
933
|
-
const
|
|
933
|
+
const Zt = {
|
|
934
934
|
borderRadius: 4
|
|
935
|
-
},
|
|
935
|
+
}, Qt = Zt, er = process.env.NODE_ENV !== "production" ? ue.oneOfType([ue.number, ue.string, ue.object, ue.array]) : {}, H = er;
|
|
936
936
|
function fe(e, t) {
|
|
937
937
|
return t ? F(e, t, {
|
|
938
938
|
clone: !1
|
|
@@ -950,7 +950,7 @@ const qe = {
|
|
|
950
950
|
// desktop
|
|
951
951
|
xl: 1536
|
|
952
952
|
// large screen
|
|
953
|
-
},
|
|
953
|
+
}, st = {
|
|
954
954
|
// Sorted ASC by size. That's important.
|
|
955
955
|
// It can't be configured as it's used statically for propTypes.
|
|
956
956
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
@@ -959,37 +959,62 @@ const qe = {
|
|
|
959
959
|
function G(e, t, n) {
|
|
960
960
|
const r = e.theme || {};
|
|
961
961
|
if (Array.isArray(t)) {
|
|
962
|
-
const i = r.breakpoints ||
|
|
963
|
-
return t.reduce((
|
|
962
|
+
const i = r.breakpoints || st;
|
|
963
|
+
return t.reduce((s, u, p) => (s[i.up(i.keys[p])] = n(t[p]), s), {});
|
|
964
964
|
}
|
|
965
965
|
if (typeof t == "object") {
|
|
966
|
-
const i = r.breakpoints ||
|
|
967
|
-
return Object.keys(t).reduce((
|
|
966
|
+
const i = r.breakpoints || st;
|
|
967
|
+
return Object.keys(t).reduce((s, u) => {
|
|
968
968
|
if (Object.keys(i.values || qe).indexOf(u) !== -1) {
|
|
969
|
-
const
|
|
970
|
-
|
|
969
|
+
const p = i.up(u);
|
|
970
|
+
s[p] = n(t[u], u);
|
|
971
971
|
} else {
|
|
972
|
-
const
|
|
973
|
-
|
|
972
|
+
const p = u;
|
|
973
|
+
s[p] = t[p];
|
|
974
974
|
}
|
|
975
|
-
return
|
|
975
|
+
return s;
|
|
976
976
|
}, {});
|
|
977
977
|
}
|
|
978
978
|
return n(t);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function vt(e = {}) {
|
|
981
981
|
var t;
|
|
982
982
|
return ((t = e.keys) == null ? void 0 : t.reduce((r, o) => {
|
|
983
983
|
const i = e.up(o);
|
|
984
984
|
return r[i] = {}, r;
|
|
985
985
|
}, {})) || {};
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function Ot(e, t) {
|
|
988
988
|
return e.reduce((n, r) => {
|
|
989
989
|
const o = n[r];
|
|
990
990
|
return (!o || Object.keys(o).length === 0) && delete n[r], n;
|
|
991
991
|
}, t);
|
|
992
992
|
}
|
|
993
|
+
function En(e, ...t) {
|
|
994
|
+
const n = vt(e), r = [n, ...t].reduce((o, i) => F(o, i), {});
|
|
995
|
+
return Ot(Object.keys(n), r);
|
|
996
|
+
}
|
|
997
|
+
function tr(e, t) {
|
|
998
|
+
if (typeof e != "object")
|
|
999
|
+
return {};
|
|
1000
|
+
const n = {}, r = Object.keys(t);
|
|
1001
|
+
return Array.isArray(e) ? r.forEach((o, i) => {
|
|
1002
|
+
i < e.length && (n[o] = !0);
|
|
1003
|
+
}) : r.forEach((o) => {
|
|
1004
|
+
e[o] != null && (n[o] = !0);
|
|
1005
|
+
}), n;
|
|
1006
|
+
}
|
|
1007
|
+
function xn({
|
|
1008
|
+
values: e,
|
|
1009
|
+
breakpoints: t,
|
|
1010
|
+
base: n
|
|
1011
|
+
}) {
|
|
1012
|
+
const r = n || tr(e, t), o = Object.keys(r);
|
|
1013
|
+
if (o.length === 0)
|
|
1014
|
+
return e;
|
|
1015
|
+
let i;
|
|
1016
|
+
return o.reduce((s, u, p) => (Array.isArray(e) ? (s[u] = e[p] != null ? e[p] : e[i], i = p) : typeof e == "object" ? (s[u] = e[u] != null ? e[u] : e[i], i = u) : s[u] = e, s), {});
|
|
1017
|
+
}
|
|
993
1018
|
function ve(e, t, n = !0) {
|
|
994
1019
|
if (!t || typeof t != "string")
|
|
995
1020
|
return null;
|
|
@@ -1010,11 +1035,11 @@ function R(e) {
|
|
|
1010
1035
|
cssProperty: n = e.prop,
|
|
1011
1036
|
themeKey: r,
|
|
1012
1037
|
transform: o
|
|
1013
|
-
} = e, i = (
|
|
1014
|
-
if (
|
|
1038
|
+
} = e, i = (s) => {
|
|
1039
|
+
if (s[t] == null)
|
|
1015
1040
|
return null;
|
|
1016
|
-
const u =
|
|
1017
|
-
return G(
|
|
1041
|
+
const u = s[t], p = s.theme, f = ve(p, r) || {};
|
|
1042
|
+
return G(s, u, (h) => {
|
|
1018
1043
|
let c = be(f, o, h);
|
|
1019
1044
|
return h === c && typeof h == "string" && (c = be(f, o, `${t}${h === "default" ? "" : bt(h)}`, h)), n === !1 ? c : {
|
|
1020
1045
|
[n]: c
|
|
@@ -1022,47 +1047,47 @@ function R(e) {
|
|
|
1022
1047
|
});
|
|
1023
1048
|
};
|
|
1024
1049
|
return i.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1025
|
-
[t]:
|
|
1050
|
+
[t]: H
|
|
1026
1051
|
} : {}, i.filterProps = [t], i;
|
|
1027
1052
|
}
|
|
1028
|
-
function
|
|
1053
|
+
function rr(e) {
|
|
1029
1054
|
const t = {};
|
|
1030
1055
|
return (n) => (t[n] === void 0 && (t[n] = e(n)), t[n]);
|
|
1031
1056
|
}
|
|
1032
|
-
const
|
|
1057
|
+
const nr = {
|
|
1033
1058
|
m: "margin",
|
|
1034
1059
|
p: "padding"
|
|
1035
|
-
},
|
|
1060
|
+
}, or = {
|
|
1036
1061
|
t: "Top",
|
|
1037
1062
|
r: "Right",
|
|
1038
1063
|
b: "Bottom",
|
|
1039
1064
|
l: "Left",
|
|
1040
1065
|
x: ["Left", "Right"],
|
|
1041
1066
|
y: ["Top", "Bottom"]
|
|
1042
|
-
},
|
|
1067
|
+
}, at = {
|
|
1043
1068
|
marginX: "mx",
|
|
1044
1069
|
marginY: "my",
|
|
1045
1070
|
paddingX: "px",
|
|
1046
1071
|
paddingY: "py"
|
|
1047
|
-
},
|
|
1072
|
+
}, ir = rr((e) => {
|
|
1048
1073
|
if (e.length > 2)
|
|
1049
|
-
if (
|
|
1050
|
-
e =
|
|
1074
|
+
if (at[e])
|
|
1075
|
+
e = at[e];
|
|
1051
1076
|
else
|
|
1052
1077
|
return [e];
|
|
1053
|
-
const [t, n] = e.split(""), r =
|
|
1078
|
+
const [t, n] = e.split(""), r = nr[t], o = or[n] || "";
|
|
1054
1079
|
return Array.isArray(o) ? o.map((i) => r + i) : [r + o];
|
|
1055
|
-
}), Oe = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Ee = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"],
|
|
1080
|
+
}), Oe = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Ee = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], sr = [...Oe, ...Ee];
|
|
1056
1081
|
function de(e, t, n, r) {
|
|
1057
1082
|
var o;
|
|
1058
1083
|
const i = (o = ve(e, t, !1)) != null ? o : n;
|
|
1059
|
-
return typeof i == "number" ? (
|
|
1084
|
+
return typeof i == "number" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`), i * s) : Array.isArray(i) ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > i.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${s} > ${i.length - 1}, you need to add the missing values.`].join(`
|
|
1060
1085
|
`)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
1061
|
-
`))), i[
|
|
1086
|
+
`))), i[s]) : typeof i == "function" ? i : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join(`
|
|
1062
1087
|
`)), () => {
|
|
1063
1088
|
});
|
|
1064
1089
|
}
|
|
1065
|
-
function
|
|
1090
|
+
function Et(e) {
|
|
1066
1091
|
return de(e, "spacing", 8, "spacing");
|
|
1067
1092
|
}
|
|
1068
1093
|
function pe(e, t) {
|
|
@@ -1074,35 +1099,35 @@ function pe(e, t) {
|
|
|
1074
1099
|
function ar(e, t) {
|
|
1075
1100
|
return (n) => e.reduce((r, o) => (r[o] = pe(t, n), r), {});
|
|
1076
1101
|
}
|
|
1077
|
-
function
|
|
1102
|
+
function cr(e, t, n, r) {
|
|
1078
1103
|
if (t.indexOf(n) === -1)
|
|
1079
1104
|
return null;
|
|
1080
|
-
const o =
|
|
1081
|
-
return G(e,
|
|
1105
|
+
const o = ir(n), i = ar(o, r), s = e[n];
|
|
1106
|
+
return G(e, s, i);
|
|
1082
1107
|
}
|
|
1083
|
-
function
|
|
1084
|
-
const n =
|
|
1085
|
-
return Object.keys(e).map((r) =>
|
|
1108
|
+
function xt(e, t) {
|
|
1109
|
+
const n = Et(e.theme);
|
|
1110
|
+
return Object.keys(e).map((r) => cr(e, t, r, n)).reduce(fe, {});
|
|
1086
1111
|
}
|
|
1087
1112
|
function M(e) {
|
|
1088
|
-
return
|
|
1113
|
+
return xt(e, Oe);
|
|
1089
1114
|
}
|
|
1090
|
-
M.propTypes = process.env.NODE_ENV !== "production" ? Oe.reduce((e, t) => (e[t] =
|
|
1115
|
+
M.propTypes = process.env.NODE_ENV !== "production" ? Oe.reduce((e, t) => (e[t] = H, e), {}) : {};
|
|
1091
1116
|
M.filterProps = Oe;
|
|
1092
1117
|
function N(e) {
|
|
1093
|
-
return
|
|
1118
|
+
return xt(e, Ee);
|
|
1094
1119
|
}
|
|
1095
|
-
N.propTypes = process.env.NODE_ENV !== "production" ? Ee.reduce((e, t) => (e[t] =
|
|
1120
|
+
N.propTypes = process.env.NODE_ENV !== "production" ? Ee.reduce((e, t) => (e[t] = H, e), {}) : {};
|
|
1096
1121
|
N.filterProps = Ee;
|
|
1097
|
-
process.env.NODE_ENV !== "production" &&
|
|
1098
|
-
function
|
|
1122
|
+
process.env.NODE_ENV !== "production" && sr.reduce((e, t) => (e[t] = H, e), {});
|
|
1123
|
+
function ur(e = 8) {
|
|
1099
1124
|
if (e.mui)
|
|
1100
1125
|
return e;
|
|
1101
|
-
const t =
|
|
1126
|
+
const t = Et({
|
|
1102
1127
|
spacing: e
|
|
1103
1128
|
}), n = (...r) => (process.env.NODE_ENV !== "production" && (r.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)), (r.length === 0 ? [1] : r).map((i) => {
|
|
1104
|
-
const
|
|
1105
|
-
return typeof
|
|
1129
|
+
const s = t(i);
|
|
1130
|
+
return typeof s == "number" ? `${s}px` : s;
|
|
1106
1131
|
}).join(" "));
|
|
1107
1132
|
return n.mui = !0, n;
|
|
1108
1133
|
}
|
|
@@ -1115,39 +1140,39 @@ function xe(...e) {
|
|
|
1115
1140
|
function q(e) {
|
|
1116
1141
|
return typeof e != "number" ? e : `${e}px solid`;
|
|
1117
1142
|
}
|
|
1118
|
-
const
|
|
1143
|
+
const fr = R({
|
|
1119
1144
|
prop: "border",
|
|
1120
1145
|
themeKey: "borders",
|
|
1121
1146
|
transform: q
|
|
1122
|
-
}),
|
|
1147
|
+
}), lr = R({
|
|
1123
1148
|
prop: "borderTop",
|
|
1124
1149
|
themeKey: "borders",
|
|
1125
1150
|
transform: q
|
|
1126
|
-
}),
|
|
1151
|
+
}), dr = R({
|
|
1127
1152
|
prop: "borderRight",
|
|
1128
1153
|
themeKey: "borders",
|
|
1129
1154
|
transform: q
|
|
1130
|
-
}),
|
|
1155
|
+
}), pr = R({
|
|
1131
1156
|
prop: "borderBottom",
|
|
1132
1157
|
themeKey: "borders",
|
|
1133
1158
|
transform: q
|
|
1134
|
-
}),
|
|
1159
|
+
}), yr = R({
|
|
1135
1160
|
prop: "borderLeft",
|
|
1136
1161
|
themeKey: "borders",
|
|
1137
1162
|
transform: q
|
|
1138
1163
|
}), mr = R({
|
|
1139
1164
|
prop: "borderColor",
|
|
1140
1165
|
themeKey: "palette"
|
|
1141
|
-
}),
|
|
1166
|
+
}), gr = R({
|
|
1142
1167
|
prop: "borderTopColor",
|
|
1143
1168
|
themeKey: "palette"
|
|
1144
|
-
}),
|
|
1169
|
+
}), hr = R({
|
|
1145
1170
|
prop: "borderRightColor",
|
|
1146
1171
|
themeKey: "palette"
|
|
1147
|
-
}),
|
|
1172
|
+
}), br = R({
|
|
1148
1173
|
prop: "borderBottomColor",
|
|
1149
1174
|
themeKey: "palette"
|
|
1150
|
-
}),
|
|
1175
|
+
}), vr = R({
|
|
1151
1176
|
prop: "borderLeftColor",
|
|
1152
1177
|
themeKey: "palette"
|
|
1153
1178
|
}), Te = (e) => {
|
|
@@ -1160,10 +1185,10 @@ const ur = R({
|
|
|
1160
1185
|
return null;
|
|
1161
1186
|
};
|
|
1162
1187
|
Te.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1163
|
-
borderRadius:
|
|
1188
|
+
borderRadius: H
|
|
1164
1189
|
} : {};
|
|
1165
1190
|
Te.filterProps = ["borderRadius"];
|
|
1166
|
-
xe(
|
|
1191
|
+
xe(fr, lr, dr, pr, yr, mr, gr, hr, br, vr, Te);
|
|
1167
1192
|
const $e = (e) => {
|
|
1168
1193
|
if (e.gap !== void 0 && e.gap !== null) {
|
|
1169
1194
|
const t = de(e.theme, "spacing", 8, "gap"), n = (r) => ({
|
|
@@ -1174,7 +1199,7 @@ const $e = (e) => {
|
|
|
1174
1199
|
return null;
|
|
1175
1200
|
};
|
|
1176
1201
|
$e.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1177
|
-
gap:
|
|
1202
|
+
gap: H
|
|
1178
1203
|
} : {};
|
|
1179
1204
|
$e.filterProps = ["gap"];
|
|
1180
1205
|
const Se = (e) => {
|
|
@@ -1187,7 +1212,7 @@ const Se = (e) => {
|
|
|
1187
1212
|
return null;
|
|
1188
1213
|
};
|
|
1189
1214
|
Se.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1190
|
-
columnGap:
|
|
1215
|
+
columnGap: H
|
|
1191
1216
|
} : {};
|
|
1192
1217
|
Se.filterProps = ["columnGap"];
|
|
1193
1218
|
const we = (e) => {
|
|
@@ -1200,29 +1225,29 @@ const we = (e) => {
|
|
|
1200
1225
|
return null;
|
|
1201
1226
|
};
|
|
1202
1227
|
we.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1203
|
-
rowGap:
|
|
1228
|
+
rowGap: H
|
|
1204
1229
|
} : {};
|
|
1205
1230
|
we.filterProps = ["rowGap"];
|
|
1206
|
-
const
|
|
1231
|
+
const Or = R({
|
|
1207
1232
|
prop: "gridColumn"
|
|
1208
|
-
}), Or = R({
|
|
1209
|
-
prop: "gridRow"
|
|
1210
1233
|
}), Er = R({
|
|
1211
|
-
prop: "
|
|
1234
|
+
prop: "gridRow"
|
|
1212
1235
|
}), xr = R({
|
|
1213
|
-
prop: "
|
|
1236
|
+
prop: "gridAutoFlow"
|
|
1214
1237
|
}), Tr = R({
|
|
1215
|
-
prop: "
|
|
1238
|
+
prop: "gridAutoColumns"
|
|
1216
1239
|
}), $r = R({
|
|
1217
|
-
prop: "
|
|
1240
|
+
prop: "gridAutoRows"
|
|
1218
1241
|
}), Sr = R({
|
|
1219
|
-
prop: "
|
|
1242
|
+
prop: "gridTemplateColumns"
|
|
1220
1243
|
}), wr = R({
|
|
1221
|
-
prop: "
|
|
1244
|
+
prop: "gridTemplateRows"
|
|
1222
1245
|
}), _r = R({
|
|
1246
|
+
prop: "gridTemplateAreas"
|
|
1247
|
+
}), Ar = R({
|
|
1223
1248
|
prop: "gridArea"
|
|
1224
1249
|
});
|
|
1225
|
-
xe($e, Se, we,
|
|
1250
|
+
xe($e, Se, we, Or, Er, xr, Tr, $r, Sr, wr, _r, Ar);
|
|
1226
1251
|
function ie(e, t) {
|
|
1227
1252
|
return t === "grey" ? t : e;
|
|
1228
1253
|
}
|
|
@@ -1235,16 +1260,16 @@ const Cr = R({
|
|
|
1235
1260
|
cssProperty: "backgroundColor",
|
|
1236
1261
|
themeKey: "palette",
|
|
1237
1262
|
transform: ie
|
|
1238
|
-
}),
|
|
1263
|
+
}), Rr = R({
|
|
1239
1264
|
prop: "backgroundColor",
|
|
1240
1265
|
themeKey: "palette",
|
|
1241
1266
|
transform: ie
|
|
1242
1267
|
});
|
|
1243
|
-
xe(Cr, Pr,
|
|
1268
|
+
xe(Cr, Pr, Rr);
|
|
1244
1269
|
function K(e) {
|
|
1245
1270
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1246
1271
|
}
|
|
1247
|
-
const
|
|
1272
|
+
const Ir = R({
|
|
1248
1273
|
prop: "width",
|
|
1249
1274
|
transform: K
|
|
1250
1275
|
}), Fe = (e) => {
|
|
@@ -1265,16 +1290,16 @@ const Rr = R({
|
|
|
1265
1290
|
return null;
|
|
1266
1291
|
};
|
|
1267
1292
|
Fe.filterProps = ["maxWidth"];
|
|
1268
|
-
const
|
|
1293
|
+
const jr = R({
|
|
1269
1294
|
prop: "minWidth",
|
|
1270
1295
|
transform: K
|
|
1271
1296
|
}), kr = R({
|
|
1272
1297
|
prop: "height",
|
|
1273
1298
|
transform: K
|
|
1274
|
-
}),
|
|
1299
|
+
}), Mr = R({
|
|
1275
1300
|
prop: "maxHeight",
|
|
1276
1301
|
transform: K
|
|
1277
|
-
}),
|
|
1302
|
+
}), Nr = R({
|
|
1278
1303
|
prop: "minHeight",
|
|
1279
1304
|
transform: K
|
|
1280
1305
|
});
|
|
@@ -1288,11 +1313,11 @@ R({
|
|
|
1288
1313
|
cssProperty: "height",
|
|
1289
1314
|
transform: K
|
|
1290
1315
|
});
|
|
1291
|
-
const
|
|
1316
|
+
const Dr = R({
|
|
1292
1317
|
prop: "boxSizing"
|
|
1293
1318
|
});
|
|
1294
|
-
xe(
|
|
1295
|
-
const
|
|
1319
|
+
xe(Ir, Fe, jr, kr, Mr, Nr, Dr);
|
|
1320
|
+
const Br = {
|
|
1296
1321
|
// borders
|
|
1297
1322
|
border: {
|
|
1298
1323
|
themeKey: "borders",
|
|
@@ -1569,17 +1594,17 @@ const Dr = {
|
|
|
1569
1594
|
cssProperty: !1,
|
|
1570
1595
|
themeKey: "typography"
|
|
1571
1596
|
}
|
|
1572
|
-
}, Ge =
|
|
1573
|
-
function
|
|
1597
|
+
}, Ge = Br;
|
|
1598
|
+
function Ur(...e) {
|
|
1574
1599
|
const t = e.reduce((r, o) => r.concat(Object.keys(o)), []), n = new Set(t);
|
|
1575
1600
|
return e.every((r) => n.size === Object.keys(r).length);
|
|
1576
1601
|
}
|
|
1577
|
-
function
|
|
1602
|
+
function Wr(e, t) {
|
|
1578
1603
|
return typeof e == "function" ? e(t) : e;
|
|
1579
1604
|
}
|
|
1580
|
-
function
|
|
1605
|
+
function Kr() {
|
|
1581
1606
|
function e(n, r, o, i) {
|
|
1582
|
-
const
|
|
1607
|
+
const s = {
|
|
1583
1608
|
[n]: r,
|
|
1584
1609
|
theme: o
|
|
1585
1610
|
}, u = i[n];
|
|
@@ -1588,7 +1613,7 @@ function Wr() {
|
|
|
1588
1613
|
[n]: r
|
|
1589
1614
|
};
|
|
1590
1615
|
const {
|
|
1591
|
-
cssProperty:
|
|
1616
|
+
cssProperty: p = n,
|
|
1592
1617
|
themeKey: f,
|
|
1593
1618
|
transform: g,
|
|
1594
1619
|
style: h
|
|
@@ -1600,10 +1625,10 @@ function Wr() {
|
|
|
1600
1625
|
[n]: r
|
|
1601
1626
|
};
|
|
1602
1627
|
const c = ve(o, f) || {};
|
|
1603
|
-
return h ? h(
|
|
1628
|
+
return h ? h(s) : G(s, r, (v) => {
|
|
1604
1629
|
let l = be(c, g, v);
|
|
1605
|
-
return v === l && typeof v == "string" && (l = be(c, g, `${n}${v === "default" ? "" : bt(v)}`, v)),
|
|
1606
|
-
[
|
|
1630
|
+
return v === l && typeof v == "string" && (l = be(c, g, `${n}${v === "default" ? "" : bt(v)}`, v)), p === !1 ? l : {
|
|
1631
|
+
[p]: l
|
|
1607
1632
|
};
|
|
1608
1633
|
});
|
|
1609
1634
|
}
|
|
@@ -1615,52 +1640,52 @@ function Wr() {
|
|
|
1615
1640
|
} = n || {};
|
|
1616
1641
|
if (!o)
|
|
1617
1642
|
return null;
|
|
1618
|
-
const
|
|
1619
|
-
function u(
|
|
1620
|
-
let f =
|
|
1621
|
-
if (typeof
|
|
1622
|
-
f =
|
|
1623
|
-
else if (typeof
|
|
1624
|
-
return
|
|
1643
|
+
const s = (r = i.unstable_sxConfig) != null ? r : Ge;
|
|
1644
|
+
function u(p) {
|
|
1645
|
+
let f = p;
|
|
1646
|
+
if (typeof p == "function")
|
|
1647
|
+
f = p(i);
|
|
1648
|
+
else if (typeof p != "object")
|
|
1649
|
+
return p;
|
|
1625
1650
|
if (!f)
|
|
1626
1651
|
return null;
|
|
1627
|
-
const g =
|
|
1652
|
+
const g = vt(i.breakpoints), h = Object.keys(g);
|
|
1628
1653
|
let c = g;
|
|
1629
1654
|
return Object.keys(f).forEach((b) => {
|
|
1630
|
-
const v =
|
|
1655
|
+
const v = Wr(f[b], i);
|
|
1631
1656
|
if (v != null)
|
|
1632
1657
|
if (typeof v == "object")
|
|
1633
|
-
if (
|
|
1634
|
-
c = fe(c, e(b, v, i,
|
|
1658
|
+
if (s[b])
|
|
1659
|
+
c = fe(c, e(b, v, i, s));
|
|
1635
1660
|
else {
|
|
1636
1661
|
const l = G({
|
|
1637
1662
|
theme: i
|
|
1638
1663
|
}, v, (x) => ({
|
|
1639
1664
|
[b]: x
|
|
1640
1665
|
}));
|
|
1641
|
-
|
|
1666
|
+
Ur(l, v) ? c[b] = t({
|
|
1642
1667
|
sx: v,
|
|
1643
1668
|
theme: i
|
|
1644
1669
|
}) : c = fe(c, l);
|
|
1645
1670
|
}
|
|
1646
1671
|
else
|
|
1647
|
-
c = fe(c, e(b, v, i,
|
|
1648
|
-
}),
|
|
1672
|
+
c = fe(c, e(b, v, i, s));
|
|
1673
|
+
}), Ot(h, c);
|
|
1649
1674
|
}
|
|
1650
1675
|
return Array.isArray(o) ? o.map(u) : u(o);
|
|
1651
1676
|
}
|
|
1652
1677
|
return t;
|
|
1653
1678
|
}
|
|
1654
|
-
const
|
|
1655
|
-
|
|
1656
|
-
const
|
|
1657
|
-
function
|
|
1679
|
+
const Tt = Kr();
|
|
1680
|
+
Tt.filterProps = ["sx"];
|
|
1681
|
+
const $t = Tt, zr = ["breakpoints", "palette", "spacing", "shape"];
|
|
1682
|
+
function Lr(e = {}, ...t) {
|
|
1658
1683
|
const {
|
|
1659
1684
|
breakpoints: n = {},
|
|
1660
1685
|
palette: r = {},
|
|
1661
1686
|
spacing: o,
|
|
1662
1687
|
shape: i = {}
|
|
1663
|
-
} = e,
|
|
1688
|
+
} = e, s = ae(e, zr), u = Xt(n), p = ur(o);
|
|
1664
1689
|
let f = F({
|
|
1665
1690
|
breakpoints: u,
|
|
1666
1691
|
direction: "ltr",
|
|
@@ -1669,20 +1694,20 @@ function zr(e = {}, ...t) {
|
|
|
1669
1694
|
palette: U({
|
|
1670
1695
|
mode: "light"
|
|
1671
1696
|
}, r),
|
|
1672
|
-
spacing:
|
|
1673
|
-
shape: U({},
|
|
1674
|
-
},
|
|
1675
|
-
return f = t.reduce((g, h) => F(g, h), f), f.unstable_sxConfig = U({}, Ge,
|
|
1676
|
-
return
|
|
1697
|
+
spacing: p,
|
|
1698
|
+
shape: U({}, Qt, i)
|
|
1699
|
+
}, s);
|
|
1700
|
+
return f = t.reduce((g, h) => F(g, h), f), f.unstable_sxConfig = U({}, Ge, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(h) {
|
|
1701
|
+
return $t({
|
|
1677
1702
|
sx: h,
|
|
1678
1703
|
theme: this
|
|
1679
1704
|
});
|
|
1680
1705
|
}, f;
|
|
1681
1706
|
}
|
|
1682
|
-
function
|
|
1707
|
+
function He(e, t = 0, n = 1) {
|
|
1683
1708
|
return process.env.NODE_ENV !== "production" && (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), Math.min(Math.max(t, e), n);
|
|
1684
1709
|
}
|
|
1685
|
-
function
|
|
1710
|
+
function Yr(e) {
|
|
1686
1711
|
e = e.slice(1);
|
|
1687
1712
|
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
1688
1713
|
let n = e.match(t);
|
|
@@ -1692,16 +1717,16 @@ function X(e) {
|
|
|
1692
1717
|
if (e.type)
|
|
1693
1718
|
return e;
|
|
1694
1719
|
if (e.charAt(0) === "#")
|
|
1695
|
-
return X(
|
|
1720
|
+
return X(Yr(e));
|
|
1696
1721
|
const t = e.indexOf("("), n = e.substring(0, t);
|
|
1697
1722
|
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1)
|
|
1698
1723
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
1699
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` :
|
|
1724
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : se(9, e));
|
|
1700
1725
|
let r = e.substring(t + 1, e.length - 1), o;
|
|
1701
1726
|
if (n === "color") {
|
|
1702
1727
|
if (r = r.split(" "), o = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
|
|
1703
1728
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
1704
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` :
|
|
1729
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : se(10, o));
|
|
1705
1730
|
} else
|
|
1706
1731
|
r = r.split(",");
|
|
1707
1732
|
return r = r.map((i) => parseFloat(i)), {
|
|
@@ -1720,40 +1745,40 @@ function _e(e) {
|
|
|
1720
1745
|
} = e;
|
|
1721
1746
|
return t.indexOf("rgb") !== -1 ? r = r.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.indexOf("color") !== -1 ? r = `${n} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`;
|
|
1722
1747
|
}
|
|
1723
|
-
function
|
|
1748
|
+
function qr(e) {
|
|
1724
1749
|
e = X(e);
|
|
1725
1750
|
const {
|
|
1726
1751
|
values: t
|
|
1727
|
-
} = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o),
|
|
1752
|
+
} = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), s = (f, g = (f + n / 30) % 12) => o - i * Math.max(Math.min(g - 3, 9 - g, 1), -1);
|
|
1728
1753
|
let u = "rgb";
|
|
1729
|
-
const
|
|
1730
|
-
return e.type === "hsla" && (u += "a",
|
|
1754
|
+
const p = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
|
|
1755
|
+
return e.type === "hsla" && (u += "a", p.push(t[3])), _e({
|
|
1731
1756
|
type: u,
|
|
1732
|
-
values:
|
|
1757
|
+
values: p
|
|
1733
1758
|
});
|
|
1734
1759
|
}
|
|
1735
1760
|
function ct(e) {
|
|
1736
1761
|
e = X(e);
|
|
1737
|
-
let t = e.type === "hsl" || e.type === "hsla" ? X(
|
|
1762
|
+
let t = e.type === "hsl" || e.type === "hsla" ? X(qr(e)).values : e.values;
|
|
1738
1763
|
return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
1739
1764
|
}
|
|
1740
1765
|
function ut(e, t) {
|
|
1741
1766
|
const n = ct(e), r = ct(t);
|
|
1742
1767
|
return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
|
|
1743
1768
|
}
|
|
1744
|
-
function
|
|
1745
|
-
return e = X(e), t =
|
|
1769
|
+
function Tn(e, t) {
|
|
1770
|
+
return e = X(e), t = He(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, _e(e);
|
|
1746
1771
|
}
|
|
1747
|
-
function
|
|
1748
|
-
if (e = X(e), t =
|
|
1772
|
+
function Fr(e, t) {
|
|
1773
|
+
if (e = X(e), t = He(t), e.type.indexOf("hsl") !== -1)
|
|
1749
1774
|
e.values[2] *= 1 - t;
|
|
1750
1775
|
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
1751
1776
|
for (let n = 0; n < 3; n += 1)
|
|
1752
1777
|
e.values[n] *= 1 - t;
|
|
1753
1778
|
return _e(e);
|
|
1754
1779
|
}
|
|
1755
|
-
function
|
|
1756
|
-
if (e = X(e), t =
|
|
1780
|
+
function Gr(e, t) {
|
|
1781
|
+
if (e = X(e), t = He(t), e.type.indexOf("hsl") !== -1)
|
|
1757
1782
|
e.values[2] += (100 - e.values[2]) * t;
|
|
1758
1783
|
else if (e.type.indexOf("rgb") !== -1)
|
|
1759
1784
|
for (let n = 0; n < 3; n += 1)
|
|
@@ -1763,7 +1788,7 @@ function Fr(e, t) {
|
|
|
1763
1788
|
e.values[n] += (1 - e.values[n]) * t;
|
|
1764
1789
|
return _e(e);
|
|
1765
1790
|
}
|
|
1766
|
-
function
|
|
1791
|
+
function Hr(e, t) {
|
|
1767
1792
|
return U({
|
|
1768
1793
|
toolbar: {
|
|
1769
1794
|
minHeight: 56,
|
|
@@ -1843,9 +1868,9 @@ const Vr = ["mode", "contrastThreshold", "tonalOffset"], ft = {
|
|
|
1843
1868
|
};
|
|
1844
1869
|
function lt(e, t, n, r) {
|
|
1845
1870
|
const o = r.light || r, i = r.dark || r * 1.5;
|
|
1846
|
-
e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light =
|
|
1871
|
+
e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = Gr(e.main, o) : t === "dark" && (e.dark = Fr(e.main, i)));
|
|
1847
1872
|
}
|
|
1848
|
-
function
|
|
1873
|
+
function Jr(e = "light") {
|
|
1849
1874
|
return e === "dark" ? {
|
|
1850
1875
|
main: te[200],
|
|
1851
1876
|
light: te[50],
|
|
@@ -1856,7 +1881,7 @@ function Hr(e = "light") {
|
|
|
1856
1881
|
dark: te[800]
|
|
1857
1882
|
};
|
|
1858
1883
|
}
|
|
1859
|
-
function
|
|
1884
|
+
function Xr(e = "light") {
|
|
1860
1885
|
return e === "dark" ? {
|
|
1861
1886
|
main: ee[200],
|
|
1862
1887
|
light: ee[50],
|
|
@@ -1867,7 +1892,7 @@ function Jr(e = "light") {
|
|
|
1867
1892
|
dark: ee[700]
|
|
1868
1893
|
};
|
|
1869
1894
|
}
|
|
1870
|
-
function
|
|
1895
|
+
function Zr(e = "light") {
|
|
1871
1896
|
return e === "dark" ? {
|
|
1872
1897
|
main: Q[500],
|
|
1873
1898
|
light: Q[300],
|
|
@@ -1878,7 +1903,7 @@ function Xr(e = "light") {
|
|
|
1878
1903
|
dark: Q[800]
|
|
1879
1904
|
};
|
|
1880
1905
|
}
|
|
1881
|
-
function
|
|
1906
|
+
function Qr(e = "light") {
|
|
1882
1907
|
return e === "dark" ? {
|
|
1883
1908
|
main: re[400],
|
|
1884
1909
|
light: re[300],
|
|
@@ -1889,7 +1914,7 @@ function Zr(e = "light") {
|
|
|
1889
1914
|
dark: re[900]
|
|
1890
1915
|
};
|
|
1891
1916
|
}
|
|
1892
|
-
function
|
|
1917
|
+
function en(e = "light") {
|
|
1893
1918
|
return e === "dark" ? {
|
|
1894
1919
|
main: ne[400],
|
|
1895
1920
|
light: ne[300],
|
|
@@ -1900,7 +1925,7 @@ function Qr(e = "light") {
|
|
|
1900
1925
|
dark: ne[900]
|
|
1901
1926
|
};
|
|
1902
1927
|
}
|
|
1903
|
-
function
|
|
1928
|
+
function tn(e = "light") {
|
|
1904
1929
|
return e === "dark" ? {
|
|
1905
1930
|
main: ce[400],
|
|
1906
1931
|
light: ce[300],
|
|
@@ -1912,17 +1937,17 @@ function en(e = "light") {
|
|
|
1912
1937
|
dark: ce[900]
|
|
1913
1938
|
};
|
|
1914
1939
|
}
|
|
1915
|
-
function
|
|
1940
|
+
function rn(e) {
|
|
1916
1941
|
const {
|
|
1917
1942
|
mode: t = "light",
|
|
1918
1943
|
contrastThreshold: n = 3,
|
|
1919
1944
|
tonalOffset: r = 0.2
|
|
1920
|
-
} = e, o =
|
|
1945
|
+
} = e, o = ae(e, Vr), i = e.primary || Jr(t), s = e.secondary || Xr(t), u = e.error || Zr(t), p = e.info || Qr(t), f = e.success || en(t), g = e.warning || tn(t);
|
|
1921
1946
|
function h(l) {
|
|
1922
1947
|
const x = ut(l, ze.text.primary) >= n ? ze.text.primary : ft.text.primary;
|
|
1923
1948
|
if (process.env.NODE_ENV !== "production") {
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1949
|
+
const j = ut(l, x);
|
|
1950
|
+
j < 3 && console.error([`MUI: The contrast ratio of ${j}:1 for ${x} on ${l}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
1926
1951
|
`));
|
|
1927
1952
|
}
|
|
1928
1953
|
return x;
|
|
@@ -1930,13 +1955,13 @@ function tn(e) {
|
|
|
1930
1955
|
const c = ({
|
|
1931
1956
|
color: l,
|
|
1932
1957
|
name: x,
|
|
1933
|
-
mainShade:
|
|
1958
|
+
mainShade: j = 500,
|
|
1934
1959
|
lightShade: z = 300,
|
|
1935
1960
|
darkShade: D = 700
|
|
1936
1961
|
}) => {
|
|
1937
|
-
if (l = U({}, l), !l.main && l[
|
|
1962
|
+
if (l = U({}, l), !l.main && l[j] && (l.main = l[j]), !l.hasOwnProperty("main"))
|
|
1938
1963
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
1939
|
-
The color object needs to have a \`main\` property or a \`${
|
|
1964
|
+
The color object needs to have a \`main\` property or a \`${j}\` property.` : se(11, x ? ` (${x})` : "", j));
|
|
1940
1965
|
if (typeof l.main != "string")
|
|
1941
1966
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
1942
1967
|
\`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
|
|
@@ -1951,7 +1976,7 @@ const theme1 = createTheme({ palette: {
|
|
|
1951
1976
|
|
|
1952
1977
|
const theme2 = createTheme({ palette: {
|
|
1953
1978
|
primary: { main: green[500] },
|
|
1954
|
-
} });` :
|
|
1979
|
+
} });` : se(12, x ? ` (${x})` : "", JSON.stringify(l.main)));
|
|
1955
1980
|
return lt(l, "light", z, r), lt(l, "dark", D, r), l.contrastText || (l.contrastText = h(l.main)), l;
|
|
1956
1981
|
}, b = {
|
|
1957
1982
|
dark: ze,
|
|
@@ -1970,7 +1995,7 @@ const theme2 = createTheme({ palette: {
|
|
|
1970
1995
|
}),
|
|
1971
1996
|
// The colors used to represent secondary interface elements for a user.
|
|
1972
1997
|
secondary: c({
|
|
1973
|
-
color:
|
|
1998
|
+
color: s,
|
|
1974
1999
|
name: "secondary",
|
|
1975
2000
|
mainShade: "A400",
|
|
1976
2001
|
lightShade: "A200",
|
|
@@ -1988,7 +2013,7 @@ const theme2 = createTheme({ palette: {
|
|
|
1988
2013
|
}),
|
|
1989
2014
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
1990
2015
|
info: c({
|
|
1991
|
-
color:
|
|
2016
|
+
color: p,
|
|
1992
2017
|
name: "info"
|
|
1993
2018
|
}),
|
|
1994
2019
|
// The colors used to indicate the successful completion of an action that user triggered.
|
|
@@ -1997,7 +2022,7 @@ const theme2 = createTheme({ palette: {
|
|
|
1997
2022
|
name: "success"
|
|
1998
2023
|
}),
|
|
1999
2024
|
// The grey colors.
|
|
2000
|
-
grey:
|
|
2025
|
+
grey: jt,
|
|
2001
2026
|
// Used by `getContrastText()` to maximize the contrast between
|
|
2002
2027
|
// the background and the text.
|
|
2003
2028
|
contrastThreshold: n,
|
|
@@ -2011,53 +2036,53 @@ const theme2 = createTheme({ palette: {
|
|
|
2011
2036
|
tonalOffset: r
|
|
2012
2037
|
}, b[t]), o);
|
|
2013
2038
|
}
|
|
2014
|
-
const
|
|
2015
|
-
function
|
|
2039
|
+
const nn = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
2040
|
+
function on(e) {
|
|
2016
2041
|
return Math.round(e * 1e5) / 1e5;
|
|
2017
2042
|
}
|
|
2018
2043
|
const dt = {
|
|
2019
2044
|
textTransform: "uppercase"
|
|
2020
2045
|
}, pt = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2021
|
-
function
|
|
2046
|
+
function sn(e, t) {
|
|
2022
2047
|
const n = typeof t == "function" ? t(e) : t, {
|
|
2023
2048
|
fontFamily: r = pt,
|
|
2024
2049
|
// The default font size of the Material Specification.
|
|
2025
2050
|
fontSize: o = 14,
|
|
2026
2051
|
// px
|
|
2027
2052
|
fontWeightLight: i = 300,
|
|
2028
|
-
fontWeightRegular:
|
|
2053
|
+
fontWeightRegular: s = 400,
|
|
2029
2054
|
fontWeightMedium: u = 500,
|
|
2030
|
-
fontWeightBold:
|
|
2055
|
+
fontWeightBold: p = 700,
|
|
2031
2056
|
// Tell MUI what's the font-size on the html element.
|
|
2032
2057
|
// 16px is the default font-size used by browsers.
|
|
2033
2058
|
htmlFontSize: f = 16,
|
|
2034
2059
|
// Apply the CSS properties to all the variants.
|
|
2035
2060
|
allVariants: g,
|
|
2036
2061
|
pxToRem: h
|
|
2037
|
-
} = n, c =
|
|
2062
|
+
} = n, c = ae(n, nn);
|
|
2038
2063
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
2039
|
-
const b = o / 14, v = h || ((
|
|
2064
|
+
const b = o / 14, v = h || ((j) => `${j / f * b}rem`), l = (j, z, D, B, y) => U({
|
|
2040
2065
|
fontFamily: r,
|
|
2041
|
-
fontWeight:
|
|
2066
|
+
fontWeight: j,
|
|
2042
2067
|
fontSize: v(z),
|
|
2043
2068
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2044
2069
|
lineHeight: D
|
|
2045
2070
|
}, r === pt ? {
|
|
2046
|
-
letterSpacing: `${
|
|
2047
|
-
} : {},
|
|
2071
|
+
letterSpacing: `${on(B / z)}em`
|
|
2072
|
+
} : {}, y, g), x = {
|
|
2048
2073
|
h1: l(i, 96, 1.167, -1.5),
|
|
2049
2074
|
h2: l(i, 60, 1.2, -0.5),
|
|
2050
|
-
h3: l(
|
|
2051
|
-
h4: l(
|
|
2052
|
-
h5: l(
|
|
2075
|
+
h3: l(s, 48, 1.167, 0),
|
|
2076
|
+
h4: l(s, 34, 1.235, 0.25),
|
|
2077
|
+
h5: l(s, 24, 1.334, 0),
|
|
2053
2078
|
h6: l(u, 20, 1.6, 0.15),
|
|
2054
|
-
subtitle1: l(
|
|
2079
|
+
subtitle1: l(s, 16, 1.75, 0.15),
|
|
2055
2080
|
subtitle2: l(u, 14, 1.57, 0.1),
|
|
2056
|
-
body1: l(
|
|
2057
|
-
body2: l(
|
|
2081
|
+
body1: l(s, 16, 1.5, 0.15),
|
|
2082
|
+
body2: l(s, 14, 1.43, 0.15),
|
|
2058
2083
|
button: l(u, 14, 1.75, 0.4, dt),
|
|
2059
|
-
caption: l(
|
|
2060
|
-
overline: l(
|
|
2084
|
+
caption: l(s, 12, 1.66, 0.4),
|
|
2085
|
+
overline: l(s, 12, 2.66, 1, dt),
|
|
2061
2086
|
// 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.
|
|
2062
2087
|
inherit: {
|
|
2063
2088
|
fontFamily: "inherit",
|
|
@@ -2073,19 +2098,19 @@ function on(e, t) {
|
|
|
2073
2098
|
fontFamily: r,
|
|
2074
2099
|
fontSize: o,
|
|
2075
2100
|
fontWeightLight: i,
|
|
2076
|
-
fontWeightRegular:
|
|
2101
|
+
fontWeightRegular: s,
|
|
2077
2102
|
fontWeightMedium: u,
|
|
2078
|
-
fontWeightBold:
|
|
2103
|
+
fontWeightBold: p
|
|
2079
2104
|
}, x), c, {
|
|
2080
2105
|
clone: !1
|
|
2081
2106
|
// No need to clone deep
|
|
2082
2107
|
});
|
|
2083
2108
|
}
|
|
2084
|
-
const an = 0.2,
|
|
2085
|
-
function
|
|
2086
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${an})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${
|
|
2109
|
+
const an = 0.2, cn = 0.14, un = 0.12;
|
|
2110
|
+
function k(...e) {
|
|
2111
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${an})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cn})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${un})`].join(",");
|
|
2087
2112
|
}
|
|
2088
|
-
const
|
|
2113
|
+
const fn = ["none", k(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), k(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), k(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), k(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), k(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), k(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), k(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), k(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), k(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), k(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), k(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), k(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), k(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), k(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), k(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), k(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), k(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), k(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), k(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), k(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), k(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), k(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), k(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), k(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], ln = fn, dn = ["duration", "easing", "delay"], pn = {
|
|
2089
2114
|
// This is the most common easing curve.
|
|
2090
2115
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2091
2116
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -2095,7 +2120,7 @@ const un = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2,
|
|
|
2095
2120
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2096
2121
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
2097
2122
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
2098
|
-
},
|
|
2123
|
+
}, yn = {
|
|
2099
2124
|
shortest: 150,
|
|
2100
2125
|
shorter: 200,
|
|
2101
2126
|
short: 250,
|
|
@@ -2108,7 +2133,7 @@ const un = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2,
|
|
|
2108
2133
|
// recommended when something is leaving screen
|
|
2109
2134
|
leavingScreen: 195
|
|
2110
2135
|
};
|
|
2111
|
-
function
|
|
2136
|
+
function yt(e) {
|
|
2112
2137
|
return `${Math.round(e)}ms`;
|
|
2113
2138
|
}
|
|
2114
2139
|
function mn(e) {
|
|
@@ -2117,29 +2142,29 @@ function mn(e) {
|
|
|
2117
2142
|
const t = e / 36;
|
|
2118
2143
|
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
2119
2144
|
}
|
|
2120
|
-
function
|
|
2121
|
-
const t = U({},
|
|
2145
|
+
function gn(e) {
|
|
2146
|
+
const t = U({}, pn, e.easing), n = U({}, yn, e.duration);
|
|
2122
2147
|
return U({
|
|
2123
2148
|
getAutoHeightDuration: mn,
|
|
2124
2149
|
create: (o = ["all"], i = {}) => {
|
|
2125
2150
|
const {
|
|
2126
|
-
duration:
|
|
2151
|
+
duration: s = n.standard,
|
|
2127
2152
|
easing: u = t.easeInOut,
|
|
2128
|
-
delay:
|
|
2129
|
-
} = i, f =
|
|
2153
|
+
delay: p = 0
|
|
2154
|
+
} = i, f = ae(i, dn);
|
|
2130
2155
|
if (process.env.NODE_ENV !== "production") {
|
|
2131
2156
|
const g = (c) => typeof c == "string", h = (c) => !isNaN(parseFloat(c));
|
|
2132
|
-
!g(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !h(
|
|
2157
|
+
!g(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !h(s) && !g(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), g(u) || console.error('MUI: Argument "easing" must be a string.'), !h(p) && !g(p) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
2133
2158
|
`)), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
|
|
2134
2159
|
}
|
|
2135
|
-
return (Array.isArray(o) ? o : [o]).map((g) => `${g} ${typeof
|
|
2160
|
+
return (Array.isArray(o) ? o : [o]).map((g) => `${g} ${typeof s == "string" ? s : yt(s)} ${u} ${typeof p == "string" ? p : yt(p)}`).join(",");
|
|
2136
2161
|
}
|
|
2137
2162
|
}, e, {
|
|
2138
2163
|
easing: t,
|
|
2139
2164
|
duration: n
|
|
2140
2165
|
});
|
|
2141
2166
|
}
|
|
2142
|
-
const
|
|
2167
|
+
const hn = {
|
|
2143
2168
|
mobileStepper: 1e3,
|
|
2144
2169
|
fab: 1050,
|
|
2145
2170
|
speedDial: 1050,
|
|
@@ -2148,34 +2173,34 @@ const gn = {
|
|
|
2148
2173
|
modal: 1300,
|
|
2149
2174
|
snackbar: 1400,
|
|
2150
2175
|
tooltip: 1500
|
|
2151
|
-
},
|
|
2152
|
-
function
|
|
2176
|
+
}, bn = hn, vn = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
2177
|
+
function $n(e = {}, ...t) {
|
|
2153
2178
|
const {
|
|
2154
2179
|
mixins: n = {},
|
|
2155
2180
|
palette: r = {},
|
|
2156
2181
|
transitions: o = {},
|
|
2157
2182
|
typography: i = {}
|
|
2158
|
-
} = e,
|
|
2183
|
+
} = e, s = ae(e, vn);
|
|
2159
2184
|
if (e.vars)
|
|
2160
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." :
|
|
2161
|
-
const u =
|
|
2162
|
-
let f = F(
|
|
2163
|
-
mixins:
|
|
2185
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : se(18));
|
|
2186
|
+
const u = rn(r), p = Lr(e);
|
|
2187
|
+
let f = F(p, {
|
|
2188
|
+
mixins: Hr(p.breakpoints, n),
|
|
2164
2189
|
palette: u,
|
|
2165
2190
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
2166
|
-
shadows:
|
|
2167
|
-
typography:
|
|
2168
|
-
transitions:
|
|
2169
|
-
zIndex: U({},
|
|
2191
|
+
shadows: ln.slice(),
|
|
2192
|
+
typography: sn(u, i),
|
|
2193
|
+
transitions: gn(o),
|
|
2194
|
+
zIndex: U({}, bn)
|
|
2170
2195
|
});
|
|
2171
|
-
if (f = F(f,
|
|
2196
|
+
if (f = F(f, s), f = t.reduce((g, h) => F(g, h), f), process.env.NODE_ENV !== "production") {
|
|
2172
2197
|
const g = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (c, b) => {
|
|
2173
2198
|
let v;
|
|
2174
2199
|
for (v in c) {
|
|
2175
2200
|
const l = c[v];
|
|
2176
2201
|
if (g.indexOf(v) !== -1 && Object.keys(l).length > 0) {
|
|
2177
2202
|
if (process.env.NODE_ENV !== "production") {
|
|
2178
|
-
const x =
|
|
2203
|
+
const x = Ht("", v);
|
|
2179
2204
|
console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`, "You can not override it like this: ", JSON.stringify(c, null, 2), "", `Instead, you need to use the '&.${x}' syntax:`, JSON.stringify({
|
|
2180
2205
|
root: {
|
|
2181
2206
|
[`&.${x}`]: l
|
|
@@ -2192,30 +2217,35 @@ function En(e = {}, ...t) {
|
|
|
2192
2217
|
b && c.indexOf("Mui") === 0 && h(b, c);
|
|
2193
2218
|
});
|
|
2194
2219
|
}
|
|
2195
|
-
return f.unstable_sxConfig = U({}, Ge,
|
|
2196
|
-
return
|
|
2220
|
+
return f.unstable_sxConfig = U({}, Ge, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(h) {
|
|
2221
|
+
return $t({
|
|
2197
2222
|
sx: h,
|
|
2198
2223
|
theme: this
|
|
2199
2224
|
});
|
|
2200
2225
|
}, f;
|
|
2201
2226
|
}
|
|
2202
2227
|
export {
|
|
2203
|
-
|
|
2228
|
+
Ft as C,
|
|
2204
2229
|
ue as P,
|
|
2205
|
-
|
|
2230
|
+
ae as _,
|
|
2206
2231
|
U as a,
|
|
2207
|
-
|
|
2232
|
+
Fr as b,
|
|
2208
2233
|
bt as c,
|
|
2209
2234
|
Ge as d,
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2235
|
+
Tn as e,
|
|
2236
|
+
$n as f,
|
|
2237
|
+
Ht as g,
|
|
2238
|
+
Lr as h,
|
|
2214
2239
|
oe as i,
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2240
|
+
G as j,
|
|
2241
|
+
Et as k,
|
|
2242
|
+
Gr as l,
|
|
2243
|
+
F as m,
|
|
2244
|
+
En as n,
|
|
2245
|
+
pe as o,
|
|
2246
|
+
kt as p,
|
|
2247
|
+
On as q,
|
|
2248
|
+
xn as r,
|
|
2249
|
+
$t as s,
|
|
2250
|
+
se as t
|
|
2221
2251
|
};
|