@ukpc-lib/react 0.1.11 → 0.1.12

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.
@@ -1,4391 +1,73 @@
1
- import { jsx as re, Fragment as Ht } from "react/jsx-runtime";
2
- import * as I from "react";
3
- import { forwardRef as Rn, useContext as Xt, createContext as An, useState as Mn, useEffect as In } from "react";
4
- import { _, c as ne, P as y, d as Jt, E as ot, e as st, p as jn } from "../react-svg.esm-8385cab5.js";
5
- import Zt from "axios";
6
- import { Navigate as Dn } from "react-router-dom";
1
+ import { E as f, i as E, p as R } from "../index-9b2c9629.js";
2
+ import { A as D, s as H, u as K } from "../index-9b2c9629.js";
3
+ import P from "axios";
4
+ import { jsx as a, Fragment as d } from "react/jsx-runtime";
5
+ import { useState as y, useEffect as A } from "react";
6
+ import { Navigate as j } from "react-router-dom";
7
7
  import "react-dom";
8
- const Fn = {
9
- black: "#000",
10
- white: "#fff"
11
- }, Ie = Fn, Vn = {
12
- 50: "#ffebee",
13
- 100: "#ffcdd2",
14
- 200: "#ef9a9a",
15
- 300: "#e57373",
16
- 400: "#ef5350",
17
- 500: "#f44336",
18
- 600: "#e53935",
19
- 700: "#d32f2f",
20
- 800: "#c62828",
21
- 900: "#b71c1c",
22
- A100: "#ff8a80",
23
- A200: "#ff5252",
24
- A400: "#ff1744",
25
- A700: "#d50000"
26
- }, pe = Vn, zn = {
27
- 50: "#f3e5f5",
28
- 100: "#e1bee7",
29
- 200: "#ce93d8",
30
- 300: "#ba68c8",
31
- 400: "#ab47bc",
32
- 500: "#9c27b0",
33
- 600: "#8e24aa",
34
- 700: "#7b1fa2",
35
- 800: "#6a1b9a",
36
- 900: "#4a148c",
37
- A100: "#ea80fc",
38
- A200: "#e040fb",
39
- A400: "#d500f9",
40
- A700: "#aa00ff"
41
- }, me = zn, Ln = {
42
- 50: "#e3f2fd",
43
- 100: "#bbdefb",
44
- 200: "#90caf9",
45
- 300: "#64b5f6",
46
- 400: "#42a5f5",
47
- 500: "#2196f3",
48
- 600: "#1e88e5",
49
- 700: "#1976d2",
50
- 800: "#1565c0",
51
- 900: "#0d47a1",
52
- A100: "#82b1ff",
53
- A200: "#448aff",
54
- A400: "#2979ff",
55
- A700: "#2962ff"
56
- }, he = Ln, Un = {
57
- 50: "#e1f5fe",
58
- 100: "#b3e5fc",
59
- 200: "#81d4fa",
60
- 300: "#4fc3f7",
61
- 400: "#29b6f6",
62
- 500: "#03a9f4",
63
- 600: "#039be5",
64
- 700: "#0288d1",
65
- 800: "#0277bd",
66
- 900: "#01579b",
67
- A100: "#80d8ff",
68
- A200: "#40c4ff",
69
- A400: "#00b0ff",
70
- A700: "#0091ea"
71
- }, ye = Un, Wn = {
72
- 50: "#e8f5e9",
73
- 100: "#c8e6c9",
74
- 200: "#a5d6a7",
75
- 300: "#81c784",
76
- 400: "#66bb6a",
77
- 500: "#4caf50",
78
- 600: "#43a047",
79
- 700: "#388e3c",
80
- 800: "#2e7d32",
81
- 900: "#1b5e20",
82
- A100: "#b9f6ca",
83
- A200: "#69f0ae",
84
- A400: "#00e676",
85
- A700: "#00c853"
86
- }, ge = Wn, Bn = {
87
- 50: "#fff3e0",
88
- 100: "#ffe0b2",
89
- 200: "#ffcc80",
90
- 300: "#ffb74d",
91
- 400: "#ffa726",
92
- 500: "#ff9800",
93
- 600: "#fb8c00",
94
- 700: "#f57c00",
95
- 800: "#ef6c00",
96
- 900: "#e65100",
97
- A100: "#ffd180",
98
- A200: "#ffab40",
99
- A400: "#ff9100",
100
- A700: "#ff6d00"
101
- }, Ne = Bn, Yn = {
102
- 50: "#fafafa",
103
- 100: "#f5f5f5",
104
- 200: "#eeeeee",
105
- 300: "#e0e0e0",
106
- 400: "#bdbdbd",
107
- 500: "#9e9e9e",
108
- 600: "#757575",
109
- 700: "#616161",
110
- 800: "#424242",
111
- 900: "#212121",
112
- A100: "#f5f5f5",
113
- A200: "#eeeeee",
114
- A400: "#bdbdbd",
115
- A700: "#616161"
116
- }, Gn = Yn;
117
- function xe(e) {
118
- let r = "https://mui.com/production-error/?code=" + e;
119
- for (let t = 1; t < arguments.length; t += 1)
120
- r += "&args[]=" + encodeURIComponent(arguments[t]);
121
- return "Minified MUI error #" + e + "; visit " + r + " for the full message.";
122
- }
123
- const Lr = "$$material";
124
- function Qt(e) {
125
- var r = /* @__PURE__ */ Object.create(null);
126
- return function(t) {
127
- return r[t] === void 0 && (r[t] = e(t)), r[t];
128
- };
129
- }
130
- var Kn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, qn = /* @__PURE__ */ Qt(
131
- function(e) {
132
- return Kn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
133
- }
134
- /* Z+1 */
135
- );
136
- function Hn(e) {
137
- if (e.sheet)
138
- return e.sheet;
139
- for (var r = 0; r < document.styleSheets.length; r++)
140
- if (document.styleSheets[r].ownerNode === e)
141
- return document.styleSheets[r];
142
- }
143
- function Xn(e) {
144
- var r = document.createElement("style");
145
- return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
146
- }
147
- var Jn = /* @__PURE__ */ function() {
148
- function e(t) {
149
- var n = this;
150
- this._insertTag = function(o) {
151
- var s;
152
- n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, s), n.tags.push(o);
153
- }, this.isSpeedy = t.speedy === void 0 ? process.env.NODE_ENV === "production" : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
154
- }
155
- var r = e.prototype;
156
- return r.hydrate = function(n) {
157
- n.forEach(this._insertTag);
158
- }, r.insert = function(n) {
159
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Xn(this));
160
- var o = this.tags[this.tags.length - 1];
161
- if (process.env.NODE_ENV !== "production") {
162
- var s = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105;
163
- s && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
164
- ` + n + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !s;
165
- }
166
- if (this.isSpeedy) {
167
- var i = Hn(o);
168
- try {
169
- i.insertRule(n, i.cssRules.length);
170
- } catch (a) {
171
- process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n) && console.error('There was a problem inserting the following rule: "' + n + '"', a);
172
- }
173
- } else
174
- o.appendChild(document.createTextNode(n));
175
- this.ctr++;
176
- }, r.flush = function() {
177
- this.tags.forEach(function(n) {
178
- return n.parentNode && n.parentNode.removeChild(n);
179
- }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
180
- }, e;
181
- }(), W = "-ms-", Ze = "-moz-", T = "-webkit-", Ur = "comm", Wr = "rule", Br = "decl", Zn = "@import", en = "@keyframes", Qn = "@layer", eo = Math.abs, nr = String.fromCharCode, ro = Object.assign;
182
- function to(e, r) {
183
- return U(e, 0) ^ 45 ? (((r << 2 ^ U(e, 0)) << 2 ^ U(e, 1)) << 2 ^ U(e, 2)) << 2 ^ U(e, 3) : 0;
184
- }
185
- function rn(e) {
186
- return e.trim();
187
- }
188
- function no(e, r) {
189
- return (e = r.exec(e)) ? e[0] : e;
190
- }
191
- function P(e, r, t) {
192
- return e.replace(r, t);
193
- }
194
- function jr(e, r) {
195
- return e.indexOf(r);
196
- }
197
- function U(e, r) {
198
- return e.charCodeAt(r) | 0;
199
- }
200
- function je(e, r, t) {
201
- return e.slice(r, t);
202
- }
203
- function oe(e) {
204
- return e.length;
205
- }
206
- function Yr(e) {
207
- return e.length;
208
- }
209
- function Ge(e, r) {
210
- return r.push(e), e;
211
- }
212
- function oo(e, r) {
213
- return e.map(r).join("");
214
- }
215
- var or = 1, Se = 1, tn = 0, G = 0, z = 0, $e = "";
216
- function sr(e, r, t, n, o, s, i) {
217
- return { value: e, root: r, parent: t, type: n, props: o, children: s, line: or, column: Se, length: i, return: "" };
218
- }
219
- function ke(e, r) {
220
- return ro(sr("", null, null, "", null, null, 0), e, { length: -e.length }, r);
221
- }
222
- function so() {
223
- return z;
224
- }
225
- function io() {
226
- return z = G > 0 ? U($e, --G) : 0, Se--, z === 10 && (Se = 1, or--), z;
227
- }
228
- function q() {
229
- return z = G < tn ? U($e, G++) : 0, Se++, z === 10 && (Se = 1, or++), z;
230
- }
231
- function se() {
232
- return U($e, G);
233
- }
234
- function Ke() {
235
- return G;
236
- }
237
- function ze(e, r) {
238
- return je($e, e, r);
239
- }
240
- function De(e) {
241
- switch (e) {
242
- case 0:
243
- case 9:
244
- case 10:
245
- case 13:
246
- case 32:
247
- return 5;
248
- case 33:
249
- case 43:
250
- case 44:
251
- case 47:
252
- case 62:
253
- case 64:
254
- case 126:
255
- case 59:
256
- case 123:
257
- case 125:
258
- return 4;
259
- case 58:
260
- return 3;
261
- case 34:
262
- case 39:
263
- case 40:
264
- case 91:
265
- return 2;
266
- case 41:
267
- case 93:
268
- return 1;
269
- }
270
- return 0;
271
- }
272
- function nn(e) {
273
- return or = Se = 1, tn = oe($e = e), G = 0, [];
274
- }
275
- function on(e) {
276
- return $e = "", e;
277
- }
278
- function qe(e) {
279
- return rn(ze(G - 1, Dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
280
- }
281
- function ao(e) {
282
- for (; (z = se()) && z < 33; )
283
- q();
284
- return De(e) > 2 || De(z) > 3 ? "" : " ";
285
- }
286
- function co(e, r) {
287
- for (; --r && q() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97); )
288
- ;
289
- return ze(e, Ke() + (r < 6 && se() == 32 && q() == 32));
290
- }
291
- function Dr(e) {
292
- for (; q(); )
293
- switch (z) {
294
- case e:
295
- return G;
296
- case 34:
297
- case 39:
298
- e !== 34 && e !== 39 && Dr(z);
299
- break;
300
- case 40:
301
- e === 41 && Dr(e);
302
- break;
303
- case 92:
304
- q();
305
- break;
306
- }
307
- return G;
308
- }
309
- function uo(e, r) {
310
- for (; q() && e + z !== 47 + 10; )
311
- if (e + z === 42 + 42 && se() === 47)
312
- break;
313
- return "/*" + ze(r, G - 1) + "*" + nr(e === 47 ? e : q());
314
- }
315
- function lo(e) {
316
- for (; !De(se()); )
317
- q();
318
- return ze(e, G);
319
- }
320
- function fo(e) {
321
- return on(He("", null, null, null, [""], e = nn(e), 0, [0], e));
322
- }
323
- function He(e, r, t, n, o, s, i, a, c) {
324
- for (var u = 0, l = 0, m = i, d = 0, b = 0, g = 0, f = 1, p = 1, v = 1, C = 0, $ = "", S = o, h = s, N = n, O = $; p; )
325
- switch (g = C, C = q()) {
326
- case 40:
327
- if (g != 108 && U(O, m - 1) == 58) {
328
- jr(O += P(qe(C), "&", "&\f"), "&\f") != -1 && (v = -1);
329
- break;
330
- }
331
- case 34:
332
- case 39:
333
- case 91:
334
- O += qe(C);
335
- break;
336
- case 9:
337
- case 10:
338
- case 13:
339
- case 32:
340
- O += ao(g);
341
- break;
342
- case 92:
343
- O += co(Ke() - 1, 7);
344
- continue;
345
- case 47:
346
- switch (se()) {
347
- case 42:
348
- case 47:
349
- Ge(po(uo(q(), Ke()), r, t), c);
350
- break;
351
- default:
352
- O += "/";
353
- }
354
- break;
355
- case 123 * f:
356
- a[u++] = oe(O) * v;
357
- case 125 * f:
358
- case 59:
359
- case 0:
360
- switch (C) {
361
- case 0:
362
- case 125:
363
- p = 0;
364
- case 59 + l:
365
- v == -1 && (O = P(O, /\f/g, "")), b > 0 && oe(O) - m && Ge(b > 32 ? at(O + ";", n, t, m - 1) : at(P(O, " ", "") + ";", n, t, m - 2), c);
366
- break;
367
- case 59:
368
- O += ";";
369
- default:
370
- if (Ge(N = it(O, r, t, u, l, o, a, $, S = [], h = [], m), s), C === 123)
371
- if (l === 0)
372
- He(O, r, N, N, S, s, m, a, h);
373
- else
374
- switch (d === 99 && U(O, 3) === 110 ? 100 : d) {
375
- case 100:
376
- case 108:
377
- case 109:
378
- case 115:
379
- He(e, N, N, n && Ge(it(e, N, N, 0, 0, o, a, $, o, S = [], m), h), o, h, m, a, n ? S : h);
380
- break;
381
- default:
382
- He(O, N, N, N, [""], h, 0, a, h);
383
- }
384
- }
385
- u = l = b = 0, f = v = 1, $ = O = "", m = i;
386
- break;
387
- case 58:
388
- m = 1 + oe(O), b = g;
389
- default:
390
- if (f < 1) {
391
- if (C == 123)
392
- --f;
393
- else if (C == 125 && f++ == 0 && io() == 125)
394
- continue;
395
- }
396
- switch (O += nr(C), C * f) {
397
- case 38:
398
- v = l > 0 ? 1 : (O += "\f", -1);
399
- break;
400
- case 44:
401
- a[u++] = (oe(O) - 1) * v, v = 1;
402
- break;
403
- case 64:
404
- se() === 45 && (O += qe(q())), d = se(), l = m = oe($ = O += lo(Ke())), C++;
405
- break;
406
- case 45:
407
- g === 45 && oe(O) == 2 && (f = 0);
408
- }
409
- }
410
- return s;
411
- }
412
- function it(e, r, t, n, o, s, i, a, c, u, l) {
413
- for (var m = o - 1, d = o === 0 ? s : [""], b = Yr(d), g = 0, f = 0, p = 0; g < n; ++g)
414
- for (var v = 0, C = je(e, m + 1, m = eo(f = i[g])), $ = e; v < b; ++v)
415
- ($ = rn(f > 0 ? d[v] + " " + C : P(C, /&\f/g, d[v]))) && (c[p++] = $);
416
- return sr(e, r, t, o === 0 ? Wr : a, c, u, l);
417
- }
418
- function po(e, r, t) {
419
- return sr(e, r, t, Ur, nr(so()), je(e, 2, -2), 0);
420
- }
421
- function at(e, r, t, n) {
422
- return sr(e, r, t, Br, je(e, 0, n), je(e, n + 1, -1), n);
423
- }
424
- function be(e, r) {
425
- for (var t = "", n = Yr(e), o = 0; o < n; o++)
426
- t += r(e[o], o, e, r) || "";
427
- return t;
428
- }
429
- function mo(e, r, t, n) {
430
- switch (e.type) {
431
- case Qn:
432
- if (e.children.length)
433
- break;
434
- case Zn:
435
- case Br:
436
- return e.return = e.return || e.value;
437
- case Ur:
438
- return "";
439
- case en:
440
- return e.return = e.value + "{" + be(e.children, n) + "}";
441
- case Wr:
442
- e.value = e.props.join(",");
443
- }
444
- return oe(t = be(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
445
- }
446
- function ho(e) {
447
- var r = Yr(e);
448
- return function(t, n, o, s) {
449
- for (var i = "", a = 0; a < r; a++)
450
- i += e[a](t, n, o, s) || "";
451
- return i;
452
- };
453
- }
454
- function yo(e) {
455
- return function(r) {
456
- r.root || (r = r.return) && e(r);
457
- };
458
- }
459
- var go = function(r, t, n) {
460
- for (var o = 0, s = 0; o = s, s = se(), o === 38 && s === 12 && (t[n] = 1), !De(s); )
461
- q();
462
- return ze(r, G);
463
- }, bo = function(r, t) {
464
- var n = -1, o = 44;
465
- do
466
- switch (De(o)) {
467
- case 0:
468
- o === 38 && se() === 12 && (t[n] = 1), r[n] += go(G - 1, t, n);
469
- break;
470
- case 2:
471
- r[n] += qe(o);
472
- break;
473
- case 4:
474
- if (o === 44) {
475
- r[++n] = se() === 58 ? "&\f" : "", t[n] = r[n].length;
476
- break;
477
- }
478
- default:
479
- r[n] += nr(o);
480
- }
481
- while (o = q());
482
- return r;
483
- }, vo = function(r, t) {
484
- return on(bo(nn(r), t));
485
- }, ct = /* @__PURE__ */ new WeakMap(), Eo = function(r) {
486
- if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
487
- // negative .length indicates that this rule has been already prefixed
488
- r.length < 1)) {
489
- for (var t = r.value, n = r.parent, o = r.column === n.column && r.line === n.line; n.type !== "rule"; )
490
- if (n = n.parent, !n)
491
- return;
492
- if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !ct.get(n)) && !o) {
493
- ct.set(r, !0);
494
- for (var s = [], i = vo(t, s), a = n.props, c = 0, u = 0; c < i.length; c++)
495
- for (var l = 0; l < a.length; l++, u++)
496
- r.props[u] = s[c] ? i[c].replace(/&\f/g, a[l]) : a[l] + " " + i[c];
497
- }
498
- }
499
- }, xo = function(r) {
500
- if (r.type === "decl") {
501
- var t = r.value;
502
- // charcode for l
503
- t.charCodeAt(0) === 108 && // charcode for b
504
- t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
505
- }
506
- }, So = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", wo = function(r) {
507
- return r.type === "comm" && r.children.indexOf(So) > -1;
508
- }, _o = function(r) {
509
- return function(t, n, o) {
510
- if (!(t.type !== "rule" || r.compat)) {
511
- var s = t.value.match(/(:first|:nth|:nth-last)-child/g);
512
- if (s) {
513
- for (var i = !!t.parent, a = i ? t.parent.children : (
514
- // global rule at the root level
515
- o
516
- ), c = a.length - 1; c >= 0; c--) {
517
- var u = a[c];
518
- if (u.line < t.line)
519
- break;
520
- if (u.column < t.column) {
521
- if (wo(u))
522
- return;
523
- break;
524
- }
525
- }
526
- s.forEach(function(l) {
527
- console.error('The pseudo class "' + l + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + l.split("-child")[0] + '-of-type".');
528
- });
529
- }
530
- }
531
- };
532
- }, sn = function(r) {
533
- return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
534
- }, $o = function(r, t) {
535
- for (var n = r - 1; n >= 0; n--)
536
- if (!sn(t[n]))
537
- return !0;
538
- return !1;
539
- }, ut = function(r) {
540
- r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
541
- }, Oo = function(r, t, n) {
542
- sn(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), ut(r)) : $o(t, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), ut(r)));
543
- };
544
- function an(e, r) {
545
- switch (to(e, r)) {
546
- case 5103:
547
- return T + "print-" + e + e;
548
- case 5737:
549
- case 4201:
550
- case 3177:
551
- case 3433:
552
- case 1641:
553
- case 4457:
554
- case 2921:
555
- case 5572:
556
- case 6356:
557
- case 5844:
558
- case 3191:
559
- case 6645:
560
- case 3005:
561
- case 6391:
562
- case 5879:
563
- case 5623:
564
- case 6135:
565
- case 4599:
566
- case 4855:
567
- case 4215:
568
- case 6389:
569
- case 5109:
570
- case 5365:
571
- case 5621:
572
- case 3829:
573
- return T + e + e;
574
- case 5349:
575
- case 4246:
576
- case 4810:
577
- case 6968:
578
- case 2756:
579
- return T + e + Ze + e + W + e + e;
580
- case 6828:
581
- case 4268:
582
- return T + e + W + e + e;
583
- case 6165:
584
- return T + e + W + "flex-" + e + e;
585
- case 5187:
586
- return T + e + P(e, /(\w+).+(:[^]+)/, T + "box-$1$2" + W + "flex-$1$2") + e;
587
- case 5443:
588
- return T + e + W + "flex-item-" + P(e, /flex-|-self/, "") + e;
589
- case 4675:
590
- return T + e + W + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
591
- case 5548:
592
- return T + e + W + P(e, "shrink", "negative") + e;
593
- case 5292:
594
- return T + e + W + P(e, "basis", "preferred-size") + e;
595
- case 6060:
596
- return T + "box-" + P(e, "-grow", "") + T + e + W + P(e, "grow", "positive") + e;
597
- case 4554:
598
- return T + P(e, /([^-])(transform)/g, "$1" + T + "$2") + e;
599
- case 6187:
600
- return P(P(P(e, /(zoom-|grab)/, T + "$1"), /(image-set)/, T + "$1"), e, "") + e;
601
- case 5495:
602
- case 3959:
603
- return P(e, /(image-set\([^]*)/, T + "$1$`$1");
604
- case 4968:
605
- return P(P(e, /(.+:)(flex-)?(.*)/, T + "box-pack:$3" + W + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + T + e + e;
606
- case 4095:
607
- case 3583:
608
- case 4068:
609
- case 2532:
610
- return P(e, /(.+)-inline(.+)/, T + "$1$2") + e;
611
- case 8116:
612
- case 7059:
613
- case 5753:
614
- case 5535:
615
- case 5445:
616
- case 5701:
617
- case 4933:
618
- case 4677:
619
- case 5533:
620
- case 5789:
621
- case 5021:
622
- case 4765:
623
- if (oe(e) - 1 - r > 6)
624
- switch (U(e, r + 1)) {
625
- case 109:
626
- if (U(e, r + 4) !== 45)
627
- break;
628
- case 102:
629
- return P(e, /(.+:)(.+)-([^]+)/, "$1" + T + "$2-$3$1" + Ze + (U(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
630
- case 115:
631
- return ~jr(e, "stretch") ? an(P(e, "stretch", "fill-available"), r) + e : e;
632
- }
633
- break;
634
- case 4949:
635
- if (U(e, r + 1) !== 115)
636
- break;
637
- case 6444:
638
- switch (U(e, oe(e) - 3 - (~jr(e, "!important") && 10))) {
639
- case 107:
640
- return P(e, ":", ":" + T) + e;
641
- case 101:
642
- return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + T + (U(e, 14) === 45 ? "inline-" : "") + "box$3$1" + T + "$2$3$1" + W + "$2box$3") + e;
643
- }
644
- break;
645
- case 5936:
646
- switch (U(e, r + 11)) {
647
- case 114:
648
- return T + e + W + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
649
- case 108:
650
- return T + e + W + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
651
- case 45:
652
- return T + e + W + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
653
- }
654
- return T + e + W + e + e;
655
- }
656
- return e;
657
- }
658
- var Co = function(r, t, n, o) {
659
- if (r.length > -1 && !r.return)
660
- switch (r.type) {
661
- case Br:
662
- r.return = an(r.value, r.length);
663
- break;
664
- case en:
665
- return be([ke(r, {
666
- value: P(r.value, "@", "@" + T)
667
- })], o);
668
- case Wr:
669
- if (r.length)
670
- return oo(r.props, function(s) {
671
- switch (no(s, /(::plac\w+|:read-\w+)/)) {
672
- case ":read-only":
673
- case ":read-write":
674
- return be([ke(r, {
675
- props: [P(s, /:(read-\w+)/, ":" + Ze + "$1")]
676
- })], o);
677
- case "::placeholder":
678
- return be([ke(r, {
679
- props: [P(s, /:(plac\w+)/, ":" + T + "input-$1")]
680
- }), ke(r, {
681
- props: [P(s, /:(plac\w+)/, ":" + Ze + "$1")]
682
- }), ke(r, {
683
- props: [P(s, /:(plac\w+)/, W + "input-$1")]
684
- })], o);
685
- }
686
- return "";
687
- });
688
- }
689
- }, To = [Co], Po = function(r) {
690
- var t = r.key;
691
- if (process.env.NODE_ENV !== "production" && !t)
692
- throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
693
- If multiple caches share the same key they might "fight" for each other's style elements.`);
694
- if (t === "css") {
695
- var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
696
- Array.prototype.forEach.call(n, function(f) {
697
- var p = f.getAttribute("data-emotion");
698
- p.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
699
- });
700
- }
701
- var o = r.stylisPlugins || To;
702
- if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(t))
703
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed');
704
- var s = {}, i, a = [];
705
- i = r.container || document.head, Array.prototype.forEach.call(
706
- // this means we will ignore elements which don't have a space in them which
707
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
708
- document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
709
- function(f) {
710
- for (var p = f.getAttribute("data-emotion").split(" "), v = 1; v < p.length; v++)
711
- s[p[v]] = !0;
712
- a.push(f);
713
- }
714
- );
715
- var c, u = [Eo, xo];
716
- process.env.NODE_ENV !== "production" && u.push(_o({
717
- get compat() {
718
- return g.compat;
719
- }
720
- }), Oo);
721
- {
722
- var l, m = [mo, process.env.NODE_ENV !== "production" ? function(f) {
723
- f.root || (f.return ? l.insert(f.return) : f.value && f.type !== Ur && l.insert(f.value + "{}"));
724
- } : yo(function(f) {
725
- l.insert(f);
726
- })], d = ho(u.concat(o, m)), b = function(p) {
727
- return be(fo(p), d);
728
- };
729
- c = function(p, v, C, $) {
730
- l = C, process.env.NODE_ENV !== "production" && v.map !== void 0 && (l = {
731
- insert: function(h) {
732
- C.insert(h + v.map);
733
- }
734
- }), b(p ? p + "{" + v.styles + "}" : v.styles), $ && (g.inserted[v.name] = !0);
735
- };
736
- }
737
- var g = {
738
- key: t,
739
- sheet: new Jn({
740
- key: t,
741
- container: i,
742
- nonce: r.nonce,
743
- speedy: r.speedy,
744
- prepend: r.prepend,
745
- insertionPoint: r.insertionPoint
746
- }),
747
- nonce: r.nonce,
748
- inserted: s,
749
- registered: {},
750
- insert: c
751
- };
752
- return g.sheet.hydrate(a), g;
753
- }, Fr = { exports: {} }, k = {};
754
- /** @license React v16.13.1
755
- * react-is.production.min.js
756
- *
757
- * Copyright (c) Facebook, Inc. and its affiliates.
758
- *
759
- * This source code is licensed under the MIT license found in the
760
- * LICENSE file in the root directory of this source tree.
761
- */
762
- var lt;
763
- function No() {
764
- if (lt)
765
- return k;
766
- lt = 1;
767
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, p = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
768
- function $(h) {
769
- if (typeof h == "object" && h !== null) {
770
- var N = h.$$typeof;
771
- switch (N) {
772
- case r:
773
- switch (h = h.type, h) {
774
- case c:
775
- case u:
776
- case n:
777
- case s:
778
- case o:
779
- case m:
780
- return h;
781
- default:
782
- switch (h = h && h.$$typeof, h) {
783
- case a:
784
- case l:
785
- case g:
786
- case b:
787
- case i:
788
- return h;
789
- default:
790
- return N;
791
- }
792
- }
793
- case t:
794
- return N;
795
- }
796
- }
797
- }
798
- function S(h) {
799
- return $(h) === u;
800
- }
801
- return k.AsyncMode = c, k.ConcurrentMode = u, k.ContextConsumer = a, k.ContextProvider = i, k.Element = r, k.ForwardRef = l, k.Fragment = n, k.Lazy = g, k.Memo = b, k.Portal = t, k.Profiler = s, k.StrictMode = o, k.Suspense = m, k.isAsyncMode = function(h) {
802
- return S(h) || $(h) === c;
803
- }, k.isConcurrentMode = S, k.isContextConsumer = function(h) {
804
- return $(h) === a;
805
- }, k.isContextProvider = function(h) {
806
- return $(h) === i;
807
- }, k.isElement = function(h) {
808
- return typeof h == "object" && h !== null && h.$$typeof === r;
809
- }, k.isForwardRef = function(h) {
810
- return $(h) === l;
811
- }, k.isFragment = function(h) {
812
- return $(h) === n;
813
- }, k.isLazy = function(h) {
814
- return $(h) === g;
815
- }, k.isMemo = function(h) {
816
- return $(h) === b;
817
- }, k.isPortal = function(h) {
818
- return $(h) === t;
819
- }, k.isProfiler = function(h) {
820
- return $(h) === s;
821
- }, k.isStrictMode = function(h) {
822
- return $(h) === o;
823
- }, k.isSuspense = function(h) {
824
- return $(h) === m;
825
- }, k.isValidElementType = function(h) {
826
- return typeof h == "string" || typeof h == "function" || h === n || h === u || h === s || h === o || h === m || h === d || typeof h == "object" && h !== null && (h.$$typeof === g || h.$$typeof === b || h.$$typeof === i || h.$$typeof === a || h.$$typeof === l || h.$$typeof === p || h.$$typeof === v || h.$$typeof === C || h.$$typeof === f);
827
- }, k.typeOf = $, k;
828
- }
829
- var R = {};
830
- /** @license React v16.13.1
831
- * react-is.development.js
832
- *
833
- * Copyright (c) Facebook, Inc. and its affiliates.
834
- *
835
- * This source code is licensed under the MIT license found in the
836
- * LICENSE file in the root directory of this source tree.
837
- */
838
- var ft;
839
- function ko() {
840
- return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
841
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, p = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
842
- function $(E) {
843
- return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
844
- E === n || E === u || E === s || E === o || E === m || E === d || typeof E == "object" && E !== null && (E.$$typeof === g || E.$$typeof === b || E.$$typeof === i || E.$$typeof === a || E.$$typeof === l || E.$$typeof === p || E.$$typeof === v || E.$$typeof === C || E.$$typeof === f);
845
- }
846
- function S(E) {
847
- if (typeof E == "object" && E !== null) {
848
- var Pe = E.$$typeof;
849
- switch (Pe) {
850
- case r:
851
- var x = E.type;
852
- switch (x) {
853
- case c:
854
- case u:
855
- case n:
856
- case s:
857
- case o:
858
- case m:
859
- return x;
860
- default:
861
- var de = x && x.$$typeof;
862
- switch (de) {
863
- case a:
864
- case l:
865
- case g:
866
- case b:
867
- case i:
868
- return de;
869
- default:
870
- return Pe;
871
- }
872
- }
873
- case t:
874
- return Pe;
875
- }
876
- }
877
- }
878
- var h = c, N = u, O = a, Z = i, B = r, w = l, L = n, Y = g, ae = b, Q = t, ue = s, Ce = o, Sr = m, Te = !1;
879
- function We(E) {
880
- return Te || (Te = !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.")), Be(E) || S(E) === c;
881
- }
882
- function Be(E) {
883
- return S(E) === u;
884
- }
885
- function wr(E) {
886
- return S(E) === a;
887
- }
888
- function _r(E) {
889
- return S(E) === i;
890
- }
891
- function $r(E) {
892
- return typeof E == "object" && E !== null && E.$$typeof === r;
893
- }
894
- function Or(E) {
895
- return S(E) === l;
896
- }
897
- function Cr(E) {
898
- return S(E) === n;
899
- }
900
- function Tr(E) {
901
- return S(E) === g;
902
- }
903
- function Pr(E) {
904
- return S(E) === b;
905
- }
906
- function Nr(E) {
907
- return S(E) === t;
908
- }
909
- function kr(E) {
910
- return S(E) === s;
911
- }
912
- function Rr(E) {
913
- return S(E) === o;
914
- }
915
- function Ar(E) {
916
- return S(E) === m;
917
- }
918
- R.AsyncMode = h, R.ConcurrentMode = N, R.ContextConsumer = O, R.ContextProvider = Z, R.Element = B, R.ForwardRef = w, R.Fragment = L, R.Lazy = Y, R.Memo = ae, R.Portal = Q, R.Profiler = ue, R.StrictMode = Ce, R.Suspense = Sr, R.isAsyncMode = We, R.isConcurrentMode = Be, R.isContextConsumer = wr, R.isContextProvider = _r, R.isElement = $r, R.isForwardRef = Or, R.isFragment = Cr, R.isLazy = Tr, R.isMemo = Pr, R.isPortal = Nr, R.isProfiler = kr, R.isStrictMode = Rr, R.isSuspense = Ar, R.isValidElementType = $, R.typeOf = S;
919
- }()), R;
920
- }
921
- process.env.NODE_ENV === "production" ? Fr.exports = No() : Fr.exports = ko();
922
- var Ro = Fr.exports, cn = Ro, Ao = {
923
- $$typeof: !0,
924
- render: !0,
925
- defaultProps: !0,
926
- displayName: !0,
927
- propTypes: !0
928
- }, Mo = {
929
- $$typeof: !0,
930
- compare: !0,
931
- defaultProps: !0,
932
- displayName: !0,
933
- propTypes: !0,
934
- type: !0
935
- }, un = {};
936
- un[cn.ForwardRef] = Ao;
937
- un[cn.Memo] = Mo;
938
- var Io = !0;
939
- function Gr(e, r, t) {
940
- var n = "";
941
- return t.split(" ").forEach(function(o) {
942
- e[o] !== void 0 ? r.push(e[o] + ";") : n += o + " ";
943
- }), n;
944
- }
945
- var ir = function(r, t, n) {
946
- var o = r.key + "-" + t.name;
947
- // we only need to add the styles to the registered cache if the
948
- // class name could be used further down
949
- // the tree but if it's a string tag, we know it won't
950
- // so we don't have to add it to registered cache.
951
- // this improves memory usage since we can avoid storing the whole style string
952
- (n === !1 || // we need to always store it if we're in compat mode and
953
- // in node since emotion-server relies on whether a style is in
954
- // the registered cache to know whether a style is global or not
955
- // also, note that this check will be dead code eliminated in the browser
956
- Io === !1) && r.registered[o] === void 0 && (r.registered[o] = t.styles);
957
- }, ar = function(r, t, n) {
958
- ir(r, t, n);
959
- var o = r.key + "-" + t.name;
960
- if (r.inserted[t.name] === void 0) {
961
- var s = t;
962
- do
963
- r.insert(t === s ? "." + o : "", s, r.sheet, !0), s = s.next;
964
- while (s !== void 0);
965
- }
966
- };
967
- function jo(e) {
968
- for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4)
969
- t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
970
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
971
- t >>> 24, r = /* Math.imul(k, m): */
972
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
973
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
974
- switch (o) {
975
- case 3:
976
- r ^= (e.charCodeAt(n + 2) & 255) << 16;
977
- case 2:
978
- r ^= (e.charCodeAt(n + 1) & 255) << 8;
979
- case 1:
980
- r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */
981
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
982
- }
983
- return r ^= r >>> 13, r = /* Math.imul(h, m): */
984
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
985
- }
986
- var Do = {
987
- animationIterationCount: 1,
988
- aspectRatio: 1,
989
- borderImageOutset: 1,
990
- borderImageSlice: 1,
991
- borderImageWidth: 1,
992
- boxFlex: 1,
993
- boxFlexGroup: 1,
994
- boxOrdinalGroup: 1,
995
- columnCount: 1,
996
- columns: 1,
997
- flex: 1,
998
- flexGrow: 1,
999
- flexPositive: 1,
1000
- flexShrink: 1,
1001
- flexNegative: 1,
1002
- flexOrder: 1,
1003
- gridRow: 1,
1004
- gridRowEnd: 1,
1005
- gridRowSpan: 1,
1006
- gridRowStart: 1,
1007
- gridColumn: 1,
1008
- gridColumnEnd: 1,
1009
- gridColumnSpan: 1,
1010
- gridColumnStart: 1,
1011
- msGridRow: 1,
1012
- msGridRowSpan: 1,
1013
- msGridColumn: 1,
1014
- msGridColumnSpan: 1,
1015
- fontWeight: 1,
1016
- lineHeight: 1,
1017
- opacity: 1,
1018
- order: 1,
1019
- orphans: 1,
1020
- tabSize: 1,
1021
- widows: 1,
1022
- zIndex: 1,
1023
- zoom: 1,
1024
- WebkitLineClamp: 1,
1025
- // SVG-related properties
1026
- fillOpacity: 1,
1027
- floodOpacity: 1,
1028
- stopOpacity: 1,
1029
- strokeDasharray: 1,
1030
- strokeDashoffset: 1,
1031
- strokeMiterlimit: 1,
1032
- strokeOpacity: 1,
1033
- strokeWidth: 1
1034
- }, dt = `You have illegal escape sequence in your template literal, most likely inside content's property value.
1035
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
1036
- You can read more about this here:
1037
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Fo = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Vo = /[A-Z]|^ms/g, ln = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kr = function(r) {
1038
- return r.charCodeAt(1) === 45;
1039
- }, pt = function(r) {
1040
- return r != null && typeof r != "boolean";
1041
- }, Mr = /* @__PURE__ */ Qt(function(e) {
1042
- return Kr(e) ? e : e.replace(Vo, "-$&").toLowerCase();
1043
- }), Qe = function(r, t) {
1044
- switch (r) {
1045
- case "animation":
1046
- case "animationName":
1047
- if (typeof t == "string")
1048
- return t.replace(ln, function(n, o, s) {
1049
- return ee = {
1050
- name: o,
1051
- styles: s,
1052
- next: ee
1053
- }, o;
1054
- });
1055
- }
1056
- return Do[r] !== 1 && !Kr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
1057
- };
1058
- if (process.env.NODE_ENV !== "production") {
1059
- var zo = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Lo = ["normal", "none", "initial", "inherit", "unset"], Uo = Qe, Wo = /^-ms-/, Bo = /-(.)/g, mt = {};
1060
- Qe = function(r, t) {
1061
- if (r === "content" && (typeof t != "string" || Lo.indexOf(t) === -1 && !zo.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")))
1062
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + t + "\"'`");
1063
- var n = Uo(r, t);
1064
- return n !== "" && !Kr(r) && r.indexOf("-") !== -1 && mt[r] === void 0 && (mt[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Wo, "ms-").replace(Bo, function(o, s) {
1065
- return s.toUpperCase();
1066
- }) + "?")), n;
1067
- };
1068
- }
1069
- var fn = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
1070
- function Fe(e, r, t) {
1071
- if (t == null)
1072
- return "";
1073
- if (t.__emotion_styles !== void 0) {
1074
- if (process.env.NODE_ENV !== "production" && t.toString() === "NO_COMPONENT_SELECTOR")
1075
- throw new Error(fn);
1076
- return t;
1077
- }
1078
- switch (typeof t) {
1079
- case "boolean":
1080
- return "";
1081
- case "object": {
1082
- if (t.anim === 1)
1083
- return ee = {
1084
- name: t.name,
1085
- styles: t.styles,
1086
- next: ee
1087
- }, t.name;
1088
- if (t.styles !== void 0) {
1089
- var n = t.next;
1090
- if (n !== void 0)
1091
- for (; n !== void 0; )
1092
- ee = {
1093
- name: n.name,
1094
- styles: n.styles,
1095
- next: ee
1096
- }, n = n.next;
1097
- var o = t.styles + ";";
1098
- return process.env.NODE_ENV !== "production" && t.map !== void 0 && (o += t.map), o;
1099
- }
1100
- return Yo(e, r, t);
1101
- }
1102
- case "function": {
1103
- if (e !== void 0) {
1104
- var s = ee, i = t(e);
1105
- return ee = s, Fe(e, r, i);
1106
- } else
1107
- process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
1108
- break;
1109
- }
1110
- case "string":
1111
- if (process.env.NODE_ENV !== "production") {
1112
- var a = [], c = t.replace(ln, function(l, m, d) {
1113
- var b = "animation" + a.length;
1114
- return a.push("const " + b + " = keyframes`" + d.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + b + "}";
1115
- });
1116
- a.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(a, ["`" + c + "`"]).join(`
1117
- `) + `
1118
-
1119
- You should wrap it with \`css\` like this:
1120
-
1121
- ` + ("css`" + c + "`"));
1122
- }
1123
- break;
1124
- }
1125
- if (r == null)
1126
- return t;
1127
- var u = r[t];
1128
- return u !== void 0 ? u : t;
1129
- }
1130
- function Yo(e, r, t) {
1131
- var n = "";
1132
- if (Array.isArray(t))
1133
- for (var o = 0; o < t.length; o++)
1134
- n += Fe(e, r, t[o]) + ";";
1135
- else
1136
- for (var s in t) {
1137
- var i = t[s];
1138
- if (typeof i != "object")
1139
- r != null && r[i] !== void 0 ? n += s + "{" + r[i] + "}" : pt(i) && (n += Mr(s) + ":" + Qe(s, i) + ";");
1140
- else {
1141
- if (s === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
1142
- throw new Error(fn);
1143
- if (Array.isArray(i) && typeof i[0] == "string" && (r == null || r[i[0]] === void 0))
1144
- for (var a = 0; a < i.length; a++)
1145
- pt(i[a]) && (n += Mr(s) + ":" + Qe(s, i[a]) + ";");
1146
- else {
1147
- var c = Fe(e, r, i);
1148
- switch (s) {
1149
- case "animation":
1150
- case "animationName": {
1151
- n += Mr(s) + ":" + c + ";";
1152
- break;
1153
- }
1154
- default:
1155
- process.env.NODE_ENV !== "production" && s === "undefined" && console.error(Fo), n += s + "{" + c + "}";
1156
- }
1157
- }
1158
- }
1159
- }
1160
- return n;
1161
- }
1162
- var ht = /label:\s*([^\s;\n{]+)\s*(;|$)/g, dn;
1163
- process.env.NODE_ENV !== "production" && (dn = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
1164
- var ee, we = function(r, t, n) {
1165
- if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
1166
- return r[0];
1167
- var o = !0, s = "";
1168
- ee = void 0;
1169
- var i = r[0];
1170
- i == null || i.raw === void 0 ? (o = !1, s += Fe(n, t, i)) : (process.env.NODE_ENV !== "production" && i[0] === void 0 && console.error(dt), s += i[0]);
1171
- for (var a = 1; a < r.length; a++)
1172
- s += Fe(n, t, r[a]), o && (process.env.NODE_ENV !== "production" && i[a] === void 0 && console.error(dt), s += i[a]);
1173
- var c;
1174
- process.env.NODE_ENV !== "production" && (s = s.replace(dn, function(d) {
1175
- return c = d, "";
1176
- })), ht.lastIndex = 0;
1177
- for (var u = "", l; (l = ht.exec(s)) !== null; )
1178
- u += "-" + // $FlowFixMe we know it's not null
1179
- l[1];
1180
- var m = jo(s) + u;
1181
- return process.env.NODE_ENV !== "production" ? {
1182
- name: m,
1183
- styles: s,
1184
- map: c,
1185
- next: ee,
1186
- toString: function() {
1187
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1188
- }
1189
- } : {
1190
- name: m,
1191
- styles: s,
1192
- next: ee
1193
- };
1194
- }, Go = function(r) {
1195
- return r();
1196
- }, pn = I["useInsertionEffect"] ? I["useInsertionEffect"] : !1, qr = pn || Go, yt = pn || I.useLayoutEffect, Ko = {}.hasOwnProperty, Hr = /* @__PURE__ */ I.createContext(
1197
- // we're doing this to avoid preconstruct's dead code elimination in this one case
1198
- // because this module is primarily intended for the browser and node
1199
- // but it's also required in react native and similar environments sometimes
1200
- // and we could have a special build just for that
1201
- // but this is much easier and the native packages
1202
- // might use a different theme context in the future anyway
1203
- typeof HTMLElement < "u" ? /* @__PURE__ */ Po({
1204
- key: "css"
1205
- }) : null
1206
- );
1207
- process.env.NODE_ENV !== "production" && (Hr.displayName = "EmotionCacheContext");
1208
- Hr.Provider;
1209
- var cr = function(r) {
1210
- return /* @__PURE__ */ Rn(function(t, n) {
1211
- var o = Xt(Hr);
1212
- return r(t, o, n);
1213
- });
1214
- }, Oe = /* @__PURE__ */ I.createContext({});
1215
- process.env.NODE_ENV !== "production" && (Oe.displayName = "EmotionThemeContext");
1216
- var gt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", bt = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", qo = function(r) {
1217
- var t = r.cache, n = r.serialized, o = r.isStringTag;
1218
- return ir(t, n, o), qr(function() {
1219
- return ar(t, n, o);
1220
- }), null;
1221
- }, Ho = /* @__PURE__ */ cr(function(e, r, t) {
1222
- var n = e.css;
1223
- typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]);
1224
- var o = e[gt], s = [n], i = "";
1225
- typeof e.className == "string" ? i = Gr(r.registered, s, e.className) : e.className != null && (i = e.className + " ");
1226
- var a = we(s, void 0, I.useContext(Oe));
1227
- if (process.env.NODE_ENV !== "production" && a.name.indexOf("-") === -1) {
1228
- var c = e[bt];
1229
- c && (a = we([a, "label:" + c + ";"]));
1230
- }
1231
- i += r.key + "-" + a.name;
1232
- var u = {};
1233
- for (var l in e)
1234
- Ko.call(e, l) && l !== "css" && l !== gt && (process.env.NODE_ENV === "production" || l !== bt) && (u[l] = e[l]);
1235
- return u.ref = t, u.className = i, /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(qo, {
1236
- cache: r,
1237
- serialized: a,
1238
- isStringTag: typeof o == "string"
1239
- }), /* @__PURE__ */ I.createElement(o, u));
1240
- });
1241
- process.env.NODE_ENV !== "production" && (Ho.displayName = "EmotionCssPropInternal");
1242
- var Xo = {
1243
- name: "@emotion/react",
1244
- version: "11.11.3",
1245
- main: "dist/emotion-react.cjs.js",
1246
- module: "dist/emotion-react.esm.js",
1247
- browser: {
1248
- "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
1249
- },
1250
- exports: {
1251
- ".": {
1252
- module: {
1253
- worker: "./dist/emotion-react.worker.esm.js",
1254
- browser: "./dist/emotion-react.browser.esm.js",
1255
- default: "./dist/emotion-react.esm.js"
1256
- },
1257
- import: "./dist/emotion-react.cjs.mjs",
1258
- default: "./dist/emotion-react.cjs.js"
1259
- },
1260
- "./jsx-runtime": {
1261
- module: {
1262
- worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
1263
- browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
1264
- default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
1265
- },
1266
- import: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
1267
- default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
1268
- },
1269
- "./_isolated-hnrs": {
1270
- module: {
1271
- worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
1272
- browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
1273
- default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
1274
- },
1275
- import: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
1276
- default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
1277
- },
1278
- "./jsx-dev-runtime": {
1279
- module: {
1280
- worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
1281
- browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
1282
- default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
1283
- },
1284
- import: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
1285
- default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
1286
- },
1287
- "./package.json": "./package.json",
1288
- "./types/css-prop": "./types/css-prop.d.ts",
1289
- "./macro": {
1290
- types: {
1291
- import: "./macro.d.mts",
1292
- default: "./macro.d.ts"
1293
- },
1294
- default: "./macro.js"
1295
- }
1296
- },
1297
- types: "types/index.d.ts",
1298
- files: [
1299
- "src",
1300
- "dist",
1301
- "jsx-runtime",
1302
- "jsx-dev-runtime",
1303
- "_isolated-hnrs",
1304
- "types/*.d.ts",
1305
- "macro.*"
1306
- ],
1307
- sideEffects: !1,
1308
- author: "Emotion Contributors",
1309
- license: "MIT",
1310
- scripts: {
1311
- "test:typescript": "dtslint types"
1312
- },
1313
- dependencies: {
1314
- "@babel/runtime": "^7.18.3",
1315
- "@emotion/babel-plugin": "^11.11.0",
1316
- "@emotion/cache": "^11.11.0",
1317
- "@emotion/serialize": "^1.1.3",
1318
- "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
1319
- "@emotion/utils": "^1.2.1",
1320
- "@emotion/weak-memoize": "^0.3.1",
1321
- "hoist-non-react-statics": "^3.3.1"
1322
- },
1323
- peerDependencies: {
1324
- react: ">=16.8.0"
1325
- },
1326
- peerDependenciesMeta: {
1327
- "@types/react": {
1328
- optional: !0
1329
- }
1330
- },
1331
- devDependencies: {
1332
- "@definitelytyped/dtslint": "0.0.112",
1333
- "@emotion/css": "11.11.2",
1334
- "@emotion/css-prettifier": "1.1.3",
1335
- "@emotion/server": "11.11.0",
1336
- "@emotion/styled": "11.11.0",
1337
- "html-tag-names": "^1.1.2",
1338
- react: "16.14.0",
1339
- "svg-tag-names": "^1.1.1",
1340
- typescript: "^4.5.5"
1341
- },
1342
- repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
1343
- publishConfig: {
1344
- access: "public"
1345
- },
1346
- "umd:main": "dist/emotion-react.umd.min.js",
1347
- preconstruct: {
1348
- entrypoints: [
1349
- "./index.js",
1350
- "./jsx-runtime.js",
1351
- "./jsx-dev-runtime.js",
1352
- "./_isolated-hnrs.js"
1353
- ],
1354
- umdName: "emotionReact",
1355
- exports: {
1356
- envConditions: [
1357
- "browser",
1358
- "worker"
1359
- ],
1360
- extra: {
1361
- "./types/css-prop": "./types/css-prop.d.ts",
1362
- "./macro": {
1363
- types: {
1364
- import: "./macro.d.mts",
1365
- default: "./macro.d.ts"
1366
- },
1367
- default: "./macro.js"
1368
- }
1369
- }
1370
- }
1371
- }
1372
- }, vt = !1, Jo = /* @__PURE__ */ cr(function(e, r) {
1373
- process.env.NODE_ENV !== "production" && !vt && // check for className as well since the user is
1374
- // probably using the custom createElement which
1375
- // means it will be turned into a className prop
1376
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
1377
- (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), vt = !0);
1378
- var t = e.styles, n = we([t], void 0, I.useContext(Oe)), o = I.useRef();
1379
- return yt(function() {
1380
- var s = r.key + "-global", i = new r.sheet.constructor({
1381
- key: s,
1382
- nonce: r.sheet.nonce,
1383
- container: r.sheet.container,
1384
- speedy: r.sheet.isSpeedy
1385
- }), a = !1, c = document.querySelector('style[data-emotion="' + s + " " + n.name + '"]');
1386
- return r.sheet.tags.length && (i.before = r.sheet.tags[0]), c !== null && (a = !0, c.setAttribute("data-emotion", s), i.hydrate([c])), o.current = [i, a], function() {
1387
- i.flush();
1388
- };
1389
- }, [r]), yt(function() {
1390
- var s = o.current, i = s[0], a = s[1];
1391
- if (a) {
1392
- s[1] = !1;
1393
- return;
1394
- }
1395
- if (n.next !== void 0 && ar(r, n.next, !0), i.tags.length) {
1396
- var c = i.tags[i.tags.length - 1].nextElementSibling;
1397
- i.before = c, i.flush();
1398
- }
1399
- r.insert("", n, i, !1);
1400
- }, [r, n.name]), null;
1401
- });
1402
- process.env.NODE_ENV !== "production" && (Jo.displayName = "EmotionGlobal");
1403
- function Xr() {
1404
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1405
- r[t] = arguments[t];
1406
- return we(r);
1407
- }
1408
- var mn = function() {
1409
- var r = Xr.apply(void 0, arguments), t = "animation-" + r.name;
1410
- return {
1411
- name: t,
1412
- styles: "@keyframes " + t + "{" + r.styles + "}",
1413
- anim: 1,
1414
- toString: function() {
1415
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
1416
- }
1417
- };
1418
- }, Zo = function e(r) {
1419
- for (var t = r.length, n = 0, o = ""; n < t; n++) {
1420
- var s = r[n];
1421
- if (s != null) {
1422
- var i = void 0;
1423
- switch (typeof s) {
1424
- case "boolean":
1425
- break;
1426
- case "object": {
1427
- if (Array.isArray(s))
1428
- i = e(s);
1429
- else {
1430
- process.env.NODE_ENV !== "production" && s.styles !== void 0 && s.name !== void 0 && console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."), i = "";
1431
- for (var a in s)
1432
- s[a] && a && (i && (i += " "), i += a);
1433
- }
1434
- break;
1435
- }
1436
- default:
1437
- i = s;
1438
- }
1439
- i && (o && (o += " "), o += i);
1440
- }
1441
- }
1442
- return o;
1443
- };
1444
- function Qo(e, r, t) {
1445
- var n = [], o = Gr(e, n, t);
1446
- return n.length < 2 ? t : o + r(n);
1447
- }
1448
- var es = function(r) {
1449
- var t = r.cache, n = r.serializedArr;
1450
- return qr(function() {
1451
- for (var o = 0; o < n.length; o++)
1452
- ar(t, n[o], !1);
1453
- }), null;
1454
- }, rs = /* @__PURE__ */ cr(function(e, r) {
1455
- var t = !1, n = [], o = function() {
1456
- if (t && process.env.NODE_ENV !== "production")
1457
- throw new Error("css can only be used during render");
1458
- for (var u = arguments.length, l = new Array(u), m = 0; m < u; m++)
1459
- l[m] = arguments[m];
1460
- var d = we(l, r.registered);
1461
- return n.push(d), ir(r, d, !1), r.key + "-" + d.name;
1462
- }, s = function() {
1463
- if (t && process.env.NODE_ENV !== "production")
1464
- throw new Error("cx can only be used during render");
1465
- for (var u = arguments.length, l = new Array(u), m = 0; m < u; m++)
1466
- l[m] = arguments[m];
1467
- return Qo(r.registered, o, Zo(l));
1468
- }, i = {
1469
- css: o,
1470
- cx: s,
1471
- theme: I.useContext(Oe)
1472
- }, a = e.children(i);
1473
- return t = !0, /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(es, {
1474
- cache: r,
1475
- serializedArr: n
1476
- }), a);
1477
- });
1478
- process.env.NODE_ENV !== "production" && (rs.displayName = "EmotionClassNames");
1479
- if (process.env.NODE_ENV !== "production") {
1480
- var Et = !0, ts = typeof jest < "u" || typeof vi < "u";
1481
- if (Et && !ts) {
1482
- var xt = (
1483
- // $FlowIgnore
1484
- typeof globalThis < "u" ? globalThis : Et ? window : global
1485
- ), St = "__EMOTION_REACT_" + Xo.version.split(".")[0] + "__";
1486
- xt[St] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), xt[St] = !0;
1487
- }
1488
- }
1489
- var ns = qn, os = function(r) {
1490
- return r !== "theme";
1491
- }, wt = function(r) {
1492
- return typeof r == "string" && // 96 is one less than the char code
1493
- // for "a" so this is checking that
1494
- // it's a lowercase character
1495
- r.charCodeAt(0) > 96 ? ns : os;
1496
- }, _t = function(r, t, n) {
1497
- var o;
1498
- if (t) {
1499
- var s = t.shouldForwardProp;
1500
- o = r.__emotion_forwardProp && s ? function(i) {
1501
- return r.__emotion_forwardProp(i) && s(i);
1502
- } : s;
1503
- }
1504
- return typeof o != "function" && n && (o = r.__emotion_forwardProp), o;
1505
- }, $t = `You have illegal escape sequence in your template literal, most likely inside content's property value.
1506
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
1507
- You can read more about this here:
1508
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, ss = function(r) {
1509
- var t = r.cache, n = r.serialized, o = r.isStringTag;
1510
- return ir(t, n, o), qr(function() {
1511
- return ar(t, n, o);
1512
- }), null;
1513
- }, is = function e(r, t) {
1514
- if (process.env.NODE_ENV !== "production" && r === void 0)
1515
- throw new Error(`You are trying to create a styled element with an undefined component.
1516
- You may have forgotten to import it.`);
1517
- var n = r.__emotion_real === r, o = n && r.__emotion_base || r, s, i;
1518
- t !== void 0 && (s = t.label, i = t.target);
1519
- var a = _t(r, t, n), c = a || wt(o), u = !c("as");
1520
- return function() {
1521
- var l = arguments, m = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
1522
- if (s !== void 0 && m.push("label:" + s + ";"), l[0] == null || l[0].raw === void 0)
1523
- m.push.apply(m, l);
1524
- else {
1525
- process.env.NODE_ENV !== "production" && l[0][0] === void 0 && console.error($t), m.push(l[0][0]);
1526
- for (var d = l.length, b = 1; b < d; b++)
1527
- process.env.NODE_ENV !== "production" && l[0][b] === void 0 && console.error($t), m.push(l[b], l[0][b]);
1528
- }
1529
- var g = cr(function(f, p, v) {
1530
- var C = u && f.as || o, $ = "", S = [], h = f;
1531
- if (f.theme == null) {
1532
- h = {};
1533
- for (var N in f)
1534
- h[N] = f[N];
1535
- h.theme = I.useContext(Oe);
1536
- }
1537
- typeof f.className == "string" ? $ = Gr(p.registered, S, f.className) : f.className != null && ($ = f.className + " ");
1538
- var O = we(m.concat(S), p.registered, h);
1539
- $ += p.key + "-" + O.name, i !== void 0 && ($ += " " + i);
1540
- var Z = u && a === void 0 ? wt(C) : c, B = {};
1541
- for (var w in f)
1542
- u && w === "as" || // $FlowFixMe
1543
- Z(w) && (B[w] = f[w]);
1544
- return B.className = $, B.ref = v, /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(ss, {
1545
- cache: p,
1546
- serialized: O,
1547
- isStringTag: typeof C == "string"
1548
- }), /* @__PURE__ */ I.createElement(C, B));
1549
- });
1550
- return g.displayName = s !== void 0 ? s : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", g.defaultProps = r.defaultProps, g.__emotion_real = g, g.__emotion_base = o, g.__emotion_styles = m, g.__emotion_forwardProp = a, Object.defineProperty(g, "toString", {
1551
- value: function() {
1552
- return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i;
1553
- }
1554
- }), g.withComponent = function(f, p) {
1555
- return e(f, _({}, t, p, {
1556
- shouldForwardProp: _t(g, p, !0)
1557
- })).apply(void 0, m);
1558
- }, g;
1559
- };
1560
- }, as = [
1561
- "a",
1562
- "abbr",
1563
- "address",
1564
- "area",
1565
- "article",
1566
- "aside",
1567
- "audio",
1568
- "b",
1569
- "base",
1570
- "bdi",
1571
- "bdo",
1572
- "big",
1573
- "blockquote",
1574
- "body",
1575
- "br",
1576
- "button",
1577
- "canvas",
1578
- "caption",
1579
- "cite",
1580
- "code",
1581
- "col",
1582
- "colgroup",
1583
- "data",
1584
- "datalist",
1585
- "dd",
1586
- "del",
1587
- "details",
1588
- "dfn",
1589
- "dialog",
1590
- "div",
1591
- "dl",
1592
- "dt",
1593
- "em",
1594
- "embed",
1595
- "fieldset",
1596
- "figcaption",
1597
- "figure",
1598
- "footer",
1599
- "form",
1600
- "h1",
1601
- "h2",
1602
- "h3",
1603
- "h4",
1604
- "h5",
1605
- "h6",
1606
- "head",
1607
- "header",
1608
- "hgroup",
1609
- "hr",
1610
- "html",
1611
- "i",
1612
- "iframe",
1613
- "img",
1614
- "input",
1615
- "ins",
1616
- "kbd",
1617
- "keygen",
1618
- "label",
1619
- "legend",
1620
- "li",
1621
- "link",
1622
- "main",
1623
- "map",
1624
- "mark",
1625
- "marquee",
1626
- "menu",
1627
- "menuitem",
1628
- "meta",
1629
- "meter",
1630
- "nav",
1631
- "noscript",
1632
- "object",
1633
- "ol",
1634
- "optgroup",
1635
- "option",
1636
- "output",
1637
- "p",
1638
- "param",
1639
- "picture",
1640
- "pre",
1641
- "progress",
1642
- "q",
1643
- "rp",
1644
- "rt",
1645
- "ruby",
1646
- "s",
1647
- "samp",
1648
- "script",
1649
- "section",
1650
- "select",
1651
- "small",
1652
- "source",
1653
- "span",
1654
- "strong",
1655
- "style",
1656
- "sub",
1657
- "summary",
1658
- "sup",
1659
- "table",
1660
- "tbody",
1661
- "td",
1662
- "textarea",
1663
- "tfoot",
1664
- "th",
1665
- "thead",
1666
- "time",
1667
- "title",
1668
- "tr",
1669
- "track",
1670
- "u",
1671
- "ul",
1672
- "var",
1673
- "video",
1674
- "wbr",
1675
- // SVG
1676
- "circle",
1677
- "clipPath",
1678
- "defs",
1679
- "ellipse",
1680
- "foreignObject",
1681
- "g",
1682
- "image",
1683
- "line",
1684
- "linearGradient",
1685
- "mask",
1686
- "path",
1687
- "pattern",
1688
- "polygon",
1689
- "polyline",
1690
- "radialGradient",
1691
- "rect",
1692
- "stop",
1693
- "svg",
1694
- "text",
1695
- "tspan"
1696
- ], Vr = is.bind();
1697
- as.forEach(function(e) {
1698
- Vr[e] = Vr(e);
1699
- });
1700
- /**
1701
- * @mui/styled-engine v5.15.4
1702
- *
1703
- * @license MIT
1704
- * This source code is licensed under the MIT license found in the
1705
- * LICENSE file in the root directory of this source tree.
1706
- */
1707
- function cs(e, r) {
1708
- const t = Vr(e, r);
1709
- return process.env.NODE_ENV !== "production" ? (...n) => {
1710
- const o = typeof e == "string" ? `"${e}"` : "component";
1711
- return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
1712
- `)) : n.some((s) => s === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), t(...n);
1713
- } : t;
1714
- }
1715
- const us = (e, r) => {
1716
- Array.isArray(e.__emotion_styles) && (e.__emotion_styles = r(e.__emotion_styles));
1717
- };
1718
- function ls(e, r) {
1719
- return process.env.NODE_ENV === "production" ? () => null : function(...n) {
1720
- return e(...n) || r(...n);
1721
- };
1722
- }
1723
- function ce(e) {
1724
- if (typeof e != "object" || e === null)
1725
- return !1;
1726
- const r = Object.getPrototypeOf(e);
1727
- return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
1728
- }
1729
- function hn(e) {
1730
- if (!ce(e))
1731
- return e;
1732
- const r = {};
1733
- return Object.keys(e).forEach((t) => {
1734
- r[t] = hn(e[t]);
1735
- }), r;
1736
- }
1737
- function te(e, r, t = {
1738
- clone: !0
8
+ import "@mui/material";
9
+ function N({
10
+ config: r,
11
+ pushError: n = R
1739
12
  }) {
1740
- const n = t.clone ? _({}, e) : e;
1741
- return ce(e) && ce(r) && Object.keys(r).forEach((o) => {
1742
- o !== "__proto__" && (ce(r[o]) && o in e && ce(e[o]) ? n[o] = te(e[o], r[o], t) : t.clone ? n[o] = ce(r[o]) ? hn(r[o]) : r[o] : n[o] = r[o]);
1743
- }), n;
1744
- }
1745
- var zr = { exports: {} }, A = {};
1746
- /**
1747
- * @license React
1748
- * react-is.production.min.js
1749
- *
1750
- * Copyright (c) Facebook, Inc. and its affiliates.
1751
- *
1752
- * This source code is licensed under the MIT license found in the
1753
- * LICENSE file in the root directory of this source tree.
1754
- */
1755
- var Ot;
1756
- function fs() {
1757
- if (Ot)
1758
- return A;
1759
- Ot = 1;
1760
- var e = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), g;
1761
- g = Symbol.for("react.module.reference");
1762
- function f(p) {
1763
- if (typeof p == "object" && p !== null) {
1764
- var v = p.$$typeof;
1765
- switch (v) {
1766
- case e:
1767
- switch (p = p.type, p) {
1768
- case t:
1769
- case o:
1770
- case n:
1771
- case u:
1772
- case l:
1773
- return p;
1774
- default:
1775
- switch (p = p && p.$$typeof, p) {
1776
- case a:
1777
- case i:
1778
- case c:
1779
- case d:
1780
- case m:
1781
- case s:
1782
- return p;
1783
- default:
1784
- return v;
1785
- }
1786
- }
1787
- case r:
1788
- return v;
1789
- }
1790
- }
1791
- }
1792
- return A.ContextConsumer = i, A.ContextProvider = s, A.Element = e, A.ForwardRef = c, A.Fragment = t, A.Lazy = d, A.Memo = m, A.Portal = r, A.Profiler = o, A.StrictMode = n, A.Suspense = u, A.SuspenseList = l, A.isAsyncMode = function() {
1793
- return !1;
1794
- }, A.isConcurrentMode = function() {
1795
- return !1;
1796
- }, A.isContextConsumer = function(p) {
1797
- return f(p) === i;
1798
- }, A.isContextProvider = function(p) {
1799
- return f(p) === s;
1800
- }, A.isElement = function(p) {
1801
- return typeof p == "object" && p !== null && p.$$typeof === e;
1802
- }, A.isForwardRef = function(p) {
1803
- return f(p) === c;
1804
- }, A.isFragment = function(p) {
1805
- return f(p) === t;
1806
- }, A.isLazy = function(p) {
1807
- return f(p) === d;
1808
- }, A.isMemo = function(p) {
1809
- return f(p) === m;
1810
- }, A.isPortal = function(p) {
1811
- return f(p) === r;
1812
- }, A.isProfiler = function(p) {
1813
- return f(p) === o;
1814
- }, A.isStrictMode = function(p) {
1815
- return f(p) === n;
1816
- }, A.isSuspense = function(p) {
1817
- return f(p) === u;
1818
- }, A.isSuspenseList = function(p) {
1819
- return f(p) === l;
1820
- }, A.isValidElementType = function(p) {
1821
- return typeof p == "string" || typeof p == "function" || p === t || p === o || p === n || p === u || p === l || p === b || typeof p == "object" && p !== null && (p.$$typeof === d || p.$$typeof === m || p.$$typeof === s || p.$$typeof === i || p.$$typeof === c || p.$$typeof === g || p.getModuleId !== void 0);
1822
- }, A.typeOf = f, A;
1823
- }
1824
- var M = {};
1825
- /**
1826
- * @license React
1827
- * react-is.development.js
1828
- *
1829
- * Copyright (c) Facebook, Inc. and its affiliates.
1830
- *
1831
- * This source code is licensed under the MIT license found in the
1832
- * LICENSE file in the root directory of this source tree.
1833
- */
1834
- var Ct;
1835
- function ds() {
1836
- return Ct || (Ct = 1, process.env.NODE_ENV !== "production" && function() {
1837
- var e = Symbol.for("react.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), g = !1, f = !1, p = !1, v = !1, C = !1, $;
1838
- $ = Symbol.for("react.module.reference");
1839
- function S(x) {
1840
- return !!(typeof x == "string" || typeof x == "function" || x === t || x === o || C || x === n || x === u || x === l || v || x === b || g || f || p || typeof x == "object" && x !== null && (x.$$typeof === d || x.$$typeof === m || x.$$typeof === s || x.$$typeof === i || x.$$typeof === c || // This needs to include all possible module reference object
1841
- // types supported by any Flight configuration anywhere since
1842
- // we don't know which Flight build this will end up being used
1843
- // with.
1844
- x.$$typeof === $ || x.getModuleId !== void 0));
1845
- }
1846
- function h(x) {
1847
- if (typeof x == "object" && x !== null) {
1848
- var de = x.$$typeof;
1849
- switch (de) {
1850
- case e:
1851
- var Ye = x.type;
1852
- switch (Ye) {
1853
- case t:
1854
- case o:
1855
- case n:
1856
- case u:
1857
- case l:
1858
- return Ye;
1859
- default:
1860
- var nt = Ye && Ye.$$typeof;
1861
- switch (nt) {
1862
- case a:
1863
- case i:
1864
- case c:
1865
- case d:
1866
- case m:
1867
- case s:
1868
- return nt;
1869
- default:
1870
- return de;
1871
- }
1872
- }
1873
- case r:
1874
- return de;
1875
- }
1876
- }
1877
- }
1878
- var N = i, O = s, Z = e, B = c, w = t, L = d, Y = m, ae = r, Q = o, ue = n, Ce = u, Sr = l, Te = !1, We = !1;
1879
- function Be(x) {
1880
- return Te || (Te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1881
- }
1882
- function wr(x) {
1883
- return We || (We = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1884
- }
1885
- function _r(x) {
1886
- return h(x) === i;
1887
- }
1888
- function $r(x) {
1889
- return h(x) === s;
1890
- }
1891
- function Or(x) {
1892
- return typeof x == "object" && x !== null && x.$$typeof === e;
1893
- }
1894
- function Cr(x) {
1895
- return h(x) === c;
1896
- }
1897
- function Tr(x) {
1898
- return h(x) === t;
1899
- }
1900
- function Pr(x) {
1901
- return h(x) === d;
1902
- }
1903
- function Nr(x) {
1904
- return h(x) === m;
1905
- }
1906
- function kr(x) {
1907
- return h(x) === r;
1908
- }
1909
- function Rr(x) {
1910
- return h(x) === o;
1911
- }
1912
- function Ar(x) {
1913
- return h(x) === n;
1914
- }
1915
- function E(x) {
1916
- return h(x) === u;
1917
- }
1918
- function Pe(x) {
1919
- return h(x) === l;
1920
- }
1921
- M.ContextConsumer = N, M.ContextProvider = O, M.Element = Z, M.ForwardRef = B, M.Fragment = w, M.Lazy = L, M.Memo = Y, M.Portal = ae, M.Profiler = Q, M.StrictMode = ue, M.Suspense = Ce, M.SuspenseList = Sr, M.isAsyncMode = Be, M.isConcurrentMode = wr, M.isContextConsumer = _r, M.isContextProvider = $r, M.isElement = Or, M.isForwardRef = Cr, M.isFragment = Tr, M.isLazy = Pr, M.isMemo = Nr, M.isPortal = kr, M.isProfiler = Rr, M.isStrictMode = Ar, M.isSuspense = E, M.isSuspenseList = Pe, M.isValidElementType = S, M.typeOf = h;
1922
- }()), M;
1923
- }
1924
- process.env.NODE_ENV === "production" ? zr.exports = fs() : zr.exports = ds();
1925
- var Tt = zr.exports;
1926
- const ps = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
1927
- function ms(e) {
1928
- const r = `${e}`.match(ps);
1929
- return r && r[1] || "";
1930
- }
1931
- function yn(e, r = "") {
1932
- return e.displayName || e.name || ms(e) || r;
1933
- }
1934
- function Pt(e, r, t) {
1935
- const n = yn(r);
1936
- return e.displayName || (n !== "" ? `${t}(${n})` : t);
1937
- }
1938
- function hs(e) {
1939
- if (e != null) {
1940
- if (typeof e == "string")
1941
- return e;
1942
- if (typeof e == "function")
1943
- return yn(e, "Component");
1944
- if (typeof e == "object")
1945
- switch (e.$$typeof) {
1946
- case Tt.ForwardRef:
1947
- return Pt(e, e.render, "ForwardRef");
1948
- case Tt.Memo:
1949
- return Pt(e, e.type, "memo");
1950
- default:
1951
- return;
1952
- }
1953
- }
1954
- }
1955
- function ie(e) {
1956
- if (typeof e != "string")
1957
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : xe(7));
1958
- return e.charAt(0).toUpperCase() + e.slice(1);
1959
- }
1960
- function ys(e, r) {
1961
- if (process.env.NODE_ENV === "production")
1962
- return () => null;
1963
- const t = r ? _({}, r.propTypes) : null;
1964
- return (o) => (s, i, a, c, u, ...l) => {
1965
- const m = u || i, d = t == null ? void 0 : t[m];
1966
- if (d) {
1967
- const b = d(s, i, a, c, u, ...l);
1968
- if (b)
1969
- return b;
1970
- }
1971
- return typeof s[i] < "u" && !s[o] ? new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null;
1972
- };
1973
- }
1974
- function gn(e, r) {
1975
- const t = _({}, r);
1976
- return Object.keys(e).forEach((n) => {
1977
- if (n.toString().match(/^(components|slots)$/))
1978
- t[n] = _({}, e[n], t[n]);
1979
- else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
1980
- const o = e[n] || {}, s = r[n];
1981
- t[n] = {}, !s || !Object.keys(s) ? t[n] = o : !o || !Object.keys(o) ? t[n] = s : (t[n] = _({}, s), Object.keys(o).forEach((i) => {
1982
- t[n][i] = gn(o[i], s[i]);
1983
- }));
1984
- } else
1985
- t[n] === void 0 && (t[n] = e[n]);
1986
- }), t;
1987
- }
1988
- function bn(e, r, t = void 0) {
1989
- const n = {};
1990
- return Object.keys(e).forEach(
1991
- // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
1992
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
1993
- (o) => {
1994
- n[o] = e[o].reduce((s, i) => {
1995
- if (i) {
1996
- const a = r(i);
1997
- a !== "" && s.push(a), t && t[i] && s.push(t[i]);
1998
- }
1999
- return s;
2000
- }, []).join(" ");
2001
- }
2002
- ), n;
2003
- }
2004
- const Nt = (e) => e, gs = () => {
2005
- let e = Nt;
2006
- return {
2007
- configure(r) {
2008
- e = r;
2009
- },
2010
- generate(r) {
2011
- return e(r);
2012
- },
2013
- reset() {
2014
- e = Nt;
2015
- }
2016
- };
2017
- }, bs = gs(), vs = bs, Es = {
2018
- active: "active",
2019
- checked: "checked",
2020
- completed: "completed",
2021
- disabled: "disabled",
2022
- error: "error",
2023
- expanded: "expanded",
2024
- focused: "focused",
2025
- focusVisible: "focusVisible",
2026
- open: "open",
2027
- readOnly: "readOnly",
2028
- required: "required",
2029
- selected: "selected"
2030
- };
2031
- function ur(e, r, t = "Mui") {
2032
- const n = Es[r];
2033
- return n ? `${t}-${n}` : `${vs.generate(e)}-${r}`;
2034
- }
2035
- function vn(e, r, t = "Mui") {
2036
- const n = {};
2037
- return r.forEach((o) => {
2038
- n[o] = ur(e, o, t);
2039
- }), n;
2040
- }
2041
- const xs = ["values", "unit", "step"], Ss = (e) => {
2042
- const r = Object.keys(e).map((t) => ({
2043
- key: t,
2044
- val: e[t]
2045
- })) || [];
2046
- return r.sort((t, n) => t.val - n.val), r.reduce((t, n) => _({}, t, {
2047
- [n.key]: n.val
2048
- }), {});
2049
- };
2050
- function ws(e) {
2051
- const {
2052
- // The breakpoint **start** at this value.
2053
- // For instance with the first breakpoint xs: [xs, sm).
2054
- values: r = {
2055
- xs: 0,
2056
- // phone
2057
- sm: 600,
2058
- // tablet
2059
- md: 900,
2060
- // small laptop
2061
- lg: 1200,
2062
- // desktop
2063
- xl: 1536
2064
- // large screen
2065
- },
2066
- unit: t = "px",
2067
- step: n = 5
2068
- } = e, o = ne(e, xs), s = Ss(r), i = Object.keys(s);
2069
- function a(d) {
2070
- return `@media (min-width:${typeof r[d] == "number" ? r[d] : d}${t})`;
2071
- }
2072
- function c(d) {
2073
- return `@media (max-width:${(typeof r[d] == "number" ? r[d] : d) - n / 100}${t})`;
2074
- }
2075
- function u(d, b) {
2076
- const g = i.indexOf(b);
2077
- return `@media (min-width:${typeof r[d] == "number" ? r[d] : d}${t}) and (max-width:${(g !== -1 && typeof r[i[g]] == "number" ? r[i[g]] : b) - n / 100}${t})`;
2078
- }
2079
- function l(d) {
2080
- return i.indexOf(d) + 1 < i.length ? u(d, i[i.indexOf(d) + 1]) : a(d);
2081
- }
2082
- function m(d) {
2083
- const b = i.indexOf(d);
2084
- return b === 0 ? a(i[1]) : b === i.length - 1 ? c(i[b]) : u(d, i[i.indexOf(d) + 1]).replace("@media", "@media not all and");
2085
- }
2086
- return _({
2087
- keys: i,
2088
- values: s,
2089
- up: a,
2090
- down: c,
2091
- between: u,
2092
- only: l,
2093
- not: m,
2094
- unit: t
2095
- }, o);
2096
- }
2097
- const _s = {
2098
- borderRadius: 4
2099
- }, $s = _s, Os = process.env.NODE_ENV !== "production" ? y.oneOfType([y.number, y.string, y.object, y.array]) : {}, fe = Os;
2100
- function Ae(e, r) {
2101
- return r ? te(e, r, {
2102
- clone: !1
2103
- // No need to clone deep, it's way faster.
2104
- }) : e;
2105
- }
2106
- const Jr = {
2107
- xs: 0,
2108
- // phone
2109
- sm: 600,
2110
- // tablet
2111
- md: 900,
2112
- // small laptop
2113
- lg: 1200,
2114
- // desktop
2115
- xl: 1536
2116
- // large screen
2117
- }, kt = {
2118
- // Sorted ASC by size. That's important.
2119
- // It can't be configured as it's used statically for propTypes.
2120
- keys: ["xs", "sm", "md", "lg", "xl"],
2121
- up: (e) => `@media (min-width:${Jr[e]}px)`
2122
- };
2123
- function X(e, r, t) {
2124
- const n = e.theme || {};
2125
- if (Array.isArray(r)) {
2126
- const s = n.breakpoints || kt;
2127
- return r.reduce((i, a, c) => (i[s.up(s.keys[c])] = t(r[c]), i), {});
2128
- }
2129
- if (typeof r == "object") {
2130
- const s = n.breakpoints || kt;
2131
- return Object.keys(r).reduce((i, a) => {
2132
- if (Object.keys(s.values || Jr).indexOf(a) !== -1) {
2133
- const c = s.up(a);
2134
- i[c] = t(r[a], a);
2135
- } else {
2136
- const c = a;
2137
- i[c] = r[c];
2138
- }
2139
- return i;
2140
- }, {});
2141
- }
2142
- return t(r);
2143
- }
2144
- function Cs(e = {}) {
2145
- var r;
2146
- return ((r = e.keys) == null ? void 0 : r.reduce((n, o) => {
2147
- const s = e.up(o);
2148
- return n[s] = {}, n;
2149
- }, {})) || {};
2150
- }
2151
- function Ts(e, r) {
2152
- return e.reduce((t, n) => {
2153
- const o = t[n];
2154
- return (!o || Object.keys(o).length === 0) && delete t[n], t;
2155
- }, r);
2156
- }
2157
- function Ps(e, r) {
2158
- if (typeof e != "object")
2159
- return {};
2160
- const t = {}, n = Object.keys(r);
2161
- return Array.isArray(e) ? n.forEach((o, s) => {
2162
- s < e.length && (t[o] = !0);
2163
- }) : n.forEach((o) => {
2164
- e[o] != null && (t[o] = !0);
2165
- }), t;
2166
- }
2167
- function lr({
2168
- values: e,
2169
- breakpoints: r,
2170
- base: t
2171
- }) {
2172
- const n = t || Ps(e, r), o = Object.keys(n);
2173
- if (o.length === 0)
2174
- return e;
2175
- let s;
2176
- return o.reduce((i, a, c) => (Array.isArray(e) ? (i[a] = e[c] != null ? e[c] : e[s], s = c) : typeof e == "object" ? (i[a] = e[a] != null ? e[a] : e[s], s = a) : i[a] = e, i), {});
2177
- }
2178
- function fr(e, r, t = !0) {
2179
- if (!r || typeof r != "string")
2180
- return null;
2181
- if (e && e.vars && t) {
2182
- const n = `vars.${r}`.split(".").reduce((o, s) => o && o[s] ? o[s] : null, e);
2183
- if (n != null)
2184
- return n;
2185
- }
2186
- return r.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
2187
- }
2188
- function er(e, r, t, n = t) {
2189
- let o;
2190
- return typeof e == "function" ? o = e(t) : Array.isArray(e) ? o = e[t] || n : o = fr(e, t) || n, r && (o = r(o, n, e)), o;
2191
- }
2192
- function V(e) {
2193
- const {
2194
- prop: r,
2195
- cssProperty: t = e.prop,
2196
- themeKey: n,
2197
- transform: o
2198
- } = e, s = (i) => {
2199
- if (i[r] == null)
2200
- return null;
2201
- const a = i[r], c = i.theme, u = fr(c, n) || {};
2202
- return X(i, a, (m) => {
2203
- let d = er(u, o, m);
2204
- return m === d && typeof m == "string" && (d = er(u, o, `${r}${m === "default" ? "" : ie(m)}`, m)), t === !1 ? d : {
2205
- [t]: d
2206
- };
2207
- });
2208
- };
2209
- return s.propTypes = process.env.NODE_ENV !== "production" ? {
2210
- [r]: fe
2211
- } : {}, s.filterProps = [r], s;
2212
- }
2213
- function Ns(e) {
2214
- const r = {};
2215
- return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
2216
- }
2217
- const ks = {
2218
- m: "margin",
2219
- p: "padding"
2220
- }, Rs = {
2221
- t: "Top",
2222
- r: "Right",
2223
- b: "Bottom",
2224
- l: "Left",
2225
- x: ["Left", "Right"],
2226
- y: ["Top", "Bottom"]
2227
- }, Rt = {
2228
- marginX: "mx",
2229
- marginY: "my",
2230
- paddingX: "px",
2231
- paddingY: "py"
2232
- }, As = Ns((e) => {
2233
- if (e.length > 2)
2234
- if (Rt[e])
2235
- e = Rt[e];
2236
- else
2237
- return [e];
2238
- const [r, t] = e.split(""), n = ks[r], o = Rs[t] || "";
2239
- return Array.isArray(o) ? o.map((s) => n + s) : [n + o];
2240
- }), dr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], pr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Ms = [...dr, ...pr];
2241
- function Le(e, r, t, n) {
2242
- var o;
2243
- const s = (o = fr(e, r, !1)) != null ? o : t;
2244
- return typeof s == "number" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), s * i) : Array.isArray(s) ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && (Number.isInteger(i) ? i > s.length - 1 && console.error([`MUI: The value provided (${i}) overflows.`, `The supported values are: ${JSON.stringify(s)}.`, `${i} > ${s.length - 1}, you need to add the missing values.`].join(`
2245
- `)) : 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(`
2246
- `))), s[i]) : typeof s == "function" ? s : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${r}\` value (${s}) is invalid.`, "It should be a number, an array or a function."].join(`
2247
- `)), () => {
2248
- });
2249
- }
2250
- function En(e) {
2251
- return Le(e, "spacing", 8, "spacing");
2252
- }
2253
- function Ue(e, r) {
2254
- if (typeof r == "string" || r == null)
2255
- return r;
2256
- const t = Math.abs(r), n = e(t);
2257
- return r >= 0 ? n : typeof n == "number" ? -n : `-${n}`;
2258
- }
2259
- function Is(e, r) {
2260
- return (t) => e.reduce((n, o) => (n[o] = Ue(r, t), n), {});
2261
- }
2262
- function js(e, r, t, n) {
2263
- if (r.indexOf(t) === -1)
2264
- return null;
2265
- const o = As(t), s = Is(o, n), i = e[t];
2266
- return X(e, i, s);
2267
- }
2268
- function xn(e, r) {
2269
- const t = En(e.theme);
2270
- return Object.keys(e).map((n) => js(e, r, n, t)).reduce(Ae, {});
2271
- }
2272
- function D(e) {
2273
- return xn(e, dr);
2274
- }
2275
- D.propTypes = process.env.NODE_ENV !== "production" ? dr.reduce((e, r) => (e[r] = fe, e), {}) : {};
2276
- D.filterProps = dr;
2277
- function F(e) {
2278
- return xn(e, pr);
2279
- }
2280
- F.propTypes = process.env.NODE_ENV !== "production" ? pr.reduce((e, r) => (e[r] = fe, e), {}) : {};
2281
- F.filterProps = pr;
2282
- process.env.NODE_ENV !== "production" && Ms.reduce((e, r) => (e[r] = fe, e), {});
2283
- function Ds(e = 8) {
2284
- if (e.mui)
2285
- return e;
2286
- const r = En({
2287
- spacing: e
2288
- }), t = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((s) => {
2289
- const i = r(s);
2290
- return typeof i == "number" ? `${i}px` : i;
2291
- }).join(" "));
2292
- return t.mui = !0, t;
2293
- }
2294
- function mr(...e) {
2295
- const r = e.reduce((n, o) => (o.filterProps.forEach((s) => {
2296
- n[s] = o;
2297
- }), n), {}), t = (n) => Object.keys(n).reduce((o, s) => r[s] ? Ae(o, r[s](n)) : o, {});
2298
- 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;
2299
- }
2300
- function H(e) {
2301
- return typeof e != "number" ? e : `${e}px solid`;
2302
- }
2303
- function J(e, r) {
2304
- return V({
2305
- prop: e,
2306
- themeKey: "borders",
2307
- transform: r
2308
- });
2309
- }
2310
- const Fs = J("border", H), Vs = J("borderTop", H), zs = J("borderRight", H), Ls = J("borderBottom", H), Us = J("borderLeft", H), Ws = J("borderColor"), Bs = J("borderTopColor"), Ys = J("borderRightColor"), Gs = J("borderBottomColor"), Ks = J("borderLeftColor"), qs = J("outline", H), Hs = J("outlineColor"), hr = (e) => {
2311
- if (e.borderRadius !== void 0 && e.borderRadius !== null) {
2312
- const r = Le(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
2313
- borderRadius: Ue(r, n)
2314
- });
2315
- return X(e, e.borderRadius, t);
2316
- }
2317
- return null;
2318
- };
2319
- hr.propTypes = process.env.NODE_ENV !== "production" ? {
2320
- borderRadius: fe
2321
- } : {};
2322
- hr.filterProps = ["borderRadius"];
2323
- mr(Fs, Vs, zs, Ls, Us, Ws, Bs, Ys, Gs, Ks, hr, qs, Hs);
2324
- const yr = (e) => {
2325
- if (e.gap !== void 0 && e.gap !== null) {
2326
- const r = Le(e.theme, "spacing", 8, "gap"), t = (n) => ({
2327
- gap: Ue(r, n)
2328
- });
2329
- return X(e, e.gap, t);
2330
- }
2331
- return null;
2332
- };
2333
- yr.propTypes = process.env.NODE_ENV !== "production" ? {
2334
- gap: fe
2335
- } : {};
2336
- yr.filterProps = ["gap"];
2337
- const gr = (e) => {
2338
- if (e.columnGap !== void 0 && e.columnGap !== null) {
2339
- const r = Le(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
2340
- columnGap: Ue(r, n)
2341
- });
2342
- return X(e, e.columnGap, t);
2343
- }
2344
- return null;
2345
- };
2346
- gr.propTypes = process.env.NODE_ENV !== "production" ? {
2347
- columnGap: fe
2348
- } : {};
2349
- gr.filterProps = ["columnGap"];
2350
- const br = (e) => {
2351
- if (e.rowGap !== void 0 && e.rowGap !== null) {
2352
- const r = Le(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
2353
- rowGap: Ue(r, n)
2354
- });
2355
- return X(e, e.rowGap, t);
2356
- }
2357
- return null;
2358
- };
2359
- br.propTypes = process.env.NODE_ENV !== "production" ? {
2360
- rowGap: fe
2361
- } : {};
2362
- br.filterProps = ["rowGap"];
2363
- const Xs = V({
2364
- prop: "gridColumn"
2365
- }), Js = V({
2366
- prop: "gridRow"
2367
- }), Zs = V({
2368
- prop: "gridAutoFlow"
2369
- }), Qs = V({
2370
- prop: "gridAutoColumns"
2371
- }), ei = V({
2372
- prop: "gridAutoRows"
2373
- }), ri = V({
2374
- prop: "gridTemplateColumns"
2375
- }), ti = V({
2376
- prop: "gridTemplateRows"
2377
- }), ni = V({
2378
- prop: "gridTemplateAreas"
2379
- }), oi = V({
2380
- prop: "gridArea"
2381
- });
2382
- mr(yr, gr, br, Xs, Js, Zs, Qs, ei, ri, ti, ni, oi);
2383
- function ve(e, r) {
2384
- return r === "grey" ? r : e;
2385
- }
2386
- const si = V({
2387
- prop: "color",
2388
- themeKey: "palette",
2389
- transform: ve
2390
- }), ii = V({
2391
- prop: "bgcolor",
2392
- cssProperty: "backgroundColor",
2393
- themeKey: "palette",
2394
- transform: ve
2395
- }), ai = V({
2396
- prop: "backgroundColor",
2397
- themeKey: "palette",
2398
- transform: ve
2399
- });
2400
- mr(si, ii, ai);
2401
- function K(e) {
2402
- return e <= 1 && e !== 0 ? `${e * 100}%` : e;
2403
- }
2404
- const ci = V({
2405
- prop: "width",
2406
- transform: K
2407
- }), Zr = (e) => {
2408
- if (e.maxWidth !== void 0 && e.maxWidth !== null) {
2409
- const r = (t) => {
2410
- var n, o;
2411
- const s = ((n = e.theme) == null || (n = n.breakpoints) == null || (n = n.values) == null ? void 0 : n[t]) || Jr[t];
2412
- return s ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px" ? {
2413
- maxWidth: `${s}${e.theme.breakpoints.unit}`
2414
- } : {
2415
- maxWidth: s
2416
- } : {
2417
- maxWidth: K(t)
2418
- };
2419
- };
2420
- return X(e, e.maxWidth, r);
2421
- }
2422
- return null;
2423
- };
2424
- Zr.filterProps = ["maxWidth"];
2425
- const ui = V({
2426
- prop: "minWidth",
2427
- transform: K
2428
- }), li = V({
2429
- prop: "height",
2430
- transform: K
2431
- }), fi = V({
2432
- prop: "maxHeight",
2433
- transform: K
2434
- }), di = V({
2435
- prop: "minHeight",
2436
- transform: K
2437
- });
2438
- V({
2439
- prop: "size",
2440
- cssProperty: "width",
2441
- transform: K
2442
- });
2443
- V({
2444
- prop: "size",
2445
- cssProperty: "height",
2446
- transform: K
2447
- });
2448
- const pi = V({
2449
- prop: "boxSizing"
2450
- });
2451
- mr(ci, Zr, ui, li, fi, di, pi);
2452
- const mi = {
2453
- // borders
2454
- border: {
2455
- themeKey: "borders",
2456
- transform: H
2457
- },
2458
- borderTop: {
2459
- themeKey: "borders",
2460
- transform: H
2461
- },
2462
- borderRight: {
2463
- themeKey: "borders",
2464
- transform: H
2465
- },
2466
- borderBottom: {
2467
- themeKey: "borders",
2468
- transform: H
2469
- },
2470
- borderLeft: {
2471
- themeKey: "borders",
2472
- transform: H
2473
- },
2474
- borderColor: {
2475
- themeKey: "palette"
2476
- },
2477
- borderTopColor: {
2478
- themeKey: "palette"
2479
- },
2480
- borderRightColor: {
2481
- themeKey: "palette"
2482
- },
2483
- borderBottomColor: {
2484
- themeKey: "palette"
2485
- },
2486
- borderLeftColor: {
2487
- themeKey: "palette"
2488
- },
2489
- outline: {
2490
- themeKey: "borders",
2491
- transform: H
2492
- },
2493
- outlineColor: {
2494
- themeKey: "palette"
2495
- },
2496
- borderRadius: {
2497
- themeKey: "shape.borderRadius",
2498
- style: hr
2499
- },
2500
- // palette
2501
- color: {
2502
- themeKey: "palette",
2503
- transform: ve
2504
- },
2505
- bgcolor: {
2506
- themeKey: "palette",
2507
- cssProperty: "backgroundColor",
2508
- transform: ve
2509
- },
2510
- backgroundColor: {
2511
- themeKey: "palette",
2512
- transform: ve
2513
- },
2514
- // spacing
2515
- p: {
2516
- style: F
2517
- },
2518
- pt: {
2519
- style: F
2520
- },
2521
- pr: {
2522
- style: F
2523
- },
2524
- pb: {
2525
- style: F
2526
- },
2527
- pl: {
2528
- style: F
2529
- },
2530
- px: {
2531
- style: F
2532
- },
2533
- py: {
2534
- style: F
2535
- },
2536
- padding: {
2537
- style: F
2538
- },
2539
- paddingTop: {
2540
- style: F
2541
- },
2542
- paddingRight: {
2543
- style: F
2544
- },
2545
- paddingBottom: {
2546
- style: F
2547
- },
2548
- paddingLeft: {
2549
- style: F
2550
- },
2551
- paddingX: {
2552
- style: F
2553
- },
2554
- paddingY: {
2555
- style: F
2556
- },
2557
- paddingInline: {
2558
- style: F
2559
- },
2560
- paddingInlineStart: {
2561
- style: F
2562
- },
2563
- paddingInlineEnd: {
2564
- style: F
2565
- },
2566
- paddingBlock: {
2567
- style: F
2568
- },
2569
- paddingBlockStart: {
2570
- style: F
2571
- },
2572
- paddingBlockEnd: {
2573
- style: F
2574
- },
2575
- m: {
2576
- style: D
2577
- },
2578
- mt: {
2579
- style: D
2580
- },
2581
- mr: {
2582
- style: D
2583
- },
2584
- mb: {
2585
- style: D
2586
- },
2587
- ml: {
2588
- style: D
2589
- },
2590
- mx: {
2591
- style: D
2592
- },
2593
- my: {
2594
- style: D
2595
- },
2596
- margin: {
2597
- style: D
2598
- },
2599
- marginTop: {
2600
- style: D
2601
- },
2602
- marginRight: {
2603
- style: D
2604
- },
2605
- marginBottom: {
2606
- style: D
2607
- },
2608
- marginLeft: {
2609
- style: D
2610
- },
2611
- marginX: {
2612
- style: D
2613
- },
2614
- marginY: {
2615
- style: D
2616
- },
2617
- marginInline: {
2618
- style: D
2619
- },
2620
- marginInlineStart: {
2621
- style: D
2622
- },
2623
- marginInlineEnd: {
2624
- style: D
2625
- },
2626
- marginBlock: {
2627
- style: D
2628
- },
2629
- marginBlockStart: {
2630
- style: D
2631
- },
2632
- marginBlockEnd: {
2633
- style: D
2634
- },
2635
- // display
2636
- displayPrint: {
2637
- cssProperty: !1,
2638
- transform: (e) => ({
2639
- "@media print": {
2640
- display: e
2641
- }
2642
- })
2643
- },
2644
- display: {},
2645
- overflow: {},
2646
- textOverflow: {},
2647
- visibility: {},
2648
- whiteSpace: {},
2649
- // flexbox
2650
- flexBasis: {},
2651
- flexDirection: {},
2652
- flexWrap: {},
2653
- justifyContent: {},
2654
- alignItems: {},
2655
- alignContent: {},
2656
- order: {},
2657
- flex: {},
2658
- flexGrow: {},
2659
- flexShrink: {},
2660
- alignSelf: {},
2661
- justifyItems: {},
2662
- justifySelf: {},
2663
- // grid
2664
- gap: {
2665
- style: yr
2666
- },
2667
- rowGap: {
2668
- style: br
2669
- },
2670
- columnGap: {
2671
- style: gr
2672
- },
2673
- gridColumn: {},
2674
- gridRow: {},
2675
- gridAutoFlow: {},
2676
- gridAutoColumns: {},
2677
- gridAutoRows: {},
2678
- gridTemplateColumns: {},
2679
- gridTemplateRows: {},
2680
- gridTemplateAreas: {},
2681
- gridArea: {},
2682
- // positions
2683
- position: {},
2684
- zIndex: {
2685
- themeKey: "zIndex"
2686
- },
2687
- top: {},
2688
- right: {},
2689
- bottom: {},
2690
- left: {},
2691
- // shadows
2692
- boxShadow: {
2693
- themeKey: "shadows"
2694
- },
2695
- // sizing
2696
- width: {
2697
- transform: K
2698
- },
2699
- maxWidth: {
2700
- style: Zr
2701
- },
2702
- minWidth: {
2703
- transform: K
2704
- },
2705
- height: {
2706
- transform: K
2707
- },
2708
- maxHeight: {
2709
- transform: K
2710
- },
2711
- minHeight: {
2712
- transform: K
2713
- },
2714
- boxSizing: {},
2715
- // typography
2716
- fontFamily: {
2717
- themeKey: "typography"
2718
- },
2719
- fontSize: {
2720
- themeKey: "typography"
2721
- },
2722
- fontStyle: {
2723
- themeKey: "typography"
2724
- },
2725
- fontWeight: {
2726
- themeKey: "typography"
2727
- },
2728
- letterSpacing: {},
2729
- textTransform: {},
2730
- lineHeight: {},
2731
- textAlign: {},
2732
- typography: {
2733
- cssProperty: !1,
2734
- themeKey: "typography"
2735
- }
2736
- }, vr = mi;
2737
- function hi(...e) {
2738
- const r = e.reduce((n, o) => n.concat(Object.keys(o)), []), t = new Set(r);
2739
- return e.every((n) => t.size === Object.keys(n).length);
2740
- }
2741
- function yi(e, r) {
2742
- return typeof e == "function" ? e(r) : e;
2743
- }
2744
- function gi() {
2745
- function e(t, n, o, s) {
2746
- const i = {
2747
- [t]: n,
2748
- theme: o
2749
- }, a = s[t];
2750
- if (!a)
2751
- return {
2752
- [t]: n
2753
- };
2754
- const {
2755
- cssProperty: c = t,
2756
- themeKey: u,
2757
- transform: l,
2758
- style: m
2759
- } = a;
2760
- if (n == null)
2761
- return null;
2762
- if (u === "typography" && n === "inherit")
2763
- return {
2764
- [t]: n
2765
- };
2766
- const d = fr(o, u) || {};
2767
- return m ? m(i) : X(i, n, (g) => {
2768
- let f = er(d, l, g);
2769
- return g === f && typeof g == "string" && (f = er(d, l, `${t}${g === "default" ? "" : ie(g)}`, g)), c === !1 ? f : {
2770
- [c]: f
2771
- };
2772
- });
2773
- }
2774
- function r(t) {
2775
- var n;
2776
- const {
2777
- sx: o,
2778
- theme: s = {}
2779
- } = t || {};
2780
- if (!o)
2781
- return null;
2782
- const i = (n = s.unstable_sxConfig) != null ? n : vr;
2783
- function a(c) {
2784
- let u = c;
2785
- if (typeof c == "function")
2786
- u = c(s);
2787
- else if (typeof c != "object")
2788
- return c;
2789
- if (!u)
2790
- return null;
2791
- const l = Cs(s.breakpoints), m = Object.keys(l);
2792
- let d = l;
2793
- return Object.keys(u).forEach((b) => {
2794
- const g = yi(u[b], s);
2795
- if (g != null)
2796
- if (typeof g == "object")
2797
- if (i[b])
2798
- d = Ae(d, e(b, g, s, i));
2799
- else {
2800
- const f = X({
2801
- theme: s
2802
- }, g, (p) => ({
2803
- [b]: p
2804
- }));
2805
- hi(f, g) ? d[b] = r({
2806
- sx: g,
2807
- theme: s
2808
- }) : d = Ae(d, f);
2809
- }
2810
- else
2811
- d = Ae(d, e(b, g, s, i));
2812
- }), Ts(m, d);
2813
- }
2814
- return Array.isArray(o) ? o.map(a) : a(o);
2815
- }
2816
- return r;
2817
- }
2818
- const Sn = gi();
2819
- Sn.filterProps = ["sx"];
2820
- const Qr = Sn, bi = ["breakpoints", "palette", "spacing", "shape"];
2821
- function et(e = {}, ...r) {
2822
- const {
2823
- breakpoints: t = {},
2824
- palette: n = {},
2825
- spacing: o,
2826
- shape: s = {}
2827
- } = e, i = ne(e, bi), a = ws(t), c = Ds(o);
2828
- let u = te({
2829
- breakpoints: a,
2830
- direction: "ltr",
2831
- components: {},
2832
- // Inject component definitions.
2833
- palette: _({
2834
- mode: "light"
2835
- }, n),
2836
- spacing: c,
2837
- shape: _({}, $s, s)
2838
- }, i);
2839
- return u = r.reduce((l, m) => te(l, m), u), u.unstable_sxConfig = _({}, vr, i == null ? void 0 : i.unstable_sxConfig), u.unstable_sx = function(m) {
2840
- return Qr({
2841
- sx: m,
2842
- theme: this
2843
- });
2844
- }, u;
2845
- }
2846
- function Ei(e) {
2847
- return Object.keys(e).length === 0;
2848
- }
2849
- function xi(e = null) {
2850
- const r = I.useContext(Oe);
2851
- return !r || Ei(r) ? e : r;
2852
- }
2853
- const Si = et();
2854
- function wn(e = Si) {
2855
- return xi(e);
2856
- }
2857
- const wi = ["sx"], _i = (e) => {
2858
- var r, t;
2859
- const n = {
2860
- systemProps: {},
2861
- otherProps: {}
2862
- }, o = (r = e == null || (t = e.theme) == null ? void 0 : t.unstable_sxConfig) != null ? r : vr;
2863
- return Object.keys(e).forEach((s) => {
2864
- o[s] ? n.systemProps[s] = e[s] : n.otherProps[s] = e[s];
2865
- }), n;
2866
- };
2867
- function $i(e) {
2868
- const {
2869
- sx: r
2870
- } = e, t = ne(e, wi), {
2871
- systemProps: n,
2872
- otherProps: o
2873
- } = _i(t);
2874
- let s;
2875
- return Array.isArray(r) ? s = [n, ...r] : typeof r == "function" ? s = (...i) => {
2876
- const a = r(...i);
2877
- return ce(a) ? _({}, n, a) : n;
2878
- } : s = _({}, n, r), _({}, o, {
2879
- sx: s
2880
- });
2881
- }
2882
- const Oi = ["variant"];
2883
- function At(e) {
2884
- return e.length === 0;
2885
- }
2886
- function _n(e) {
2887
- const {
2888
- variant: r
2889
- } = e, t = ne(e, Oi);
2890
- let n = r || "";
2891
- return Object.keys(t).sort().forEach((o) => {
2892
- o === "color" ? n += At(n) ? e[o] : ie(e[o]) : n += `${At(n) ? o : ie(o)}${ie(e[o].toString())}`;
2893
- }), n;
2894
- }
2895
- const Ci = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
2896
- function Ti(e) {
2897
- return Object.keys(e).length === 0;
2898
- }
2899
- function Pi(e) {
2900
- return typeof e == "string" && // 96 is one less than the char code
2901
- // for "a" so this is checking that
2902
- // it's a lowercase character
2903
- e.charCodeAt(0) > 96;
2904
- }
2905
- const Ni = (e, r) => r.components && r.components[e] && r.components[e].styleOverrides ? r.components[e].styleOverrides : null, rr = (e) => {
2906
- let r = 0;
2907
- const t = {};
2908
- return e && e.forEach((n) => {
2909
- let o = "";
2910
- typeof n.props == "function" ? (o = `callback${r}`, r += 1) : o = _n(n.props), t[o] = n.style;
2911
- }), t;
2912
- }, ki = (e, r) => {
2913
- let t = [];
2914
- return r && r.components && r.components[e] && r.components[e].variants && (t = r.components[e].variants), rr(t);
2915
- }, tr = (e, r, t) => {
2916
- const {
2917
- ownerState: n = {}
2918
- } = e, o = [];
2919
- let s = 0;
2920
- return t && t.forEach((i) => {
2921
- let a = !0;
2922
- if (typeof i.props == "function") {
2923
- const c = _({}, e, n);
2924
- a = i.props(c);
2925
- } else
2926
- Object.keys(i.props).forEach((c) => {
2927
- n[c] !== i.props[c] && e[c] !== i.props[c] && (a = !1);
2928
- });
2929
- a && (typeof i.props == "function" ? o.push(r[`callback${s}`]) : o.push(r[_n(i.props)])), typeof i.props == "function" && (s += 1);
2930
- }), o;
2931
- }, Ri = (e, r, t, n) => {
2932
- var o;
2933
- const s = t == null || (o = t.components) == null || (o = o[n]) == null ? void 0 : o.variants;
2934
- return tr(e, r, s);
2935
- };
2936
- function Xe(e) {
2937
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
2938
- }
2939
- const Ai = et(), Mt = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
2940
- function Je({
2941
- defaultTheme: e,
2942
- theme: r,
2943
- themeId: t
2944
- }) {
2945
- return Ti(r) ? e : r[t] || r;
2946
- }
2947
- function Mi(e) {
2948
- return e ? (r, t) => t[e] : null;
2949
- }
2950
- const It = ({
2951
- styledArg: e,
2952
- props: r,
2953
- defaultTheme: t,
2954
- themeId: n
2955
- }) => {
2956
- const o = e(_({}, r, {
2957
- theme: Je(_({}, r, {
2958
- defaultTheme: t,
2959
- themeId: n
2960
- }))
2961
- }));
2962
- let s;
2963
- if (o && o.variants && (s = o.variants, delete o.variants), s) {
2964
- const i = tr(r, rr(s), s);
2965
- return [o, ...i];
2966
- }
2967
- return o;
2968
- };
2969
- function Ii(e = {}) {
2970
- const {
2971
- themeId: r,
2972
- defaultTheme: t = Ai,
2973
- rootShouldForwardProp: n = Xe,
2974
- slotShouldForwardProp: o = Xe
2975
- } = e, s = (i) => Qr(_({}, i, {
2976
- theme: Je(_({}, i, {
2977
- defaultTheme: t,
2978
- themeId: r
2979
- }))
2980
- }));
2981
- return s.__mui_systemSx = !0, (i, a = {}) => {
2982
- us(i, (S) => S.filter((h) => !(h != null && h.__mui_systemSx)));
2983
- const {
2984
- name: c,
2985
- slot: u,
2986
- skipVariantsResolver: l,
2987
- skipSx: m,
2988
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
2989
- // For more details: https://github.com/mui/material-ui/pull/37908
2990
- overridesResolver: d = Mi(Mt(u))
2991
- } = a, b = ne(a, Ci), g = l !== void 0 ? l : (
2992
- // TODO v6: remove `Root` in the next major release
2993
- // For more details: https://github.com/mui/material-ui/pull/37908
2994
- u && u !== "Root" && u !== "root" || !1
2995
- ), f = m || !1;
2996
- let p;
2997
- process.env.NODE_ENV !== "production" && c && (p = `${c}-${Mt(u || "Root")}`);
2998
- let v = Xe;
2999
- u === "Root" || u === "root" ? v = n : u ? v = o : Pi(i) && (v = void 0);
3000
- const C = cs(i, _({
3001
- shouldForwardProp: v,
3002
- label: p
3003
- }, b)), $ = (S, ...h) => {
3004
- const N = h ? h.map((w) => {
3005
- if (typeof w == "function" && w.__emotion_real !== w)
3006
- return (L) => It({
3007
- styledArg: w,
3008
- props: L,
3009
- defaultTheme: t,
3010
- themeId: r
3011
- });
3012
- if (ce(w)) {
3013
- let L = w, Y;
3014
- return w && w.variants && (Y = w.variants, delete L.variants, L = (ae) => {
3015
- let Q = w;
3016
- return tr(ae, rr(Y), Y).forEach((Ce) => {
3017
- Q = te(Q, Ce);
3018
- }), Q;
3019
- }), L;
3020
- }
3021
- return w;
3022
- }) : [];
3023
- let O = S;
3024
- if (ce(S)) {
3025
- let w;
3026
- S && S.variants && (w = S.variants, delete O.variants, O = (L) => {
3027
- let Y = S;
3028
- return tr(L, rr(w), w).forEach((Q) => {
3029
- Y = te(Y, Q);
3030
- }), Y;
3031
- });
3032
- } else
3033
- typeof S == "function" && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
3034
- // component stays as a function. This condition makes sure that we do not interpolate functions
3035
- // which are basically components used as a selectors.
3036
- S.__emotion_real !== S && (O = (w) => It({
3037
- styledArg: S,
3038
- props: w,
3039
- defaultTheme: t,
3040
- themeId: r
3041
- }));
3042
- c && d && N.push((w) => {
3043
- const L = Je(_({}, w, {
3044
- defaultTheme: t,
3045
- themeId: r
3046
- })), Y = Ni(c, L);
3047
- if (Y) {
3048
- const ae = {};
3049
- return Object.entries(Y).forEach(([Q, ue]) => {
3050
- ae[Q] = typeof ue == "function" ? ue(_({}, w, {
3051
- theme: L
3052
- })) : ue;
3053
- }), d(w, ae);
3054
- }
3055
- return null;
3056
- }), c && !g && N.push((w) => {
3057
- const L = Je(_({}, w, {
3058
- defaultTheme: t,
3059
- themeId: r
3060
- }));
3061
- return Ri(w, ki(c, L), L, c);
3062
- }), f || N.push(s);
3063
- const Z = N.length - h.length;
3064
- if (Array.isArray(S) && Z > 0) {
3065
- const w = new Array(Z).fill("");
3066
- O = [...S, ...w], O.raw = [...S.raw, ...w];
3067
- }
3068
- const B = C(O, ...N);
3069
- if (process.env.NODE_ENV !== "production") {
3070
- let w;
3071
- c && (w = `${c}${ie(u || "")}`), w === void 0 && (w = `Styled(${hs(i)})`), B.displayName = w;
3072
- }
3073
- return i.muiName && (B.muiName = i.muiName), B;
3074
- };
3075
- return C.withConfig && ($.withConfig = C.withConfig), $;
3076
- };
3077
- }
3078
- function ji(e) {
3079
- const {
3080
- theme: r,
3081
- name: t,
3082
- props: n
3083
- } = e;
3084
- return !r || !r.components || !r.components[t] || !r.components[t].defaultProps ? n : gn(r.components[t].defaultProps, n);
3085
- }
3086
- function Di({
3087
- props: e,
3088
- name: r,
3089
- defaultTheme: t,
3090
- themeId: n
3091
- }) {
3092
- let o = wn(t);
3093
- return n && (o = o[n] || o), ji({
3094
- theme: o,
3095
- name: r,
3096
- props: e
3097
- });
3098
- }
3099
- function $n(e, r = 0, t = 1) {
3100
- return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), Math.min(Math.max(r, e), t);
3101
- }
3102
- function Fi(e) {
3103
- e = e.slice(1);
3104
- const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
3105
- let t = e.match(r);
3106
- return t && t[0].length === 1 && (t = t.map((n) => n + n)), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
3107
- }
3108
- function _e(e) {
3109
- if (e.type)
3110
- return e;
3111
- if (e.charAt(0) === "#")
3112
- return _e(Fi(e));
3113
- const r = e.indexOf("("), t = e.substring(0, r);
3114
- if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(t) === -1)
3115
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
3116
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : xe(9, e));
3117
- let n = e.substring(r + 1, e.length - 1), o;
3118
- if (t === "color") {
3119
- if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
3120
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
3121
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : xe(10, o));
3122
- } else
3123
- n = n.split(",");
3124
- return n = n.map((s) => parseFloat(s)), {
3125
- type: t,
3126
- values: n,
3127
- colorSpace: o
3128
- };
3129
- }
3130
- function rt(e) {
3131
- const {
3132
- type: r,
3133
- colorSpace: t
3134
- } = e;
3135
- let {
3136
- values: n
3137
- } = e;
3138
- return r.indexOf("rgb") !== -1 ? n = n.map((o, s) => s < 3 ? parseInt(o, 10) : o) : r.indexOf("hsl") !== -1 && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.indexOf("color") !== -1 ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
3139
- }
3140
- function Vi(e) {
3141
- e = _e(e);
3142
- const {
3143
- values: r
3144
- } = e, t = r[0], n = r[1] / 100, o = r[2] / 100, s = n * Math.min(o, 1 - o), i = (u, l = (u + t / 30) % 12) => o - s * Math.max(Math.min(l - 3, 9 - l, 1), -1);
3145
- let a = "rgb";
3146
- const c = [Math.round(i(0) * 255), Math.round(i(8) * 255), Math.round(i(4) * 255)];
3147
- return e.type === "hsla" && (a += "a", c.push(r[3])), rt({
3148
- type: a,
3149
- values: c
3150
- });
3151
- }
3152
- function jt(e) {
3153
- e = _e(e);
3154
- let r = e.type === "hsl" || e.type === "hsla" ? _e(Vi(e)).values : e.values;
3155
- 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));
3156
- }
3157
- function Dt(e, r) {
3158
- const t = jt(e), n = jt(r);
3159
- return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
3160
- }
3161
- function zi(e, r) {
3162
- if (e = _e(e), r = $n(r), e.type.indexOf("hsl") !== -1)
3163
- e.values[2] *= 1 - r;
3164
- else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
3165
- for (let t = 0; t < 3; t += 1)
3166
- e.values[t] *= 1 - r;
3167
- return rt(e);
3168
- }
3169
- function Li(e, r) {
3170
- if (e = _e(e), r = $n(r), e.type.indexOf("hsl") !== -1)
3171
- e.values[2] += (100 - e.values[2]) * r;
3172
- else if (e.type.indexOf("rgb") !== -1)
3173
- for (let t = 0; t < 3; t += 1)
3174
- e.values[t] += (255 - e.values[t]) * r;
3175
- else if (e.type.indexOf("color") !== -1)
3176
- for (let t = 0; t < 3; t += 1)
3177
- e.values[t] += (1 - e.values[t]) * r;
3178
- return rt(e);
3179
- }
3180
- function Ui(e, r) {
3181
- return _({
3182
- toolbar: {
3183
- minHeight: 56,
3184
- [e.up("xs")]: {
3185
- "@media (orientation: landscape)": {
3186
- minHeight: 48
3187
- }
3188
- },
3189
- [e.up("sm")]: {
3190
- minHeight: 64
3191
- }
3192
- }
3193
- }, r);
3194
- }
3195
- const Wi = ["mode", "contrastThreshold", "tonalOffset"], Ft = {
3196
- // The colors used to style the text.
3197
- text: {
3198
- // The most important text.
3199
- primary: "rgba(0, 0, 0, 0.87)",
3200
- // Secondary text.
3201
- secondary: "rgba(0, 0, 0, 0.6)",
3202
- // Disabled text have even lower visual prominence.
3203
- disabled: "rgba(0, 0, 0, 0.38)"
3204
- },
3205
- // The color used to divide different elements.
3206
- divider: "rgba(0, 0, 0, 0.12)",
3207
- // The background colors used to style the surfaces.
3208
- // Consistency between these values is important.
3209
- background: {
3210
- paper: Ie.white,
3211
- default: Ie.white
3212
- },
3213
- // The colors used to style the action elements.
3214
- action: {
3215
- // The color of an active action like an icon button.
3216
- active: "rgba(0, 0, 0, 0.54)",
3217
- // The color of an hovered action.
3218
- hover: "rgba(0, 0, 0, 0.04)",
3219
- hoverOpacity: 0.04,
3220
- // The color of a selected action.
3221
- selected: "rgba(0, 0, 0, 0.08)",
3222
- selectedOpacity: 0.08,
3223
- // The color of a disabled action.
3224
- disabled: "rgba(0, 0, 0, 0.26)",
3225
- // The background color of a disabled action.
3226
- disabledBackground: "rgba(0, 0, 0, 0.12)",
3227
- disabledOpacity: 0.38,
3228
- focus: "rgba(0, 0, 0, 0.12)",
3229
- focusOpacity: 0.12,
3230
- activatedOpacity: 0.12
3231
- }
3232
- }, Ir = {
3233
- text: {
3234
- primary: Ie.white,
3235
- secondary: "rgba(255, 255, 255, 0.7)",
3236
- disabled: "rgba(255, 255, 255, 0.5)",
3237
- icon: "rgba(255, 255, 255, 0.5)"
3238
- },
3239
- divider: "rgba(255, 255, 255, 0.12)",
3240
- background: {
3241
- paper: "#121212",
3242
- default: "#121212"
3243
- },
3244
- action: {
3245
- active: Ie.white,
3246
- hover: "rgba(255, 255, 255, 0.08)",
3247
- hoverOpacity: 0.08,
3248
- selected: "rgba(255, 255, 255, 0.16)",
3249
- selectedOpacity: 0.16,
3250
- disabled: "rgba(255, 255, 255, 0.3)",
3251
- disabledBackground: "rgba(255, 255, 255, 0.12)",
3252
- disabledOpacity: 0.38,
3253
- focus: "rgba(255, 255, 255, 0.12)",
3254
- focusOpacity: 0.12,
3255
- activatedOpacity: 0.24
3256
- }
3257
- };
3258
- function Vt(e, r, t, n) {
3259
- const o = n.light || n, s = n.dark || n * 1.5;
3260
- e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Li(e.main, o) : r === "dark" && (e.dark = zi(e.main, s)));
3261
- }
3262
- function Bi(e = "light") {
3263
- return e === "dark" ? {
3264
- main: he[200],
3265
- light: he[50],
3266
- dark: he[400]
3267
- } : {
3268
- main: he[700],
3269
- light: he[400],
3270
- dark: he[800]
3271
- };
3272
- }
3273
- function Yi(e = "light") {
3274
- return e === "dark" ? {
3275
- main: me[200],
3276
- light: me[50],
3277
- dark: me[400]
3278
- } : {
3279
- main: me[500],
3280
- light: me[300],
3281
- dark: me[700]
3282
- };
3283
- }
3284
- function Gi(e = "light") {
3285
- return e === "dark" ? {
3286
- main: pe[500],
3287
- light: pe[300],
3288
- dark: pe[700]
3289
- } : {
3290
- main: pe[700],
3291
- light: pe[400],
3292
- dark: pe[800]
3293
- };
3294
- }
3295
- function Ki(e = "light") {
3296
- return e === "dark" ? {
3297
- main: ye[400],
3298
- light: ye[300],
3299
- dark: ye[700]
3300
- } : {
3301
- main: ye[700],
3302
- light: ye[500],
3303
- dark: ye[900]
3304
- };
3305
- }
3306
- function qi(e = "light") {
3307
- return e === "dark" ? {
3308
- main: ge[400],
3309
- light: ge[300],
3310
- dark: ge[700]
3311
- } : {
3312
- main: ge[800],
3313
- light: ge[500],
3314
- dark: ge[900]
3315
- };
3316
- }
3317
- function Hi(e = "light") {
3318
- return e === "dark" ? {
3319
- main: Ne[400],
3320
- light: Ne[300],
3321
- dark: Ne[700]
3322
- } : {
3323
- main: "#ed6c02",
3324
- // closest to orange[800] that pass 3:1.
3325
- light: Ne[500],
3326
- dark: Ne[900]
3327
- };
3328
- }
3329
- function Xi(e) {
3330
- const {
3331
- mode: r = "light",
3332
- contrastThreshold: t = 3,
3333
- tonalOffset: n = 0.2
3334
- } = e, o = ne(e, Wi), s = e.primary || Bi(r), i = e.secondary || Yi(r), a = e.error || Gi(r), c = e.info || Ki(r), u = e.success || qi(r), l = e.warning || Hi(r);
3335
- function m(f) {
3336
- const p = Dt(f, Ir.text.primary) >= t ? Ir.text.primary : Ft.text.primary;
3337
- if (process.env.NODE_ENV !== "production") {
3338
- const v = Dt(f, p);
3339
- v < 3 && console.error([`MUI: The contrast ratio of ${v}:1 for ${p} on ${f}`, "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(`
3340
- `));
3341
- }
3342
- return p;
3343
- }
3344
- const d = ({
3345
- color: f,
3346
- name: p,
3347
- mainShade: v = 500,
3348
- lightShade: C = 300,
3349
- darkShade: $ = 700
3350
- }) => {
3351
- if (f = _({}, f), !f.main && f[v] && (f.main = f[v]), !f.hasOwnProperty("main"))
3352
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${p ? ` (${p})` : ""} provided to augmentColor(color) is invalid.
3353
- The color object needs to have a \`main\` property or a \`${v}\` property.` : xe(11, p ? ` (${p})` : "", v));
3354
- if (typeof f.main != "string")
3355
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${p ? ` (${p})` : ""} provided to augmentColor(color) is invalid.
3356
- \`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
3357
-
3358
- Did you intend to use one of the following approaches?
3359
-
3360
- import { green } from "@mui/material/colors";
3361
-
3362
- const theme1 = createTheme({ palette: {
3363
- primary: green,
3364
- } });
3365
-
3366
- const theme2 = createTheme({ palette: {
3367
- primary: { main: green[500] },
3368
- } });` : xe(12, p ? ` (${p})` : "", JSON.stringify(f.main)));
3369
- return Vt(f, "light", C, n), Vt(f, "dark", $, n), f.contrastText || (f.contrastText = m(f.main)), f;
3370
- }, b = {
3371
- dark: Ir,
3372
- light: Ft
3373
- };
3374
- return process.env.NODE_ENV !== "production" && (b[r] || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), te(_({
3375
- // A collection of common colors.
3376
- common: _({}, Ie),
3377
- // prevent mutable object.
3378
- // The palette mode, can be light or dark.
3379
- mode: r,
3380
- // The colors used to represent primary interface elements for a user.
3381
- primary: d({
3382
- color: s,
3383
- name: "primary"
3384
- }),
3385
- // The colors used to represent secondary interface elements for a user.
3386
- secondary: d({
3387
- color: i,
3388
- name: "secondary",
3389
- mainShade: "A400",
3390
- lightShade: "A200",
3391
- darkShade: "A700"
3392
- }),
3393
- // The colors used to represent interface elements that the user should be made aware of.
3394
- error: d({
3395
- color: a,
3396
- name: "error"
3397
- }),
3398
- // The colors used to represent potentially dangerous actions or important messages.
3399
- warning: d({
3400
- color: l,
3401
- name: "warning"
3402
- }),
3403
- // The colors used to present information to the user that is neutral and not necessarily important.
3404
- info: d({
3405
- color: c,
3406
- name: "info"
3407
- }),
3408
- // The colors used to indicate the successful completion of an action that user triggered.
3409
- success: d({
3410
- color: u,
3411
- name: "success"
3412
- }),
3413
- // The grey colors.
3414
- grey: Gn,
3415
- // Used by `getContrastText()` to maximize the contrast between
3416
- // the background and the text.
3417
- contrastThreshold: t,
3418
- // Takes a background color and returns the text color that maximizes the contrast.
3419
- getContrastText: m,
3420
- // Generate a rich color object.
3421
- augmentColor: d,
3422
- // Used by the functions below to shift a color's luminance by approximately
3423
- // two indexes within its tonal palette.
3424
- // E.g., shift from Red 500 to Red 300 or Red 700.
3425
- tonalOffset: n
3426
- }, b[r]), o);
3427
- }
3428
- const Ji = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
3429
- function Zi(e) {
3430
- return Math.round(e * 1e5) / 1e5;
3431
- }
3432
- const zt = {
3433
- textTransform: "uppercase"
3434
- }, Lt = '"Roboto", "Helvetica", "Arial", sans-serif';
3435
- function Qi(e, r) {
3436
- const t = typeof r == "function" ? r(e) : r, {
3437
- fontFamily: n = Lt,
3438
- // The default font size of the Material Specification.
3439
- fontSize: o = 14,
3440
- // px
3441
- fontWeightLight: s = 300,
3442
- fontWeightRegular: i = 400,
3443
- fontWeightMedium: a = 500,
3444
- fontWeightBold: c = 700,
3445
- // Tell MUI what's the font-size on the html element.
3446
- // 16px is the default font-size used by browsers.
3447
- htmlFontSize: u = 16,
3448
- // Apply the CSS properties to all the variants.
3449
- allVariants: l,
3450
- pxToRem: m
3451
- } = t, d = ne(t, Ji);
3452
- process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
3453
- const b = o / 14, g = m || ((v) => `${v / u * b}rem`), f = (v, C, $, S, h) => _({
3454
- fontFamily: n,
3455
- fontWeight: v,
3456
- fontSize: g(C),
3457
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
3458
- lineHeight: $
3459
- }, n === Lt ? {
3460
- letterSpacing: `${Zi(S / C)}em`
3461
- } : {}, h, l), p = {
3462
- h1: f(s, 96, 1.167, -1.5),
3463
- h2: f(s, 60, 1.2, -0.5),
3464
- h3: f(i, 48, 1.167, 0),
3465
- h4: f(i, 34, 1.235, 0.25),
3466
- h5: f(i, 24, 1.334, 0),
3467
- h6: f(a, 20, 1.6, 0.15),
3468
- subtitle1: f(i, 16, 1.75, 0.15),
3469
- subtitle2: f(a, 14, 1.57, 0.1),
3470
- body1: f(i, 16, 1.5, 0.15),
3471
- body2: f(i, 14, 1.43, 0.15),
3472
- button: f(a, 14, 1.75, 0.4, zt),
3473
- caption: f(i, 12, 1.66, 0.4),
3474
- overline: f(i, 12, 2.66, 1, zt),
3475
- // 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.
3476
- inherit: {
3477
- fontFamily: "inherit",
3478
- fontWeight: "inherit",
3479
- fontSize: "inherit",
3480
- lineHeight: "inherit",
3481
- letterSpacing: "inherit"
3482
- }
3483
- };
3484
- return te(_({
3485
- htmlFontSize: u,
3486
- pxToRem: g,
3487
- fontFamily: n,
3488
- fontSize: o,
3489
- fontWeightLight: s,
3490
- fontWeightRegular: i,
3491
- fontWeightMedium: a,
3492
- fontWeightBold: c
3493
- }, p), d, {
3494
- clone: !1
3495
- // No need to clone deep
3496
- });
3497
- }
3498
- const ea = 0.2, ra = 0.14, ta = 0.12;
3499
- function j(...e) {
3500
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ea})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ra})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ta})`].join(",");
3501
- }
3502
- const na = ["none", j(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), j(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), j(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), j(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), j(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), j(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), j(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), j(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), j(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), j(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), j(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), j(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), j(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), j(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), j(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), j(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), j(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), j(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), j(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), j(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), j(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), j(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), j(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), j(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], oa = na, sa = ["duration", "easing", "delay"], ia = {
3503
- // This is the most common easing curve.
3504
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
3505
- // Objects enter the screen at full velocity from off-screen and
3506
- // slowly decelerate to a resting point.
3507
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
3508
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
3509
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
3510
- // The sharp curve is used by objects that may return to the screen at any time.
3511
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
3512
- }, aa = {
3513
- shortest: 150,
3514
- shorter: 200,
3515
- short: 250,
3516
- // most basic recommended timing
3517
- standard: 300,
3518
- // this is to be used in complex animations
3519
- complex: 375,
3520
- // recommended when something is entering screen
3521
- enteringScreen: 225,
3522
- // recommended when something is leaving screen
3523
- leavingScreen: 195
3524
- };
3525
- function Ut(e) {
3526
- return `${Math.round(e)}ms`;
3527
- }
3528
- function ca(e) {
3529
- if (!e)
3530
- return 0;
3531
- const r = e / 36;
3532
- return Math.round((4 + 15 * r ** 0.25 + r / 5) * 10);
3533
- }
3534
- function ua(e) {
3535
- const r = _({}, ia, e.easing), t = _({}, aa, e.duration);
3536
- return _({
3537
- getAutoHeightDuration: ca,
3538
- create: (o = ["all"], s = {}) => {
3539
- const {
3540
- duration: i = t.standard,
3541
- easing: a = r.easeInOut,
3542
- delay: c = 0
3543
- } = s, u = ne(s, sa);
3544
- if (process.env.NODE_ENV !== "production") {
3545
- const l = (d) => typeof d == "string", m = (d) => !isNaN(parseFloat(d));
3546
- !l(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !m(i) && !l(i) && console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`), l(a) || console.error('MUI: Argument "easing" must be a string.'), !m(c) && !l(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof s != "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(`
3547
- `)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
3548
- }
3549
- return (Array.isArray(o) ? o : [o]).map((l) => `${l} ${typeof i == "string" ? i : Ut(i)} ${a} ${typeof c == "string" ? c : Ut(c)}`).join(",");
3550
- }
3551
- }, e, {
3552
- easing: r,
3553
- duration: t
3554
- });
3555
- }
3556
- const la = {
3557
- mobileStepper: 1e3,
3558
- fab: 1050,
3559
- speedDial: 1050,
3560
- appBar: 1100,
3561
- drawer: 1200,
3562
- modal: 1300,
3563
- snackbar: 1400,
3564
- tooltip: 1500
3565
- }, fa = la, da = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
3566
- function pa(e = {}, ...r) {
3567
- const {
3568
- mixins: t = {},
3569
- palette: n = {},
3570
- transitions: o = {},
3571
- typography: s = {}
3572
- } = e, i = ne(e, da);
3573
- if (e.vars)
3574
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : xe(18));
3575
- const a = Xi(n), c = et(e);
3576
- let u = te(c, {
3577
- mixins: Ui(c.breakpoints, t),
3578
- palette: a,
3579
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
3580
- shadows: oa.slice(),
3581
- typography: Qi(a, s),
3582
- transitions: ua(o),
3583
- zIndex: _({}, fa)
3584
- });
3585
- if (u = te(u, i), u = r.reduce((l, m) => te(l, m), u), process.env.NODE_ENV !== "production") {
3586
- const l = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], m = (d, b) => {
3587
- let g;
3588
- for (g in d) {
3589
- const f = d[g];
3590
- if (l.indexOf(g) !== -1 && Object.keys(f).length > 0) {
3591
- if (process.env.NODE_ENV !== "production") {
3592
- const p = ur("", g);
3593
- console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${g}\` internal state.`, "You can not override it like this: ", JSON.stringify(d, null, 2), "", `Instead, you need to use the '&.${p}' syntax:`, JSON.stringify({
3594
- root: {
3595
- [`&.${p}`]: f
3596
- }
3597
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
3598
- `));
3599
- }
3600
- d[g] = {};
3601
- }
3602
- }
3603
- };
3604
- Object.keys(u.components).forEach((d) => {
3605
- const b = u.components[d].styleOverrides;
3606
- b && d.indexOf("Mui") === 0 && m(b, d);
3607
- });
3608
- }
3609
- return u.unstable_sxConfig = _({}, vr, i == null ? void 0 : i.unstable_sxConfig), u.unstable_sx = function(m) {
3610
- return Qr({
3611
- sx: m,
3612
- theme: this
3613
- });
3614
- }, u;
3615
- }
3616
- const ma = pa(), tt = ma;
3617
- function ha() {
3618
- const e = wn(tt);
3619
- return process.env.NODE_ENV !== "production" && I.useDebugValue(e), e[Lr] || e;
3620
- }
3621
- function On({
3622
- props: e,
3623
- name: r
3624
- }) {
3625
- return Di({
3626
- props: e,
3627
- name: r,
3628
- defaultTheme: tt,
3629
- themeId: Lr
3630
- });
3631
- }
3632
- const ya = (e) => Xe(e) && e !== "classes", ga = Ii({
3633
- themeId: Lr,
3634
- defaultTheme: tt,
3635
- rootShouldForwardProp: ya
3636
- }), Er = ga;
3637
- function ba(e) {
3638
- return ur("MuiCircularProgress", e);
3639
- }
3640
- vn("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
3641
- const va = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
3642
- let xr = (e) => e, Wt, Bt, Yt, Gt;
3643
- const le = 44, Ea = mn(Wt || (Wt = xr`
3644
- 0% {
3645
- transform: rotate(0deg);
3646
- }
3647
-
3648
- 100% {
3649
- transform: rotate(360deg);
3650
- }
3651
- `)), xa = mn(Bt || (Bt = xr`
3652
- 0% {
3653
- stroke-dasharray: 1px, 200px;
3654
- stroke-dashoffset: 0;
3655
- }
3656
-
3657
- 50% {
3658
- stroke-dasharray: 100px, 200px;
3659
- stroke-dashoffset: -15px;
3660
- }
3661
-
3662
- 100% {
3663
- stroke-dasharray: 100px, 200px;
3664
- stroke-dashoffset: -125px;
3665
- }
3666
- `)), Sa = (e) => {
3667
- const {
3668
- classes: r,
3669
- variant: t,
3670
- color: n,
3671
- disableShrink: o
3672
- } = e, s = {
3673
- root: ["root", t, `color${ie(n)}`],
3674
- svg: ["svg"],
3675
- circle: ["circle", `circle${ie(t)}`, o && "circleDisableShrink"]
3676
- };
3677
- return bn(s, ba, r);
3678
- }, wa = Er("span", {
3679
- name: "MuiCircularProgress",
3680
- slot: "Root",
3681
- overridesResolver: (e, r) => {
3682
- const {
3683
- ownerState: t
3684
- } = e;
3685
- return [r.root, r[t.variant], r[`color${ie(t.color)}`]];
3686
- }
3687
- })(({
3688
- ownerState: e,
3689
- theme: r
3690
- }) => _({
3691
- display: "inline-block"
3692
- }, e.variant === "determinate" && {
3693
- transition: r.transitions.create("transform")
3694
- }, e.color !== "inherit" && {
3695
- color: (r.vars || r).palette[e.color].main
3696
- }), ({
3697
- ownerState: e
3698
- }) => e.variant === "indeterminate" && Xr(Yt || (Yt = xr`
3699
- animation: ${0} 1.4s linear infinite;
3700
- `), Ea)), _a = Er("svg", {
3701
- name: "MuiCircularProgress",
3702
- slot: "Svg",
3703
- overridesResolver: (e, r) => r.svg
3704
- })({
3705
- display: "block"
3706
- // Keeps the progress centered
3707
- }), $a = Er("circle", {
3708
- name: "MuiCircularProgress",
3709
- slot: "Circle",
3710
- overridesResolver: (e, r) => {
3711
- const {
3712
- ownerState: t
3713
- } = e;
3714
- return [r.circle, r[`circle${ie(t.variant)}`], t.disableShrink && r.circleDisableShrink];
3715
- }
3716
- })(({
3717
- ownerState: e,
3718
- theme: r
3719
- }) => _({
3720
- stroke: "currentColor"
3721
- }, e.variant === "determinate" && {
3722
- transition: r.transitions.create("stroke-dashoffset")
3723
- }, e.variant === "indeterminate" && {
3724
- // Some default value that looks fine waiting for the animation to kicks in.
3725
- strokeDasharray: "80px, 200px",
3726
- strokeDashoffset: 0
3727
- // Add the unit to fix a Edge 16 and below bug.
3728
- }), ({
3729
- ownerState: e
3730
- }) => e.variant === "indeterminate" && !e.disableShrink && Xr(Gt || (Gt = xr`
3731
- animation: ${0} 1.4s ease-in-out infinite;
3732
- `), xa)), Cn = /* @__PURE__ */ I.forwardRef(function(r, t) {
3733
- const n = On({
3734
- props: r,
3735
- name: "MuiCircularProgress"
3736
- }), {
3737
- className: o,
3738
- color: s = "primary",
3739
- disableShrink: i = !1,
3740
- size: a = 40,
3741
- style: c,
3742
- thickness: u = 3.6,
3743
- value: l = 0,
3744
- variant: m = "indeterminate"
3745
- } = n, d = ne(n, va), b = _({}, n, {
3746
- color: s,
3747
- disableShrink: i,
3748
- size: a,
3749
- thickness: u,
3750
- value: l,
3751
- variant: m
3752
- }), g = Sa(b), f = {}, p = {}, v = {};
3753
- if (m === "determinate") {
3754
- const C = 2 * Math.PI * ((le - u) / 2);
3755
- f.strokeDasharray = C.toFixed(3), v["aria-valuenow"] = Math.round(l), f.strokeDashoffset = `${((100 - l) / 100 * C).toFixed(3)}px`, p.transform = "rotate(-90deg)";
3756
- }
3757
- return /* @__PURE__ */ re(wa, _({
3758
- className: Jt(g.root, o),
3759
- style: _({
3760
- width: a,
3761
- height: a
3762
- }, p, c),
3763
- ownerState: b,
3764
- ref: t,
3765
- role: "progressbar"
3766
- }, v, d, {
3767
- children: /* @__PURE__ */ re(_a, {
3768
- className: g.svg,
3769
- ownerState: b,
3770
- viewBox: `${le / 2} ${le / 2} ${le} ${le}`,
3771
- children: /* @__PURE__ */ re($a, {
3772
- className: g.circle,
3773
- style: f,
3774
- ownerState: b,
3775
- cx: le,
3776
- cy: le,
3777
- r: (le - u) / 2,
3778
- fill: "none",
3779
- strokeWidth: u
3780
- })
3781
- })
3782
- }));
3783
- });
3784
- process.env.NODE_ENV !== "production" && (Cn.propTypes = {
3785
- // ┌────────────────────────────── Warning ──────────────────────────────┐
3786
- // │ These PropTypes are generated from the TypeScript type definitions. │
3787
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
3788
- // └─────────────────────────────────────────────────────────────────────┘
3789
- /**
3790
- * Override or extend the styles applied to the component.
3791
- */
3792
- classes: y.object,
3793
- /**
3794
- * @ignore
3795
- */
3796
- className: y.string,
3797
- /**
3798
- * The color of the component.
3799
- * It supports both default and custom theme colors, which can be added as shown in the
3800
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
3801
- * @default 'primary'
3802
- */
3803
- color: y.oneOfType([y.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), y.string]),
3804
- /**
3805
- * If `true`, the shrink animation is disabled.
3806
- * This only works if variant is `indeterminate`.
3807
- * @default false
3808
- */
3809
- disableShrink: ls(y.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
3810
- /**
3811
- * The size of the component.
3812
- * If using a number, the pixel unit is assumed.
3813
- * If using a string, you need to provide the CSS unit, e.g. '3rem'.
3814
- * @default 40
3815
- */
3816
- size: y.oneOfType([y.number, y.string]),
3817
- /**
3818
- * @ignore
3819
- */
3820
- style: y.object,
3821
- /**
3822
- * The system prop that allows defining system overrides as well as additional CSS styles.
3823
- */
3824
- sx: y.oneOfType([y.arrayOf(y.oneOfType([y.func, y.object, y.bool])), y.func, y.object]),
3825
- /**
3826
- * The thickness of the circle.
3827
- * @default 3.6
3828
- */
3829
- thickness: y.number,
3830
- /**
3831
- * The value of the progress indicator for the determinate variant.
3832
- * Value between 0 and 100.
3833
- * @default 0
3834
- */
3835
- value: y.number,
3836
- /**
3837
- * The variant to use.
3838
- * Use indeterminate when there is no progress value.
3839
- * @default 'indeterminate'
3840
- */
3841
- variant: y.oneOf(["determinate", "indeterminate"])
3842
- });
3843
- const Oa = Cn, Tn = /* @__PURE__ */ I.createContext();
3844
- process.env.NODE_ENV !== "production" && (Tn.displayName = "GridContext");
3845
- const Kt = Tn;
3846
- function Ca(e) {
3847
- return ur("MuiGrid", e);
3848
- }
3849
- const Ta = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], Pa = ["column-reverse", "column", "row-reverse", "row"], Na = ["nowrap", "wrap-reverse", "wrap"], Re = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], Ve = vn("MuiGrid", [
3850
- "root",
3851
- "container",
3852
- "item",
3853
- "zeroMinWidth",
3854
- // spacings
3855
- ...Ta.map((e) => `spacing-xs-${e}`),
3856
- // direction values
3857
- ...Pa.map((e) => `direction-xs-${e}`),
3858
- // wrap values
3859
- ...Na.map((e) => `wrap-xs-${e}`),
3860
- // grid sizes for all breakpoints
3861
- ...Re.map((e) => `grid-xs-${e}`),
3862
- ...Re.map((e) => `grid-sm-${e}`),
3863
- ...Re.map((e) => `grid-md-${e}`),
3864
- ...Re.map((e) => `grid-lg-${e}`),
3865
- ...Re.map((e) => `grid-xl-${e}`)
3866
- ]), ka = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
3867
- function Ee(e) {
3868
- const r = parseFloat(e);
3869
- return `${r}${String(e).replace(String(r), "") || "px"}`;
3870
- }
3871
- function Ra({
3872
- theme: e,
3873
- ownerState: r
3874
- }) {
3875
- let t;
3876
- return e.breakpoints.keys.reduce((n, o) => {
3877
- let s = {};
3878
- if (r[o] && (t = r[o]), !t)
3879
- return n;
3880
- if (t === !0)
3881
- s = {
3882
- flexBasis: 0,
3883
- flexGrow: 1,
3884
- maxWidth: "100%"
3885
- };
3886
- else if (t === "auto")
3887
- s = {
3888
- flexBasis: "auto",
3889
- flexGrow: 0,
3890
- flexShrink: 0,
3891
- maxWidth: "none",
3892
- width: "auto"
3893
- };
3894
- else {
3895
- const i = lr({
3896
- values: r.columns,
3897
- breakpoints: e.breakpoints.values
3898
- }), a = typeof i == "object" ? i[o] : i;
3899
- if (a == null)
3900
- return n;
3901
- const c = `${Math.round(t / a * 1e8) / 1e6}%`;
3902
- let u = {};
3903
- if (r.container && r.item && r.columnSpacing !== 0) {
3904
- const l = e.spacing(r.columnSpacing);
3905
- if (l !== "0px") {
3906
- const m = `calc(${c} + ${Ee(l)})`;
3907
- u = {
3908
- flexBasis: m,
3909
- maxWidth: m
3910
- };
3911
- }
3912
- }
3913
- s = _({
3914
- flexBasis: c,
3915
- flexGrow: 0,
3916
- maxWidth: c
3917
- }, u);
3918
- }
3919
- return e.breakpoints.values[o] === 0 ? Object.assign(n, s) : n[e.breakpoints.up(o)] = s, n;
3920
- }, {});
3921
- }
3922
- function Aa({
3923
- theme: e,
3924
- ownerState: r
3925
- }) {
3926
- const t = lr({
3927
- values: r.direction,
3928
- breakpoints: e.breakpoints.values
3929
- });
3930
- return X({
3931
- theme: e
3932
- }, t, (n) => {
3933
- const o = {
3934
- flexDirection: n
3935
- };
3936
- return n.indexOf("column") === 0 && (o[`& > .${Ve.item}`] = {
3937
- maxWidth: "none"
3938
- }), o;
3939
- });
3940
- }
3941
- function Pn({
3942
- breakpoints: e,
3943
- values: r
3944
- }) {
3945
- let t = "";
3946
- Object.keys(r).forEach((o) => {
3947
- t === "" && r[o] !== 0 && (t = o);
3948
- });
3949
- const n = Object.keys(e).sort((o, s) => e[o] - e[s]);
3950
- return n.slice(0, n.indexOf(t));
3951
- }
3952
- function Ma({
3953
- theme: e,
3954
- ownerState: r
3955
- }) {
3956
- const {
3957
- container: t,
3958
- rowSpacing: n
3959
- } = r;
3960
- let o = {};
3961
- if (t && n !== 0) {
3962
- const s = lr({
3963
- values: n,
3964
- breakpoints: e.breakpoints.values
3965
- });
3966
- let i;
3967
- typeof s == "object" && (i = Pn({
3968
- breakpoints: e.breakpoints.values,
3969
- values: s
3970
- })), o = X({
3971
- theme: e
3972
- }, s, (a, c) => {
3973
- var u;
3974
- const l = e.spacing(a);
3975
- return l !== "0px" ? {
3976
- marginTop: `-${Ee(l)}`,
3977
- [`& > .${Ve.item}`]: {
3978
- paddingTop: Ee(l)
3979
- }
3980
- } : (u = i) != null && u.includes(c) ? {} : {
3981
- marginTop: 0,
3982
- [`& > .${Ve.item}`]: {
3983
- paddingTop: 0
3984
- }
3985
- };
3986
- });
3987
- }
3988
- return o;
3989
- }
3990
- function Ia({
3991
- theme: e,
3992
- ownerState: r
3993
- }) {
3994
- const {
3995
- container: t,
3996
- columnSpacing: n
3997
- } = r;
3998
- let o = {};
3999
- if (t && n !== 0) {
4000
- const s = lr({
4001
- values: n,
4002
- breakpoints: e.breakpoints.values
4003
- });
4004
- let i;
4005
- typeof s == "object" && (i = Pn({
4006
- breakpoints: e.breakpoints.values,
4007
- values: s
4008
- })), o = X({
4009
- theme: e
4010
- }, s, (a, c) => {
4011
- var u;
4012
- const l = e.spacing(a);
4013
- return l !== "0px" ? {
4014
- width: `calc(100% + ${Ee(l)})`,
4015
- marginLeft: `-${Ee(l)}`,
4016
- [`& > .${Ve.item}`]: {
4017
- paddingLeft: Ee(l)
4018
- }
4019
- } : (u = i) != null && u.includes(c) ? {} : {
4020
- width: "100%",
4021
- marginLeft: 0,
4022
- [`& > .${Ve.item}`]: {
4023
- paddingLeft: 0
4024
- }
4025
- };
4026
- });
4027
- }
4028
- return o;
4029
- }
4030
- function ja(e, r, t = {}) {
4031
- if (!e || e <= 0)
4032
- return [];
4033
- if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
4034
- return [t[`spacing-xs-${String(e)}`]];
4035
- const n = [];
4036
- return r.forEach((o) => {
4037
- const s = e[o];
4038
- Number(s) > 0 && n.push(t[`spacing-${o}-${String(s)}`]);
4039
- }), n;
4040
- }
4041
- const Da = Er("div", {
4042
- name: "MuiGrid",
4043
- slot: "Root",
4044
- overridesResolver: (e, r) => {
4045
- const {
4046
- ownerState: t
4047
- } = e, {
4048
- container: n,
4049
- direction: o,
4050
- item: s,
4051
- spacing: i,
4052
- wrap: a,
4053
- zeroMinWidth: c,
4054
- breakpoints: u
4055
- } = t;
4056
- let l = [];
4057
- n && (l = ja(i, u, r));
4058
- const m = [];
4059
- return u.forEach((d) => {
4060
- const b = t[d];
4061
- b && m.push(r[`grid-${d}-${String(b)}`]);
4062
- }), [r.root, n && r.container, s && r.item, c && r.zeroMinWidth, ...l, o !== "row" && r[`direction-xs-${String(o)}`], a !== "wrap" && r[`wrap-xs-${String(a)}`], ...m];
4063
- }
4064
- })(({
4065
- ownerState: e
4066
- }) => _({
4067
- boxSizing: "border-box"
4068
- }, e.container && {
4069
- display: "flex",
4070
- flexWrap: "wrap",
4071
- width: "100%"
4072
- }, e.item && {
4073
- margin: 0
4074
- // For instance, it's useful when used with a `figure` element.
4075
- }, e.zeroMinWidth && {
4076
- minWidth: 0
4077
- }, e.wrap !== "wrap" && {
4078
- flexWrap: e.wrap
4079
- }), Aa, Ma, Ia, Ra);
4080
- function Fa(e, r) {
4081
- if (!e || e <= 0)
4082
- return [];
4083
- if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
4084
- return [`spacing-xs-${String(e)}`];
4085
- const t = [];
4086
- return r.forEach((n) => {
4087
- const o = e[n];
4088
- if (Number(o) > 0) {
4089
- const s = `spacing-${n}-${String(o)}`;
4090
- t.push(s);
4091
- }
4092
- }), t;
4093
- }
4094
- const Va = (e) => {
4095
- const {
4096
- classes: r,
4097
- container: t,
4098
- direction: n,
4099
- item: o,
4100
- spacing: s,
4101
- wrap: i,
4102
- zeroMinWidth: a,
4103
- breakpoints: c
4104
- } = e;
4105
- let u = [];
4106
- t && (u = Fa(s, c));
4107
- const l = [];
4108
- c.forEach((d) => {
4109
- const b = e[d];
4110
- b && l.push(`grid-${d}-${String(b)}`);
4111
- });
4112
- const m = {
4113
- root: ["root", t && "container", o && "item", a && "zeroMinWidth", ...u, n !== "row" && `direction-xs-${String(n)}`, i !== "wrap" && `wrap-xs-${String(i)}`, ...l]
4114
- };
4115
- return bn(m, Ca, r);
4116
- }, Me = /* @__PURE__ */ I.forwardRef(function(r, t) {
4117
- const n = On({
4118
- props: r,
4119
- name: "MuiGrid"
4120
- }), {
4121
- breakpoints: o
4122
- } = ha(), s = $i(n), {
4123
- className: i,
4124
- columns: a,
4125
- columnSpacing: c,
4126
- component: u = "div",
4127
- container: l = !1,
4128
- direction: m = "row",
4129
- item: d = !1,
4130
- rowSpacing: b,
4131
- spacing: g = 0,
4132
- wrap: f = "wrap",
4133
- zeroMinWidth: p = !1
4134
- } = s, v = ne(s, ka), C = b || g, $ = c || g, S = I.useContext(Kt), h = l ? a || 12 : S, N = {}, O = _({}, v);
4135
- o.keys.forEach((w) => {
4136
- v[w] != null && (N[w] = v[w], delete O[w]);
4137
- });
4138
- const Z = _({}, s, {
4139
- columns: h,
4140
- container: l,
4141
- direction: m,
4142
- item: d,
4143
- rowSpacing: C,
4144
- columnSpacing: $,
4145
- wrap: f,
4146
- zeroMinWidth: p,
4147
- spacing: g
4148
- }, N, {
4149
- breakpoints: o.keys
4150
- }), B = Va(Z);
4151
- return /* @__PURE__ */ re(Kt.Provider, {
4152
- value: h,
4153
- children: /* @__PURE__ */ re(Da, _({
4154
- ownerState: Z,
4155
- className: Jt(B.root, i),
4156
- as: u,
4157
- ref: t
4158
- }, O))
4159
- });
4160
- });
4161
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
4162
- // ┌────────────────────────────── Warning ──────────────────────────────┐
4163
- // │ These PropTypes are generated from the TypeScript type definitions. │
4164
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
4165
- // └─────────────────────────────────────────────────────────────────────┘
4166
- /**
4167
- * The content of the component.
4168
- */
4169
- children: y.node,
4170
- /**
4171
- * Override or extend the styles applied to the component.
4172
- */
4173
- classes: y.object,
4174
- /**
4175
- * @ignore
4176
- */
4177
- className: y.string,
4178
- /**
4179
- * The number of columns.
4180
- * @default 12
4181
- */
4182
- columns: y.oneOfType([y.arrayOf(y.number), y.number, y.object]),
4183
- /**
4184
- * Defines the horizontal space between the type `item` components.
4185
- * It overrides the value of the `spacing` prop.
4186
- */
4187
- columnSpacing: y.oneOfType([y.arrayOf(y.oneOfType([y.number, y.string])), y.number, y.object, y.string]),
4188
- /**
4189
- * The component used for the root node.
4190
- * Either a string to use a HTML element or a component.
4191
- */
4192
- component: y.elementType,
4193
- /**
4194
- * If `true`, the component will have the flex *container* behavior.
4195
- * You should be wrapping *items* with a *container*.
4196
- * @default false
4197
- */
4198
- container: y.bool,
4199
- /**
4200
- * Defines the `flex-direction` style property.
4201
- * It is applied for all screen sizes.
4202
- * @default 'row'
4203
- */
4204
- direction: y.oneOfType([y.oneOf(["column-reverse", "column", "row-reverse", "row"]), y.arrayOf(y.oneOf(["column-reverse", "column", "row-reverse", "row"])), y.object]),
4205
- /**
4206
- * If `true`, the component will have the flex *item* behavior.
4207
- * You should be wrapping *items* with a *container*.
4208
- * @default false
4209
- */
4210
- item: y.bool,
4211
- /**
4212
- * If a number, it sets the number of columns the grid item uses.
4213
- * It can't be greater than the total number of columns of the container (12 by default).
4214
- * If 'auto', the grid item's width matches its content.
4215
- * If false, the prop is ignored.
4216
- * If true, the grid item's width grows to use the space available in the grid container.
4217
- * The value is applied for the `lg` breakpoint and wider screens if not overridden.
4218
- * @default false
4219
- */
4220
- lg: y.oneOfType([y.oneOf(["auto"]), y.number, y.bool]),
4221
- /**
4222
- * If a number, it sets the number of columns the grid item uses.
4223
- * It can't be greater than the total number of columns of the container (12 by default).
4224
- * If 'auto', the grid item's width matches its content.
4225
- * If false, the prop is ignored.
4226
- * If true, the grid item's width grows to use the space available in the grid container.
4227
- * The value is applied for the `md` breakpoint and wider screens if not overridden.
4228
- * @default false
4229
- */
4230
- md: y.oneOfType([y.oneOf(["auto"]), y.number, y.bool]),
4231
- /**
4232
- * Defines the vertical space between the type `item` components.
4233
- * It overrides the value of the `spacing` prop.
4234
- */
4235
- rowSpacing: y.oneOfType([y.arrayOf(y.oneOfType([y.number, y.string])), y.number, y.object, y.string]),
4236
- /**
4237
- * If a number, it sets the number of columns the grid item uses.
4238
- * It can't be greater than the total number of columns of the container (12 by default).
4239
- * If 'auto', the grid item's width matches its content.
4240
- * If false, the prop is ignored.
4241
- * If true, the grid item's width grows to use the space available in the grid container.
4242
- * The value is applied for the `sm` breakpoint and wider screens if not overridden.
4243
- * @default false
4244
- */
4245
- sm: y.oneOfType([y.oneOf(["auto"]), y.number, y.bool]),
4246
- /**
4247
- * Defines the space between the type `item` components.
4248
- * It can only be used on a type `container` component.
4249
- * @default 0
4250
- */
4251
- spacing: y.oneOfType([y.arrayOf(y.oneOfType([y.number, y.string])), y.number, y.object, y.string]),
4252
- /**
4253
- * The system prop that allows defining system overrides as well as additional CSS styles.
4254
- */
4255
- sx: y.oneOfType([y.arrayOf(y.oneOfType([y.func, y.object, y.bool])), y.func, y.object]),
4256
- /**
4257
- * Defines the `flex-wrap` style property.
4258
- * It's applied for all screen sizes.
4259
- * @default 'wrap'
4260
- */
4261
- wrap: y.oneOf(["nowrap", "wrap-reverse", "wrap"]),
4262
- /**
4263
- * If a number, it sets the number of columns the grid item uses.
4264
- * It can't be greater than the total number of columns of the container (12 by default).
4265
- * If 'auto', the grid item's width matches its content.
4266
- * If false, the prop is ignored.
4267
- * If true, the grid item's width grows to use the space available in the grid container.
4268
- * The value is applied for the `xl` breakpoint and wider screens if not overridden.
4269
- * @default false
4270
- */
4271
- xl: y.oneOfType([y.oneOf(["auto"]), y.number, y.bool]),
4272
- /**
4273
- * If a number, it sets the number of columns the grid item uses.
4274
- * It can't be greater than the total number of columns of the container (12 by default).
4275
- * If 'auto', the grid item's width matches its content.
4276
- * If false, the prop is ignored.
4277
- * If true, the grid item's width grows to use the space available in the grid container.
4278
- * The value is applied for all the screen sizes with the lowest priority.
4279
- * @default false
4280
- */
4281
- xs: y.oneOfType([y.oneOf(["auto"]), y.number, y.bool]),
4282
- /**
4283
- * If `true`, it sets `min-width: 0` on the item.
4284
- * Refer to the limitations section of the documentation to better understand the use case.
4285
- * @default false
4286
- */
4287
- zeroMinWidth: y.bool
4288
- });
4289
- if (process.env.NODE_ENV !== "production") {
4290
- const e = ys("Grid", Me);
4291
- Me["propTypes"] = _({}, Me.propTypes, {
4292
- direction: e("container"),
4293
- lg: e("item"),
4294
- md: e("item"),
4295
- sm: e("item"),
4296
- spacing: e("container"),
4297
- wrap: e("container"),
4298
- xs: e("item"),
4299
- zeroMinWidth: e("item")
4300
- });
4301
- }
4302
- const za = Me, qt = window.location.href, Nn = An({}), qa = ({ children: e, baseUrl: r, userData: t }) => {
4303
- const n = () => {
4304
- window.location.href = `${r}/authentication/login?callbackUrl=${qt}`;
4305
- }, o = () => {
4306
- window.location.href = `${r}/authentication/logout?callbackUrl=${qt}`;
4307
- };
4308
- return t != null && t.isFetching ? /* @__PURE__ */ re(
4309
- za,
4310
- {
4311
- container: !0,
4312
- justifyContent: "center",
4313
- alignItems: "center",
4314
- sx: { minHeight: "100vh" },
4315
- children: /* @__PURE__ */ re(Oa, {})
4316
- }
4317
- ) : t != null && t.isError ? (n(), null) : /* @__PURE__ */ re(
4318
- Nn.Provider,
4319
- {
4320
- value: { user: t == null ? void 0 : t.data, login: n, logout: o },
4321
- children: e
4322
- }
4323
- );
4324
- }, Ha = () => {
4325
- const { login: e, logout: r, user: t } = Xt(Nn);
4326
- return { login: e, logout: r, user: t };
4327
- };
4328
- function Xa({
4329
- config: e,
4330
- pushError: r = jn
4331
- }) {
4332
- const t = Zt.create(e);
13
+ const t = P.create(r);
4333
14
  t.interceptors.request.use(
4334
- async (o) => (o.headers = {
15
+ async (e) => (e.headers = {
4335
16
  Accept: "application/json",
4336
17
  "Content-Type": "application/json"
4337
- }, o),
4338
- (o) => Promise.reject(o)
18
+ }, e),
19
+ (e) => Promise.reject(e)
4339
20
  ), t.interceptors.response.use(
4340
- (o) => o,
4341
- async (o) => n(o)
21
+ (e) => e,
22
+ async (e) => s(e)
4342
23
  );
4343
- function n(o) {
4344
- var i, a, c, u, l, m;
4345
- console.error("Error 🚨:", o);
4346
- const s = o == null ? void 0 : o.config;
4347
- if (((i = o.response) == null ? void 0 : i.status) === 401 && o.response.data.errorMessage === ot.TOKEN_EXPIRED && !s._retry && (s._retry = !0, t.post("/authentication/api/v1/auth/refresh-token").then(() => t(s)).catch(() => st(e.baseURL))), ((a = o.response) == null ? void 0 : a.status) === 401 && (((c = o.response) == null ? void 0 : c.data.errorMessage) !== ot.TOKEN_EXPIRED || !((u = o.response) != null && u.data.errorMessage)) && st(e.baseURL), o.response.status !== 401) {
4348
- const d = ((l = o.response) == null ? void 0 : l.data) && ((m = o.response.data) == null ? void 0 : m.errorMessage) || "Something went wrong!";
4349
- return r(d), Promise.reject(o.response.data);
24
+ function s(e) {
25
+ var i, u, c, p, m, h;
26
+ console.error("Error 🚨:", e);
27
+ const o = e == null ? void 0 : e.config;
28
+ if (((i = e.response) == null ? void 0 : i.status) === 401 && e.response.data.errorMessage === f.TOKEN_EXPIRED && !o._retry && (o._retry = !0, t.post("/authentication/api/v1/auth/refresh-token").then(() => t(o)).catch(() => E(r.baseURL))), ((u = e.response) == null ? void 0 : u.status) === 401 && (((c = e.response) == null ? void 0 : c.data.errorMessage) !== f.TOKEN_EXPIRED || !((p = e.response) != null && p.data.errorMessage)) && E(r.baseURL), e.response.status !== 401) {
29
+ const l = ((m = e.response) == null ? void 0 : m.data) && ((h = e.response.data) == null ? void 0 : h.errorMessage) || "Something went wrong!";
30
+ return n(l), Promise.reject(e.response.data);
4350
31
  }
4351
- return Promise.reject(o);
32
+ return Promise.reject(e);
4352
33
  }
4353
34
  return t;
4354
35
  }
4355
- const La = (e) => {
4356
- const [r, t] = Mn([]);
4357
- return In(() => {
4358
- Zt.get(`${e}/user-management/api/v1/users/my-account/permissions`, {
36
+ const v = (r) => {
37
+ const [n, t] = y([]);
38
+ return A(() => {
39
+ P.get(`${r}/user-management/api/v1/users/my-account/permissions`, {
4359
40
  withCredentials: !0
4360
- }).then((n) => t(n.data)).catch((n) => {
4361
- console.error("Getting user permission error:", n);
4362
- });
4363
- }, [e]), r;
4364
- }, kn = (e) => (r, t) => {
4365
- const n = La(e);
4366
- return t ? r.every(
4367
- (o) => n == null ? void 0 : n.includes(o)
4368
- ) : r.some(
4369
- (o) => n == null ? void 0 : n.includes(o)
41
+ }).then((s) => t(s.data)).catch((s) => {
42
+ console.error("Getting user permission error:", s);
43
+ });
44
+ }, [r]), n;
45
+ }, g = (r) => (n, t) => {
46
+ const s = v(r);
47
+ return t ? n.every(
48
+ (e) => s == null ? void 0 : s.includes(e)
49
+ ) : n.some(
50
+ (e) => s == null ? void 0 : s.includes(e)
4370
51
  );
4371
- }, Ja = ({
4372
- baseUrl: e,
4373
- accessWith: r,
52
+ }, O = ({
53
+ baseUrl: r,
54
+ accessWith: n,
4374
55
  requireAll: t,
4375
- children: n
4376
- }) => kn(e)(r, t) ? /* @__PURE__ */ re(Ht, { children: n }) : null, Za = ({
4377
- accessWith: e,
4378
- requireAll: r,
56
+ children: s
57
+ }) => g(r)(n, t) ? /* @__PURE__ */ a(d, { children: s }) : null, T = ({
58
+ accessWith: r,
59
+ requireAll: n,
4379
60
  baseUrl: t,
4380
- unAuthorizedPath: n,
4381
- children: o
4382
- }) => kn(t)(e, r) ? /* @__PURE__ */ re(Ht, { children: o }) : /* @__PURE__ */ re(Dn, { to: n, replace: !0 });
61
+ unAuthorizedPath: s,
62
+ children: e
63
+ }) => g(t)(r, n) ? /* @__PURE__ */ a(d, { children: e }) : /* @__PURE__ */ a(j, { to: s, replace: !0 });
4383
64
  export {
4384
- qa as AuthProvider,
4385
- Ja as HasPermission,
4386
- Za as PermissionRoute,
4387
- Xa as getAxiosInstance,
4388
- kn as getUseHasPermission,
4389
- Ha as useAuth,
4390
- La as useGetPermission
65
+ D as AuthProvider,
66
+ O as HasPermission,
67
+ T as PermissionRoute,
68
+ N as getAxiosInstance,
69
+ g as getUseHasPermission,
70
+ H as search,
71
+ K as useAuth,
72
+ v as useGetPermission
4391
73
  };