@cm-sigoo-temp/ui 0.2.28 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/api/permisos.d.ts +1 -1
- package/dist/lib/cm-sigoo-temp-ui.js +692 -675
- package/dist/lib/cm-sigoo-temp-ui.js.map +1 -1
- package/dist/lib/components/Auth/Keycloak/Keycloak.d.ts +2 -1
- package/dist/lib/components/Auth/tipos.d.ts +1 -0
- package/dist/lib/components/Auth/utils.d.ts +2 -1
- package/package.json +2 -1
|
@@ -6,16 +6,16 @@ import rt, { useCallback as ye, useMemo as Ze, useState as Er, createElement as
|
|
|
6
6
|
import { createTheme as Jn, responsiveFontSizes as Gn, ListItemIcon as Xe, Icon as Tr, Tooltip as br, ListItem as ve, ListItemButton as xe, ListItemText as he, ListSubheader as tt, Divider as Ar, Drawer as Yn, Toolbar as pt, List as qn, Skeleton as fe, Typography as Se, Box as le, Grid as sr, ButtonBase as dn, Paper as Zn, createSvgIcon as mt, Avatar as Xn, CircularProgress as fn, Menu as eo, MenuItem as nt, TextField as ro, AppBar as to, Zoom as no, IconButton as St, Collapse as oo, LinearProgress as ao, Popover as io, ThemeProvider as so, Button as pn } from "@mui/material";
|
|
7
7
|
import co from "@emotion/styled";
|
|
8
8
|
import "@emotion/react";
|
|
9
|
-
const lo = async (e) => {
|
|
10
|
-
const
|
|
9
|
+
const lo = async (e, r) => {
|
|
10
|
+
const t = new URL(
|
|
11
11
|
"https://cm-autorizaciones-backend-55480048671.us-central1.run.app/api/v1/permisosUsuario/generarPermisosUsuario"
|
|
12
12
|
);
|
|
13
|
-
return (await fetch(
|
|
13
|
+
return (await fetch(t, {
|
|
14
14
|
method: "post",
|
|
15
15
|
body: JSON.stringify({
|
|
16
16
|
usuario: e,
|
|
17
17
|
tipo: "web",
|
|
18
|
-
plataforma:
|
|
18
|
+
plataforma: r
|
|
19
19
|
}),
|
|
20
20
|
headers: {
|
|
21
21
|
ACcept: "application/json",
|
|
@@ -85,7 +85,7 @@ function hn(e) {
|
|
|
85
85
|
interval: 5
|
|
86
86
|
};
|
|
87
87
|
r.didInitialize = !1;
|
|
88
|
-
var l = !0, u =
|
|
88
|
+
var l = !0, u = ue(console.info), f = ue(console.warn);
|
|
89
89
|
globalThis.isSecureContext || f(
|
|
90
90
|
`[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.
|
|
91
91
|
Continuing to run your application insecurely will lead to unexpected behavior and breakage.
|
|
@@ -131,9 +131,9 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
131
131
|
y.setError(m);
|
|
132
132
|
});
|
|
133
133
|
var b = U();
|
|
134
|
-
function
|
|
134
|
+
function k() {
|
|
135
135
|
var m = function(P) {
|
|
136
|
-
P || (
|
|
136
|
+
P || ($.prompt = "none"), i.locale && ($.locale = i.locale), r.login($).then(function() {
|
|
137
137
|
A.setSuccess();
|
|
138
138
|
}).catch(function(z) {
|
|
139
139
|
A.setError(z);
|
|
@@ -143,12 +143,12 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
143
143
|
P.setAttribute("src", z), P.setAttribute("sandbox", "allow-storage-access-by-user-activation allow-scripts allow-same-origin"), P.setAttribute("title", "keycloak-silent-check-sso"), P.style.display = "none", document.body.appendChild(P);
|
|
144
144
|
var I = function(se) {
|
|
145
145
|
if (!(se.origin !== window.location.origin || P.contentWindow !== se.source)) {
|
|
146
|
-
var
|
|
147
|
-
_(
|
|
146
|
+
var de = R(se.data);
|
|
147
|
+
_(de, A), document.body.removeChild(P), window.removeEventListener("message", I);
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
window.addEventListener("message", I);
|
|
151
|
-
},
|
|
151
|
+
}, $ = {};
|
|
152
152
|
switch (i.onLoad) {
|
|
153
153
|
case "check-sso":
|
|
154
154
|
a.enable ? ce().then(function() {
|
|
@@ -174,20 +174,20 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
174
174
|
}).catch(function(T) {
|
|
175
175
|
A.setError(T);
|
|
176
176
|
});
|
|
177
|
-
i.token && i.refreshToken ? (
|
|
177
|
+
i.token && i.refreshToken ? (V(i.token, i.refreshToken, i.idToken), a.enable ? ce().then(function() {
|
|
178
178
|
c().then(function(T) {
|
|
179
|
-
T ? (r.onAuthSuccess && r.onAuthSuccess(), A.setSuccess(),
|
|
179
|
+
T ? (r.onAuthSuccess && r.onAuthSuccess(), A.setSuccess(), H()) : A.setSuccess();
|
|
180
180
|
}).catch(function(T) {
|
|
181
181
|
A.setError(T);
|
|
182
182
|
});
|
|
183
183
|
}) : r.updateToken(-1).then(function() {
|
|
184
184
|
r.onAuthSuccess && r.onAuthSuccess(), A.setSuccess();
|
|
185
185
|
}).catch(function(T) {
|
|
186
|
-
r.onAuthError && r.onAuthError(), i.onLoad ?
|
|
187
|
-
})) : i.onLoad ?
|
|
186
|
+
r.onAuthError && r.onAuthError(), i.onLoad ? k() : A.setError(T);
|
|
187
|
+
})) : i.onLoad ? k() : A.setSuccess();
|
|
188
188
|
}
|
|
189
189
|
return b.then(function() {
|
|
190
|
-
|
|
190
|
+
M().then(g).catch(function(m) {
|
|
191
191
|
y.setError(m);
|
|
192
192
|
});
|
|
193
193
|
}), b.catch(function(m) {
|
|
@@ -209,13 +209,13 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
209
209
|
A[b] = s.charCodeAt(y[b] % s.length);
|
|
210
210
|
return String.fromCharCode.apply(null, A);
|
|
211
211
|
}
|
|
212
|
-
async function
|
|
212
|
+
async function x(i, s) {
|
|
213
213
|
if (i !== "S256")
|
|
214
214
|
throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${i}'.`);
|
|
215
215
|
const y = new Uint8Array(await bo(s));
|
|
216
216
|
return yo(y).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function E(i) {
|
|
219
219
|
var s = {
|
|
220
220
|
id_token: {
|
|
221
221
|
acr: i
|
|
@@ -224,28 +224,28 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
224
224
|
return JSON.stringify(s);
|
|
225
225
|
}
|
|
226
226
|
r.createLoginUrl = async function(i) {
|
|
227
|
-
var s =
|
|
227
|
+
var s = j(), y = j(), A = t.redirectUri(i), b = {
|
|
228
228
|
state: s,
|
|
229
229
|
nonce: y,
|
|
230
230
|
redirectUri: encodeURIComponent(A),
|
|
231
231
|
loginOptions: i
|
|
232
232
|
};
|
|
233
233
|
i && i.prompt && (b.prompt = i.prompt);
|
|
234
|
-
var
|
|
235
|
-
i && i.action == "register" ?
|
|
234
|
+
var k;
|
|
235
|
+
i && i.action == "register" ? k = r.endpoints.register() : k = r.endpoints.authorize();
|
|
236
236
|
var g = i && i.scope || r.scope;
|
|
237
237
|
g ? g.indexOf("openid") === -1 && (g = "openid " + g) : g = "openid";
|
|
238
|
-
var m =
|
|
238
|
+
var m = k + "?client_id=" + encodeURIComponent(r.clientId) + "&redirect_uri=" + encodeURIComponent(A) + "&state=" + encodeURIComponent(s) + "&response_mode=" + encodeURIComponent(r.responseMode) + "&response_type=" + encodeURIComponent(r.responseType) + "&scope=" + encodeURIComponent(g);
|
|
239
239
|
if (l && (m = m + "&nonce=" + encodeURIComponent(y)), i && i.prompt && (m += "&prompt=" + encodeURIComponent(i.prompt)), i && typeof i.maxAge == "number" && (m += "&max_age=" + encodeURIComponent(i.maxAge)), i && i.loginHint && (m += "&login_hint=" + encodeURIComponent(i.loginHint)), i && i.idpHint && (m += "&kc_idp_hint=" + encodeURIComponent(i.idpHint)), i && i.action && i.action != "register" && (m += "&kc_action=" + encodeURIComponent(i.action)), i && i.locale && (m += "&ui_locales=" + encodeURIComponent(i.locale)), i && i.acr) {
|
|
240
|
-
var T =
|
|
240
|
+
var T = E(i.acr);
|
|
241
241
|
m += "&claims=" + encodeURIComponent(T);
|
|
242
242
|
}
|
|
243
243
|
if ((i && i.acrValues || r.acrValues) && (m += "&acr_values=" + encodeURIComponent(i.acrValues || r.acrValues)), r.pkceMethod)
|
|
244
244
|
try {
|
|
245
|
-
const
|
|
246
|
-
b.pkceCodeVerifier =
|
|
247
|
-
} catch (
|
|
248
|
-
throw new Error("Failed to generate PKCE challenge.", { cause:
|
|
245
|
+
const $ = w(96), P = await x(r.pkceMethod, $);
|
|
246
|
+
b.pkceCodeVerifier = $, m += "&code_challenge=" + P, m += "&code_challenge_method=" + r.pkceMethod;
|
|
247
|
+
} catch ($) {
|
|
248
|
+
throw new Error("Failed to generate PKCE challenge.", { cause: $ });
|
|
249
249
|
}
|
|
250
250
|
return o.add(b), m;
|
|
251
251
|
}, r.logout = function(i) {
|
|
@@ -260,7 +260,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
260
260
|
}, r.createRegisterUrl = async function(i) {
|
|
261
261
|
return i || (i = {}), i.action = "register", await r.createLoginUrl(i);
|
|
262
262
|
}, r.createAccountUrl = function(i) {
|
|
263
|
-
var s =
|
|
263
|
+
var s = v(), y = void 0;
|
|
264
264
|
return typeof s < "u" && (y = s + "/account?referrer=" + encodeURIComponent(r.clientId) + "&referrer_uri=" + encodeURIComponent(t.redirectUri(i))), y;
|
|
265
265
|
}, r.accountManagement = function() {
|
|
266
266
|
return t.accountManagement();
|
|
@@ -273,7 +273,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
273
273
|
var y = r.resourceAccess[s || r.clientId];
|
|
274
274
|
return !!y && y.roles.indexOf(i) >= 0;
|
|
275
275
|
}, r.loadUserProfile = function() {
|
|
276
|
-
var i =
|
|
276
|
+
var i = v() + "/account", s = new XMLHttpRequest();
|
|
277
277
|
s.open("GET", i, !0), s.setRequestHeader("Accept", "application/json"), s.setRequestHeader("Authorization", "bearer " + r.token);
|
|
278
278
|
var y = F();
|
|
279
279
|
return s.onreadystatechange = function() {
|
|
@@ -308,17 +308,17 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
308
308
|
if (i == -1 ? (b = !0, u("[KEYCLOAK] Refreshing token: forced refresh")) : (!r.tokenParsed || r.isTokenExpired(i)) && (b = !0, u("[KEYCLOAK] Refreshing token: token expired")), !b)
|
|
309
309
|
s.setSuccess(!1);
|
|
310
310
|
else {
|
|
311
|
-
var
|
|
311
|
+
var k = "grant_type=refresh_token&refresh_token=" + r.refreshToken, g = r.endpoints.token();
|
|
312
312
|
if (n.push(s), n.length == 1) {
|
|
313
313
|
var m = new XMLHttpRequest();
|
|
314
|
-
m.open("POST", g, !0), m.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), m.withCredentials = !0,
|
|
314
|
+
m.open("POST", g, !0), m.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), m.withCredentials = !0, k += "&client_id=" + encodeURIComponent(r.clientId);
|
|
315
315
|
var T = (/* @__PURE__ */ new Date()).getTime();
|
|
316
316
|
m.onreadystatechange = function() {
|
|
317
317
|
if (m.readyState == 4)
|
|
318
318
|
if (m.status == 200) {
|
|
319
319
|
u("[KEYCLOAK] Token refreshed"), T = (T + (/* @__PURE__ */ new Date()).getTime()) / 2;
|
|
320
|
-
var
|
|
321
|
-
|
|
320
|
+
var $ = JSON.parse(m.responseText);
|
|
321
|
+
V($.access_token, $.refresh_token, $.id_token, T), r.onAuthRefreshSuccess && r.onAuthRefreshSuccess();
|
|
322
322
|
for (var P = n.pop(); P != null; P = n.pop())
|
|
323
323
|
P.setSuccess(!0);
|
|
324
324
|
} else {
|
|
@@ -326,7 +326,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
326
326
|
for (var P = n.pop(); P != null; P = n.pop())
|
|
327
327
|
P.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.");
|
|
328
328
|
}
|
|
329
|
-
}, m.send(
|
|
329
|
+
}, m.send(k);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
};
|
|
@@ -341,9 +341,9 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
341
341
|
y();
|
|
342
342
|
return s.promise;
|
|
343
343
|
}, r.clearToken = function() {
|
|
344
|
-
r.token && (
|
|
344
|
+
r.token && (V(null, null, null), r.onAuthLogout && r.onAuthLogout(), r.loginRequired && r.login());
|
|
345
345
|
};
|
|
346
|
-
function
|
|
346
|
+
function v() {
|
|
347
347
|
if (typeof r.authServerUrl < "u")
|
|
348
348
|
return r.authServerUrl.charAt(r.authServerUrl.length - 1) == "/" ? r.authServerUrl + "realms/" + encodeURIComponent(r.realm) : r.authServerUrl + "/realms/" + encodeURIComponent(r.realm);
|
|
349
349
|
}
|
|
@@ -351,7 +351,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
351
351
|
return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
|
|
352
352
|
}
|
|
353
353
|
function _(i, s) {
|
|
354
|
-
var y = i.code, A = i.error, b = i.prompt,
|
|
354
|
+
var y = i.code, A = i.error, b = i.prompt, k = (/* @__PURE__ */ new Date()).getTime();
|
|
355
355
|
if (i.kc_action_status && r.onActionUpdate && r.onActionUpdate(i.kc_action_status, i.kc_action), A) {
|
|
356
356
|
if (b != "none")
|
|
357
357
|
if (i.error_description && i.error_description === "authentication_expired")
|
|
@@ -365,18 +365,18 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
365
365
|
return;
|
|
366
366
|
} else r.flow != "standard" && (i.access_token || i.id_token) && P(i.access_token, null, i.id_token, !0);
|
|
367
367
|
if (r.flow != "implicit" && y) {
|
|
368
|
-
var m = "code=" + y + "&grant_type=authorization_code", T = r.endpoints.token(),
|
|
369
|
-
|
|
370
|
-
if (
|
|
371
|
-
if (
|
|
372
|
-
var z = JSON.parse(
|
|
373
|
-
P(z.access_token, z.refresh_token, z.id_token, r.flow === "standard"),
|
|
368
|
+
var m = "code=" + y + "&grant_type=authorization_code", T = r.endpoints.token(), $ = new XMLHttpRequest();
|
|
369
|
+
$.open("POST", T, !0), $.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), m += "&client_id=" + encodeURIComponent(r.clientId), m += "&redirect_uri=" + i.redirectUri, i.pkceCodeVerifier && (m += "&code_verifier=" + i.pkceCodeVerifier), $.withCredentials = !0, $.onreadystatechange = function() {
|
|
370
|
+
if ($.readyState == 4)
|
|
371
|
+
if ($.status == 200) {
|
|
372
|
+
var z = JSON.parse($.responseText);
|
|
373
|
+
P(z.access_token, z.refresh_token, z.id_token, r.flow === "standard"), H();
|
|
374
374
|
} else
|
|
375
375
|
r.onAuthError && r.onAuthError(), s && s.setError();
|
|
376
|
-
},
|
|
376
|
+
}, $.send(m);
|
|
377
377
|
}
|
|
378
|
-
function P(z, I, se,
|
|
379
|
-
|
|
378
|
+
function P(z, I, se, de) {
|
|
379
|
+
k = (k + (/* @__PURE__ */ new Date()).getTime()) / 2, V(z, I, se, k), l && r.idTokenParsed && r.idTokenParsed.nonce != i.storedNonce ? (u("[KEYCLOAK] Invalid nonce, clearing token"), r.clearToken(), s && s.setError()) : de && (r.onAuthSuccess && r.onAuthSuccess(), s && s.setSuccess());
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
function U() {
|
|
@@ -410,25 +410,25 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
410
410
|
}
|
|
411
411
|
} : r.endpoints = {
|
|
412
412
|
authorize: function() {
|
|
413
|
-
return
|
|
413
|
+
return v() + "/protocol/openid-connect/auth";
|
|
414
414
|
},
|
|
415
415
|
token: function() {
|
|
416
|
-
return
|
|
416
|
+
return v() + "/protocol/openid-connect/token";
|
|
417
417
|
},
|
|
418
418
|
logout: function() {
|
|
419
|
-
return
|
|
419
|
+
return v() + "/protocol/openid-connect/logout";
|
|
420
420
|
},
|
|
421
421
|
checkSessionIframe: function() {
|
|
422
|
-
return
|
|
422
|
+
return v() + "/protocol/openid-connect/login-status-iframe.html";
|
|
423
423
|
},
|
|
424
424
|
thirdPartyCookiesIframe: function() {
|
|
425
|
-
return
|
|
425
|
+
return v() + "/protocol/openid-connect/3p-cookies/step1.html";
|
|
426
426
|
},
|
|
427
427
|
register: function() {
|
|
428
|
-
return
|
|
428
|
+
return v() + "/protocol/openid-connect/registrations";
|
|
429
429
|
},
|
|
430
430
|
userinfo: function() {
|
|
431
|
-
return
|
|
431
|
+
return v() + "/protocol/openid-connect/userinfo";
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
}
|
|
@@ -436,7 +436,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
436
436
|
var A = new XMLHttpRequest();
|
|
437
437
|
A.open("GET", s, !0), A.setRequestHeader("Accept", "application/json"), A.onreadystatechange = function() {
|
|
438
438
|
if (A.readyState == 4)
|
|
439
|
-
if (A.status == 200 ||
|
|
439
|
+
if (A.status == 200 || B(A)) {
|
|
440
440
|
var g = JSON.parse(A.responseText);
|
|
441
441
|
r.authServerUrl = g["auth-server-url"], r.realm = g.realm, r.clientId = g.resource, y(null), i.setSuccess();
|
|
442
442
|
} else
|
|
@@ -448,12 +448,12 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
448
448
|
if (!b)
|
|
449
449
|
r.authServerUrl = e.url, r.realm = e.realm, y(null), i.setSuccess();
|
|
450
450
|
else if (typeof b == "string") {
|
|
451
|
-
var
|
|
452
|
-
b.charAt(b.length - 1) == "/" ?
|
|
451
|
+
var k;
|
|
452
|
+
b.charAt(b.length - 1) == "/" ? k = b + ".well-known/openid-configuration" : k = b + "/.well-known/openid-configuration";
|
|
453
453
|
var A = new XMLHttpRequest();
|
|
454
|
-
A.open("GET",
|
|
454
|
+
A.open("GET", k, !0), A.setRequestHeader("Accept", "application/json"), A.onreadystatechange = function() {
|
|
455
455
|
if (A.readyState == 4)
|
|
456
|
-
if (A.status == 200 ||
|
|
456
|
+
if (A.status == 200 || B(A)) {
|
|
457
457
|
var m = JSON.parse(A.responseText);
|
|
458
458
|
y(m), i.setSuccess();
|
|
459
459
|
} else
|
|
@@ -464,10 +464,10 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
464
464
|
}
|
|
465
465
|
return i.promise;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function B(i) {
|
|
468
468
|
return i.status == 0 && i.responseText && i.responseURL.startsWith("file:");
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function V(i, s, y, A) {
|
|
471
471
|
if (r.tokenTimeoutHandle && (clearTimeout(r.tokenTimeoutHandle), r.tokenTimeoutHandle = null), s ? (r.refreshToken = s, r.refreshTokenParsed = Fr(s)) : (delete r.refreshToken, delete r.refreshTokenParsed), y ? (r.idToken = y, r.idTokenParsed = Fr(y)) : (delete r.idToken, delete r.idTokenParsed), i) {
|
|
472
472
|
if (r.token = i, r.tokenParsed = Fr(i), r.sessionId = r.tokenParsed.sid, r.authenticated = !0, r.subject = r.tokenParsed.sub, r.realmAccess = r.tokenParsed.realm_access, r.resourceAccess = r.tokenParsed.resource_access, A && (r.timeSkew = Math.floor(A / 1e3) - r.tokenParsed.iat), r.timeSkew != null && (u("[KEYCLOAK] Estimated time difference between browser and server is " + r.timeSkew + " seconds"), r.onTokenExpired)) {
|
|
473
473
|
var b = (r.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + r.timeSkew) * 1e3;
|
|
@@ -476,7 +476,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
476
476
|
} else
|
|
477
477
|
delete r.token, delete r.tokenParsed, delete r.subject, delete r.realmAccess, delete r.resourceAccess, r.authenticated = !1;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function j() {
|
|
480
480
|
if (typeof crypto > "u" || typeof crypto.randomUUID > "u")
|
|
481
481
|
throw new Error("Web Crypto API is not available.");
|
|
482
482
|
return crypto.randomUUID();
|
|
@@ -502,22 +502,22 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
502
502
|
break;
|
|
503
503
|
}
|
|
504
504
|
s.push("error"), s.push("error_description"), s.push("error_uri");
|
|
505
|
-
var y = i.indexOf("?"), A = i.indexOf("#"), b,
|
|
506
|
-
if (r.responseMode === "query" && y !== -1 ? (b = i.substring(0, y),
|
|
505
|
+
var y = i.indexOf("?"), A = i.indexOf("#"), b, k;
|
|
506
|
+
if (r.responseMode === "query" && y !== -1 ? (b = i.substring(0, y), k = W(i.substring(y + 1, A !== -1 ? A : i.length), s), k.paramsString !== "" && (b += "?" + k.paramsString), A !== -1 && (b += i.substring(A))) : r.responseMode === "fragment" && A !== -1 && (b = i.substring(0, A), k = W(i.substring(A + 1), s), k.paramsString !== "" && (b += "#" + k.paramsString)), k && k.oauthParams) {
|
|
507
507
|
if (r.flow === "standard" || r.flow === "hybrid") {
|
|
508
|
-
if ((
|
|
509
|
-
return
|
|
510
|
-
} else if (r.flow === "implicit" && (
|
|
511
|
-
return
|
|
508
|
+
if ((k.oauthParams.code || k.oauthParams.error) && k.oauthParams.state)
|
|
509
|
+
return k.oauthParams.newUrl = b, k.oauthParams;
|
|
510
|
+
} else if (r.flow === "implicit" && (k.oauthParams.access_token || k.oauthParams.error) && k.oauthParams.state)
|
|
511
|
+
return k.oauthParams.newUrl = b, k.oauthParams;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function W(i, s) {
|
|
515
515
|
for (var y = i.split("&"), A = {
|
|
516
516
|
paramsString: "",
|
|
517
517
|
oauthParams: {}
|
|
518
518
|
}, b = 0; b < y.length; b++) {
|
|
519
|
-
var
|
|
520
|
-
s.indexOf(g) !== -1 ? A.oauthParams[g] = y[b].slice(
|
|
519
|
+
var k = y[b].indexOf("="), g = y[b].slice(0, k);
|
|
520
|
+
s.indexOf(g) !== -1 ? A.oauthParams[g] = y[b].slice(k + 1) : (A.paramsString !== "" && (A.paramsString += "&"), A.paramsString += y[b]);
|
|
521
521
|
}
|
|
522
522
|
return A;
|
|
523
523
|
}
|
|
@@ -534,8 +534,8 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
534
534
|
i.resolve = s, i.reject = y;
|
|
535
535
|
}), i;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
var A = null, b = new Promise(function(
|
|
537
|
+
function re(i, s, y) {
|
|
538
|
+
var A = null, b = new Promise(function(k, g) {
|
|
539
539
|
A = setTimeout(function() {
|
|
540
540
|
g({ error: y });
|
|
541
541
|
}, s);
|
|
@@ -558,18 +558,18 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
558
558
|
var A = function(b) {
|
|
559
559
|
if (!(b.origin !== a.iframeOrigin || a.iframe.contentWindow !== b.source) && (b.data == "unchanged" || b.data == "changed" || b.data == "error")) {
|
|
560
560
|
b.data != "unchanged" && r.clearToken();
|
|
561
|
-
for (var
|
|
562
|
-
var m =
|
|
561
|
+
for (var k = a.callbackList.splice(0, a.callbackList.length), g = k.length - 1; g >= 0; --g) {
|
|
562
|
+
var m = k[g];
|
|
563
563
|
b.data == "error" ? m.setError() : m.setSuccess(b.data == "unchanged");
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
return window.addEventListener("message", A, !1), i.promise;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function H() {
|
|
570
570
|
a.enable && r.token && setTimeout(function() {
|
|
571
571
|
c().then(function(i) {
|
|
572
|
-
i &&
|
|
572
|
+
i && H();
|
|
573
573
|
});
|
|
574
574
|
}, a.interval * 1e3);
|
|
575
575
|
}
|
|
@@ -584,7 +584,7 @@ For more information see: https://developer.mozilla.org/en-US/docs/Web/Security/
|
|
|
584
584
|
i.setSuccess();
|
|
585
585
|
return i.promise;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function M() {
|
|
588
588
|
var i = F();
|
|
589
589
|
if ((a.enable || r.silentCheckSsoRedirectUri) && typeof r.endpoints.thirdPartyCookiesIframe == "function") {
|
|
590
590
|
var s = document.createElement("iframe");
|
|
@@ -602,7 +602,7 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
602
602
|
window.addEventListener("message", y, !1);
|
|
603
603
|
} else
|
|
604
604
|
i.setSuccess();
|
|
605
|
-
return
|
|
605
|
+
return re(i.promise, r.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
|
|
606
606
|
}
|
|
607
607
|
function O(i) {
|
|
608
608
|
if (!i || i == "default")
|
|
@@ -617,12 +617,12 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
617
617
|
}
|
|
618
618
|
const T = document.createElement("form");
|
|
619
619
|
T.setAttribute("method", "POST"), T.setAttribute("action", r.createLogoutUrl(g)), T.style.display = "none";
|
|
620
|
-
const
|
|
620
|
+
const $ = {
|
|
621
621
|
id_token_hint: r.idToken,
|
|
622
622
|
client_id: r.clientId,
|
|
623
623
|
post_logout_redirect_uri: t.redirectUri(g, !1)
|
|
624
624
|
};
|
|
625
|
-
for (const [P, z] of Object.entries(
|
|
625
|
+
for (const [P, z] of Object.entries($)) {
|
|
626
626
|
const I = document.createElement("input");
|
|
627
627
|
I.setAttribute("type", "hidden"), I.setAttribute("name", P), I.setAttribute("value", z), T.appendChild(I);
|
|
628
628
|
}
|
|
@@ -658,46 +658,46 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
658
658
|
}, b = function(g) {
|
|
659
659
|
var m = y(g);
|
|
660
660
|
return m.location = "no", g && g.prompt == "none" && (m.hidden = "yes"), A(m);
|
|
661
|
-
},
|
|
661
|
+
}, k = function() {
|
|
662
662
|
return r.redirectUri || "http://localhost";
|
|
663
663
|
};
|
|
664
664
|
return {
|
|
665
665
|
login: async function(g) {
|
|
666
|
-
var m = F(), T = b(g),
|
|
666
|
+
var m = F(), T = b(g), $ = await r.createLoginUrl(g), P = s($, "_blank", T), z = !1, I = !1, se = function() {
|
|
667
667
|
I = !0, P.close();
|
|
668
668
|
};
|
|
669
|
-
return P.addEventListener("loadstart", function(
|
|
670
|
-
if (
|
|
671
|
-
var We = R(
|
|
669
|
+
return P.addEventListener("loadstart", function(de) {
|
|
670
|
+
if (de.url.indexOf(k()) == 0) {
|
|
671
|
+
var We = R(de.url);
|
|
672
672
|
_(We, m), se(), z = !0;
|
|
673
673
|
}
|
|
674
|
-
}), P.addEventListener("loaderror", function(
|
|
674
|
+
}), P.addEventListener("loaderror", function(de) {
|
|
675
675
|
if (!z)
|
|
676
|
-
if (
|
|
677
|
-
var We = R(
|
|
676
|
+
if (de.url.indexOf(k()) == 0) {
|
|
677
|
+
var We = R(de.url);
|
|
678
678
|
_(We, m), se(), z = !0;
|
|
679
679
|
} else
|
|
680
680
|
m.setError(), se();
|
|
681
|
-
}), P.addEventListener("exit", function(
|
|
681
|
+
}), P.addEventListener("exit", function(de) {
|
|
682
682
|
I || m.setError({
|
|
683
683
|
reason: "closed_by_user"
|
|
684
684
|
});
|
|
685
685
|
}), m.promise;
|
|
686
686
|
},
|
|
687
687
|
logout: function(g) {
|
|
688
|
-
var m = F(), T = r.createLogoutUrl(g),
|
|
689
|
-
return
|
|
690
|
-
z.url.indexOf(
|
|
691
|
-
}),
|
|
692
|
-
z.url.indexOf(
|
|
693
|
-
}),
|
|
688
|
+
var m = F(), T = r.createLogoutUrl(g), $ = s(T, "_blank", "location=no,hidden=yes,clearcache=yes"), P;
|
|
689
|
+
return $.addEventListener("loadstart", function(z) {
|
|
690
|
+
z.url.indexOf(k()) == 0 && $.close();
|
|
691
|
+
}), $.addEventListener("loaderror", function(z) {
|
|
692
|
+
z.url.indexOf(k()) == 0 || (P = !0), $.close();
|
|
693
|
+
}), $.addEventListener("exit", function(z) {
|
|
694
694
|
P ? m.setError() : (r.clearToken(), m.setSuccess());
|
|
695
695
|
}), m.promise;
|
|
696
696
|
},
|
|
697
697
|
register: async function(g) {
|
|
698
|
-
var m = F(), T = await r.createRegisterUrl(),
|
|
698
|
+
var m = F(), T = await r.createRegisterUrl(), $ = b(g), P = s(T, "_blank", $);
|
|
699
699
|
return P.addEventListener("loadstart", function(z) {
|
|
700
|
-
if (z.url.indexOf(
|
|
700
|
+
if (z.url.indexOf(k()) == 0) {
|
|
701
701
|
P.close();
|
|
702
702
|
var I = R(z.url);
|
|
703
703
|
_(I, m);
|
|
@@ -709,13 +709,13 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
709
709
|
if (typeof g < "u") {
|
|
710
710
|
var m = s(g, "_blank", "location=no");
|
|
711
711
|
m.addEventListener("loadstart", function(T) {
|
|
712
|
-
T.url.indexOf(
|
|
712
|
+
T.url.indexOf(k()) == 0 && m.close();
|
|
713
713
|
});
|
|
714
714
|
} else
|
|
715
715
|
throw "Not supported by the OIDC server";
|
|
716
716
|
},
|
|
717
717
|
redirectUri: function(g) {
|
|
718
|
-
return
|
|
718
|
+
return k();
|
|
719
719
|
}
|
|
720
720
|
};
|
|
721
721
|
}
|
|
@@ -723,23 +723,23 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
723
723
|
return a.enable = !1, {
|
|
724
724
|
login: async function(g) {
|
|
725
725
|
var m = F(), T = await r.createLoginUrl(g);
|
|
726
|
-
return universalLinks.subscribe("keycloak", function(
|
|
726
|
+
return universalLinks.subscribe("keycloak", function($) {
|
|
727
727
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
728
|
-
var P = R(
|
|
728
|
+
var P = R($.url);
|
|
729
729
|
_(P, m);
|
|
730
730
|
}), window.cordova.plugins.browsertab.openUrl(T), m.promise;
|
|
731
731
|
},
|
|
732
732
|
logout: function(g) {
|
|
733
733
|
var m = F(), T = r.createLogoutUrl(g);
|
|
734
|
-
return universalLinks.subscribe("keycloak", function(
|
|
734
|
+
return universalLinks.subscribe("keycloak", function($) {
|
|
735
735
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), r.clearToken(), m.setSuccess();
|
|
736
736
|
}), window.cordova.plugins.browsertab.openUrl(T), m.promise;
|
|
737
737
|
},
|
|
738
738
|
register: async function(g) {
|
|
739
739
|
var m = F(), T = await r.createRegisterUrl(g);
|
|
740
|
-
return universalLinks.subscribe("keycloak", function(
|
|
740
|
+
return universalLinks.subscribe("keycloak", function($) {
|
|
741
741
|
universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
|
|
742
|
-
var P = R(
|
|
742
|
+
var P = R($.url);
|
|
743
743
|
_(P, m);
|
|
744
744
|
}), window.cordova.plugins.browsertab.openUrl(T), m.promise;
|
|
745
745
|
},
|
|
@@ -757,43 +757,43 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
757
757
|
throw "invalid adapter type: " + i;
|
|
758
758
|
}
|
|
759
759
|
const N = "kc-callback-";
|
|
760
|
-
var
|
|
761
|
-
if (!(this instanceof
|
|
762
|
-
return new
|
|
760
|
+
var D = function() {
|
|
761
|
+
if (!(this instanceof D))
|
|
762
|
+
return new D();
|
|
763
763
|
localStorage.setItem("kc-test", "test"), localStorage.removeItem("kc-test");
|
|
764
764
|
var i = this;
|
|
765
765
|
function s() {
|
|
766
|
-
const
|
|
766
|
+
const k = Date.now();
|
|
767
767
|
for (const [g, m] of A()) {
|
|
768
768
|
const T = b(m);
|
|
769
|
-
(T === null || T <
|
|
769
|
+
(T === null || T < k) && localStorage.removeItem(g);
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
function y() {
|
|
773
|
-
for (const [
|
|
774
|
-
localStorage.removeItem(
|
|
773
|
+
for (const [k] of A())
|
|
774
|
+
localStorage.removeItem(k);
|
|
775
775
|
}
|
|
776
776
|
function A() {
|
|
777
|
-
return Object.entries(localStorage).filter(([
|
|
777
|
+
return Object.entries(localStorage).filter(([k]) => k.startsWith(N));
|
|
778
778
|
}
|
|
779
|
-
function b(
|
|
779
|
+
function b(k) {
|
|
780
780
|
let g;
|
|
781
781
|
try {
|
|
782
|
-
g = JSON.parse(
|
|
782
|
+
g = JSON.parse(k);
|
|
783
783
|
} catch {
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
786
786
|
return zr(g) && "expires" in g && typeof g.expires == "number" ? g.expires : null;
|
|
787
787
|
}
|
|
788
|
-
i.get = function(
|
|
789
|
-
if (
|
|
790
|
-
var g = N +
|
|
788
|
+
i.get = function(k) {
|
|
789
|
+
if (k) {
|
|
790
|
+
var g = N + k, m = localStorage.getItem(g);
|
|
791
791
|
return m && (localStorage.removeItem(g), m = JSON.parse(m)), s(), m;
|
|
792
792
|
}
|
|
793
|
-
}, i.add = function(
|
|
793
|
+
}, i.add = function(k) {
|
|
794
794
|
s();
|
|
795
|
-
const g = N +
|
|
796
|
-
...
|
|
795
|
+
const g = N + k.state, m = JSON.stringify({
|
|
796
|
+
...k,
|
|
797
797
|
// Set the expiry time to 1 hour from now.
|
|
798
798
|
expires: Date.now() + 60 * 60 * 1e3
|
|
799
799
|
});
|
|
@@ -809,9 +809,9 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
809
809
|
var i = this;
|
|
810
810
|
i.get = function(b) {
|
|
811
811
|
if (b) {
|
|
812
|
-
var
|
|
813
|
-
if (A(N + b, "", s(-100)),
|
|
814
|
-
return JSON.parse(
|
|
812
|
+
var k = y(N + b);
|
|
813
|
+
if (A(N + b, "", s(-100)), k)
|
|
814
|
+
return JSON.parse(k);
|
|
815
815
|
}
|
|
816
816
|
}, i.add = function(b) {
|
|
817
817
|
A(N + b.state, JSON.stringify(b), s(60));
|
|
@@ -819,29 +819,29 @@ For more information see: https://www.keycloak.org/securing-apps/javascript-adap
|
|
|
819
819
|
A(b, "", s(-100));
|
|
820
820
|
};
|
|
821
821
|
var s = function(b) {
|
|
822
|
-
var
|
|
823
|
-
return
|
|
822
|
+
var k = /* @__PURE__ */ new Date();
|
|
823
|
+
return k.setTime(k.getTime() + b * 60 * 1e3), k;
|
|
824
824
|
}, y = function(b) {
|
|
825
|
-
for (var
|
|
825
|
+
for (var k = b + "=", g = document.cookie.split(";"), m = 0; m < g.length; m++) {
|
|
826
826
|
for (var T = g[m]; T.charAt(0) == " "; )
|
|
827
827
|
T = T.substring(1);
|
|
828
|
-
if (T.indexOf(
|
|
829
|
-
return T.substring(
|
|
828
|
+
if (T.indexOf(k) == 0)
|
|
829
|
+
return T.substring(k.length, T.length);
|
|
830
830
|
}
|
|
831
831
|
return "";
|
|
832
|
-
}, A = function(b,
|
|
833
|
-
var m = b + "=" +
|
|
832
|
+
}, A = function(b, k, g) {
|
|
833
|
+
var m = b + "=" + k + "; expires=" + g.toUTCString() + "; ";
|
|
834
834
|
document.cookie = m;
|
|
835
835
|
};
|
|
836
836
|
};
|
|
837
837
|
function ne() {
|
|
838
838
|
try {
|
|
839
|
-
return new
|
|
839
|
+
return new D();
|
|
840
840
|
} catch {
|
|
841
841
|
}
|
|
842
842
|
return new J();
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function ue(i) {
|
|
845
845
|
return function() {
|
|
846
846
|
r.enableLogging && i.apply(console, Array.prototype.slice.call(arguments));
|
|
847
847
|
};
|
|
@@ -1108,18 +1108,18 @@ function Oo() {
|
|
|
1108
1108
|
function e(s) {
|
|
1109
1109
|
if (s == null) return null;
|
|
1110
1110
|
if (typeof s == "function")
|
|
1111
|
-
return s.$$typeof ===
|
|
1111
|
+
return s.$$typeof === H ? null : s.displayName || s.name || null;
|
|
1112
1112
|
if (typeof s == "string") return s;
|
|
1113
1113
|
switch (s) {
|
|
1114
1114
|
case _:
|
|
1115
1115
|
return "Fragment";
|
|
1116
|
-
case
|
|
1116
|
+
case B:
|
|
1117
1117
|
return "Profiler";
|
|
1118
1118
|
case U:
|
|
1119
1119
|
return "StrictMode";
|
|
1120
1120
|
case L:
|
|
1121
1121
|
return "Suspense";
|
|
1122
|
-
case
|
|
1122
|
+
case W:
|
|
1123
1123
|
return "SuspenseList";
|
|
1124
1124
|
case ce:
|
|
1125
1125
|
return "Activity";
|
|
@@ -1130,16 +1130,16 @@ function Oo() {
|
|
|
1130
1130
|
), s.$$typeof) {
|
|
1131
1131
|
case p:
|
|
1132
1132
|
return "Portal";
|
|
1133
|
-
case
|
|
1133
|
+
case j:
|
|
1134
1134
|
return s.displayName || "Context";
|
|
1135
|
-
case
|
|
1135
|
+
case V:
|
|
1136
1136
|
return (s._context.displayName || "Context") + ".Consumer";
|
|
1137
1137
|
case R:
|
|
1138
1138
|
var y = s.render;
|
|
1139
1139
|
return s = s.displayName, s || (s = y.displayName || y.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
|
|
1140
1140
|
case F:
|
|
1141
1141
|
return y = s.displayName || null, y !== null ? y : e(s.type) || "Memo";
|
|
1142
|
-
case
|
|
1142
|
+
case re:
|
|
1143
1143
|
y = s._payload, s = s._init;
|
|
1144
1144
|
try {
|
|
1145
1145
|
return e(s(y));
|
|
@@ -1170,7 +1170,7 @@ function Oo() {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
function n(s) {
|
|
1172
1172
|
if (s === _) return "<>";
|
|
1173
|
-
if (typeof s == "object" && s !== null && s.$$typeof ===
|
|
1173
|
+
if (typeof s == "object" && s !== null && s.$$typeof === re)
|
|
1174
1174
|
return "<...>";
|
|
1175
1175
|
try {
|
|
1176
1176
|
var y = e(s);
|
|
@@ -1187,7 +1187,7 @@ function Oo() {
|
|
|
1187
1187
|
return Error("react-stack-top-frame");
|
|
1188
1188
|
}
|
|
1189
1189
|
function l(s) {
|
|
1190
|
-
if (
|
|
1190
|
+
if (M.call(s, "key")) {
|
|
1191
1191
|
var y = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
1192
1192
|
if (y && y.isReactWarning) return !1;
|
|
1193
1193
|
}
|
|
@@ -1195,7 +1195,7 @@ function Oo() {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
function u(s, y) {
|
|
1197
1197
|
function A() {
|
|
1198
|
-
|
|
1198
|
+
D || (D = !0, console.error(
|
|
1199
1199
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
1200
1200
|
y
|
|
1201
1201
|
));
|
|
@@ -1211,10 +1211,10 @@ function Oo() {
|
|
|
1211
1211
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1212
1212
|
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
1213
1213
|
}
|
|
1214
|
-
function h(s, y, A, b,
|
|
1214
|
+
function h(s, y, A, b, k, g) {
|
|
1215
1215
|
var m = A.ref;
|
|
1216
1216
|
return s = {
|
|
1217
|
-
$$typeof:
|
|
1217
|
+
$$typeof: v,
|
|
1218
1218
|
type: s,
|
|
1219
1219
|
key: y,
|
|
1220
1220
|
props: A,
|
|
@@ -1236,7 +1236,7 @@ function Oo() {
|
|
|
1236
1236
|
configurable: !1,
|
|
1237
1237
|
enumerable: !1,
|
|
1238
1238
|
writable: !0,
|
|
1239
|
-
value:
|
|
1239
|
+
value: k
|
|
1240
1240
|
}), Object.defineProperty(s, "_debugTask", {
|
|
1241
1241
|
configurable: !1,
|
|
1242
1242
|
enumerable: !1,
|
|
@@ -1244,7 +1244,7 @@ function Oo() {
|
|
|
1244
1244
|
value: g
|
|
1245
1245
|
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
1246
1246
|
}
|
|
1247
|
-
function w(s, y, A, b,
|
|
1247
|
+
function w(s, y, A, b, k, g) {
|
|
1248
1248
|
var m = y.children;
|
|
1249
1249
|
if (m !== void 0)
|
|
1250
1250
|
if (b)
|
|
@@ -1257,7 +1257,7 @@ function Oo() {
|
|
|
1257
1257
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1258
1258
|
);
|
|
1259
1259
|
else C(m);
|
|
1260
|
-
if (
|
|
1260
|
+
if (M.call(y, "key")) {
|
|
1261
1261
|
m = e(s);
|
|
1262
1262
|
var T = Object.keys(y).filter(function(P) {
|
|
1263
1263
|
return P !== "key";
|
|
@@ -1277,8 +1277,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1277
1277
|
}
|
|
1278
1278
|
if (m = null, A !== void 0 && (t(A), m = "" + A), l(y) && (t(y.key), m = "" + y.key), "key" in y) {
|
|
1279
1279
|
A = {};
|
|
1280
|
-
for (var
|
|
1281
|
-
|
|
1280
|
+
for (var $ in y)
|
|
1281
|
+
$ !== "key" && (A[$] = y[$]);
|
|
1282
1282
|
} else A = y;
|
|
1283
1283
|
return m && u(
|
|
1284
1284
|
A,
|
|
@@ -1288,28 +1288,28 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1288
1288
|
m,
|
|
1289
1289
|
A,
|
|
1290
1290
|
o(),
|
|
1291
|
-
|
|
1291
|
+
k,
|
|
1292
1292
|
g
|
|
1293
1293
|
);
|
|
1294
1294
|
}
|
|
1295
1295
|
function C(s) {
|
|
1296
|
-
|
|
1296
|
+
x(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === re && (s._payload.status === "fulfilled" ? x(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1299
|
-
return typeof s == "object" && s !== null && s.$$typeof ===
|
|
1298
|
+
function x(s) {
|
|
1299
|
+
return typeof s == "object" && s !== null && s.$$typeof === v;
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1301
|
+
var E = rt, v = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), j = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ce = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), c = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, O = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
1302
1302
|
return null;
|
|
1303
1303
|
};
|
|
1304
|
-
|
|
1304
|
+
E = {
|
|
1305
1305
|
react_stack_bottom_frame: function(s) {
|
|
1306
1306
|
return s();
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
|
-
var
|
|
1310
|
-
|
|
1309
|
+
var D, J = {}, ne = E.react_stack_bottom_frame.bind(
|
|
1310
|
+
E,
|
|
1311
1311
|
a
|
|
1312
|
-
)(),
|
|
1312
|
+
)(), ue = N(n(a)), i = {};
|
|
1313
1313
|
nr.Fragment = _, nr.jsx = function(s, y, A) {
|
|
1314
1314
|
var b = 1e4 > c.recentlyCreatedOwnerStacks++;
|
|
1315
1315
|
return w(
|
|
@@ -1318,7 +1318,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1318
1318
|
A,
|
|
1319
1319
|
!1,
|
|
1320
1320
|
b ? Error("react-stack-top-frame") : ne,
|
|
1321
|
-
b ? N(n(s)) :
|
|
1321
|
+
b ? N(n(s)) : ue
|
|
1322
1322
|
);
|
|
1323
1323
|
}, nr.jsxs = function(s, y, A) {
|
|
1324
1324
|
var b = 1e4 > c.recentlyCreatedOwnerStacks++;
|
|
@@ -1328,7 +1328,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1328
1328
|
A,
|
|
1329
1329
|
!0,
|
|
1330
1330
|
b ? Error("react-stack-top-frame") : ne,
|
|
1331
|
-
b ? N(n(s)) :
|
|
1331
|
+
b ? N(n(s)) : ue
|
|
1332
1332
|
);
|
|
1333
1333
|
};
|
|
1334
1334
|
}()), nr;
|
|
@@ -1450,7 +1450,7 @@ const Po = (e) => /* @__PURE__ */ d.jsxs(
|
|
|
1450
1450
|
) }) })
|
|
1451
1451
|
]
|
|
1452
1452
|
}
|
|
1453
|
-
),
|
|
1453
|
+
), Q = {
|
|
1454
1454
|
primary: "#086BB5",
|
|
1455
1455
|
secondary: "#F85B30",
|
|
1456
1456
|
coordiBlue: "#086BB5",
|
|
@@ -1612,7 +1612,7 @@ const Mo = (e) => ({
|
|
|
1612
1612
|
MuiTableCell: {
|
|
1613
1613
|
styleOverrides: {
|
|
1614
1614
|
body: {
|
|
1615
|
-
color:
|
|
1615
|
+
color: Q.black60
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
},
|
|
@@ -1633,21 +1633,21 @@ const Mo = (e) => ({
|
|
|
1633
1633
|
MuiIconButton: {
|
|
1634
1634
|
styleOverrides: {
|
|
1635
1635
|
colorInherit: {
|
|
1636
|
-
color:
|
|
1636
|
+
color: Q.black60
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
1639
|
},
|
|
1640
1640
|
MuiTooltip: {
|
|
1641
1641
|
styleOverrides: {
|
|
1642
1642
|
arrow: {
|
|
1643
|
-
color:
|
|
1643
|
+
color: Q.gray2
|
|
1644
1644
|
},
|
|
1645
1645
|
tooltip: {
|
|
1646
1646
|
lineHeight: 1.72,
|
|
1647
1647
|
fontSize: 10,
|
|
1648
1648
|
fontWeight: 500,
|
|
1649
1649
|
padding: "5px 16px",
|
|
1650
|
-
backgroundColor:
|
|
1650
|
+
backgroundColor: Q.gray2,
|
|
1651
1651
|
color: "#086BB5"
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
@@ -1685,7 +1685,7 @@ const Mo = (e) => ({
|
|
|
1685
1685
|
MuiBackdrop: {
|
|
1686
1686
|
styleOverrides: {
|
|
1687
1687
|
root: {
|
|
1688
|
-
backgroundColor:
|
|
1688
|
+
backgroundColor: Q.whiteBackdrop
|
|
1689
1689
|
},
|
|
1690
1690
|
invisible: {
|
|
1691
1691
|
backgroundColor: "transparent"
|
|
@@ -1698,21 +1698,21 @@ const Mo = (e) => ({
|
|
|
1698
1698
|
},
|
|
1699
1699
|
styleOverrides: {
|
|
1700
1700
|
displayedRows: {
|
|
1701
|
-
color:
|
|
1701
|
+
color: Q.coordiBlue
|
|
1702
1702
|
},
|
|
1703
1703
|
selectLabel: {
|
|
1704
|
-
color:
|
|
1704
|
+
color: Q.coordiBlue
|
|
1705
1705
|
},
|
|
1706
1706
|
root: {
|
|
1707
|
-
color:
|
|
1707
|
+
color: Q.coordiBlue
|
|
1708
1708
|
},
|
|
1709
1709
|
actions: {
|
|
1710
1710
|
"& .MuiIconButton-root:not(.Mui-disabled)": {
|
|
1711
|
-
color:
|
|
1711
|
+
color: Q.coordiBlue
|
|
1712
1712
|
}
|
|
1713
1713
|
},
|
|
1714
1714
|
selectIcon: {
|
|
1715
|
-
color:
|
|
1715
|
+
color: Q.coordiBlue
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
1718
|
},
|
|
@@ -1752,7 +1752,7 @@ const Mo = (e) => ({
|
|
|
1752
1752
|
MuiListSubheader: {
|
|
1753
1753
|
styleOverrides: {
|
|
1754
1754
|
root: {
|
|
1755
|
-
color:
|
|
1755
|
+
color: Q.black87,
|
|
1756
1756
|
fontWeight: 500,
|
|
1757
1757
|
fontSize: 14
|
|
1758
1758
|
}
|
|
@@ -1761,7 +1761,7 @@ const Mo = (e) => ({
|
|
|
1761
1761
|
MuiListItemText: {
|
|
1762
1762
|
styleOverrides: {
|
|
1763
1763
|
root: {
|
|
1764
|
-
color:
|
|
1764
|
+
color: Q.black60,
|
|
1765
1765
|
fontSize: 14
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
@@ -1769,7 +1769,7 @@ const Mo = (e) => ({
|
|
|
1769
1769
|
MuiListItemIcon: {
|
|
1770
1770
|
styleOverrides: {
|
|
1771
1771
|
root: {
|
|
1772
|
-
color:
|
|
1772
|
+
color: Q.black60
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
},
|
|
@@ -1796,10 +1796,10 @@ const Mo = (e) => ({
|
|
|
1796
1796
|
fontWeight: 400
|
|
1797
1797
|
},
|
|
1798
1798
|
filledError: {
|
|
1799
|
-
backgroundColor:
|
|
1799
|
+
backgroundColor: Q.coordiRed
|
|
1800
1800
|
},
|
|
1801
1801
|
filledSuccess: {
|
|
1802
|
-
backgroundColor:
|
|
1802
|
+
backgroundColor: Q.coordiBlue
|
|
1803
1803
|
},
|
|
1804
1804
|
action: {
|
|
1805
1805
|
"& .MuiButtonBase-root": {
|
|
@@ -1811,7 +1811,7 @@ const Mo = (e) => ({
|
|
|
1811
1811
|
MuiFormLabel: {
|
|
1812
1812
|
styleOverrides: {
|
|
1813
1813
|
asterisk: {
|
|
1814
|
-
color:
|
|
1814
|
+
color: Q.coordiRed
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
},
|
|
@@ -1824,59 +1824,59 @@ const Mo = (e) => ({
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}, Do = {
|
|
1826
1826
|
primary: {
|
|
1827
|
-
main:
|
|
1827
|
+
main: Q.primary
|
|
1828
1828
|
},
|
|
1829
1829
|
secondary: {
|
|
1830
|
-
main:
|
|
1830
|
+
main: Q.secondary
|
|
1831
1831
|
},
|
|
1832
1832
|
// Coordi
|
|
1833
1833
|
coordiBlue: {
|
|
1834
|
-
main:
|
|
1834
|
+
main: Q.coordiBlue
|
|
1835
1835
|
},
|
|
1836
1836
|
coordiBlue2: {
|
|
1837
|
-
main:
|
|
1837
|
+
main: Q.coordiBlue2
|
|
1838
1838
|
},
|
|
1839
1839
|
coordiRed: {
|
|
1840
|
-
main:
|
|
1840
|
+
main: Q.coordiRed
|
|
1841
1841
|
},
|
|
1842
1842
|
// Library
|
|
1843
1843
|
green: {
|
|
1844
|
-
main:
|
|
1844
|
+
main: Q.green
|
|
1845
1845
|
},
|
|
1846
1846
|
orange: {
|
|
1847
|
-
main:
|
|
1847
|
+
main: Q.orange
|
|
1848
1848
|
},
|
|
1849
1849
|
yellow: {
|
|
1850
|
-
main:
|
|
1850
|
+
main: Q.yellow
|
|
1851
1851
|
},
|
|
1852
1852
|
// Black
|
|
1853
1853
|
black87: {
|
|
1854
|
-
main:
|
|
1854
|
+
main: Q.black87
|
|
1855
1855
|
},
|
|
1856
1856
|
black60: {
|
|
1857
|
-
main:
|
|
1857
|
+
main: Q.black60
|
|
1858
1858
|
},
|
|
1859
1859
|
black38: {
|
|
1860
|
-
main:
|
|
1860
|
+
main: Q.black38
|
|
1861
1861
|
},
|
|
1862
1862
|
black12: {
|
|
1863
|
-
main:
|
|
1863
|
+
main: Q.black12
|
|
1864
1864
|
},
|
|
1865
1865
|
black5: {
|
|
1866
|
-
main:
|
|
1866
|
+
main: Q.black5
|
|
1867
1867
|
},
|
|
1868
1868
|
black54: {
|
|
1869
|
-
main:
|
|
1869
|
+
main: Q.black54
|
|
1870
1870
|
},
|
|
1871
1871
|
// Gray
|
|
1872
1872
|
gray3: {
|
|
1873
|
-
main:
|
|
1873
|
+
main: Q.gray3
|
|
1874
1874
|
},
|
|
1875
1875
|
gray2: {
|
|
1876
|
-
main:
|
|
1876
|
+
main: Q.gray2
|
|
1877
1877
|
},
|
|
1878
1878
|
gray1: {
|
|
1879
|
-
main:
|
|
1879
|
+
main: Q.gray1
|
|
1880
1880
|
}
|
|
1881
1881
|
};
|
|
1882
1882
|
let ct = Jn(
|
|
@@ -1885,7 +1885,7 @@ let ct = Jn(
|
|
|
1885
1885
|
components: No,
|
|
1886
1886
|
typography: {
|
|
1887
1887
|
allVariants: {
|
|
1888
|
-
color:
|
|
1888
|
+
color: Q.black60
|
|
1889
1889
|
},
|
|
1890
1890
|
fontFamily: "'Roboto Variable', sans-serif"
|
|
1891
1891
|
}
|
|
@@ -1899,8 +1899,8 @@ const Tt = (e) => {
|
|
|
1899
1899
|
const t = /* @__PURE__ */ new Set(), n = (h, w) => {
|
|
1900
1900
|
const C = typeof h == "function" ? h(r) : h;
|
|
1901
1901
|
if (!Object.is(C, r)) {
|
|
1902
|
-
const
|
|
1903
|
-
r = w ?? (typeof C != "object" || C === null) ? C : Object.assign({}, r, C), t.forEach((
|
|
1902
|
+
const x = r;
|
|
1903
|
+
r = w ?? (typeof C != "object" || C === null) ? C : Object.assign({}, r, C), t.forEach((E) => E(r, x));
|
|
1904
1904
|
}
|
|
1905
1905
|
}, o = () => r, u = { setState: n, getState: o, getInitialState: () => f, subscribe: (h) => (t.add(h), () => t.delete(h)) }, f = r = e(n, o, u);
|
|
1906
1906
|
return u;
|
|
@@ -2340,8 +2340,8 @@ var Ot;
|
|
|
2340
2340
|
function qo() {
|
|
2341
2341
|
if (Ot) return G;
|
|
2342
2342
|
Ot = 1;
|
|
2343
|
-
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, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113,
|
|
2344
|
-
function
|
|
2343
|
+
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, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, E = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, U = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
2344
|
+
function V(R) {
|
|
2345
2345
|
if (typeof R == "object" && R !== null) {
|
|
2346
2346
|
var L = R.$$typeof;
|
|
2347
2347
|
switch (L) {
|
|
@@ -2358,8 +2358,8 @@ function qo() {
|
|
|
2358
2358
|
switch (R = R && R.$$typeof, R) {
|
|
2359
2359
|
case u:
|
|
2360
2360
|
case w:
|
|
2361
|
-
case k:
|
|
2362
2361
|
case v:
|
|
2362
|
+
case E:
|
|
2363
2363
|
case l:
|
|
2364
2364
|
return R;
|
|
2365
2365
|
default:
|
|
@@ -2371,36 +2371,36 @@ function qo() {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2375
|
-
return
|
|
2374
|
+
function j(R) {
|
|
2375
|
+
return V(R) === h;
|
|
2376
2376
|
}
|
|
2377
|
-
return G.AsyncMode = f, G.ConcurrentMode = h, G.ContextConsumer = u, G.ContextProvider = l, G.Element = r, G.ForwardRef = w, G.Fragment = n, G.Lazy =
|
|
2378
|
-
return
|
|
2379
|
-
}, G.isConcurrentMode =
|
|
2380
|
-
return
|
|
2377
|
+
return G.AsyncMode = f, G.ConcurrentMode = h, G.ContextConsumer = u, G.ContextProvider = l, G.Element = r, G.ForwardRef = w, G.Fragment = n, G.Lazy = v, G.Memo = E, G.Portal = t, G.Profiler = a, G.StrictMode = o, G.Suspense = C, G.isAsyncMode = function(R) {
|
|
2378
|
+
return j(R) || V(R) === f;
|
|
2379
|
+
}, G.isConcurrentMode = j, G.isContextConsumer = function(R) {
|
|
2380
|
+
return V(R) === u;
|
|
2381
2381
|
}, G.isContextProvider = function(R) {
|
|
2382
|
-
return
|
|
2382
|
+
return V(R) === l;
|
|
2383
2383
|
}, G.isElement = function(R) {
|
|
2384
2384
|
return typeof R == "object" && R !== null && R.$$typeof === r;
|
|
2385
2385
|
}, G.isForwardRef = function(R) {
|
|
2386
|
-
return
|
|
2386
|
+
return V(R) === w;
|
|
2387
2387
|
}, G.isFragment = function(R) {
|
|
2388
|
-
return
|
|
2388
|
+
return V(R) === n;
|
|
2389
2389
|
}, G.isLazy = function(R) {
|
|
2390
|
-
return
|
|
2390
|
+
return V(R) === v;
|
|
2391
2391
|
}, G.isMemo = function(R) {
|
|
2392
|
-
return
|
|
2392
|
+
return V(R) === E;
|
|
2393
2393
|
}, G.isPortal = function(R) {
|
|
2394
|
-
return
|
|
2394
|
+
return V(R) === t;
|
|
2395
2395
|
}, G.isProfiler = function(R) {
|
|
2396
|
-
return
|
|
2396
|
+
return V(R) === a;
|
|
2397
2397
|
}, G.isStrictMode = function(R) {
|
|
2398
|
-
return
|
|
2398
|
+
return V(R) === o;
|
|
2399
2399
|
}, G.isSuspense = function(R) {
|
|
2400
|
-
return
|
|
2400
|
+
return V(R) === C;
|
|
2401
2401
|
}, G.isValidElementType = function(R) {
|
|
2402
|
-
return typeof R == "string" || typeof R == "function" || R === n || R === h || R === a || R === o || R === C || R ===
|
|
2403
|
-
}, G.typeOf =
|
|
2402
|
+
return typeof R == "string" || typeof R == "function" || R === n || R === h || R === a || R === o || R === C || R === x || typeof R == "object" && R !== null && (R.$$typeof === v || R.$$typeof === E || R.$$typeof === l || R.$$typeof === u || R.$$typeof === w || R.$$typeof === _ || R.$$typeof === U || R.$$typeof === B || R.$$typeof === p);
|
|
2403
|
+
}, G.typeOf = V, G;
|
|
2404
2404
|
}
|
|
2405
2405
|
var Y = {};
|
|
2406
2406
|
/** @license React v16.13.1
|
|
@@ -2414,32 +2414,32 @@ var Y = {};
|
|
|
2414
2414
|
var It;
|
|
2415
2415
|
function Zo() {
|
|
2416
2416
|
return It || (It = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2417
|
-
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, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113,
|
|
2418
|
-
function
|
|
2417
|
+
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, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, w = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, E = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, U = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
2418
|
+
function V(I) {
|
|
2419
2419
|
return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2420
|
-
I === n || I === h || I === a || I === o || I === C || I ===
|
|
2420
|
+
I === n || I === h || I === a || I === o || I === C || I === x || typeof I == "object" && I !== null && (I.$$typeof === v || I.$$typeof === E || I.$$typeof === l || I.$$typeof === u || I.$$typeof === w || I.$$typeof === _ || I.$$typeof === U || I.$$typeof === B || I.$$typeof === p);
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function j(I) {
|
|
2423
2423
|
if (typeof I == "object" && I !== null) {
|
|
2424
2424
|
var se = I.$$typeof;
|
|
2425
2425
|
switch (se) {
|
|
2426
2426
|
case r:
|
|
2427
|
-
var
|
|
2428
|
-
switch (
|
|
2427
|
+
var de = I.type;
|
|
2428
|
+
switch (de) {
|
|
2429
2429
|
case f:
|
|
2430
2430
|
case h:
|
|
2431
2431
|
case n:
|
|
2432
2432
|
case a:
|
|
2433
2433
|
case o:
|
|
2434
2434
|
case C:
|
|
2435
|
-
return
|
|
2435
|
+
return de;
|
|
2436
2436
|
default:
|
|
2437
|
-
var We =
|
|
2437
|
+
var We = de && de.$$typeof;
|
|
2438
2438
|
switch (We) {
|
|
2439
2439
|
case u:
|
|
2440
2440
|
case w:
|
|
2441
|
-
case k:
|
|
2442
2441
|
case v:
|
|
2442
|
+
case E:
|
|
2443
2443
|
case l:
|
|
2444
2444
|
return We;
|
|
2445
2445
|
default:
|
|
@@ -2451,47 +2451,47 @@ function Zo() {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
|
-
var R = f, L = h,
|
|
2455
|
-
function
|
|
2456
|
-
return ne || (ne = !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.")), i(I) ||
|
|
2454
|
+
var R = f, L = h, W = u, F = l, re = r, ce = w, H = n, c = v, M = E, O = t, N = a, D = o, J = C, ne = !1;
|
|
2455
|
+
function ue(I) {
|
|
2456
|
+
return ne || (ne = !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.")), i(I) || j(I) === f;
|
|
2457
2457
|
}
|
|
2458
2458
|
function i(I) {
|
|
2459
|
-
return
|
|
2459
|
+
return j(I) === h;
|
|
2460
2460
|
}
|
|
2461
2461
|
function s(I) {
|
|
2462
|
-
return
|
|
2462
|
+
return j(I) === u;
|
|
2463
2463
|
}
|
|
2464
2464
|
function y(I) {
|
|
2465
|
-
return
|
|
2465
|
+
return j(I) === l;
|
|
2466
2466
|
}
|
|
2467
2467
|
function A(I) {
|
|
2468
2468
|
return typeof I == "object" && I !== null && I.$$typeof === r;
|
|
2469
2469
|
}
|
|
2470
2470
|
function b(I) {
|
|
2471
|
-
return
|
|
2471
|
+
return j(I) === w;
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2474
|
-
return
|
|
2473
|
+
function k(I) {
|
|
2474
|
+
return j(I) === n;
|
|
2475
2475
|
}
|
|
2476
2476
|
function g(I) {
|
|
2477
|
-
return
|
|
2477
|
+
return j(I) === v;
|
|
2478
2478
|
}
|
|
2479
2479
|
function m(I) {
|
|
2480
|
-
return
|
|
2480
|
+
return j(I) === E;
|
|
2481
2481
|
}
|
|
2482
2482
|
function T(I) {
|
|
2483
|
-
return
|
|
2483
|
+
return j(I) === t;
|
|
2484
2484
|
}
|
|
2485
|
-
function
|
|
2486
|
-
return
|
|
2485
|
+
function $(I) {
|
|
2486
|
+
return j(I) === a;
|
|
2487
2487
|
}
|
|
2488
2488
|
function P(I) {
|
|
2489
|
-
return
|
|
2489
|
+
return j(I) === o;
|
|
2490
2490
|
}
|
|
2491
2491
|
function z(I) {
|
|
2492
|
-
return
|
|
2492
|
+
return j(I) === C;
|
|
2493
2493
|
}
|
|
2494
|
-
Y.AsyncMode = R, Y.ConcurrentMode = L, Y.ContextConsumer =
|
|
2494
|
+
Y.AsyncMode = R, Y.ConcurrentMode = L, Y.ContextConsumer = W, Y.ContextProvider = F, Y.Element = re, Y.ForwardRef = ce, Y.Fragment = H, Y.Lazy = c, Y.Memo = M, Y.Portal = O, Y.Profiler = N, Y.StrictMode = D, Y.Suspense = J, Y.isAsyncMode = ue, Y.isConcurrentMode = i, Y.isContextConsumer = s, Y.isContextProvider = y, Y.isElement = A, Y.isForwardRef = b, Y.isFragment = k, Y.isLazy = g, Y.isMemo = m, Y.isPortal = T, Y.isProfiler = $, Y.isStrictMode = P, Y.isSuspense = z, Y.isValidElementType = V, Y.typeOf = j;
|
|
2495
2495
|
}()), Y;
|
|
2496
2496
|
}
|
|
2497
2497
|
var Pt;
|
|
@@ -2542,8 +2542,8 @@ function Xo() {
|
|
|
2542
2542
|
r.call(u, C) && (f[C] = u[C]);
|
|
2543
2543
|
if (e) {
|
|
2544
2544
|
h = e(u);
|
|
2545
|
-
for (var
|
|
2546
|
-
t.call(u, h[
|
|
2545
|
+
for (var x = 0; x < h.length; x++)
|
|
2546
|
+
t.call(u, h[x]) && (f[h[x]] = u[h[x]]);
|
|
2547
2547
|
}
|
|
2548
2548
|
}
|
|
2549
2549
|
return f;
|
|
@@ -2584,22 +2584,22 @@ function ea() {
|
|
|
2584
2584
|
var C;
|
|
2585
2585
|
try {
|
|
2586
2586
|
if (typeof a[w] != "function") {
|
|
2587
|
-
var
|
|
2587
|
+
var x = Error(
|
|
2588
2588
|
(f || "React class") + ": " + u + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
2589
2589
|
);
|
|
2590
|
-
throw
|
|
2590
|
+
throw x.name = "Invariant Violation", x;
|
|
2591
2591
|
}
|
|
2592
2592
|
C = a[w](l, w, f, u, null, r);
|
|
2593
|
-
} catch (
|
|
2594
|
-
C =
|
|
2593
|
+
} catch (v) {
|
|
2594
|
+
C = v;
|
|
2595
2595
|
}
|
|
2596
2596
|
if (C && !(C instanceof Error) && e(
|
|
2597
2597
|
(f || "React class") + ": type specification of " + u + " `" + w + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2598
2598
|
), C instanceof Error && !(C.message in t)) {
|
|
2599
2599
|
t[C.message] = !0;
|
|
2600
|
-
var
|
|
2600
|
+
var E = h ? h() : "";
|
|
2601
2601
|
e(
|
|
2602
|
-
"Failed " + u + " type: " + C.message + (
|
|
2602
|
+
"Failed " + u + " type: " + C.message + (E ?? "")
|
|
2603
2603
|
);
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
@@ -2633,7 +2633,7 @@ function ra() {
|
|
|
2633
2633
|
if (typeof s == "function")
|
|
2634
2634
|
return s;
|
|
2635
2635
|
}
|
|
2636
|
-
var
|
|
2636
|
+
var x = "<<anonymous>>", E = {
|
|
2637
2637
|
array: U("array"),
|
|
2638
2638
|
bigint: U("bigint"),
|
|
2639
2639
|
bool: U("boolean"),
|
|
@@ -2642,19 +2642,19 @@ function ra() {
|
|
|
2642
2642
|
object: U("object"),
|
|
2643
2643
|
string: U("string"),
|
|
2644
2644
|
symbol: U("symbol"),
|
|
2645
|
-
any:
|
|
2646
|
-
arrayOf:
|
|
2647
|
-
element:
|
|
2645
|
+
any: B(),
|
|
2646
|
+
arrayOf: V,
|
|
2647
|
+
element: j(),
|
|
2648
2648
|
elementType: R(),
|
|
2649
2649
|
instanceOf: L,
|
|
2650
2650
|
node: ce(),
|
|
2651
2651
|
objectOf: F,
|
|
2652
|
-
oneOf:
|
|
2653
|
-
oneOfType:
|
|
2652
|
+
oneOf: W,
|
|
2653
|
+
oneOfType: re,
|
|
2654
2654
|
shape: c,
|
|
2655
|
-
exact:
|
|
2655
|
+
exact: M
|
|
2656
2656
|
};
|
|
2657
|
-
function
|
|
2657
|
+
function v(i, s) {
|
|
2658
2658
|
return i === s ? i !== 0 || 1 / i === 1 / s : i !== i && s !== s;
|
|
2659
2659
|
}
|
|
2660
2660
|
function p(i, s) {
|
|
@@ -2664,8 +2664,8 @@ function ra() {
|
|
|
2664
2664
|
function _(i) {
|
|
2665
2665
|
if (process.env.NODE_ENV !== "production")
|
|
2666
2666
|
var s = {}, y = 0;
|
|
2667
|
-
function A(
|
|
2668
|
-
if (T = T ||
|
|
2667
|
+
function A(k, g, m, T, $, P, z) {
|
|
2668
|
+
if (T = T || x, P = P || m, z !== t) {
|
|
2669
2669
|
if (f) {
|
|
2670
2670
|
var I = new Error(
|
|
2671
2671
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -2679,18 +2679,18 @@ function ra() {
|
|
|
2679
2679
|
), s[se] = !0, y++);
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
2682
|
-
return g[m] == null ?
|
|
2682
|
+
return g[m] == null ? k ? g[m] === null ? new p("The " + $ + " `" + P + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new p("The " + $ + " `" + P + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : i(g, m, T, $, P);
|
|
2683
2683
|
}
|
|
2684
2684
|
var b = A.bind(null, !1);
|
|
2685
2685
|
return b.isRequired = A.bind(null, !0), b;
|
|
2686
2686
|
}
|
|
2687
2687
|
function U(i) {
|
|
2688
|
-
function s(y, A, b,
|
|
2689
|
-
var T = y[A],
|
|
2690
|
-
if (
|
|
2688
|
+
function s(y, A, b, k, g, m) {
|
|
2689
|
+
var T = y[A], $ = D(T);
|
|
2690
|
+
if ($ !== i) {
|
|
2691
2691
|
var P = J(T);
|
|
2692
2692
|
return new p(
|
|
2693
|
-
"Invalid " +
|
|
2693
|
+
"Invalid " + k + " `" + g + "` of type " + ("`" + P + "` supplied to `" + b + "`, expected ") + ("`" + i + "`."),
|
|
2694
2694
|
{ expectedType: i }
|
|
2695
2695
|
);
|
|
2696
2696
|
}
|
|
@@ -2698,20 +2698,20 @@ function ra() {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
return _(s);
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2701
|
+
function B() {
|
|
2702
2702
|
return _(l);
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2705
|
-
function s(y, A, b,
|
|
2704
|
+
function V(i) {
|
|
2705
|
+
function s(y, A, b, k, g) {
|
|
2706
2706
|
if (typeof i != "function")
|
|
2707
2707
|
return new p("Property `" + g + "` of component `" + b + "` has invalid PropType notation inside arrayOf.");
|
|
2708
2708
|
var m = y[A];
|
|
2709
2709
|
if (!Array.isArray(m)) {
|
|
2710
|
-
var T =
|
|
2711
|
-
return new p("Invalid " +
|
|
2710
|
+
var T = D(m);
|
|
2711
|
+
return new p("Invalid " + k + " `" + g + "` of type " + ("`" + T + "` supplied to `" + b + "`, expected an array."));
|
|
2712
2712
|
}
|
|
2713
|
-
for (var
|
|
2714
|
-
var P = i(m,
|
|
2713
|
+
for (var $ = 0; $ < m.length; $++) {
|
|
2714
|
+
var P = i(m, $, b, k, g + "[" + $ + "]", t);
|
|
2715
2715
|
if (P instanceof Error)
|
|
2716
2716
|
return P;
|
|
2717
2717
|
}
|
|
@@ -2719,65 +2719,65 @@ function ra() {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
return _(s);
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2723
|
-
function i(s, y, A, b,
|
|
2722
|
+
function j() {
|
|
2723
|
+
function i(s, y, A, b, k) {
|
|
2724
2724
|
var g = s[y];
|
|
2725
2725
|
if (!u(g)) {
|
|
2726
|
-
var m =
|
|
2727
|
-
return new p("Invalid " + b + " `" +
|
|
2726
|
+
var m = D(g);
|
|
2727
|
+
return new p("Invalid " + b + " `" + k + "` of type " + ("`" + m + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
2728
2728
|
}
|
|
2729
2729
|
return null;
|
|
2730
2730
|
}
|
|
2731
2731
|
return _(i);
|
|
2732
2732
|
}
|
|
2733
2733
|
function R() {
|
|
2734
|
-
function i(s, y, A, b,
|
|
2734
|
+
function i(s, y, A, b, k) {
|
|
2735
2735
|
var g = s[y];
|
|
2736
2736
|
if (!e.isValidElementType(g)) {
|
|
2737
|
-
var m =
|
|
2738
|
-
return new p("Invalid " + b + " `" +
|
|
2737
|
+
var m = D(g);
|
|
2738
|
+
return new p("Invalid " + b + " `" + k + "` of type " + ("`" + m + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
2739
2739
|
}
|
|
2740
2740
|
return null;
|
|
2741
2741
|
}
|
|
2742
2742
|
return _(i);
|
|
2743
2743
|
}
|
|
2744
2744
|
function L(i) {
|
|
2745
|
-
function s(y, A, b,
|
|
2745
|
+
function s(y, A, b, k, g) {
|
|
2746
2746
|
if (!(y[A] instanceof i)) {
|
|
2747
|
-
var m = i.name ||
|
|
2748
|
-
return new p("Invalid " +
|
|
2747
|
+
var m = i.name || x, T = ue(y[A]);
|
|
2748
|
+
return new p("Invalid " + k + " `" + g + "` of type " + ("`" + T + "` supplied to `" + b + "`, expected ") + ("instance of `" + m + "`."));
|
|
2749
2749
|
}
|
|
2750
2750
|
return null;
|
|
2751
2751
|
}
|
|
2752
2752
|
return _(s);
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function W(i) {
|
|
2755
2755
|
if (!Array.isArray(i))
|
|
2756
2756
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
2757
2757
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2758
2758
|
) : a("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
2759
|
-
function s(y, A, b,
|
|
2759
|
+
function s(y, A, b, k, g) {
|
|
2760
2760
|
for (var m = y[A], T = 0; T < i.length; T++)
|
|
2761
|
-
if (
|
|
2761
|
+
if (v(m, i[T]))
|
|
2762
2762
|
return null;
|
|
2763
|
-
var
|
|
2763
|
+
var $ = JSON.stringify(i, function(z, I) {
|
|
2764
2764
|
var se = J(I);
|
|
2765
2765
|
return se === "symbol" ? String(I) : I;
|
|
2766
2766
|
});
|
|
2767
|
-
return new p("Invalid " +
|
|
2767
|
+
return new p("Invalid " + k + " `" + g + "` of value `" + String(m) + "` " + ("supplied to `" + b + "`, expected one of " + $ + "."));
|
|
2768
2768
|
}
|
|
2769
2769
|
return _(s);
|
|
2770
2770
|
}
|
|
2771
2771
|
function F(i) {
|
|
2772
|
-
function s(y, A, b,
|
|
2772
|
+
function s(y, A, b, k, g) {
|
|
2773
2773
|
if (typeof i != "function")
|
|
2774
2774
|
return new p("Property `" + g + "` of component `" + b + "` has invalid PropType notation inside objectOf.");
|
|
2775
|
-
var m = y[A], T =
|
|
2775
|
+
var m = y[A], T = D(m);
|
|
2776
2776
|
if (T !== "object")
|
|
2777
|
-
return new p("Invalid " +
|
|
2778
|
-
for (var
|
|
2779
|
-
if (n(m,
|
|
2780
|
-
var P = i(m,
|
|
2777
|
+
return new p("Invalid " + k + " `" + g + "` of type " + ("`" + T + "` supplied to `" + b + "`, expected an object."));
|
|
2778
|
+
for (var $ in m)
|
|
2779
|
+
if (n(m, $)) {
|
|
2780
|
+
var P = i(m, $, b, k, g + "." + $, t);
|
|
2781
2781
|
if (P instanceof Error)
|
|
2782
2782
|
return P;
|
|
2783
2783
|
}
|
|
@@ -2785,7 +2785,7 @@ function ra() {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
return _(s);
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function re(i) {
|
|
2789
2789
|
if (!Array.isArray(i))
|
|
2790
2790
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
2791
2791
|
for (var s = 0; s < i.length; s++) {
|
|
@@ -2795,39 +2795,39 @@ function ra() {
|
|
|
2795
2795
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(y) + " at index " + s + "."
|
|
2796
2796
|
), l;
|
|
2797
2797
|
}
|
|
2798
|
-
function A(b,
|
|
2799
|
-
for (var
|
|
2800
|
-
var z = i[P], I = z(b,
|
|
2798
|
+
function A(b, k, g, m, T) {
|
|
2799
|
+
for (var $ = [], P = 0; P < i.length; P++) {
|
|
2800
|
+
var z = i[P], I = z(b, k, g, m, T, t);
|
|
2801
2801
|
if (I == null)
|
|
2802
2802
|
return null;
|
|
2803
|
-
I.data && n(I.data, "expectedType") &&
|
|
2803
|
+
I.data && n(I.data, "expectedType") && $.push(I.data.expectedType);
|
|
2804
2804
|
}
|
|
2805
|
-
var se =
|
|
2805
|
+
var se = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
2806
2806
|
return new p("Invalid " + m + " `" + T + "` supplied to " + ("`" + g + "`" + se + "."));
|
|
2807
2807
|
}
|
|
2808
2808
|
return _(A);
|
|
2809
2809
|
}
|
|
2810
2810
|
function ce() {
|
|
2811
|
-
function i(s, y, A, b,
|
|
2812
|
-
return O(s[y]) ? null : new p("Invalid " + b + " `" +
|
|
2811
|
+
function i(s, y, A, b, k) {
|
|
2812
|
+
return O(s[y]) ? null : new p("Invalid " + b + " `" + k + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
2813
2813
|
}
|
|
2814
2814
|
return _(i);
|
|
2815
2815
|
}
|
|
2816
|
-
function
|
|
2816
|
+
function H(i, s, y, A, b) {
|
|
2817
2817
|
return new p(
|
|
2818
2818
|
(i || "React class") + ": " + s + " type `" + y + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + b + "`."
|
|
2819
2819
|
);
|
|
2820
2820
|
}
|
|
2821
2821
|
function c(i) {
|
|
2822
|
-
function s(y, A, b,
|
|
2823
|
-
var m = y[A], T =
|
|
2822
|
+
function s(y, A, b, k, g) {
|
|
2823
|
+
var m = y[A], T = D(m);
|
|
2824
2824
|
if (T !== "object")
|
|
2825
|
-
return new p("Invalid " +
|
|
2826
|
-
for (var
|
|
2827
|
-
var P = i[
|
|
2825
|
+
return new p("Invalid " + k + " `" + g + "` of type `" + T + "` " + ("supplied to `" + b + "`, expected `object`."));
|
|
2826
|
+
for (var $ in i) {
|
|
2827
|
+
var P = i[$];
|
|
2828
2828
|
if (typeof P != "function")
|
|
2829
|
-
return
|
|
2830
|
-
var z = P(m,
|
|
2829
|
+
return H(b, k, g, $, J(P));
|
|
2830
|
+
var z = P(m, $, b, k, g + "." + $, t);
|
|
2831
2831
|
if (z)
|
|
2832
2832
|
return z;
|
|
2833
2833
|
}
|
|
@@ -2835,22 +2835,22 @@ function ra() {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
return _(s);
|
|
2837
2837
|
}
|
|
2838
|
-
function
|
|
2839
|
-
function s(y, A, b,
|
|
2840
|
-
var m = y[A], T =
|
|
2838
|
+
function M(i) {
|
|
2839
|
+
function s(y, A, b, k, g) {
|
|
2840
|
+
var m = y[A], T = D(m);
|
|
2841
2841
|
if (T !== "object")
|
|
2842
|
-
return new p("Invalid " +
|
|
2843
|
-
var
|
|
2844
|
-
for (var P in
|
|
2842
|
+
return new p("Invalid " + k + " `" + g + "` of type `" + T + "` " + ("supplied to `" + b + "`, expected `object`."));
|
|
2843
|
+
var $ = r({}, y[A], i);
|
|
2844
|
+
for (var P in $) {
|
|
2845
2845
|
var z = i[P];
|
|
2846
2846
|
if (n(i, P) && typeof z != "function")
|
|
2847
|
-
return
|
|
2847
|
+
return H(b, k, g, P, J(z));
|
|
2848
2848
|
if (!z)
|
|
2849
2849
|
return new p(
|
|
2850
|
-
"Invalid " +
|
|
2850
|
+
"Invalid " + k + " `" + g + "` key `" + P + "` supplied to `" + b + "`.\nBad object: " + JSON.stringify(y[A], null, " ") + `
|
|
2851
2851
|
Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
2852
2852
|
);
|
|
2853
|
-
var I = z(m, P, b,
|
|
2853
|
+
var I = z(m, P, b, k, g + "." + P, t);
|
|
2854
2854
|
if (I)
|
|
2855
2855
|
return I;
|
|
2856
2856
|
}
|
|
@@ -2894,14 +2894,14 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
|
2894
2894
|
function N(i, s) {
|
|
2895
2895
|
return i === "symbol" ? !0 : s ? s["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && s instanceof Symbol : !1;
|
|
2896
2896
|
}
|
|
2897
|
-
function
|
|
2897
|
+
function D(i) {
|
|
2898
2898
|
var s = typeof i;
|
|
2899
2899
|
return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : N(s, i) ? "symbol" : s;
|
|
2900
2900
|
}
|
|
2901
2901
|
function J(i) {
|
|
2902
2902
|
if (typeof i > "u" || i === null)
|
|
2903
2903
|
return "" + i;
|
|
2904
|
-
var s =
|
|
2904
|
+
var s = D(i);
|
|
2905
2905
|
if (s === "object") {
|
|
2906
2906
|
if (i instanceof Date)
|
|
2907
2907
|
return "date";
|
|
@@ -2924,10 +2924,10 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
|
2924
2924
|
return s;
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
function
|
|
2928
|
-
return !i.constructor || !i.constructor.name ?
|
|
2927
|
+
function ue(i) {
|
|
2928
|
+
return !i.constructor || !i.constructor.name ? x : i.constructor.name;
|
|
2929
2929
|
}
|
|
2930
|
-
return
|
|
2930
|
+
return E.checkPropTypes = o, E.resetWarningCache = o.resetWarningCache, E.PropTypes = E, E;
|
|
2931
2931
|
}, Jr;
|
|
2932
2932
|
}
|
|
2933
2933
|
var Gr, Nt;
|
|
@@ -2942,10 +2942,10 @@ function ta() {
|
|
|
2942
2942
|
return t.resetWarningCache = r, Gr = function() {
|
|
2943
2943
|
function n(l, u, f, h, w, C) {
|
|
2944
2944
|
if (C !== e) {
|
|
2945
|
-
var
|
|
2945
|
+
var x = new Error(
|
|
2946
2946
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2947
2947
|
);
|
|
2948
|
-
throw
|
|
2948
|
+
throw x.name = "Invariant Violation", x;
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
2951
|
n.isRequired = n;
|
|
@@ -3016,7 +3016,7 @@ function aa(e, r, t = void 0) {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
return n;
|
|
3018
3018
|
}
|
|
3019
|
-
var hr = { exports: {} },
|
|
3019
|
+
var hr = { exports: {} }, X = {};
|
|
3020
3020
|
/**
|
|
3021
3021
|
* @license React
|
|
3022
3022
|
* react-is.production.js
|
|
@@ -3028,10 +3028,10 @@ var hr = { exports: {} }, ee = {};
|
|
|
3028
3028
|
*/
|
|
3029
3029
|
var Bt;
|
|
3030
3030
|
function ia() {
|
|
3031
|
-
if (Bt) return
|
|
3031
|
+
if (Bt) return X;
|
|
3032
3032
|
Bt = 1;
|
|
3033
|
-
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"),
|
|
3034
|
-
function
|
|
3033
|
+
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), x = Symbol.for("react.view_transition"), E = Symbol.for("react.client.reference");
|
|
3034
|
+
function v(p) {
|
|
3035
3035
|
if (typeof p == "object" && p !== null) {
|
|
3036
3036
|
var _ = p.$$typeof;
|
|
3037
3037
|
switch (_) {
|
|
@@ -3042,7 +3042,7 @@ function ia() {
|
|
|
3042
3042
|
case n:
|
|
3043
3043
|
case f:
|
|
3044
3044
|
case h:
|
|
3045
|
-
case
|
|
3045
|
+
case x:
|
|
3046
3046
|
return p;
|
|
3047
3047
|
default:
|
|
3048
3048
|
switch (p = p && p.$$typeof, p) {
|
|
@@ -3062,35 +3062,35 @@ function ia() {
|
|
|
3062
3062
|
}
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
|
-
return
|
|
3066
|
-
return
|
|
3067
|
-
},
|
|
3068
|
-
return
|
|
3069
|
-
},
|
|
3065
|
+
return X.ContextConsumer = a, X.ContextProvider = l, X.Element = e, X.ForwardRef = u, X.Fragment = t, X.Lazy = C, X.Memo = w, X.Portal = r, X.Profiler = o, X.StrictMode = n, X.Suspense = f, X.SuspenseList = h, X.isContextConsumer = function(p) {
|
|
3066
|
+
return v(p) === a;
|
|
3067
|
+
}, X.isContextProvider = function(p) {
|
|
3068
|
+
return v(p) === l;
|
|
3069
|
+
}, X.isElement = function(p) {
|
|
3070
3070
|
return typeof p == "object" && p !== null && p.$$typeof === e;
|
|
3071
|
-
},
|
|
3072
|
-
return
|
|
3073
|
-
},
|
|
3074
|
-
return
|
|
3075
|
-
},
|
|
3076
|
-
return
|
|
3077
|
-
},
|
|
3078
|
-
return
|
|
3079
|
-
},
|
|
3080
|
-
return
|
|
3081
|
-
},
|
|
3082
|
-
return
|
|
3083
|
-
},
|
|
3084
|
-
return
|
|
3085
|
-
},
|
|
3086
|
-
return
|
|
3087
|
-
},
|
|
3088
|
-
return
|
|
3089
|
-
},
|
|
3090
|
-
return typeof p == "string" || typeof p == "function" || p === t || p === o || p === n || p === f || p === h || typeof p == "object" && p !== null && (p.$$typeof === C || p.$$typeof === w || p.$$typeof === l || p.$$typeof === a || p.$$typeof === u || p.$$typeof ===
|
|
3091
|
-
},
|
|
3092
|
-
}
|
|
3093
|
-
var
|
|
3071
|
+
}, X.isForwardRef = function(p) {
|
|
3072
|
+
return v(p) === u;
|
|
3073
|
+
}, X.isFragment = function(p) {
|
|
3074
|
+
return v(p) === t;
|
|
3075
|
+
}, X.isLazy = function(p) {
|
|
3076
|
+
return v(p) === C;
|
|
3077
|
+
}, X.isMemo = function(p) {
|
|
3078
|
+
return v(p) === w;
|
|
3079
|
+
}, X.isPortal = function(p) {
|
|
3080
|
+
return v(p) === r;
|
|
3081
|
+
}, X.isProfiler = function(p) {
|
|
3082
|
+
return v(p) === o;
|
|
3083
|
+
}, X.isStrictMode = function(p) {
|
|
3084
|
+
return v(p) === n;
|
|
3085
|
+
}, X.isSuspense = function(p) {
|
|
3086
|
+
return v(p) === f;
|
|
3087
|
+
}, X.isSuspenseList = function(p) {
|
|
3088
|
+
return v(p) === h;
|
|
3089
|
+
}, X.isValidElementType = function(p) {
|
|
3090
|
+
return typeof p == "string" || typeof p == "function" || p === t || p === o || p === n || p === f || p === h || typeof p == "object" && p !== null && (p.$$typeof === C || p.$$typeof === w || p.$$typeof === l || p.$$typeof === a || p.$$typeof === u || p.$$typeof === E || p.getModuleId !== void 0);
|
|
3091
|
+
}, X.typeOf = v, X;
|
|
3092
|
+
}
|
|
3093
|
+
var ee = {};
|
|
3094
3094
|
/**
|
|
3095
3095
|
* @license React
|
|
3096
3096
|
* react-is.development.js
|
|
@@ -3114,13 +3114,13 @@ function sa() {
|
|
|
3114
3114
|
case o:
|
|
3115
3115
|
case h:
|
|
3116
3116
|
case w:
|
|
3117
|
-
case
|
|
3117
|
+
case E:
|
|
3118
3118
|
return p;
|
|
3119
3119
|
default:
|
|
3120
3120
|
switch (p = p && p.$$typeof, p) {
|
|
3121
3121
|
case u:
|
|
3122
3122
|
case f:
|
|
3123
|
-
case
|
|
3123
|
+
case x:
|
|
3124
3124
|
case C:
|
|
3125
3125
|
return p;
|
|
3126
3126
|
case l:
|
|
@@ -3134,35 +3134,35 @@ function sa() {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
}
|
|
3136
3136
|
}
|
|
3137
|
-
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"),
|
|
3138
|
-
|
|
3137
|
+
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.consumer"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), E = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
|
|
3138
|
+
ee.ContextConsumer = l, ee.ContextProvider = u, ee.Element = r, ee.ForwardRef = f, ee.Fragment = n, ee.Lazy = x, ee.Memo = C, ee.Portal = t, ee.Profiler = a, ee.StrictMode = o, ee.Suspense = h, ee.SuspenseList = w, ee.isContextConsumer = function(p) {
|
|
3139
3139
|
return e(p) === l;
|
|
3140
|
-
},
|
|
3140
|
+
}, ee.isContextProvider = function(p) {
|
|
3141
3141
|
return e(p) === u;
|
|
3142
|
-
},
|
|
3142
|
+
}, ee.isElement = function(p) {
|
|
3143
3143
|
return typeof p == "object" && p !== null && p.$$typeof === r;
|
|
3144
|
-
},
|
|
3144
|
+
}, ee.isForwardRef = function(p) {
|
|
3145
3145
|
return e(p) === f;
|
|
3146
|
-
},
|
|
3146
|
+
}, ee.isFragment = function(p) {
|
|
3147
3147
|
return e(p) === n;
|
|
3148
|
-
},
|
|
3149
|
-
return e(p) ===
|
|
3150
|
-
},
|
|
3148
|
+
}, ee.isLazy = function(p) {
|
|
3149
|
+
return e(p) === x;
|
|
3150
|
+
}, ee.isMemo = function(p) {
|
|
3151
3151
|
return e(p) === C;
|
|
3152
|
-
},
|
|
3152
|
+
}, ee.isPortal = function(p) {
|
|
3153
3153
|
return e(p) === t;
|
|
3154
|
-
},
|
|
3154
|
+
}, ee.isProfiler = function(p) {
|
|
3155
3155
|
return e(p) === a;
|
|
3156
|
-
},
|
|
3156
|
+
}, ee.isStrictMode = function(p) {
|
|
3157
3157
|
return e(p) === o;
|
|
3158
|
-
},
|
|
3158
|
+
}, ee.isSuspense = function(p) {
|
|
3159
3159
|
return e(p) === h;
|
|
3160
|
-
},
|
|
3160
|
+
}, ee.isSuspenseList = function(p) {
|
|
3161
3161
|
return e(p) === w;
|
|
3162
|
-
},
|
|
3163
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === a || p === o || p === h || p === w || typeof p == "object" && p !== null && (p.$$typeof ===
|
|
3164
|
-
},
|
|
3165
|
-
}()),
|
|
3162
|
+
}, ee.isValidElementType = function(p) {
|
|
3163
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === a || p === o || p === h || p === w || typeof p == "object" && p !== null && (p.$$typeof === x || p.$$typeof === C || p.$$typeof === u || p.$$typeof === l || p.$$typeof === f || p.$$typeof === v || p.getModuleId !== void 0);
|
|
3164
|
+
}, ee.typeOf = e;
|
|
3165
|
+
}()), ee;
|
|
3166
3166
|
}
|
|
3167
3167
|
var Ft;
|
|
3168
3168
|
function ca() {
|
|
@@ -3333,9 +3333,9 @@ function ie(e) {
|
|
|
3333
3333
|
return null;
|
|
3334
3334
|
const u = l[r], f = l.theme, h = Or(f, n) || {};
|
|
3335
3335
|
return _e(l, u, (C) => {
|
|
3336
|
-
let
|
|
3337
|
-
return C ===
|
|
3338
|
-
[t]:
|
|
3336
|
+
let x = wr(h, o, C);
|
|
3337
|
+
return C === x && typeof C == "string" && (x = wr(h, o, `${r}${C === "default" ? "" : ze(C)}`, C)), t === !1 ? x : {
|
|
3338
|
+
[t]: x
|
|
3339
3339
|
};
|
|
3340
3340
|
});
|
|
3341
3341
|
};
|
|
@@ -3891,10 +3891,10 @@ function Xa() {
|
|
|
3891
3891
|
return {
|
|
3892
3892
|
[t]: n
|
|
3893
3893
|
};
|
|
3894
|
-
const
|
|
3895
|
-
return C ? C(l) : _e(l, n, (
|
|
3896
|
-
let p = wr(
|
|
3897
|
-
return
|
|
3894
|
+
const x = Or(o, h) || {};
|
|
3895
|
+
return C ? C(l) : _e(l, n, (v) => {
|
|
3896
|
+
let p = wr(x, w, v);
|
|
3897
|
+
return v === p && typeof v == "string" && (p = wr(x, w, `${t}${v === "default" ? "" : ze(v)}`, v)), f === !1 ? p : {
|
|
3898
3898
|
[f]: p
|
|
3899
3899
|
};
|
|
3900
3900
|
});
|
|
@@ -3917,30 +3917,30 @@ function Xa() {
|
|
|
3917
3917
|
if (!h)
|
|
3918
3918
|
return null;
|
|
3919
3919
|
const w = pa(o.breakpoints), C = Object.keys(w);
|
|
3920
|
-
let
|
|
3921
|
-
return Object.keys(h).forEach((
|
|
3922
|
-
const
|
|
3923
|
-
if (
|
|
3924
|
-
if (typeof
|
|
3925
|
-
if (l[
|
|
3926
|
-
|
|
3920
|
+
let x = w;
|
|
3921
|
+
return Object.keys(h).forEach((E) => {
|
|
3922
|
+
const v = Za(h[E], o);
|
|
3923
|
+
if (v != null)
|
|
3924
|
+
if (typeof v == "object")
|
|
3925
|
+
if (l[E])
|
|
3926
|
+
x = cr(x, e(E, v, o, l));
|
|
3927
3927
|
else {
|
|
3928
3928
|
const p = _e({
|
|
3929
3929
|
theme: o
|
|
3930
|
-
},
|
|
3931
|
-
[
|
|
3930
|
+
}, v, (_) => ({
|
|
3931
|
+
[E]: _
|
|
3932
3932
|
}));
|
|
3933
|
-
qa(p,
|
|
3934
|
-
sx:
|
|
3933
|
+
qa(p, v) ? x[E] = r({
|
|
3934
|
+
sx: v,
|
|
3935
3935
|
theme: o,
|
|
3936
3936
|
nested: !0
|
|
3937
|
-
}) :
|
|
3937
|
+
}) : x = cr(x, p);
|
|
3938
3938
|
}
|
|
3939
3939
|
else
|
|
3940
|
-
|
|
3940
|
+
x = cr(x, e(E, v, o, l));
|
|
3941
3941
|
}), !a && o.modularCssLayers ? {
|
|
3942
|
-
"@layer sx": zt(o, Ht(C,
|
|
3943
|
-
} : zt(o, Ht(C,
|
|
3942
|
+
"@layer sx": zt(o, Ht(C, x))
|
|
3943
|
+
} : zt(o, Ht(C, x));
|
|
3944
3944
|
}
|
|
3945
3945
|
return Array.isArray(n) ? n.map(u) : u(n);
|
|
3946
3946
|
}
|
|
@@ -4189,22 +4189,22 @@ function ui(e) {
|
|
|
4189
4189
|
step: n = 5,
|
|
4190
4190
|
...o
|
|
4191
4191
|
} = e, a = li(r), l = Object.keys(a);
|
|
4192
|
-
function u(
|
|
4193
|
-
return `@media (min-width:${typeof r[
|
|
4192
|
+
function u(x) {
|
|
4193
|
+
return `@media (min-width:${typeof r[x] == "number" ? r[x] : x}${t})`;
|
|
4194
4194
|
}
|
|
4195
|
-
function f(
|
|
4196
|
-
return `@media (max-width:${(typeof r[
|
|
4195
|
+
function f(x) {
|
|
4196
|
+
return `@media (max-width:${(typeof r[x] == "number" ? r[x] : x) - n / 100}${t})`;
|
|
4197
4197
|
}
|
|
4198
|
-
function h(
|
|
4199
|
-
const
|
|
4200
|
-
return `@media (min-width:${typeof r[
|
|
4198
|
+
function h(x, E) {
|
|
4199
|
+
const v = l.indexOf(E);
|
|
4200
|
+
return `@media (min-width:${typeof r[x] == "number" ? r[x] : x}${t}) and (max-width:${(v !== -1 && typeof r[l[v]] == "number" ? r[l[v]] : E) - n / 100}${t})`;
|
|
4201
4201
|
}
|
|
4202
|
-
function w(
|
|
4203
|
-
return l.indexOf(
|
|
4202
|
+
function w(x) {
|
|
4203
|
+
return l.indexOf(x) + 1 < l.length ? h(x, l[l.indexOf(x) + 1]) : u(x);
|
|
4204
4204
|
}
|
|
4205
|
-
function C(
|
|
4206
|
-
const
|
|
4207
|
-
return
|
|
4205
|
+
function C(x) {
|
|
4206
|
+
const E = l.indexOf(x);
|
|
4207
|
+
return E === 0 ? u(l[1]) : E === l.length - 1 ? f(l[E]) : h(x, l[l.indexOf(x) + 1]).replace("@media", "@media not all and");
|
|
4208
4208
|
}
|
|
4209
4209
|
return {
|
|
4210
4210
|
keys: l,
|
|
@@ -4406,28 +4406,28 @@ function Ai(e = {}) {
|
|
|
4406
4406
|
bi(u, r, t);
|
|
4407
4407
|
}
|
|
4408
4408
|
return (u, f = {}) => {
|
|
4409
|
-
ci(u, (L) => L.filter((
|
|
4409
|
+
ci(u, (L) => L.filter((W) => W !== er));
|
|
4410
4410
|
const {
|
|
4411
4411
|
name: h,
|
|
4412
4412
|
slot: w,
|
|
4413
4413
|
skipVariantsResolver: C,
|
|
4414
|
-
skipSx:
|
|
4414
|
+
skipSx: x,
|
|
4415
4415
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
4416
4416
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
4417
|
-
overridesResolver:
|
|
4418
|
-
...
|
|
4417
|
+
overridesResolver: E = yi(Pn(w)),
|
|
4418
|
+
...v
|
|
4419
4419
|
} = f, p = h && h.startsWith("Mui") || w ? "components" : "custom", _ = C !== void 0 ? C : (
|
|
4420
4420
|
// TODO v6: remove `Root` in the next major release
|
|
4421
4421
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
4422
4422
|
w && w !== "Root" && w !== "root" || !1
|
|
4423
|
-
), U =
|
|
4424
|
-
let
|
|
4425
|
-
w === "Root" || w === "root" ?
|
|
4426
|
-
const
|
|
4427
|
-
shouldForwardProp:
|
|
4423
|
+
), U = x || !1;
|
|
4424
|
+
let B = qr;
|
|
4425
|
+
w === "Root" || w === "root" ? B = n : w ? B = o : wi(u) && (B = void 0);
|
|
4426
|
+
const V = si(u, {
|
|
4427
|
+
shouldForwardProp: B,
|
|
4428
4428
|
label: xi(h, w),
|
|
4429
|
-
...
|
|
4430
|
-
}),
|
|
4429
|
+
...v
|
|
4430
|
+
}), j = (L) => {
|
|
4431
4431
|
if (L.__emotion_real === L)
|
|
4432
4432
|
return L;
|
|
4433
4433
|
if (typeof L == "function")
|
|
@@ -4435,36 +4435,36 @@ function Ai(e = {}) {
|
|
|
4435
4435
|
return yr(F, L, F.theme.modularCssLayers ? p : void 0);
|
|
4436
4436
|
};
|
|
4437
4437
|
if (Ee(L)) {
|
|
4438
|
-
const
|
|
4439
|
-
return function(
|
|
4440
|
-
return
|
|
4438
|
+
const W = On(L);
|
|
4439
|
+
return function(re) {
|
|
4440
|
+
return W.variants ? yr(re, W, re.theme.modularCssLayers ? p : void 0) : re.theme.modularCssLayers ? De(W.style, p) : W.style;
|
|
4441
4441
|
};
|
|
4442
4442
|
}
|
|
4443
4443
|
return L;
|
|
4444
4444
|
}, R = (...L) => {
|
|
4445
|
-
const
|
|
4446
|
-
if (
|
|
4445
|
+
const W = [], F = L.map(j), re = [];
|
|
4446
|
+
if (W.push(a), h && E && re.push(function(M) {
|
|
4447
4447
|
var J, ne;
|
|
4448
|
-
const N = (ne = (J =
|
|
4448
|
+
const N = (ne = (J = M.theme.components) == null ? void 0 : J[h]) == null ? void 0 : ne.styleOverrides;
|
|
4449
4449
|
if (!N)
|
|
4450
4450
|
return null;
|
|
4451
|
-
const
|
|
4452
|
-
for (const
|
|
4453
|
-
|
|
4454
|
-
return
|
|
4455
|
-
}), h && !_ &&
|
|
4456
|
-
var
|
|
4457
|
-
const O =
|
|
4458
|
-
return N ? In(
|
|
4459
|
-
}), U ||
|
|
4460
|
-
const c = F.shift(),
|
|
4451
|
+
const D = {};
|
|
4452
|
+
for (const ue in N)
|
|
4453
|
+
D[ue] = yr(M, N[ue], M.theme.modularCssLayers ? "theme" : void 0);
|
|
4454
|
+
return E(M, D);
|
|
4455
|
+
}), h && !_ && re.push(function(M) {
|
|
4456
|
+
var D, J;
|
|
4457
|
+
const O = M.theme, N = (J = (D = O == null ? void 0 : O.components) == null ? void 0 : D[h]) == null ? void 0 : J.variants;
|
|
4458
|
+
return N ? In(M, N, [], M.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
4459
|
+
}), U || re.push(er), Array.isArray(F[0])) {
|
|
4460
|
+
const c = F.shift(), M = new Array(W.length).fill(""), O = new Array(re.length).fill("");
|
|
4461
4461
|
let N;
|
|
4462
|
-
N = [
|
|
4462
|
+
N = [...M, ...c, ...O], N.raw = [...M, ...c.raw, ...O], W.unshift(N);
|
|
4463
4463
|
}
|
|
4464
|
-
const ce = [...
|
|
4465
|
-
return u.muiName && (
|
|
4464
|
+
const ce = [...W, ...F, ...re], H = V(...ce);
|
|
4465
|
+
return u.muiName && (H.muiName = u.muiName), process.env.NODE_ENV !== "production" && (H.displayName = vi(h, w, u)), H;
|
|
4466
4466
|
};
|
|
4467
|
-
return
|
|
4467
|
+
return V.withConfig && (R.withConfig = V.withConfig), R;
|
|
4468
4468
|
};
|
|
4469
4469
|
}
|
|
4470
4470
|
function vi(e, r, t) {
|
|
@@ -4746,105 +4746,105 @@ function Mi(e, r = {}) {
|
|
|
4746
4746
|
} = e, {
|
|
4747
4747
|
vars: w,
|
|
4748
4748
|
css: C,
|
|
4749
|
-
varsWithDefaults:
|
|
4749
|
+
varsWithDefaults: x
|
|
4750
4750
|
} = Zr(h, r);
|
|
4751
|
-
let
|
|
4752
|
-
const
|
|
4751
|
+
let E = x;
|
|
4752
|
+
const v = {}, {
|
|
4753
4753
|
[f]: p,
|
|
4754
4754
|
..._
|
|
4755
4755
|
} = l;
|
|
4756
|
-
if (Object.entries(_ || {}).forEach(([
|
|
4756
|
+
if (Object.entries(_ || {}).forEach(([j, R]) => {
|
|
4757
4757
|
const {
|
|
4758
4758
|
vars: L,
|
|
4759
|
-
css:
|
|
4759
|
+
css: W,
|
|
4760
4760
|
varsWithDefaults: F
|
|
4761
4761
|
} = Zr(R, r);
|
|
4762
|
-
|
|
4763
|
-
css:
|
|
4762
|
+
E = me(E, F), v[j] = {
|
|
4763
|
+
css: W,
|
|
4764
4764
|
vars: L
|
|
4765
4765
|
};
|
|
4766
4766
|
}), p) {
|
|
4767
4767
|
const {
|
|
4768
|
-
css:
|
|
4768
|
+
css: j,
|
|
4769
4769
|
vars: R,
|
|
4770
4770
|
varsWithDefaults: L
|
|
4771
4771
|
} = Zr(p, r);
|
|
4772
|
-
|
|
4773
|
-
css:
|
|
4772
|
+
E = me(E, L), v[f] = {
|
|
4773
|
+
css: j,
|
|
4774
4774
|
vars: R
|
|
4775
4775
|
};
|
|
4776
4776
|
}
|
|
4777
|
-
function U(
|
|
4778
|
-
var
|
|
4777
|
+
function U(j, R) {
|
|
4778
|
+
var W, F;
|
|
4779
4779
|
let L = o;
|
|
4780
|
-
if (o === "class" && (L = ".%s"), o === "data" && (L = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (L = `[${o}="%s"]`),
|
|
4780
|
+
if (o === "class" && (L = ".%s"), o === "data" && (L = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (L = `[${o}="%s"]`), j) {
|
|
4781
4781
|
if (L === "media")
|
|
4782
|
-
return e.defaultColorScheme ===
|
|
4783
|
-
[`@media (prefers-color-scheme: ${((F = (
|
|
4782
|
+
return e.defaultColorScheme === j ? ":root" : {
|
|
4783
|
+
[`@media (prefers-color-scheme: ${((F = (W = l[j]) == null ? void 0 : W.palette) == null ? void 0 : F.mode) || j})`]: {
|
|
4784
4784
|
":root": R
|
|
4785
4785
|
}
|
|
4786
4786
|
};
|
|
4787
4787
|
if (L)
|
|
4788
|
-
return e.defaultColorScheme ===
|
|
4788
|
+
return e.defaultColorScheme === j ? `:root, ${L.replace("%s", String(j))}` : L.replace("%s", String(j));
|
|
4789
4789
|
}
|
|
4790
4790
|
return ":root";
|
|
4791
4791
|
}
|
|
4792
4792
|
return {
|
|
4793
|
-
vars:
|
|
4793
|
+
vars: E,
|
|
4794
4794
|
generateThemeVars: () => {
|
|
4795
|
-
let
|
|
4795
|
+
let j = {
|
|
4796
4796
|
...w
|
|
4797
4797
|
};
|
|
4798
|
-
return Object.entries(
|
|
4798
|
+
return Object.entries(v).forEach(([, {
|
|
4799
4799
|
vars: R
|
|
4800
4800
|
}]) => {
|
|
4801
|
-
|
|
4802
|
-
}),
|
|
4801
|
+
j = me(j, R);
|
|
4802
|
+
}), j;
|
|
4803
4803
|
},
|
|
4804
4804
|
generateStyleSheets: () => {
|
|
4805
|
-
var
|
|
4806
|
-
const
|
|
4807
|
-
function L(
|
|
4808
|
-
Object.keys(c).length &&
|
|
4809
|
-
[
|
|
4805
|
+
var re, ce;
|
|
4806
|
+
const j = [], R = e.defaultColorScheme || "light";
|
|
4807
|
+
function L(H, c) {
|
|
4808
|
+
Object.keys(c).length && j.push(typeof H == "string" ? {
|
|
4809
|
+
[H]: {
|
|
4810
4810
|
...c
|
|
4811
4811
|
}
|
|
4812
|
-
} :
|
|
4812
|
+
} : H);
|
|
4813
4813
|
}
|
|
4814
4814
|
L(t(void 0, {
|
|
4815
4815
|
...C
|
|
4816
4816
|
}), C);
|
|
4817
4817
|
const {
|
|
4818
|
-
[R]:
|
|
4818
|
+
[R]: W,
|
|
4819
4819
|
...F
|
|
4820
|
-
} =
|
|
4821
|
-
if (
|
|
4820
|
+
} = v;
|
|
4821
|
+
if (W) {
|
|
4822
4822
|
const {
|
|
4823
|
-
css:
|
|
4824
|
-
} =
|
|
4823
|
+
css: H
|
|
4824
|
+
} = W, c = (ce = (re = l[R]) == null ? void 0 : re.palette) == null ? void 0 : ce.mode, M = !n && c ? {
|
|
4825
4825
|
colorScheme: c,
|
|
4826
|
-
...
|
|
4826
|
+
...H
|
|
4827
4827
|
} : {
|
|
4828
|
-
...
|
|
4828
|
+
...H
|
|
4829
4829
|
};
|
|
4830
4830
|
L(t(R, {
|
|
4831
|
-
|
|
4832
|
-
}),
|
|
4831
|
+
...M
|
|
4832
|
+
}), M);
|
|
4833
4833
|
}
|
|
4834
|
-
return Object.entries(F).forEach(([
|
|
4834
|
+
return Object.entries(F).forEach(([H, {
|
|
4835
4835
|
css: c
|
|
4836
4836
|
}]) => {
|
|
4837
|
-
var N,
|
|
4838
|
-
const
|
|
4839
|
-
colorScheme:
|
|
4837
|
+
var N, D;
|
|
4838
|
+
const M = (D = (N = l[H]) == null ? void 0 : N.palette) == null ? void 0 : D.mode, O = !n && M ? {
|
|
4839
|
+
colorScheme: M,
|
|
4840
4840
|
...c
|
|
4841
4841
|
} : {
|
|
4842
4842
|
...c
|
|
4843
4843
|
};
|
|
4844
|
-
L(t(
|
|
4844
|
+
L(t(H, {
|
|
4845
4845
|
...O
|
|
4846
4846
|
}), O);
|
|
4847
|
-
}), a &&
|
|
4847
|
+
}), a && j.push({
|
|
4848
4848
|
":root": {
|
|
4849
4849
|
// use double underscore to indicate that these are private variables
|
|
4850
4850
|
"--__l-threshold": "0.7",
|
|
@@ -4852,7 +4852,7 @@ function Mi(e, r = {}) {
|
|
|
4852
4852
|
"--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
|
|
4853
4853
|
// 0.87 is the default alpha value for black text.
|
|
4854
4854
|
}
|
|
4855
|
-
}),
|
|
4855
|
+
}), j;
|
|
4856
4856
|
}
|
|
4857
4857
|
};
|
|
4858
4858
|
}
|
|
@@ -5074,29 +5074,29 @@ function xt(e) {
|
|
|
5074
5074
|
colorSpace: o,
|
|
5075
5075
|
...a
|
|
5076
5076
|
} = e, l = e.primary || Ni(r), u = e.secondary || Di(r), f = e.error || Bi(r), h = e.info || Vi(r), w = e.success || Fi(r), C = e.warning || zi(r);
|
|
5077
|
-
function
|
|
5077
|
+
function x(_) {
|
|
5078
5078
|
if (o)
|
|
5079
5079
|
return Wi(_);
|
|
5080
5080
|
const U = Zt(_, dt.text.primary) >= t ? dt.text.primary : Un.text.primary;
|
|
5081
5081
|
if (process.env.NODE_ENV !== "production") {
|
|
5082
|
-
const
|
|
5083
|
-
|
|
5082
|
+
const B = Zt(_, U);
|
|
5083
|
+
B < 3 && console.error([`MUI: The contrast ratio of ${B}:1 for ${U} on ${_}`, "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(`
|
|
5084
5084
|
`));
|
|
5085
5085
|
}
|
|
5086
5086
|
return U;
|
|
5087
5087
|
}
|
|
5088
|
-
const
|
|
5088
|
+
const E = ({
|
|
5089
5089
|
color: _,
|
|
5090
5090
|
name: U,
|
|
5091
|
-
mainShade:
|
|
5092
|
-
lightShade:
|
|
5093
|
-
darkShade:
|
|
5091
|
+
mainShade: B = 500,
|
|
5092
|
+
lightShade: V = 300,
|
|
5093
|
+
darkShade: j = 700
|
|
5094
5094
|
}) => {
|
|
5095
5095
|
if (_ = {
|
|
5096
5096
|
..._
|
|
5097
|
-
}, !_.main && _[
|
|
5097
|
+
}, !_.main && _[B] && (_.main = _[B]), !_.hasOwnProperty("main"))
|
|
5098
5098
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${U ? ` (${U})` : ""} provided to augmentColor(color) is invalid.
|
|
5099
|
-
The color object needs to have a \`main\` property or a \`${
|
|
5099
|
+
The color object needs to have a \`main\` property or a \`${B}\` property.` : Fe(11, U ? ` (${U})` : "", B));
|
|
5100
5100
|
if (typeof _.main != "string")
|
|
5101
5101
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${U ? ` (${U})` : ""} provided to augmentColor(color) is invalid.
|
|
5102
5102
|
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
@@ -5112,10 +5112,10 @@ const theme1 = createTheme({ palette: {
|
|
|
5112
5112
|
const theme2 = createTheme({ palette: {
|
|
5113
5113
|
primary: { main: green[500] },
|
|
5114
5114
|
} });` : Fe(12, U ? ` (${U})` : "", JSON.stringify(_.main)));
|
|
5115
|
-
return o ? (tn(o, _, "light",
|
|
5115
|
+
return o ? (tn(o, _, "light", V, n), tn(o, _, "dark", j, n)) : (rn(_, "light", V, n), rn(_, "dark", j, n)), _.contrastText || (_.contrastText = x(_.main)), _;
|
|
5116
5116
|
};
|
|
5117
|
-
let
|
|
5118
|
-
return r === "light" ?
|
|
5117
|
+
let v;
|
|
5118
|
+
return r === "light" ? v = Mn() : r === "dark" && (v = Ln()), process.env.NODE_ENV !== "production" && (v || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), me({
|
|
5119
5119
|
// A collection of common colors.
|
|
5120
5120
|
common: {
|
|
5121
5121
|
...lr
|
|
@@ -5124,12 +5124,12 @@ const theme2 = createTheme({ palette: {
|
|
|
5124
5124
|
// The palette mode, can be light or dark.
|
|
5125
5125
|
mode: r,
|
|
5126
5126
|
// The colors used to represent primary interface elements for a user.
|
|
5127
|
-
primary:
|
|
5127
|
+
primary: E({
|
|
5128
5128
|
color: l,
|
|
5129
5129
|
name: "primary"
|
|
5130
5130
|
}),
|
|
5131
5131
|
// The colors used to represent secondary interface elements for a user.
|
|
5132
|
-
secondary:
|
|
5132
|
+
secondary: E({
|
|
5133
5133
|
color: u,
|
|
5134
5134
|
name: "secondary",
|
|
5135
5135
|
mainShade: "A400",
|
|
@@ -5137,22 +5137,22 @@ const theme2 = createTheme({ palette: {
|
|
|
5137
5137
|
darkShade: "A700"
|
|
5138
5138
|
}),
|
|
5139
5139
|
// The colors used to represent interface elements that the user should be made aware of.
|
|
5140
|
-
error:
|
|
5140
|
+
error: E({
|
|
5141
5141
|
color: f,
|
|
5142
5142
|
name: "error"
|
|
5143
5143
|
}),
|
|
5144
5144
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
5145
|
-
warning:
|
|
5145
|
+
warning: E({
|
|
5146
5146
|
color: C,
|
|
5147
5147
|
name: "warning"
|
|
5148
5148
|
}),
|
|
5149
5149
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
5150
|
-
info:
|
|
5150
|
+
info: E({
|
|
5151
5151
|
color: h,
|
|
5152
5152
|
name: "info"
|
|
5153
5153
|
}),
|
|
5154
5154
|
// The colors used to indicate the successful completion of an action that user triggered.
|
|
5155
|
-
success:
|
|
5155
|
+
success: E({
|
|
5156
5156
|
color: w,
|
|
5157
5157
|
name: "success"
|
|
5158
5158
|
}),
|
|
@@ -5162,15 +5162,15 @@ const theme2 = createTheme({ palette: {
|
|
|
5162
5162
|
// the background and the text.
|
|
5163
5163
|
contrastThreshold: t,
|
|
5164
5164
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
5165
|
-
getContrastText:
|
|
5165
|
+
getContrastText: x,
|
|
5166
5166
|
// Generate a rich color object.
|
|
5167
|
-
augmentColor:
|
|
5167
|
+
augmentColor: E,
|
|
5168
5168
|
// Used by the functions below to shift a color's luminance by approximately
|
|
5169
5169
|
// two indexes within its tonal palette.
|
|
5170
5170
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
5171
5171
|
tonalOffset: n,
|
|
5172
5172
|
// The light and dark mode object.
|
|
5173
|
-
...
|
|
5173
|
+
...v
|
|
5174
5174
|
}, a);
|
|
5175
5175
|
}
|
|
5176
5176
|
function Hi(e) {
|
|
@@ -5221,33 +5221,33 @@ function Ji(e, r) {
|
|
|
5221
5221
|
...C
|
|
5222
5222
|
} = typeof r == "function" ? r(e) : r;
|
|
5223
5223
|
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
5224
|
-
const
|
|
5224
|
+
const x = n / 14, E = w || ((_) => `${_ / f * x}rem`), v = (_, U, B, V, j) => ({
|
|
5225
5225
|
fontFamily: t,
|
|
5226
5226
|
fontWeight: _,
|
|
5227
|
-
fontSize:
|
|
5227
|
+
fontSize: E(U),
|
|
5228
5228
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
5229
|
-
lineHeight:
|
|
5229
|
+
lineHeight: B,
|
|
5230
5230
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
5231
5231
|
// across font-families can cause issues with the kerning.
|
|
5232
5232
|
...t === on ? {
|
|
5233
|
-
letterSpacing: `${Ki(
|
|
5233
|
+
letterSpacing: `${Ki(V / U)}em`
|
|
5234
5234
|
} : {},
|
|
5235
|
-
...
|
|
5235
|
+
...j,
|
|
5236
5236
|
...h
|
|
5237
5237
|
}), p = {
|
|
5238
|
-
h1:
|
|
5239
|
-
h2:
|
|
5240
|
-
h3:
|
|
5241
|
-
h4:
|
|
5242
|
-
h5:
|
|
5243
|
-
h6:
|
|
5244
|
-
subtitle1:
|
|
5245
|
-
subtitle2:
|
|
5246
|
-
body1:
|
|
5247
|
-
body2:
|
|
5248
|
-
button:
|
|
5249
|
-
caption:
|
|
5250
|
-
overline:
|
|
5238
|
+
h1: v(o, 96, 1.167, -1.5),
|
|
5239
|
+
h2: v(o, 60, 1.2, -0.5),
|
|
5240
|
+
h3: v(a, 48, 1.167, 0),
|
|
5241
|
+
h4: v(a, 34, 1.235, 0.25),
|
|
5242
|
+
h5: v(a, 24, 1.334, 0),
|
|
5243
|
+
h6: v(l, 20, 1.6, 0.15),
|
|
5244
|
+
subtitle1: v(a, 16, 1.75, 0.15),
|
|
5245
|
+
subtitle2: v(l, 14, 1.57, 0.1),
|
|
5246
|
+
body1: v(a, 16, 1.5, 0.15),
|
|
5247
|
+
body2: v(a, 14, 1.43, 0.15),
|
|
5248
|
+
button: v(l, 14, 1.75, 0.4, nn),
|
|
5249
|
+
caption: v(a, 12, 1.66, 0.4),
|
|
5250
|
+
overline: v(a, 12, 2.66, 1, nn),
|
|
5251
5251
|
// 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.
|
|
5252
5252
|
inherit: {
|
|
5253
5253
|
fontFamily: "inherit",
|
|
@@ -5259,7 +5259,7 @@ function Ji(e, r) {
|
|
|
5259
5259
|
};
|
|
5260
5260
|
return me({
|
|
5261
5261
|
htmlFontSize: f,
|
|
5262
|
-
pxToRem:
|
|
5262
|
+
pxToRem: E,
|
|
5263
5263
|
fontFamily: t,
|
|
5264
5264
|
fontSize: n,
|
|
5265
5265
|
fontWeightLight: o,
|
|
@@ -5326,7 +5326,7 @@ function ts(e) {
|
|
|
5326
5326
|
...h
|
|
5327
5327
|
} = a;
|
|
5328
5328
|
if (process.env.NODE_ENV !== "production") {
|
|
5329
|
-
const w = (
|
|
5329
|
+
const w = (x) => typeof x == "string", C = (x) => !Number.isNaN(parseFloat(x));
|
|
5330
5330
|
!w(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !C(l) && !w(l) && console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`), w(u) || console.error('MUI: Argument "easing" must be a string.'), !C(f) && !w(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
5331
5331
|
`)), Object.keys(h).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(h).join(",")}].`);
|
|
5332
5332
|
}
|
|
@@ -5421,9 +5421,9 @@ function ft(e = {}, ...r) {
|
|
|
5421
5421
|
const C = xt({
|
|
5422
5422
|
...a,
|
|
5423
5423
|
colorSpace: h
|
|
5424
|
-
}),
|
|
5425
|
-
let
|
|
5426
|
-
mixins: Qi(
|
|
5424
|
+
}), x = Rn(e);
|
|
5425
|
+
let E = me(x, {
|
|
5426
|
+
mixins: Qi(x.breakpoints, n),
|
|
5427
5427
|
palette: C,
|
|
5428
5428
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
5429
5429
|
shadows: Zi.slice(),
|
|
@@ -5433,39 +5433,39 @@ function ft(e = {}, ...r) {
|
|
|
5433
5433
|
...ns
|
|
5434
5434
|
}
|
|
5435
5435
|
});
|
|
5436
|
-
if (
|
|
5437
|
-
const
|
|
5438
|
-
let
|
|
5439
|
-
for (
|
|
5440
|
-
const
|
|
5441
|
-
if (
|
|
5436
|
+
if (E = me(E, w), E = r.reduce((v, p) => me(v, p), E), process.env.NODE_ENV !== "production") {
|
|
5437
|
+
const v = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], p = (_, U) => {
|
|
5438
|
+
let B;
|
|
5439
|
+
for (B in _) {
|
|
5440
|
+
const V = _[B];
|
|
5441
|
+
if (v.includes(B) && Object.keys(V).length > 0) {
|
|
5442
5442
|
if (process.env.NODE_ENV !== "production") {
|
|
5443
|
-
const
|
|
5444
|
-
console.error([`MUI: The \`${U}\` component increases the CSS specificity of the \`${
|
|
5443
|
+
const j = At("", B);
|
|
5444
|
+
console.error([`MUI: The \`${U}\` component increases the CSS specificity of the \`${B}\` internal state.`, "You can not override it like this: ", JSON.stringify(_, null, 2), "", `Instead, you need to use the '&.${j}' syntax:`, JSON.stringify({
|
|
5445
5445
|
root: {
|
|
5446
|
-
[`&.${
|
|
5446
|
+
[`&.${j}`]: V
|
|
5447
5447
|
}
|
|
5448
5448
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
5449
5449
|
`));
|
|
5450
5450
|
}
|
|
5451
|
-
_[
|
|
5451
|
+
_[B] = {};
|
|
5452
5452
|
}
|
|
5453
5453
|
}
|
|
5454
5454
|
};
|
|
5455
|
-
Object.keys(
|
|
5456
|
-
const U =
|
|
5455
|
+
Object.keys(E.components).forEach((_) => {
|
|
5456
|
+
const U = E.components[_].styleOverrides;
|
|
5457
5457
|
U && _.startsWith("Mui") && p(U, _);
|
|
5458
5458
|
});
|
|
5459
5459
|
}
|
|
5460
|
-
return
|
|
5460
|
+
return E.unstable_sxConfig = {
|
|
5461
5461
|
...Nr,
|
|
5462
5462
|
...w == null ? void 0 : w.unstable_sxConfig
|
|
5463
|
-
},
|
|
5463
|
+
}, E.unstable_sx = function(p) {
|
|
5464
5464
|
return er({
|
|
5465
5465
|
sx: p,
|
|
5466
5466
|
theme: this
|
|
5467
5467
|
});
|
|
5468
|
-
},
|
|
5468
|
+
}, E.toRuntimeSource = Nn, is(E), E;
|
|
5469
5469
|
}
|
|
5470
5470
|
function ss(e) {
|
|
5471
5471
|
let r;
|
|
@@ -5559,7 +5559,7 @@ function ps(e, r) {
|
|
|
5559
5559
|
e[t] || (e[t] = {});
|
|
5560
5560
|
});
|
|
5561
5561
|
}
|
|
5562
|
-
function
|
|
5562
|
+
function S(e, r, t) {
|
|
5563
5563
|
!e[r] && t && (e[r] = t);
|
|
5564
5564
|
}
|
|
5565
5565
|
function ir(e) {
|
|
@@ -5628,64 +5628,64 @@ function gs(e = {}, ...r) {
|
|
|
5628
5628
|
colorSchemeSelector: f = t.light && t.dark ? "media" : void 0,
|
|
5629
5629
|
rootSelector: h = ":root",
|
|
5630
5630
|
...w
|
|
5631
|
-
} = e, C = Object.keys(t)[0],
|
|
5632
|
-
[
|
|
5631
|
+
} = e, C = Object.keys(t)[0], x = n || (t.light && C !== "light" ? "light" : C), E = hs(a), {
|
|
5632
|
+
[x]: v,
|
|
5633
5633
|
light: p,
|
|
5634
5634
|
dark: _,
|
|
5635
5635
|
...U
|
|
5636
|
-
} = t,
|
|
5636
|
+
} = t, B = {
|
|
5637
5637
|
...U
|
|
5638
5638
|
};
|
|
5639
|
-
let
|
|
5640
|
-
if ((
|
|
5641
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${
|
|
5642
|
-
let
|
|
5643
|
-
l && (
|
|
5644
|
-
const R = Xr(
|
|
5645
|
-
p && !
|
|
5639
|
+
let V = v;
|
|
5640
|
+
if ((x === "dark" && !("dark" in t) || x === "light" && !("light" in t)) && (V = !0), !V)
|
|
5641
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${x}\` option is either missing or invalid.` : Fe(21, x));
|
|
5642
|
+
let j;
|
|
5643
|
+
l && (j = "oklch");
|
|
5644
|
+
const R = Xr(j, B, V, w, x);
|
|
5645
|
+
p && !B.light && Xr(j, B, p, void 0, "light"), _ && !B.dark && Xr(j, B, _, void 0, "dark");
|
|
5646
5646
|
let L = {
|
|
5647
|
-
defaultColorScheme:
|
|
5647
|
+
defaultColorScheme: x,
|
|
5648
5648
|
...R,
|
|
5649
5649
|
cssVarPrefix: a,
|
|
5650
5650
|
colorSchemeSelector: f,
|
|
5651
5651
|
rootSelector: h,
|
|
5652
|
-
getCssVar:
|
|
5653
|
-
colorSchemes:
|
|
5652
|
+
getCssVar: E,
|
|
5653
|
+
colorSchemes: B,
|
|
5654
5654
|
font: {
|
|
5655
5655
|
...Hi(R.typography),
|
|
5656
5656
|
...R.font
|
|
5657
5657
|
},
|
|
5658
5658
|
spacing: ms(w.spacing)
|
|
5659
5659
|
};
|
|
5660
|
-
Object.keys(L.colorSchemes).forEach((
|
|
5661
|
-
const c = L.colorSchemes[
|
|
5662
|
-
const
|
|
5663
|
-
return
|
|
5660
|
+
Object.keys(L.colorSchemes).forEach((H) => {
|
|
5661
|
+
const c = L.colorSchemes[H].palette, M = (N) => {
|
|
5662
|
+
const D = N.split("-"), J = D[1], ne = D[2];
|
|
5663
|
+
return E(N, c[J][ne]);
|
|
5664
5664
|
};
|
|
5665
|
-
c.mode === "light" && (
|
|
5666
|
-
function O(N,
|
|
5667
|
-
if (
|
|
5665
|
+
c.mode === "light" && (S(c.common, "background", "#fff"), S(c.common, "onBackground", "#000")), c.mode === "dark" && (S(c.common, "background", "#000"), S(c.common, "onBackground", "#fff"));
|
|
5666
|
+
function O(N, D, J) {
|
|
5667
|
+
if (j) {
|
|
5668
5668
|
let ne;
|
|
5669
|
-
return N === Ne && (ne = `transparent ${((1 - J) * 100).toFixed(0)}%`), N === q && (ne = `#000 ${(J * 100).toFixed(0)}%`), N === Z && (ne = `#fff ${(J * 100).toFixed(0)}%`), `color-mix(in ${
|
|
5669
|
+
return N === Ne && (ne = `transparent ${((1 - J) * 100).toFixed(0)}%`), N === q && (ne = `#000 ${(J * 100).toFixed(0)}%`), N === Z && (ne = `#fff ${(J * 100).toFixed(0)}%`), `color-mix(in ${j}, ${D}, ${ne})`;
|
|
5670
5670
|
}
|
|
5671
|
-
return N(
|
|
5671
|
+
return N(D, J);
|
|
5672
5672
|
}
|
|
5673
5673
|
if (ps(c, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), c.mode === "light") {
|
|
5674
|
-
|
|
5675
|
-
const N =
|
|
5676
|
-
|
|
5674
|
+
S(c.Alert, "errorColor", O(q, c.error.light, 0.6)), S(c.Alert, "infoColor", O(q, c.info.light, 0.6)), S(c.Alert, "successColor", O(q, c.success.light, 0.6)), S(c.Alert, "warningColor", O(q, c.warning.light, 0.6)), S(c.Alert, "errorFilledBg", M("palette-error-main")), S(c.Alert, "infoFilledBg", M("palette-info-main")), S(c.Alert, "successFilledBg", M("palette-success-main")), S(c.Alert, "warningFilledBg", M("palette-warning-main")), S(c.Alert, "errorFilledColor", Ae(() => c.getContrastText(c.error.main))), S(c.Alert, "infoFilledColor", Ae(() => c.getContrastText(c.info.main))), S(c.Alert, "successFilledColor", Ae(() => c.getContrastText(c.success.main))), S(c.Alert, "warningFilledColor", Ae(() => c.getContrastText(c.warning.main))), S(c.Alert, "errorStandardBg", O(Z, c.error.light, 0.9)), S(c.Alert, "infoStandardBg", O(Z, c.info.light, 0.9)), S(c.Alert, "successStandardBg", O(Z, c.success.light, 0.9)), S(c.Alert, "warningStandardBg", O(Z, c.warning.light, 0.9)), S(c.Alert, "errorIconColor", M("palette-error-main")), S(c.Alert, "infoIconColor", M("palette-info-main")), S(c.Alert, "successIconColor", M("palette-success-main")), S(c.Alert, "warningIconColor", M("palette-warning-main")), S(c.AppBar, "defaultBg", M("palette-grey-100")), S(c.Avatar, "defaultBg", M("palette-grey-400")), S(c.Button, "inheritContainedBg", M("palette-grey-300")), S(c.Button, "inheritContainedHoverBg", M("palette-grey-A100")), S(c.Chip, "defaultBorder", M("palette-grey-400")), S(c.Chip, "defaultAvatarColor", M("palette-grey-700")), S(c.Chip, "defaultIconColor", M("palette-grey-700")), S(c.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), S(c.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), S(c.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), S(c.LinearProgress, "primaryBg", O(Z, c.primary.main, 0.62)), S(c.LinearProgress, "secondaryBg", O(Z, c.secondary.main, 0.62)), S(c.LinearProgress, "errorBg", O(Z, c.error.main, 0.62)), S(c.LinearProgress, "infoBg", O(Z, c.info.main, 0.62)), S(c.LinearProgress, "successBg", O(Z, c.success.main, 0.62)), S(c.LinearProgress, "warningBg", O(Z, c.warning.main, 0.62)), S(c.Skeleton, "bg", j ? O(Ne, c.text.primary, 0.11) : `rgba(${M("palette-text-primaryChannel")} / 0.11)`), S(c.Slider, "primaryTrack", O(Z, c.primary.main, 0.62)), S(c.Slider, "secondaryTrack", O(Z, c.secondary.main, 0.62)), S(c.Slider, "errorTrack", O(Z, c.error.main, 0.62)), S(c.Slider, "infoTrack", O(Z, c.info.main, 0.62)), S(c.Slider, "successTrack", O(Z, c.success.main, 0.62)), S(c.Slider, "warningTrack", O(Z, c.warning.main, 0.62));
|
|
5675
|
+
const N = j ? O(q, c.background.default, 0.6825) : gr(c.background.default, 0.8);
|
|
5676
|
+
S(c.SnackbarContent, "bg", N), S(c.SnackbarContent, "color", Ae(() => j ? dt.text.primary : c.getContrastText(N))), S(c.SpeedDialAction, "fabHoverBg", gr(c.background.paper, 0.15)), S(c.StepConnector, "border", M("palette-grey-400")), S(c.StepContent, "border", M("palette-grey-400")), S(c.Switch, "defaultColor", M("palette-common-white")), S(c.Switch, "defaultDisabledColor", M("palette-grey-100")), S(c.Switch, "primaryDisabledColor", O(Z, c.primary.main, 0.62)), S(c.Switch, "secondaryDisabledColor", O(Z, c.secondary.main, 0.62)), S(c.Switch, "errorDisabledColor", O(Z, c.error.main, 0.62)), S(c.Switch, "infoDisabledColor", O(Z, c.info.main, 0.62)), S(c.Switch, "successDisabledColor", O(Z, c.success.main, 0.62)), S(c.Switch, "warningDisabledColor", O(Z, c.warning.main, 0.62)), S(c.TableCell, "border", O(Z, O(Ne, c.divider, 1), 0.88)), S(c.Tooltip, "bg", O(Ne, c.grey[700], 0.92));
|
|
5677
5677
|
}
|
|
5678
5678
|
if (c.mode === "dark") {
|
|
5679
|
-
|
|
5680
|
-
const N =
|
|
5681
|
-
|
|
5679
|
+
S(c.Alert, "errorColor", O(Z, c.error.light, 0.6)), S(c.Alert, "infoColor", O(Z, c.info.light, 0.6)), S(c.Alert, "successColor", O(Z, c.success.light, 0.6)), S(c.Alert, "warningColor", O(Z, c.warning.light, 0.6)), S(c.Alert, "errorFilledBg", M("palette-error-dark")), S(c.Alert, "infoFilledBg", M("palette-info-dark")), S(c.Alert, "successFilledBg", M("palette-success-dark")), S(c.Alert, "warningFilledBg", M("palette-warning-dark")), S(c.Alert, "errorFilledColor", Ae(() => c.getContrastText(c.error.dark))), S(c.Alert, "infoFilledColor", Ae(() => c.getContrastText(c.info.dark))), S(c.Alert, "successFilledColor", Ae(() => c.getContrastText(c.success.dark))), S(c.Alert, "warningFilledColor", Ae(() => c.getContrastText(c.warning.dark))), S(c.Alert, "errorStandardBg", O(q, c.error.light, 0.9)), S(c.Alert, "infoStandardBg", O(q, c.info.light, 0.9)), S(c.Alert, "successStandardBg", O(q, c.success.light, 0.9)), S(c.Alert, "warningStandardBg", O(q, c.warning.light, 0.9)), S(c.Alert, "errorIconColor", M("palette-error-main")), S(c.Alert, "infoIconColor", M("palette-info-main")), S(c.Alert, "successIconColor", M("palette-success-main")), S(c.Alert, "warningIconColor", M("palette-warning-main")), S(c.AppBar, "defaultBg", M("palette-grey-900")), S(c.AppBar, "darkBg", M("palette-background-paper")), S(c.AppBar, "darkColor", M("palette-text-primary")), S(c.Avatar, "defaultBg", M("palette-grey-600")), S(c.Button, "inheritContainedBg", M("palette-grey-800")), S(c.Button, "inheritContainedHoverBg", M("palette-grey-700")), S(c.Chip, "defaultBorder", M("palette-grey-700")), S(c.Chip, "defaultAvatarColor", M("palette-grey-300")), S(c.Chip, "defaultIconColor", M("palette-grey-300")), S(c.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), S(c.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), S(c.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), S(c.LinearProgress, "primaryBg", O(q, c.primary.main, 0.5)), S(c.LinearProgress, "secondaryBg", O(q, c.secondary.main, 0.5)), S(c.LinearProgress, "errorBg", O(q, c.error.main, 0.5)), S(c.LinearProgress, "infoBg", O(q, c.info.main, 0.5)), S(c.LinearProgress, "successBg", O(q, c.success.main, 0.5)), S(c.LinearProgress, "warningBg", O(q, c.warning.main, 0.5)), S(c.Skeleton, "bg", j ? O(Ne, c.text.primary, 0.13) : `rgba(${M("palette-text-primaryChannel")} / 0.13)`), S(c.Slider, "primaryTrack", O(q, c.primary.main, 0.5)), S(c.Slider, "secondaryTrack", O(q, c.secondary.main, 0.5)), S(c.Slider, "errorTrack", O(q, c.error.main, 0.5)), S(c.Slider, "infoTrack", O(q, c.info.main, 0.5)), S(c.Slider, "successTrack", O(q, c.success.main, 0.5)), S(c.Slider, "warningTrack", O(q, c.warning.main, 0.5));
|
|
5680
|
+
const N = j ? O(Z, c.background.default, 0.985) : gr(c.background.default, 0.98);
|
|
5681
|
+
S(c.SnackbarContent, "bg", N), S(c.SnackbarContent, "color", Ae(() => j ? Un.text.primary : c.getContrastText(N))), S(c.SpeedDialAction, "fabHoverBg", gr(c.background.paper, 0.15)), S(c.StepConnector, "border", M("palette-grey-600")), S(c.StepContent, "border", M("palette-grey-600")), S(c.Switch, "defaultColor", M("palette-grey-300")), S(c.Switch, "defaultDisabledColor", M("palette-grey-600")), S(c.Switch, "primaryDisabledColor", O(q, c.primary.main, 0.55)), S(c.Switch, "secondaryDisabledColor", O(q, c.secondary.main, 0.55)), S(c.Switch, "errorDisabledColor", O(q, c.error.main, 0.55)), S(c.Switch, "infoDisabledColor", O(q, c.info.main, 0.55)), S(c.Switch, "successDisabledColor", O(q, c.success.main, 0.55)), S(c.Switch, "warningDisabledColor", O(q, c.warning.main, 0.55)), S(c.TableCell, "border", O(q, O(Ne, c.divider, 1), 0.68)), S(c.Tooltip, "bg", O(Ne, c.grey[700], 0.92));
|
|
5682
5682
|
}
|
|
5683
5683
|
ke(c.background, "default"), ke(c.background, "paper"), ke(c.common, "background"), ke(c.common, "onBackground"), ke(c, "divider"), Object.keys(c).forEach((N) => {
|
|
5684
|
-
const
|
|
5685
|
-
N !== "tonalOffset" &&
|
|
5684
|
+
const D = c[N];
|
|
5685
|
+
N !== "tonalOffset" && D && typeof D == "object" && (D.main && S(c[N], "mainChannel", ar(ir(D.main))), D.light && S(c[N], "lightChannel", ar(ir(D.light))), D.dark && S(c[N], "darkChannel", ar(ir(D.dark))), D.contrastText && S(c[N], "contrastTextChannel", ar(ir(D.contrastText))), N === "text" && (ke(c[N], "primary"), ke(c[N], "secondary")), N === "action" && (D.active && ke(c[N], "active"), D.selected && ke(c[N], "selected")));
|
|
5686
5686
|
});
|
|
5687
|
-
}), L = r.reduce((
|
|
5688
|
-
const
|
|
5687
|
+
}), L = r.reduce((H, c) => me(H, c), L);
|
|
5688
|
+
const W = {
|
|
5689
5689
|
prefix: a,
|
|
5690
5690
|
disableCssColorScheme: o,
|
|
5691
5691
|
shouldSkipGeneratingVar: u,
|
|
@@ -5693,12 +5693,12 @@ function gs(e = {}, ...r) {
|
|
|
5693
5693
|
enableContrastVars: l
|
|
5694
5694
|
}, {
|
|
5695
5695
|
vars: F,
|
|
5696
|
-
generateThemeVars:
|
|
5696
|
+
generateThemeVars: re,
|
|
5697
5697
|
generateStyleSheets: ce
|
|
5698
|
-
} = Mi(L,
|
|
5699
|
-
return L.vars = F, Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([
|
|
5700
|
-
L[
|
|
5701
|
-
}), L.generateThemeVars =
|
|
5698
|
+
} = Mi(L, W);
|
|
5699
|
+
return L.vars = F, Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([H, c]) => {
|
|
5700
|
+
L[H] = c;
|
|
5701
|
+
}), L.generateThemeVars = re, L.generateStyleSheets = ce, L.generateSpacing = function() {
|
|
5702
5702
|
return Tn(w.spacing, yt(this));
|
|
5703
5703
|
}, L.getColorSchemeSelector = Ui(f), L.spacing = L.generateSpacing(), L.shouldSkipGeneratingVar = u, L.unstable_sxConfig = {
|
|
5704
5704
|
...Nr,
|
|
@@ -5802,7 +5802,7 @@ const Es = (e) => {
|
|
|
5802
5802
|
})(ws(({
|
|
5803
5803
|
theme: e
|
|
5804
5804
|
}) => {
|
|
5805
|
-
var r, t, n, o, a, l, u, f, h, w, C,
|
|
5805
|
+
var r, t, n, o, a, l, u, f, h, w, C, x, E, v;
|
|
5806
5806
|
return {
|
|
5807
5807
|
userSelect: "none",
|
|
5808
5808
|
width: "1em",
|
|
@@ -5870,7 +5870,7 @@ const Es = (e) => {
|
|
|
5870
5870
|
color: "action"
|
|
5871
5871
|
},
|
|
5872
5872
|
style: {
|
|
5873
|
-
color: (
|
|
5873
|
+
color: (x = (C = (e.vars ?? e).palette) == null ? void 0 : C.action) == null ? void 0 : x.active
|
|
5874
5874
|
}
|
|
5875
5875
|
},
|
|
5876
5876
|
{
|
|
@@ -5878,7 +5878,7 @@ const Es = (e) => {
|
|
|
5878
5878
|
color: "disabled"
|
|
5879
5879
|
},
|
|
5880
5880
|
style: {
|
|
5881
|
-
color: (
|
|
5881
|
+
color: (v = (E = (e.vars ?? e).palette) == null ? void 0 : E.action) == null ? void 0 : v.disabled
|
|
5882
5882
|
}
|
|
5883
5883
|
},
|
|
5884
5884
|
{
|
|
@@ -5904,19 +5904,19 @@ const Es = (e) => {
|
|
|
5904
5904
|
htmlColor: h,
|
|
5905
5905
|
inheritViewBox: w = !1,
|
|
5906
5906
|
titleAccess: C,
|
|
5907
|
-
viewBox:
|
|
5908
|
-
...
|
|
5909
|
-
} = n,
|
|
5907
|
+
viewBox: x = "0 0 24 24",
|
|
5908
|
+
...E
|
|
5909
|
+
} = n, v = /* @__PURE__ */ Me.isValidElement(o) && o.type === "svg", p = {
|
|
5910
5910
|
...n,
|
|
5911
5911
|
color: l,
|
|
5912
5912
|
component: u,
|
|
5913
5913
|
fontSize: f,
|
|
5914
5914
|
instanceFontSize: r.fontSize,
|
|
5915
5915
|
inheritViewBox: w,
|
|
5916
|
-
viewBox:
|
|
5917
|
-
hasSvgAsChild:
|
|
5916
|
+
viewBox: x,
|
|
5917
|
+
hasSvgAsChild: v
|
|
5918
5918
|
}, _ = {};
|
|
5919
|
-
w || (_.viewBox =
|
|
5919
|
+
w || (_.viewBox = x);
|
|
5920
5920
|
const U = Es(p);
|
|
5921
5921
|
return /* @__PURE__ */ d.jsxs(Ts, {
|
|
5922
5922
|
as: u,
|
|
@@ -5927,10 +5927,10 @@ const Es = (e) => {
|
|
|
5927
5927
|
role: C ? "img" : void 0,
|
|
5928
5928
|
ref: t,
|
|
5929
5929
|
..._,
|
|
5930
|
-
...
|
|
5931
|
-
...
|
|
5930
|
+
...E,
|
|
5931
|
+
...v && o.props,
|
|
5932
5932
|
ownerState: p,
|
|
5933
|
-
children: [
|
|
5933
|
+
children: [v ? o.props.children : o, C ? /* @__PURE__ */ d.jsx("title", {
|
|
5934
5934
|
children: C
|
|
5935
5935
|
}) : null]
|
|
5936
5936
|
});
|
|
@@ -6169,13 +6169,13 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6169
6169
|
const [t, n] = Er(null), [o] = $e(we.general), [a] = $e(we.avatar), l = Ze(
|
|
6170
6170
|
() => o || a,
|
|
6171
6171
|
[o, a]
|
|
6172
|
-
), u = Oe((
|
|
6173
|
-
var
|
|
6174
|
-
const
|
|
6175
|
-
return `${((
|
|
6172
|
+
), u = Oe((x) => x.avatar), f = Oe((x) => x.nombre), h = Ze(() => {
|
|
6173
|
+
var E, v;
|
|
6174
|
+
const x = f == null ? void 0 : f.split(" ");
|
|
6175
|
+
return `${((E = x == null ? void 0 : x[0]) == null ? void 0 : E.charAt(0)) ?? ""}${((v = x == null ? void 0 : x[1]) == null ? void 0 : v.charAt(0)) ?? ""}`;
|
|
6176
6176
|
}, [f]), w = ye(
|
|
6177
|
-
(
|
|
6178
|
-
n(
|
|
6177
|
+
(x) => {
|
|
6178
|
+
n(x.currentTarget);
|
|
6179
6179
|
},
|
|
6180
6180
|
[]
|
|
6181
6181
|
), C = ye(() => {
|
|
@@ -6207,14 +6207,14 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6207
6207
|
anchorEl: t,
|
|
6208
6208
|
onClose: C,
|
|
6209
6209
|
children: [
|
|
6210
|
-
r == null ? void 0 : r.map(({ nombre:
|
|
6211
|
-
const p = typeof
|
|
6212
|
-
return /* @__PURE__ */ d.jsxs(nt, { ...
|
|
6210
|
+
r == null ? void 0 : r.map(({ nombre: x, icono: E, slotProps: v }) => {
|
|
6211
|
+
const p = typeof E == "string" ? /* @__PURE__ */ d.jsx(Tr, { children: E }) : E ? /* @__PURE__ */ d.jsx(E, {}) : null;
|
|
6212
|
+
return /* @__PURE__ */ d.jsxs(nt, { ...v == null ? void 0 : v.MenuItem, children: [
|
|
6213
6213
|
p && /* @__PURE__ */ d.jsx(Xe, { children: p }),
|
|
6214
6214
|
/* @__PURE__ */ d.jsx(
|
|
6215
6215
|
he,
|
|
6216
6216
|
{
|
|
6217
|
-
primary:
|
|
6217
|
+
primary: x,
|
|
6218
6218
|
slotProps: {
|
|
6219
6219
|
primary: {
|
|
6220
6220
|
fontWeight: 500
|
|
@@ -6386,9 +6386,9 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6386
6386
|
}) => {
|
|
6387
6387
|
const l = An(
|
|
6388
6388
|
(U) => !!U.toolbar.length
|
|
6389
|
-
), [u] = $e(we.apps), [f] = $e(we.general), [h] = $e(we.nombreApp), w = Be((U) => U.inhabilitado), C = Oe((U) => U.abrirApps),
|
|
6389
|
+
), [u] = $e(we.apps), [f] = $e(we.general), [h] = $e(we.nombreApp), w = Be((U) => U.inhabilitado), C = Oe((U) => U.abrirApps), x = Oe(
|
|
6390
6390
|
(U) => U.mostrarBotonDrawer
|
|
6391
|
-
),
|
|
6391
|
+
), E = Qn(null), v = ye(() => {
|
|
6392
6392
|
Te.setState({ abrirApps: !0 });
|
|
6393
6393
|
}, []), p = ye(() => {
|
|
6394
6394
|
Te.setState({ abrirApps: !1 });
|
|
@@ -6411,7 +6411,7 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6411
6411
|
justifyContent: "space-between",
|
|
6412
6412
|
children: [
|
|
6413
6413
|
/* @__PURE__ */ d.jsxs(le, { display: "flex", alignItems: "center", children: [
|
|
6414
|
-
/* @__PURE__ */ d.jsx(no, { in:
|
|
6414
|
+
/* @__PURE__ */ d.jsx(no, { in: x, children: /* @__PURE__ */ d.jsx(
|
|
6415
6415
|
St,
|
|
6416
6416
|
{
|
|
6417
6417
|
onClick: _,
|
|
@@ -6436,9 +6436,9 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6436
6436
|
St,
|
|
6437
6437
|
{
|
|
6438
6438
|
disabled: u || !e.length,
|
|
6439
|
-
ref:
|
|
6439
|
+
ref: E,
|
|
6440
6440
|
sx: { ml: 2 },
|
|
6441
|
-
onClick:
|
|
6441
|
+
onClick: v,
|
|
6442
6442
|
children: u || f ? /* @__PURE__ */ d.jsx(fn, { size: 18 }) : /* @__PURE__ */ d.jsx(zs, {})
|
|
6443
6443
|
}
|
|
6444
6444
|
)
|
|
@@ -6454,7 +6454,7 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6454
6454
|
io,
|
|
6455
6455
|
{
|
|
6456
6456
|
open: C,
|
|
6457
|
-
anchorEl:
|
|
6457
|
+
anchorEl: E.current,
|
|
6458
6458
|
onClose: p,
|
|
6459
6459
|
anchorOrigin: {
|
|
6460
6460
|
vertical: "bottom",
|
|
@@ -6514,51 +6514,68 @@ const Rs = Ce(/* @__PURE__ */ d.jsx("path", {
|
|
|
6514
6514
|
keycloack: null
|
|
6515
6515
|
})), Ks = Fn, dc = (e) => Vn.filter(
|
|
6516
6516
|
({ id: r }) => e.some(({ id: t }) => r === t)
|
|
6517
|
-
), Js = (e, r, t) =>
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6517
|
+
), Js = (e, r, t) => {
|
|
6518
|
+
const n = r.reduce(
|
|
6519
|
+
(o, a) => {
|
|
6520
|
+
const l = e.some(
|
|
6521
|
+
({ id: f }) => Number(f) === a.codigo_terminal
|
|
6522
|
+
), u = typeof t == "number" && a.codigo_terminal === t;
|
|
6523
|
+
return l || u ? [
|
|
6524
|
+
...o,
|
|
6525
|
+
{
|
|
6526
|
+
codigo: a.codigo_terminal,
|
|
6527
|
+
...a.abreviado && { abreviado: a.abreviado },
|
|
6528
|
+
...a.nombre && { nombre: a.nombre }
|
|
6529
|
+
}
|
|
6530
|
+
] : o;
|
|
6531
|
+
},
|
|
6532
|
+
[]
|
|
6533
|
+
);
|
|
6534
|
+
if (typeof t == "number" && !n.some((o) => o.codigo === t)) {
|
|
6535
|
+
const o = r.find(
|
|
6536
|
+
(a) => a.codigo_terminal === t
|
|
6537
|
+
);
|
|
6538
|
+
return [
|
|
6523
6539
|
...n,
|
|
6524
6540
|
{
|
|
6525
|
-
codigo:
|
|
6526
|
-
...o.abreviado && { abreviado: o.abreviado },
|
|
6527
|
-
...o.nombre && { nombre: o.nombre }
|
|
6541
|
+
codigo: t,
|
|
6542
|
+
...(o == null ? void 0 : o.abreviado) && { abreviado: o.abreviado },
|
|
6543
|
+
...(o == null ? void 0 : o.nombre) && { nombre: o.nombre }
|
|
6528
6544
|
}
|
|
6529
|
-
]
|
|
6530
|
-
}
|
|
6531
|
-
|
|
6532
|
-
|
|
6545
|
+
];
|
|
6546
|
+
}
|
|
6547
|
+
return n;
|
|
6548
|
+
}, { set: un } = xr.getState();
|
|
6533
6549
|
function Gs({
|
|
6534
6550
|
children: e,
|
|
6535
6551
|
idApp: r,
|
|
6536
6552
|
nombreApp: t,
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6553
|
+
plataforma: n,
|
|
6554
|
+
menus: o,
|
|
6555
|
+
LinkComponent: a,
|
|
6556
|
+
tema: l
|
|
6540
6557
|
}) {
|
|
6541
|
-
const
|
|
6558
|
+
const u = Ks((x) => x.permisos), [f, h] = Er([]), w = () => {
|
|
6542
6559
|
Ye.logout();
|
|
6543
|
-
},
|
|
6544
|
-
var
|
|
6545
|
-
const v = (
|
|
6560
|
+
}, C = o.reduce((x, E) => {
|
|
6561
|
+
var p, _;
|
|
6562
|
+
const v = (p = u == null ? void 0 : u.menus) == null ? void 0 : p.find(({ id: U }) => E.id === U);
|
|
6546
6563
|
return v ? [
|
|
6547
|
-
...
|
|
6564
|
+
...x,
|
|
6548
6565
|
{
|
|
6549
|
-
...
|
|
6550
|
-
subMenus: (
|
|
6551
|
-
({ id:
|
|
6552
|
-
var
|
|
6553
|
-
return (
|
|
6566
|
+
...E,
|
|
6567
|
+
subMenus: (_ = E.subMenus) == null ? void 0 : _.filter(
|
|
6568
|
+
({ id: U }) => {
|
|
6569
|
+
var B;
|
|
6570
|
+
return (B = v == null ? void 0 : v.sub_menu) == null ? void 0 : B.some(({ id: V }) => U === V);
|
|
6554
6571
|
}
|
|
6555
6572
|
)
|
|
6556
6573
|
}
|
|
6557
|
-
] :
|
|
6574
|
+
] : x;
|
|
6558
6575
|
}, []);
|
|
6559
6576
|
return Kn(() => {
|
|
6560
6577
|
if (Ye.didInitialize) return;
|
|
6561
|
-
const
|
|
6578
|
+
const x = new URL(
|
|
6562
6579
|
"/silent-check-sso.html",
|
|
6563
6580
|
window.location.href
|
|
6564
6581
|
).toString();
|
|
@@ -6566,71 +6583,71 @@ function Gs({
|
|
|
6566
6583
|
onLoad: "check-sso",
|
|
6567
6584
|
pkceMethod: "S256",
|
|
6568
6585
|
flow: "standard",
|
|
6569
|
-
silentCheckSsoRedirectUri:
|
|
6570
|
-
}).then((
|
|
6571
|
-
|
|
6586
|
+
silentCheckSsoRedirectUri: x
|
|
6587
|
+
}).then((E) => {
|
|
6588
|
+
E || Ye.login({
|
|
6572
6589
|
// select_account fuerza pantalla de selección de cuenta en el IdP (ej. Google).
|
|
6573
6590
|
// Tipos de keycloak-js no incluyen select_account; es válido en OIDC.
|
|
6574
6591
|
prompt: "select_account"
|
|
6575
6592
|
});
|
|
6576
|
-
const v = Ye.idTokenParsed, { terminal:
|
|
6593
|
+
const v = Ye.idTokenParsed, { terminal: p, setTerminal: _ } = Te.getState(), U = `${(v == null ? void 0 : v.given_name) ?? ""}${v != null && v.given_name && (v != null && v.family_name) ? " " : ""}${v == null ? void 0 : v.family_name}`;
|
|
6577
6594
|
Te.setState({
|
|
6578
|
-
nombre:
|
|
6595
|
+
nombre: U
|
|
6579
6596
|
});
|
|
6580
|
-
const
|
|
6581
|
-
typeof
|
|
6597
|
+
const B = v.terminal;
|
|
6598
|
+
typeof p != "number" && typeof B == "number" && _(Number(B));
|
|
6582
6599
|
const V = v.email;
|
|
6583
|
-
V ? lo(V).then(async (
|
|
6584
|
-
var
|
|
6585
|
-
const
|
|
6586
|
-
({ id:
|
|
6600
|
+
V ? lo(V, n).then(async (j) => {
|
|
6601
|
+
var H, c, M, O, N;
|
|
6602
|
+
const R = (O = (M = (c = (H = j.response) == null ? void 0 : H[0]) == null ? void 0 : c.permisos) == null ? void 0 : M.aplicaciones) == null ? void 0 : O.find(
|
|
6603
|
+
({ id: D }) => D === r
|
|
6587
6604
|
);
|
|
6588
|
-
if (!((
|
|
6605
|
+
if (!((N = j.response) != null && N[0]) || !R)
|
|
6589
6606
|
throw new Error("No se han encontrado permisos");
|
|
6590
|
-
|
|
6607
|
+
h(
|
|
6591
6608
|
Vn.filter(
|
|
6592
|
-
({ id:
|
|
6593
|
-
var
|
|
6594
|
-
return (
|
|
6595
|
-
({ id:
|
|
6609
|
+
({ id: D }) => {
|
|
6610
|
+
var J, ne, ue;
|
|
6611
|
+
return (ue = (ne = (J = j.response) == null ? void 0 : J[0]) == null ? void 0 : ne.permisos) == null ? void 0 : ue.aplicaciones.some(
|
|
6612
|
+
({ id: i }) => D === i
|
|
6596
6613
|
);
|
|
6597
6614
|
}
|
|
6598
6615
|
)
|
|
6599
6616
|
), Fn.setState({
|
|
6600
|
-
permisos:
|
|
6617
|
+
permisos: R
|
|
6601
6618
|
});
|
|
6602
|
-
const
|
|
6603
|
-
if (
|
|
6619
|
+
const L = await uo();
|
|
6620
|
+
if (L.isError || !L.data.length)
|
|
6604
6621
|
throw new Error("No se han encontrado terminales");
|
|
6605
|
-
const
|
|
6606
|
-
|
|
6607
|
-
|
|
6622
|
+
const W = Js(
|
|
6623
|
+
j.response[0].terminales ?? [],
|
|
6624
|
+
L.data,
|
|
6608
6625
|
typeof (v == null ? void 0 : v.terminal) == "number" ? v.terminal : void 0
|
|
6609
6626
|
);
|
|
6610
|
-
if (!
|
|
6627
|
+
if (!W.length)
|
|
6611
6628
|
throw new Error("No tienes acceso a ninguna terminal");
|
|
6612
6629
|
Te.setState({
|
|
6613
|
-
terminales:
|
|
6630
|
+
terminales: W,
|
|
6614
6631
|
mostrarBotonDrawer: !0
|
|
6615
6632
|
}), Re.setState({ cargando: !1 });
|
|
6616
|
-
const { terminal:
|
|
6617
|
-
|
|
6618
|
-
Number.isNaN(
|
|
6633
|
+
const { terminal: F, setTerminal: re } = Te.getState(), ce = Number(v == null ? void 0 : v.terminal);
|
|
6634
|
+
F || re(
|
|
6635
|
+
Number.isNaN(ce) ? W[0].codigo : ce
|
|
6619
6636
|
);
|
|
6620
|
-
}).catch((
|
|
6621
|
-
console.error("Error al obtener permisos",
|
|
6637
|
+
}).catch((j) => {
|
|
6638
|
+
console.error("Error al obtener permisos", j);
|
|
6622
6639
|
}).finally(
|
|
6623
6640
|
() => un(we.general, !1, !0)
|
|
6624
6641
|
) : un(we.general, !1, !0);
|
|
6625
6642
|
});
|
|
6626
|
-
}, [r]), /* @__PURE__ */ d.jsx(so, { theme:
|
|
6643
|
+
}, [r]), /* @__PURE__ */ d.jsx(so, { theme: l ?? ct, children: /* @__PURE__ */ d.jsx(
|
|
6627
6644
|
Qs,
|
|
6628
6645
|
{
|
|
6629
|
-
apps:
|
|
6630
|
-
menus:
|
|
6631
|
-
nombreApp: t ?? (
|
|
6632
|
-
onCerrarSesion:
|
|
6633
|
-
LinkComponent:
|
|
6646
|
+
apps: f,
|
|
6647
|
+
menus: C,
|
|
6648
|
+
nombreApp: t ?? (u == null ? void 0 : u.nombre),
|
|
6649
|
+
onCerrarSesion: w,
|
|
6650
|
+
LinkComponent: a,
|
|
6634
6651
|
children: e
|
|
6635
6652
|
}
|
|
6636
6653
|
) });
|
|
@@ -6948,7 +6965,7 @@ export {
|
|
|
6948
6965
|
Us as UnloadIcono,
|
|
6949
6966
|
sc as appsPermitidas,
|
|
6950
6967
|
Vn as appsToolbar,
|
|
6951
|
-
|
|
6968
|
+
Q as colores,
|
|
6952
6969
|
Js as convertirTerminalesToolbar,
|
|
6953
6970
|
Fn as estadoAuth,
|
|
6954
6971
|
Re as estadoDrawer,
|