minerva-plexus-csd 1.1.13 → 1.1.15
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/minerva-plexus-csd.es.js +154 -118
- package/dist/minerva-plexus-csd.umd.js +14 -14
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import M, { css as nt, keyframes as $b, createGlobalStyle as jv } from "styled-c
|
|
|
6
6
|
import jb from "i18next";
|
|
7
7
|
import { default as n5 } from "i18next";
|
|
8
8
|
import Jn from "react-dom";
|
|
9
|
-
var
|
|
9
|
+
var Lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function Zt(e) {
|
|
11
11
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12
12
|
}
|
|
@@ -287,8 +287,8 @@ function zv() {
|
|
|
287
287
|
} finally {
|
|
288
288
|
ie = !1, Q.current = ye, K(), Error.prepareStackTrace = me;
|
|
289
289
|
}
|
|
290
|
-
var an = _ ? _.displayName || _.name : "",
|
|
291
|
-
return typeof _ == "function" && ne.set(_,
|
|
290
|
+
var an = _ ? _.displayName || _.name : "", qt = an ? te(an) : "";
|
|
291
|
+
return typeof _ == "function" && ne.set(_, qt), qt;
|
|
292
292
|
}
|
|
293
293
|
function De(_, $, X) {
|
|
294
294
|
return H(_, !1);
|
|
@@ -326,13 +326,13 @@ function zv() {
|
|
|
326
326
|
}
|
|
327
327
|
return "";
|
|
328
328
|
}
|
|
329
|
-
var ut = Object.prototype.hasOwnProperty, en = {},
|
|
329
|
+
var ut = Object.prototype.hasOwnProperty, en = {}, Ut = E.ReactDebugCurrentFrame;
|
|
330
330
|
function Fe(_) {
|
|
331
331
|
if (_) {
|
|
332
332
|
var $ = _._owner, X = Ze(_.type, _._source, $ ? $.type : null);
|
|
333
|
-
|
|
333
|
+
Ut.setExtraStackFrame(X);
|
|
334
334
|
} else
|
|
335
|
-
|
|
335
|
+
Ut.setExtraStackFrame(null);
|
|
336
336
|
}
|
|
337
337
|
function At(_, $, X, oe, me) {
|
|
338
338
|
{
|
|
@@ -357,7 +357,7 @@ function zv() {
|
|
|
357
357
|
function _t(_) {
|
|
358
358
|
return tn(_);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Bt(_) {
|
|
361
361
|
{
|
|
362
362
|
var $ = typeof Symbol == "function" && Symbol.toStringTag, X = $ && _[Symbol.toStringTag] || _.constructor.name || "Object";
|
|
363
363
|
return X;
|
|
@@ -375,7 +375,7 @@ function zv() {
|
|
|
375
375
|
}
|
|
376
376
|
function q(_) {
|
|
377
377
|
if (nn(_))
|
|
378
|
-
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
378
|
+
return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bt(_)), P(_);
|
|
379
379
|
}
|
|
380
380
|
var re = E.ReactCurrentOwner, ce = {
|
|
381
381
|
key: !0,
|
|
@@ -399,10 +399,10 @@ function zv() {
|
|
|
399
399
|
}
|
|
400
400
|
return _.key !== void 0;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function $t(_, $) {
|
|
403
403
|
typeof _.ref == "string" && re.current;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function jt(_, $) {
|
|
406
406
|
{
|
|
407
407
|
var X = function() {
|
|
408
408
|
ge || (ge = !0, m("%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://reactjs.org/link/special-props)", $));
|
|
@@ -456,7 +456,7 @@ function zv() {
|
|
|
456
456
|
function dt(_, $, X, oe, me) {
|
|
457
457
|
{
|
|
458
458
|
var ye, pe = {}, de = null, Be = null;
|
|
459
|
-
X !== void 0 && (q(X), de = "" + X), ct($) && (q($.key), de = "" + $.key), Ct($) && (Be = $.ref,
|
|
459
|
+
X !== void 0 && (q(X), de = "" + X), ct($) && (q($.key), de = "" + $.key), Ct($) && (Be = $.ref, $t($, me));
|
|
460
460
|
for (ye in $)
|
|
461
461
|
ut.call($, ye) && !ce.hasOwnProperty(ye) && (pe[ye] = $[ye]);
|
|
462
462
|
if (_ && _.defaultProps) {
|
|
@@ -466,7 +466,7 @@ function zv() {
|
|
|
466
466
|
}
|
|
467
467
|
if (de || Be) {
|
|
468
468
|
var Re = typeof _ == "function" ? _.displayName || _.name || "Unknown" : _;
|
|
469
|
-
de &&
|
|
469
|
+
de && jt(pe, Re), Be && Ue(pe, Re);
|
|
470
470
|
}
|
|
471
471
|
return Rt(_, de, Be, me, oe, re.current, pe);
|
|
472
472
|
}
|
|
@@ -610,17 +610,17 @@ Check the top-level render call using <` + X + ">.");
|
|
|
610
610
|
Bc(et, _);
|
|
611
611
|
}
|
|
612
612
|
if (ut.call($, "key")) {
|
|
613
|
-
var
|
|
613
|
+
var qt = z(_), qe = Object.keys($).filter(function(Pv) {
|
|
614
614
|
return Pv !== "key";
|
|
615
615
|
}), Mr = qe.length > 0 ? "{key: someKey, " + qe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
616
|
-
if (!$c[
|
|
616
|
+
if (!$c[qt + Mr]) {
|
|
617
617
|
var Mv = qe.length > 0 ? "{" + qe.join(": ..., ") + ": ...}" : "{}";
|
|
618
618
|
m(`A props object containing a "key" prop is being spread into JSX:
|
|
619
619
|
let props = %s;
|
|
620
620
|
<%s {...props} />
|
|
621
621
|
React keys must be passed directly to JSX without using spread:
|
|
622
622
|
let props = %s;
|
|
623
|
-
<%s key={someKey} {...props} />`, Mr,
|
|
623
|
+
<%s key={someKey} {...props} />`, Mr, qt, Mv, qt), $c[qt + Mr] = !0;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
return _ === a ? Iv(Re) : kv(Re), Re;
|
|
@@ -673,13 +673,13 @@ const Gc = {
|
|
|
673
673
|
API_URL: "http://dev-chatbot-drupal.plexus.tech:8311",
|
|
674
674
|
API_KEY: "ai"
|
|
675
675
|
};
|
|
676
|
-
let
|
|
676
|
+
let It = {
|
|
677
677
|
apiUrl: "",
|
|
678
678
|
apiKey: ""
|
|
679
679
|
};
|
|
680
680
|
const FD = (e) => {
|
|
681
|
-
|
|
682
|
-
}, pt = () => (
|
|
681
|
+
It = { ...It, ...e };
|
|
682
|
+
}, pt = () => (console.log("API URL retornada por getApiConfig:", It.apiUrl), It.apiUrl || (console.warn("[Minerva] apiUrl no configurado. Usando valor por defecto."), It.apiUrl = Gc.API_URL), It.apiKey || (console.warn("[Minerva] apiKey no configurado. Usando valor por defecto."), It.apiKey = Gc.API_KEY), It), UD = (e) => {
|
|
683
683
|
}, at = async (e, t = {}) => {
|
|
684
684
|
const { apiUrl: n } = pt(), r = {
|
|
685
685
|
"Content-Type": "application/json",
|
|
@@ -925,22 +925,31 @@ const FD = (e) => {
|
|
|
925
925
|
createConversation: async (e, t) => {
|
|
926
926
|
if (!t)
|
|
927
927
|
throw new Error("Service is required to create a conversation.");
|
|
928
|
-
const { apiUrl: n } = pt(), r = `${n}${Wt.CONVERSATIONS_CREATE}/?service=${encodeURIComponent(t)}${e ? `&title=${encodeURIComponent(e)}` : ""}`,
|
|
928
|
+
const { apiUrl: n } = pt(), r = `${n}${Wt.CONVERSATIONS_CREATE}/?service=${encodeURIComponent(t)}${e ? `&title=${encodeURIComponent(e)}` : ""}`, i = document.cookie.split("; ").find((u) => u.startsWith("access_token=")), o = i ? i.split("=")[1] : null;
|
|
929
|
+
console.log(
|
|
930
|
+
"Intentando crear conversación con token de cookies:",
|
|
931
|
+
o ? `Sí (token: ${o.substring(0, 20)}...)` : "No (token no encontrado)"
|
|
932
|
+
);
|
|
933
|
+
const s = await at(r, {
|
|
929
934
|
method: "POST",
|
|
930
935
|
mode: "cors",
|
|
931
936
|
headers: {
|
|
932
937
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
933
938
|
}
|
|
934
939
|
});
|
|
935
|
-
if (
|
|
940
|
+
if (console.log("Respuesta al crear conversación:", {
|
|
941
|
+
status: s.status,
|
|
942
|
+
ok: s.ok,
|
|
943
|
+
url: s.url
|
|
944
|
+
}), !s)
|
|
936
945
|
throw new Error(
|
|
937
946
|
"Failed to create conversation: No response from server."
|
|
938
947
|
);
|
|
939
|
-
if (!
|
|
948
|
+
if (!s.ok)
|
|
940
949
|
throw new Error(
|
|
941
|
-
`Failed to create conversation. Status: ${
|
|
950
|
+
`Failed to create conversation. Status: ${s.status}`
|
|
942
951
|
);
|
|
943
|
-
return await
|
|
952
|
+
return await s.json();
|
|
944
953
|
},
|
|
945
954
|
/**
|
|
946
955
|
* Obtiene todas las conversaciones del usuario con opción de paginación.
|
|
@@ -950,21 +959,30 @@ const FD = (e) => {
|
|
|
950
959
|
* @returns {Promise<Conversation[]>} Promesa que resuelve con una lista de conversaciones.
|
|
951
960
|
*/
|
|
952
961
|
getUserConversations: async (e) => {
|
|
953
|
-
const { apiUrl: t } = pt(),
|
|
962
|
+
const { apiUrl: t } = pt(), r = document.cookie.split("; ").find((s) => s.startsWith("access_token=")), a = r ? r.split("=")[1] : null;
|
|
963
|
+
console.log(
|
|
964
|
+
"Intentando obtener conversaciones de usuario con token de cookies:",
|
|
965
|
+
a ? `Sí (token: ${a.substring(0, 20)}...)` : "No (token no encontrado)"
|
|
966
|
+
);
|
|
967
|
+
const i = await at(
|
|
954
968
|
`${t}${Wt.USER_CONVERSATIONS}?service=${e}`,
|
|
955
969
|
{
|
|
956
970
|
method: "GET"
|
|
957
971
|
}
|
|
958
972
|
);
|
|
959
|
-
if (
|
|
973
|
+
if (console.log("Respuesta al obtener conversaciones de usuario:", {
|
|
974
|
+
status: i.status,
|
|
975
|
+
ok: i.ok,
|
|
976
|
+
url: i.url
|
|
977
|
+
}), !i)
|
|
960
978
|
throw new Error(
|
|
961
979
|
"Failed to fetch user conversations: No response from server."
|
|
962
980
|
);
|
|
963
|
-
if (!
|
|
981
|
+
if (!i.ok)
|
|
964
982
|
throw new Error(
|
|
965
|
-
`Failed to fetch user conversations. Status: ${
|
|
983
|
+
`Failed to fetch user conversations. Status: ${i.status}`
|
|
966
984
|
);
|
|
967
|
-
return await
|
|
985
|
+
return await i.json();
|
|
968
986
|
},
|
|
969
987
|
/**
|
|
970
988
|
* Obtiene una conversación específica por ID.
|
|
@@ -974,7 +992,12 @@ const FD = (e) => {
|
|
|
974
992
|
* @returns {Promise<Conversation>} Promesa que resuelve con la conversación obtenida.
|
|
975
993
|
*/
|
|
976
994
|
getConversationById: async (e, t) => {
|
|
977
|
-
const { apiUrl: n } = pt(),
|
|
995
|
+
const { apiUrl: n } = pt(), a = document.cookie.split("; ").find((l) => l.startsWith("access_token=")), i = a ? a.split("=")[1] : null;
|
|
996
|
+
console.log(
|
|
997
|
+
"Intentando obtener conversación por ID con token de cookies:",
|
|
998
|
+
i ? `Sí (token: ${i.substring(0, 20)}...)` : "No (token no encontrado)"
|
|
999
|
+
);
|
|
1000
|
+
const o = await at(
|
|
978
1001
|
`${n}${Wt.CONVERSATION_MESSAGES}/${e}?service=${t}`,
|
|
979
1002
|
{
|
|
980
1003
|
method: "GET",
|
|
@@ -983,15 +1006,19 @@ const FD = (e) => {
|
|
|
983
1006
|
}
|
|
984
1007
|
}
|
|
985
1008
|
);
|
|
986
|
-
if (
|
|
1009
|
+
if (console.log("Respuesta al obtener conversación por ID:", {
|
|
1010
|
+
status: o.status,
|
|
1011
|
+
ok: o.ok,
|
|
1012
|
+
url: o.url
|
|
1013
|
+
}), !o)
|
|
987
1014
|
throw new Error(
|
|
988
1015
|
"Failed to fetch conversation by ID: No response from server."
|
|
989
1016
|
);
|
|
990
|
-
if (!
|
|
1017
|
+
if (!o.ok)
|
|
991
1018
|
throw new Error(
|
|
992
|
-
`Failed to fetch conversation by ID. Status: ${
|
|
1019
|
+
`Failed to fetch conversation by ID. Status: ${o.status}`
|
|
993
1020
|
);
|
|
994
|
-
return await
|
|
1021
|
+
return await o.json();
|
|
995
1022
|
},
|
|
996
1023
|
/**
|
|
997
1024
|
* Elimina una conversación por ID.
|
|
@@ -1002,19 +1029,28 @@ const FD = (e) => {
|
|
|
1002
1029
|
* @throws {Error}
|
|
1003
1030
|
*/
|
|
1004
1031
|
deleteConversationById: async (e, t) => {
|
|
1005
|
-
const { apiUrl: n } = pt(),
|
|
1032
|
+
const { apiUrl: n } = pt(), a = document.cookie.split("; ").find((s) => s.startsWith("access_token=")), i = a ? a.split("=")[1] : null;
|
|
1033
|
+
console.log(
|
|
1034
|
+
"Intentando eliminar conversación con token de cookies:",
|
|
1035
|
+
i ? `Sí (token: ${i.substring(0, 20)}...)` : "No (token no encontrado)"
|
|
1036
|
+
);
|
|
1037
|
+
const o = await at(
|
|
1006
1038
|
`${n}${Wt.DELETE_CONVERSATION}${e}?conversation_id=${e}&service=${t}`,
|
|
1007
1039
|
{
|
|
1008
1040
|
method: "POST"
|
|
1009
1041
|
}
|
|
1010
1042
|
);
|
|
1011
|
-
if (
|
|
1043
|
+
if (console.log("Respuesta al eliminar conversación:", {
|
|
1044
|
+
status: o.status,
|
|
1045
|
+
ok: o.ok,
|
|
1046
|
+
url: o.url
|
|
1047
|
+
}), !o)
|
|
1012
1048
|
throw new Error(
|
|
1013
1049
|
"Failed to delete conversation: No response from server."
|
|
1014
1050
|
);
|
|
1015
|
-
if (!
|
|
1051
|
+
if (!o.ok)
|
|
1016
1052
|
throw new Error(
|
|
1017
|
-
`Failed to delete conversation with ID: ${e}. Status: ${
|
|
1053
|
+
`Failed to delete conversation with ID: ${e}. Status: ${o.status}`
|
|
1018
1054
|
);
|
|
1019
1055
|
}
|
|
1020
1056
|
}, Yv = async (e, t) => {
|
|
@@ -3715,7 +3751,7 @@ var $u = {}, Zc = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, V1 = /\n/g, W1 = /^\s*/, Y1
|
|
|
3715
3751
|
function Qc(e) {
|
|
3716
3752
|
return e ? e.replace(J1, Vt) : Vt;
|
|
3717
3753
|
}
|
|
3718
|
-
var rS =
|
|
3754
|
+
var rS = Lt && Lt.__importDefault || function(e) {
|
|
3719
3755
|
return e && e.__esModule ? e : { default: e };
|
|
3720
3756
|
};
|
|
3721
3757
|
Object.defineProperty($u, "__esModule", { value: !0 });
|
|
@@ -3746,7 +3782,7 @@ var oS = /^--[a-zA-Z0-9_-]+$/, sS = /-([a-z])/g, lS = /^[^-]+$/, uS = /^-(webkit
|
|
|
3746
3782
|
return t === void 0 && (t = {}), dS(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(cS, ed) : e = e.replace(uS, ed), e.replace(sS, pS));
|
|
3747
3783
|
};
|
|
3748
3784
|
yr.camelCase = fS;
|
|
3749
|
-
var gS =
|
|
3785
|
+
var gS = Lt && Lt.__importDefault || function(e) {
|
|
3750
3786
|
return e && e.__esModule ? e : { default: e };
|
|
3751
3787
|
}, mS = gS($u), hS = yr;
|
|
3752
3788
|
function gu(e, t) {
|
|
@@ -4281,7 +4317,7 @@ function yE(e, t) {
|
|
|
4281
4317
|
function fn(e) {
|
|
4282
4318
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
4283
4319
|
}
|
|
4284
|
-
const mt =
|
|
4320
|
+
const mt = Mt(/[A-Za-z]/), Je = Mt(/[\dA-Za-z]/), VS = Mt(/[#-'*+\--9=?A-Z^-~]/);
|
|
4285
4321
|
function hu(e) {
|
|
4286
4322
|
return (
|
|
4287
4323
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -4289,7 +4325,7 @@ function hu(e) {
|
|
|
4289
4325
|
e !== null && (e < 32 || e === 127)
|
|
4290
4326
|
);
|
|
4291
4327
|
}
|
|
4292
|
-
const bu =
|
|
4328
|
+
const bu = Mt(/\d/), WS = Mt(/[\dA-Fa-f]/), YS = Mt(/[!-/:-@[-`{-~]/);
|
|
4293
4329
|
function ae(e) {
|
|
4294
4330
|
return e !== null && e < -2;
|
|
4295
4331
|
}
|
|
@@ -4299,8 +4335,8 @@ function He(e) {
|
|
|
4299
4335
|
function fe(e) {
|
|
4300
4336
|
return e === -2 || e === -1 || e === 32;
|
|
4301
4337
|
}
|
|
4302
|
-
const KS =
|
|
4303
|
-
function
|
|
4338
|
+
const KS = Mt(new RegExp("\\p{P}|\\p{S}", "u")), ZS = Mt(/\s/);
|
|
4339
|
+
function Mt(e) {
|
|
4304
4340
|
return t;
|
|
4305
4341
|
function t(n) {
|
|
4306
4342
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
@@ -6462,7 +6498,7 @@ function zC(e) {
|
|
|
6462
6498
|
transforms: [],
|
|
6463
6499
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
6464
6500
|
enter: {
|
|
6465
|
-
autolink: i(
|
|
6501
|
+
autolink: i(Ut),
|
|
6466
6502
|
autolinkProtocol: k,
|
|
6467
6503
|
autolinkEmail: k,
|
|
6468
6504
|
atxHeading: i(lt),
|
|
@@ -6490,7 +6526,7 @@ function zC(e) {
|
|
|
6490
6526
|
htmlTextData: k,
|
|
6491
6527
|
image: i(en),
|
|
6492
6528
|
label: o,
|
|
6493
|
-
link: i(
|
|
6529
|
+
link: i(Ut),
|
|
6494
6530
|
listItem: i(At),
|
|
6495
6531
|
listItemValue: f,
|
|
6496
6532
|
listOrdered: i(Fe, d),
|
|
@@ -6609,18 +6645,18 @@ function zC(e) {
|
|
|
6609
6645
|
return q;
|
|
6610
6646
|
}
|
|
6611
6647
|
function a(P, q, re) {
|
|
6612
|
-
let ce = q - 1, ge = -1, je = !1, Ct, ct,
|
|
6648
|
+
let ce = q - 1, ge = -1, je = !1, Ct, ct, $t, jt;
|
|
6613
6649
|
for (; ++ce <= re; ) {
|
|
6614
6650
|
const Ue = P[ce];
|
|
6615
6651
|
switch (Ue[1].type) {
|
|
6616
6652
|
case "listUnordered":
|
|
6617
6653
|
case "listOrdered":
|
|
6618
6654
|
case "blockQuote": {
|
|
6619
|
-
Ue[0] === "enter" ? ge++ : ge--,
|
|
6655
|
+
Ue[0] === "enter" ? ge++ : ge--, jt = void 0;
|
|
6620
6656
|
break;
|
|
6621
6657
|
}
|
|
6622
6658
|
case "lineEndingBlank": {
|
|
6623
|
-
Ue[0] === "enter" && (Ct &&
|
|
6659
|
+
Ue[0] === "enter" && (Ct && !jt && !ge && !$t && ($t = ce), jt = void 0);
|
|
6624
6660
|
break;
|
|
6625
6661
|
}
|
|
6626
6662
|
case "linePrefix":
|
|
@@ -6630,7 +6666,7 @@ function zC(e) {
|
|
|
6630
6666
|
case "listItemPrefixWhitespace":
|
|
6631
6667
|
break;
|
|
6632
6668
|
default:
|
|
6633
|
-
|
|
6669
|
+
jt = void 0;
|
|
6634
6670
|
}
|
|
6635
6671
|
if (!ge && Ue[0] === "enter" && Ue[1].type === "listItemPrefix" || ge === -1 && Ue[0] === "exit" && (Ue[1].type === "listUnordered" || Ue[1].type === "listOrdered")) {
|
|
6636
6672
|
if (Ct) {
|
|
@@ -6642,7 +6678,7 @@ function zC(e) {
|
|
|
6642
6678
|
ct && (P[ct][1].type = "lineEndingBlank", je = !0), dt[1].type = "lineEnding", ct = Rt;
|
|
6643
6679
|
} else if (!(dt[1].type === "linePrefix" || dt[1].type === "blockQuotePrefix" || dt[1].type === "blockQuotePrefixWhitespace" || dt[1].type === "blockQuoteMarker" || dt[1].type === "listItemIndent")) break;
|
|
6644
6680
|
}
|
|
6645
|
-
|
|
6681
|
+
$t && (!ct || $t < ct) && (Ct._spread = !0), Ct.end = Object.assign({}, ct ? P[ct][1].start : Ue[1].end), P.splice(ct || ce, 0, ["exit", Ct, Ue[2]]), ce++, re++;
|
|
6646
6682
|
}
|
|
6647
6683
|
if (Ue[1].type === "listItemPrefix") {
|
|
6648
6684
|
const Rt = {
|
|
@@ -6652,7 +6688,7 @@ function zC(e) {
|
|
|
6652
6688
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
6653
6689
|
end: void 0
|
|
6654
6690
|
};
|
|
6655
|
-
Ct = Rt, P.splice(ce, 0, ["enter", Rt, Ue[2]]), ce++, re++,
|
|
6691
|
+
Ct = Rt, P.splice(ce, 0, ["enter", Rt, Ue[2]]), ce++, re++, $t = void 0, jt = !0;
|
|
6656
6692
|
}
|
|
6657
6693
|
}
|
|
6658
6694
|
}
|
|
@@ -6756,7 +6792,7 @@ function zC(e) {
|
|
|
6756
6792
|
function k(P) {
|
|
6757
6793
|
const re = this.stack[this.stack.length - 1].children;
|
|
6758
6794
|
let ce = re[re.length - 1];
|
|
6759
|
-
(!ce || ce.type !== "text") && (ce =
|
|
6795
|
+
(!ce || ce.type !== "text") && (ce = Bt(), ce.position = {
|
|
6760
6796
|
start: kt(P.start),
|
|
6761
6797
|
// @ts-expect-error: we’ll add `end` later.
|
|
6762
6798
|
end: void 0
|
|
@@ -6924,7 +6960,7 @@ function zC(e) {
|
|
|
6924
6960
|
alt: null
|
|
6925
6961
|
};
|
|
6926
6962
|
}
|
|
6927
|
-
function
|
|
6963
|
+
function Ut() {
|
|
6928
6964
|
return {
|
|
6929
6965
|
type: "link",
|
|
6930
6966
|
title: null,
|
|
@@ -6961,7 +6997,7 @@ function zC(e) {
|
|
|
6961
6997
|
children: []
|
|
6962
6998
|
};
|
|
6963
6999
|
}
|
|
6964
|
-
function
|
|
7000
|
+
function Bt() {
|
|
6965
7001
|
return {
|
|
6966
7002
|
type: "text",
|
|
6967
7003
|
value: ""
|
|
@@ -9425,7 +9461,7 @@ function Bd(e, t) {
|
|
|
9425
9461
|
}
|
|
9426
9462
|
return n;
|
|
9427
9463
|
}
|
|
9428
|
-
function
|
|
9464
|
+
function Nt(e) {
|
|
9429
9465
|
for (var t = 1; t < arguments.length; t++) {
|
|
9430
9466
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9431
9467
|
t % 2 ? Bd(Object(n), !0).forEach(function(r) {
|
|
@@ -9491,16 +9527,16 @@ function HE(e, t, n) {
|
|
|
9491
9527
|
paddingRight: "1em",
|
|
9492
9528
|
textAlign: "right",
|
|
9493
9529
|
userSelect: "none"
|
|
9494
|
-
}, a = typeof e == "function" ? e(t) : e, i =
|
|
9530
|
+
}, a = typeof e == "function" ? e(t) : e, i = Nt(Nt({}, r), a);
|
|
9495
9531
|
return i;
|
|
9496
9532
|
}
|
|
9497
9533
|
function dr(e) {
|
|
9498
|
-
var t = e.children, n = e.lineNumber, r = e.lineNumberStyle, a = e.largestLineNumber, i = e.showInlineLineNumbers, o = e.lineProps, s = o === void 0 ? {} : o, l = e.className, u = l === void 0 ? [] : l, c = e.showLineNumbers, d = e.wrapLongLines, f = e.wrapLines, p = f === void 0 ? !1 : f, y = p ?
|
|
9534
|
+
var t = e.children, n = e.lineNumber, r = e.lineNumberStyle, a = e.largestLineNumber, i = e.showInlineLineNumbers, o = e.lineProps, s = o === void 0 ? {} : o, l = e.className, u = l === void 0 ? [] : l, c = e.showLineNumbers, d = e.wrapLongLines, f = e.wrapLines, p = f === void 0 ? !1 : f, y = p ? Nt({}, typeof s == "function" ? s(n) : s) : {};
|
|
9499
9535
|
if (y.className = y.className ? [].concat(Tu(y.className.trim().split(/\s+/)), Tu(u)) : u, n && i) {
|
|
9500
9536
|
var S = HE(r, n, a);
|
|
9501
9537
|
t.unshift(GE(n, S));
|
|
9502
9538
|
}
|
|
9503
|
-
return d & c && (y.style =
|
|
9539
|
+
return d & c && (y.style = Nt({
|
|
9504
9540
|
display: "flex"
|
|
9505
9541
|
}, y.style)), {
|
|
9506
9542
|
type: "element",
|
|
@@ -9643,7 +9679,7 @@ function zx(e, t) {
|
|
|
9643
9679
|
return function(r) {
|
|
9644
9680
|
var a = r.language, i = r.children, o = r.style, s = o === void 0 ? t : o, l = r.customStyle, u = l === void 0 ? {} : l, c = r.codeTagProps, d = c === void 0 ? {
|
|
9645
9681
|
className: a ? "language-".concat(a) : void 0,
|
|
9646
|
-
style:
|
|
9682
|
+
style: Nt(Nt({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(a, '"]')])
|
|
9647
9683
|
} : c, f = r.useInlineStyles, p = f === void 0 ? !0 : f, y = r.showLineNumbers, S = y === void 0 ? !1 : y, x = r.showInlineLineNumbers, T = x === void 0 ? !0 : x, E = r.startingLineNumber, m = E === void 0 ? 1 : E, A = r.lineNumberContainerStyle, h = r.lineNumberStyle, b = h === void 0 ? {} : h, R = r.wrapLines, L = r.wrapLongLines, k = L === void 0 ? !1 : L, D = r.lineProps, N = D === void 0 ? {} : D, O = r.renderer, B = r.PreTag, z = B === void 0 ? "pre" : B, U = r.CodeTag, W = U === void 0 ? "code" : U, Z = r.code, G = Z === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : Z, J = r.astGenerator, w = wx(r, Dx);
|
|
9648
9684
|
J = J || e;
|
|
9649
9685
|
var I = S ? /* @__PURE__ */ Te.createElement(Ux, {
|
|
@@ -9660,9 +9696,9 @@ function zx(e, t) {
|
|
|
9660
9696
|
className: w.className ? "".concat(C, " ").concat(w.className) : C,
|
|
9661
9697
|
style: Object.assign({}, u)
|
|
9662
9698
|
});
|
|
9663
|
-
if (k ? d.style =
|
|
9699
|
+
if (k ? d.style = Nt({
|
|
9664
9700
|
whiteSpace: "pre-wrap"
|
|
9665
|
-
}, d.style) : d.style =
|
|
9701
|
+
}, d.style) : d.style = Nt({
|
|
9666
9702
|
whiteSpace: "pre"
|
|
9667
9703
|
}, d.style), !J)
|
|
9668
9704
|
return /* @__PURE__ */ Te.createElement(z, V, I, /* @__PURE__ */ Te.createElement(W, d, G));
|
|
@@ -9829,7 +9865,7 @@ var fA = Vn, gA = ty, mA = fA({
|
|
|
9829
9865
|
xmlns: null,
|
|
9830
9866
|
xmlnsXLink: null
|
|
9831
9867
|
}
|
|
9832
|
-
}), nc = vt, hA = Vn, ze = nc.booleanish, tt = nc.number,
|
|
9868
|
+
}), nc = vt, hA = Vn, ze = nc.booleanish, tt = nc.number, zt = nc.spaceSeparated, bA = hA({
|
|
9833
9869
|
transform: EA,
|
|
9834
9870
|
properties: {
|
|
9835
9871
|
ariaActiveDescendant: null,
|
|
@@ -9840,36 +9876,36 @@ var fA = Vn, gA = ty, mA = fA({
|
|
|
9840
9876
|
ariaColCount: tt,
|
|
9841
9877
|
ariaColIndex: tt,
|
|
9842
9878
|
ariaColSpan: tt,
|
|
9843
|
-
ariaControls:
|
|
9879
|
+
ariaControls: zt,
|
|
9844
9880
|
ariaCurrent: null,
|
|
9845
|
-
ariaDescribedBy:
|
|
9881
|
+
ariaDescribedBy: zt,
|
|
9846
9882
|
ariaDetails: null,
|
|
9847
9883
|
ariaDisabled: ze,
|
|
9848
|
-
ariaDropEffect:
|
|
9884
|
+
ariaDropEffect: zt,
|
|
9849
9885
|
ariaErrorMessage: null,
|
|
9850
9886
|
ariaExpanded: ze,
|
|
9851
|
-
ariaFlowTo:
|
|
9887
|
+
ariaFlowTo: zt,
|
|
9852
9888
|
ariaGrabbed: ze,
|
|
9853
9889
|
ariaHasPopup: null,
|
|
9854
9890
|
ariaHidden: ze,
|
|
9855
9891
|
ariaInvalid: null,
|
|
9856
9892
|
ariaKeyShortcuts: null,
|
|
9857
9893
|
ariaLabel: null,
|
|
9858
|
-
ariaLabelledBy:
|
|
9894
|
+
ariaLabelledBy: zt,
|
|
9859
9895
|
ariaLevel: tt,
|
|
9860
9896
|
ariaLive: null,
|
|
9861
9897
|
ariaModal: ze,
|
|
9862
9898
|
ariaMultiLine: ze,
|
|
9863
9899
|
ariaMultiSelectable: ze,
|
|
9864
9900
|
ariaOrientation: null,
|
|
9865
|
-
ariaOwns:
|
|
9901
|
+
ariaOwns: zt,
|
|
9866
9902
|
ariaPlaceholder: null,
|
|
9867
9903
|
ariaPosInSet: tt,
|
|
9868
9904
|
ariaPressed: ze,
|
|
9869
9905
|
ariaReadOnly: ze,
|
|
9870
9906
|
ariaRelevant: null,
|
|
9871
9907
|
ariaRequired: ze,
|
|
9872
|
-
ariaRoleDescription:
|
|
9908
|
+
ariaRoleDescription: zt,
|
|
9873
9909
|
ariaRowCount: tt,
|
|
9874
9910
|
ariaRowIndex: tt,
|
|
9875
9911
|
ariaRowSpan: tt,
|
|
@@ -10524,14 +10560,14 @@ var Tr = {};
|
|
|
10524
10560
|
Tr[un] = oy;
|
|
10525
10561
|
Tr[sc] = SR;
|
|
10526
10562
|
Tr[oc] = wR;
|
|
10527
|
-
var sy = 1, ly = 2, uy = 3, cy = 4, dy = 5, _u = 6, py = 7,
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10563
|
+
var sy = 1, ly = 2, uy = 3, cy = 4, dy = 5, _u = 6, py = 7, Pt = {};
|
|
10564
|
+
Pt[sy] = "Named character references must be terminated by a semicolon";
|
|
10565
|
+
Pt[ly] = "Numeric character references must be terminated by a semicolon";
|
|
10566
|
+
Pt[uy] = "Named character references cannot be empty";
|
|
10567
|
+
Pt[cy] = "Numeric character references cannot be empty";
|
|
10568
|
+
Pt[dy] = "Named character references must be known";
|
|
10569
|
+
Pt[_u] = "Numeric character references cannot be disallowed";
|
|
10570
|
+
Pt[py] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
10535
10571
|
function FR(e, t) {
|
|
10536
10572
|
var n = {}, r, a;
|
|
10537
10573
|
t || (t = {});
|
|
@@ -10567,7 +10603,7 @@ function UR(e, t) {
|
|
|
10567
10603
|
}
|
|
10568
10604
|
function C(Y, K) {
|
|
10569
10605
|
var Q = F();
|
|
10570
|
-
Q.column += K, Q.offset += K, o.call(u,
|
|
10606
|
+
Q.column += K, Q.offset += K, o.call(u, Pt[Y], Q, Y);
|
|
10571
10607
|
}
|
|
10572
10608
|
function V() {
|
|
10573
10609
|
T && (E.push(T), a && a.call(s, T, { start: G, end: F() }), T = "");
|
|
@@ -11278,7 +11314,7 @@ var fy = { exports: {} };
|
|
|
11278
11314
|
}
|
|
11279
11315
|
return s;
|
|
11280
11316
|
}(t);
|
|
11281
|
-
e.exports && (e.exports = n), typeof
|
|
11317
|
+
e.exports && (e.exports = n), typeof Lt < "u" && (Lt.Prism = n);
|
|
11282
11318
|
})(fy);
|
|
11283
11319
|
var jR = fy.exports, qR = uc;
|
|
11284
11320
|
uc.displayName = "markup";
|
|
@@ -11677,7 +11713,7 @@ function pc(e) {
|
|
|
11677
11713
|
"javascript"
|
|
11678
11714
|
)), e.languages.js = e.languages.javascript;
|
|
11679
11715
|
}
|
|
11680
|
-
var In = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof
|
|
11716
|
+
var In = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof Lt == "object" ? Lt : {}, VR = lk();
|
|
11681
11717
|
In.Prism = { manual: !0, disableWorkerMessageHandler: !0 };
|
|
11682
11718
|
var WR = l_, YR = TR, gy = jR, KR = qR, ZR = zR, XR = GR, JR = HR;
|
|
11683
11719
|
VR();
|
|
@@ -33259,20 +33295,20 @@ var Dy = {}, HL = Dy.NODE_ENV !== "production" ? se.oneOfType([se.number, se.sha
|
|
|
33259
33295
|
const My = Te.createContext(null);
|
|
33260
33296
|
var Py = function(t) {
|
|
33261
33297
|
return t.scrollTop;
|
|
33262
|
-
}, WL = {}, Nn = "unmounted",
|
|
33298
|
+
}, WL = {}, Nn = "unmounted", Gt = "exited", Ht = "entering", cn = "entered", ku = "exiting", wt = /* @__PURE__ */ function(e) {
|
|
33263
33299
|
ky(t, e);
|
|
33264
33300
|
function t(r, a) {
|
|
33265
33301
|
var i;
|
|
33266
33302
|
i = e.call(this, r, a) || this;
|
|
33267
33303
|
var o = a, s = o && !o.isMounting ? r.enter : r.appear, l;
|
|
33268
|
-
return i.appearStatus = null, r.in ? s ? (l =
|
|
33304
|
+
return i.appearStatus = null, r.in ? s ? (l = Gt, i.appearStatus = Ht) : l = cn : r.unmountOnExit || r.mountOnEnter ? l = Nn : l = Gt, i.state = {
|
|
33269
33305
|
status: l
|
|
33270
33306
|
}, i.nextCallback = null, i;
|
|
33271
33307
|
}
|
|
33272
33308
|
t.getDerivedStateFromProps = function(a, i) {
|
|
33273
33309
|
var o = a.in;
|
|
33274
33310
|
return o && i.status === Nn ? {
|
|
33275
|
-
status:
|
|
33311
|
+
status: Gt
|
|
33276
33312
|
} : null;
|
|
33277
33313
|
};
|
|
33278
33314
|
var n = t.prototype;
|
|
@@ -33282,7 +33318,7 @@ var Py = function(t) {
|
|
|
33282
33318
|
var i = null;
|
|
33283
33319
|
if (a !== this.props) {
|
|
33284
33320
|
var o = this.state.status;
|
|
33285
|
-
this.props.in ? o !==
|
|
33321
|
+
this.props.in ? o !== Ht && o !== cn && (i = Ht) : (o === Ht || o === cn) && (i = ku);
|
|
33286
33322
|
}
|
|
33287
33323
|
this.updateStatus(!1, i);
|
|
33288
33324
|
}, n.componentWillUnmount = function() {
|
|
@@ -33296,7 +33332,7 @@ var Py = function(t) {
|
|
|
33296
33332
|
};
|
|
33297
33333
|
}, n.updateStatus = function(a, i) {
|
|
33298
33334
|
if (a === void 0 && (a = !1), i !== null)
|
|
33299
|
-
if (this.cancelNextCallback(), i ===
|
|
33335
|
+
if (this.cancelNextCallback(), i === Ht) {
|
|
33300
33336
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
33301
33337
|
var o = this.props.nodeRef ? this.props.nodeRef.current : Jn.findDOMNode(this);
|
|
33302
33338
|
o && Py(o);
|
|
@@ -33304,7 +33340,7 @@ var Py = function(t) {
|
|
|
33304
33340
|
this.performEnter(a);
|
|
33305
33341
|
} else
|
|
33306
33342
|
this.performExit();
|
|
33307
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
33343
|
+
else this.props.unmountOnExit && this.state.status === Gt && this.setState({
|
|
33308
33344
|
status: Nn
|
|
33309
33345
|
});
|
|
33310
33346
|
}, n.performEnter = function(a) {
|
|
@@ -33318,7 +33354,7 @@ var Py = function(t) {
|
|
|
33318
33354
|
return;
|
|
33319
33355
|
}
|
|
33320
33356
|
this.props.onEnter(u, c), this.safeSetState({
|
|
33321
|
-
status:
|
|
33357
|
+
status: Ht
|
|
33322
33358
|
}, function() {
|
|
33323
33359
|
i.props.onEntering(u, c), i.onTransitionEnd(f, function() {
|
|
33324
33360
|
i.safeSetState({
|
|
@@ -33332,7 +33368,7 @@ var Py = function(t) {
|
|
|
33332
33368
|
var a = this, i = this.props.exit, o = this.getTimeouts(), s = this.props.nodeRef ? void 0 : Jn.findDOMNode(this);
|
|
33333
33369
|
if (!i || bb.disabled) {
|
|
33334
33370
|
this.safeSetState({
|
|
33335
|
-
status:
|
|
33371
|
+
status: Gt
|
|
33336
33372
|
}, function() {
|
|
33337
33373
|
a.props.onExited(s);
|
|
33338
33374
|
});
|
|
@@ -33343,7 +33379,7 @@ var Py = function(t) {
|
|
|
33343
33379
|
}, function() {
|
|
33344
33380
|
a.props.onExiting(s), a.onTransitionEnd(o.exit, function() {
|
|
33345
33381
|
a.safeSetState({
|
|
33346
|
-
status:
|
|
33382
|
+
status: Gt
|
|
33347
33383
|
}, function() {
|
|
33348
33384
|
a.props.onExited(s);
|
|
33349
33385
|
});
|
|
@@ -33574,8 +33610,8 @@ wt.defaultProps = {
|
|
|
33574
33610
|
onExited: ln
|
|
33575
33611
|
};
|
|
33576
33612
|
wt.UNMOUNTED = Nn;
|
|
33577
|
-
wt.EXITED =
|
|
33578
|
-
wt.ENTERING =
|
|
33613
|
+
wt.EXITED = Gt;
|
|
33614
|
+
wt.ENTERING = Ht;
|
|
33579
33615
|
wt.ENTERED = cn;
|
|
33580
33616
|
wt.EXITING = ku;
|
|
33581
33617
|
const Fy = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
@@ -33643,14 +33679,14 @@ function QL(e) {
|
|
|
33643
33679
|
t.current = e;
|
|
33644
33680
|
}, [e]), t;
|
|
33645
33681
|
}
|
|
33646
|
-
function
|
|
33682
|
+
function Ot(e) {
|
|
33647
33683
|
const t = QL(e);
|
|
33648
33684
|
return Me(function(...n) {
|
|
33649
33685
|
return t.current && t.current(...n);
|
|
33650
33686
|
}, [t]);
|
|
33651
33687
|
}
|
|
33652
33688
|
function e3(e, t, n, r = !1) {
|
|
33653
|
-
const a =
|
|
33689
|
+
const a = Ot(n);
|
|
33654
33690
|
Ie(() => {
|
|
33655
33691
|
const i = typeof e == "function" ? e() : e;
|
|
33656
33692
|
return i.addEventListener(t, a, r), () => i.removeEventListener(t, a, r);
|
|
@@ -33759,7 +33795,7 @@ const $y = /* @__PURE__ */ Oe.forwardRef((e, t) => {
|
|
|
33759
33795
|
} = e, r = s3(e, o3);
|
|
33760
33796
|
const [a] = Tc(Object.assign({
|
|
33761
33797
|
tagName: "a"
|
|
33762
|
-
}, r)), i =
|
|
33798
|
+
}, r)), i = Ot((o) => {
|
|
33763
33799
|
a.onKeyDown(o), n == null || n(o);
|
|
33764
33800
|
});
|
|
33765
33801
|
return l3(r.href) || r.role === "button" ? /* @__PURE__ */ g.jsx("a", Object.assign({
|
|
@@ -34002,23 +34038,23 @@ function Hy(e, t) {
|
|
|
34002
34038
|
}
|
|
34003
34039
|
return !1;
|
|
34004
34040
|
}
|
|
34005
|
-
function
|
|
34041
|
+
function Dt(e) {
|
|
34006
34042
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
34007
34043
|
}
|
|
34008
34044
|
function xt(e) {
|
|
34009
34045
|
return Qe(e).getComputedStyle(e);
|
|
34010
34046
|
}
|
|
34011
34047
|
function A3(e) {
|
|
34012
|
-
return ["table", "td", "th"].indexOf(
|
|
34048
|
+
return ["table", "td", "th"].indexOf(Dt(e)) >= 0;
|
|
34013
34049
|
}
|
|
34014
|
-
function
|
|
34050
|
+
function Ft(e) {
|
|
34015
34051
|
return ((Kt(e) ? e.ownerDocument : (
|
|
34016
34052
|
// $FlowFixMe[prop-missing]
|
|
34017
34053
|
e.document
|
|
34018
34054
|
)) || window.document).documentElement;
|
|
34019
34055
|
}
|
|
34020
34056
|
function Ir(e) {
|
|
34021
|
-
return
|
|
34057
|
+
return Dt(e) === "html" ? e : (
|
|
34022
34058
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
34023
34059
|
// $FlowFixMe[incompatible-return]
|
|
34024
34060
|
// $FlowFixMe[prop-missing]
|
|
@@ -34026,7 +34062,7 @@ function Ir(e) {
|
|
|
34026
34062
|
e.parentNode || // DOM Element detected
|
|
34027
34063
|
(Ac(e) ? e.host : null) || // ShadowRoot detected
|
|
34028
34064
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
34029
|
-
|
|
34065
|
+
Ft(e)
|
|
34030
34066
|
);
|
|
34031
34067
|
}
|
|
34032
34068
|
function Cb(e) {
|
|
@@ -34041,7 +34077,7 @@ function _3(e) {
|
|
|
34041
34077
|
return null;
|
|
34042
34078
|
}
|
|
34043
34079
|
var a = Ir(e);
|
|
34044
|
-
for (Ac(a) && (a = a.host); bt(a) && ["html", "body"].indexOf(
|
|
34080
|
+
for (Ac(a) && (a = a.host); bt(a) && ["html", "body"].indexOf(Dt(a)) < 0; ) {
|
|
34045
34081
|
var i = xt(a);
|
|
34046
34082
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
34047
34083
|
return a;
|
|
@@ -34052,7 +34088,7 @@ function _3(e) {
|
|
|
34052
34088
|
function Zn(e) {
|
|
34053
34089
|
for (var t = Qe(e), n = Cb(e); n && A3(n) && xt(n).position === "static"; )
|
|
34054
34090
|
n = Cb(n);
|
|
34055
|
-
return n && (
|
|
34091
|
+
return n && (Dt(n) === "html" || Dt(n) === "body" && xt(n).position === "static") ? t : n || _3(e) || t;
|
|
34056
34092
|
}
|
|
34057
34093
|
function Rc(e) {
|
|
34058
34094
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
@@ -34133,7 +34169,7 @@ function Tb(e) {
|
|
|
34133
34169
|
var T = o.hasOwnProperty("x"), E = o.hasOwnProperty("y"), m = We, A = Ve, h = window;
|
|
34134
34170
|
if (u) {
|
|
34135
34171
|
var b = Zn(n), R = "clientHeight", L = "clientWidth";
|
|
34136
|
-
if (b === Qe(n) && (b =
|
|
34172
|
+
if (b === Qe(n) && (b = Ft(n), xt(b).position !== "static" && s === "absolute" && (R = "scrollHeight", L = "scrollWidth")), b = b, a === Ve || (a === We || a === ot) && i === $n) {
|
|
34137
34173
|
A = it;
|
|
34138
34174
|
var k = d && b === h && h.visualViewport ? h.visualViewport.height : (
|
|
34139
34175
|
// $FlowFixMe[prop-missing]
|
|
@@ -34245,10 +34281,10 @@ function kc(e) {
|
|
|
34245
34281
|
};
|
|
34246
34282
|
}
|
|
34247
34283
|
function Ic(e) {
|
|
34248
|
-
return bn(
|
|
34284
|
+
return bn(Ft(e)).left + kc(e).scrollLeft;
|
|
34249
34285
|
}
|
|
34250
34286
|
function j3(e, t) {
|
|
34251
|
-
var n = Qe(e), r =
|
|
34287
|
+
var n = Qe(e), r = Ft(e), a = n.visualViewport, i = r.clientWidth, o = r.clientHeight, s = 0, l = 0;
|
|
34252
34288
|
if (a) {
|
|
34253
34289
|
i = a.width, o = a.height;
|
|
34254
34290
|
var u = Gy();
|
|
@@ -34262,7 +34298,7 @@ function j3(e, t) {
|
|
|
34262
34298
|
};
|
|
34263
34299
|
}
|
|
34264
34300
|
function q3(e) {
|
|
34265
|
-
var t, n =
|
|
34301
|
+
var t, n = Ft(e), r = kc(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Yt(n.scrollWidth, n.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), o = Yt(n.scrollHeight, n.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -r.scrollLeft + Ic(e), l = -r.scrollTop;
|
|
34266
34302
|
return xt(a || n).direction === "rtl" && (s += Yt(n.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
34267
34303
|
width: i,
|
|
34268
34304
|
height: o,
|
|
@@ -34275,7 +34311,7 @@ function Nc(e) {
|
|
|
34275
34311
|
return /auto|scroll|overlay|hidden/.test(n + a + r);
|
|
34276
34312
|
}
|
|
34277
34313
|
function Ky(e) {
|
|
34278
|
-
return ["html", "body", "#document"].indexOf(
|
|
34314
|
+
return ["html", "body", "#document"].indexOf(Dt(e)) >= 0 ? e.ownerDocument.body : bt(e) && Nc(e) ? e : Ky(Ir(e));
|
|
34279
34315
|
}
|
|
34280
34316
|
function Fn(e, t) {
|
|
34281
34317
|
var n;
|
|
@@ -34299,12 +34335,12 @@ function z3(e, t) {
|
|
|
34299
34335
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
34300
34336
|
}
|
|
34301
34337
|
function Ab(e, t, n) {
|
|
34302
|
-
return t === qy ? Du(j3(e, n)) : Kt(t) ? z3(t, n) : Du(q3(
|
|
34338
|
+
return t === qy ? Du(j3(e, n)) : Kt(t) ? z3(t, n) : Du(q3(Ft(e)));
|
|
34303
34339
|
}
|
|
34304
34340
|
function G3(e) {
|
|
34305
34341
|
var t = Fn(Ir(e)), n = ["absolute", "fixed"].indexOf(xt(e).position) >= 0, r = n && bt(e) ? Zn(e) : e;
|
|
34306
34342
|
return Kt(r) ? t.filter(function(a) {
|
|
34307
|
-
return Kt(a) && Hy(a, r) &&
|
|
34343
|
+
return Kt(a) && Hy(a, r) && Dt(a) !== "body";
|
|
34308
34344
|
}) : [];
|
|
34309
34345
|
}
|
|
34310
34346
|
function H3(e, t, n, r) {
|
|
@@ -34363,7 +34399,7 @@ function Zy(e) {
|
|
|
34363
34399
|
}
|
|
34364
34400
|
function jn(e, t) {
|
|
34365
34401
|
t === void 0 && (t = {});
|
|
34366
|
-
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.strategy, o = i === void 0 ? e.strategy : i, s = n.boundary, l = s === void 0 ? g3 : s, u = n.rootBoundary, c = u === void 0 ? qy : u, d = n.elementContext, f = d === void 0 ? Rn : d, p = n.altBoundary, y = p === void 0 ? !1 : p, S = n.padding, x = S === void 0 ? 0 : S, T = Wy(typeof x != "number" ? x : Yy(x, Kn)), E = f === Rn ? m3 : Rn, m = e.rects.popper, A = e.elements[y ? E : f], h = H3(Kt(A) ? A : A.contextElement ||
|
|
34402
|
+
var n = t, r = n.placement, a = r === void 0 ? e.placement : r, i = n.strategy, o = i === void 0 ? e.strategy : i, s = n.boundary, l = s === void 0 ? g3 : s, u = n.rootBoundary, c = u === void 0 ? qy : u, d = n.elementContext, f = d === void 0 ? Rn : d, p = n.altBoundary, y = p === void 0 ? !1 : p, S = n.padding, x = S === void 0 ? 0 : S, T = Wy(typeof x != "number" ? x : Yy(x, Kn)), E = f === Rn ? m3 : Rn, m = e.rects.popper, A = e.elements[y ? E : f], h = H3(Kt(A) ? A : A.contextElement || Ft(e.elements.popper), l, c, o), b = bn(e.elements.reference), R = Zy({
|
|
34367
34403
|
reference: b,
|
|
34368
34404
|
element: m,
|
|
34369
34405
|
placement: a
|
|
@@ -34575,7 +34611,7 @@ function a6(e) {
|
|
|
34575
34611
|
b[A] = Ze, O[A] = Ze - Z;
|
|
34576
34612
|
}
|
|
34577
34613
|
if (s) {
|
|
34578
|
-
var ut, en = A === "x" ? Ve : We,
|
|
34614
|
+
var ut, en = A === "x" ? Ve : We, Ut = A === "x" ? it : ot, Fe = b[h], At = h === "y" ? "height" : "width", tn = Fe + x[en], _t = Fe - x[Ut], Bt = [Ve, We].indexOf(T) !== -1, nn = (ut = N == null ? void 0 : N[h]) != null ? ut : 0, P = Bt ? tn : Fe - R[At] - L[At] - nn + D.altAxis, q = Bt ? Fe + R[At] + L[At] - nn - D.altAxis : _t, re = p && Bt ? R3(P, Fe, q) : Pn(p ? P : tn, Fe, p ? q : _t);
|
|
34579
34615
|
b[h] = re, O[h] = re - Fe;
|
|
34580
34616
|
}
|
|
34581
34617
|
t.modifiersData[r] = O;
|
|
@@ -34603,14 +34639,14 @@ function l6(e) {
|
|
|
34603
34639
|
}
|
|
34604
34640
|
function u6(e, t, n) {
|
|
34605
34641
|
n === void 0 && (n = !1);
|
|
34606
|
-
var r = bt(t), a = bt(t) && l6(t), i =
|
|
34642
|
+
var r = bt(t), a = bt(t) && l6(t), i = Ft(t), o = bn(e, a, n), s = {
|
|
34607
34643
|
scrollLeft: 0,
|
|
34608
34644
|
scrollTop: 0
|
|
34609
34645
|
}, l = {
|
|
34610
34646
|
x: 0,
|
|
34611
34647
|
y: 0
|
|
34612
34648
|
};
|
|
34613
|
-
return (r || !r && !n) && ((
|
|
34649
|
+
return (r || !r && !n) && ((Dt(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
34614
34650
|
Nc(i)) && (s = s6(t)), bt(t) ? (l = bn(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : i && (l.x = Ic(i))), {
|
|
34615
34651
|
x: o.left + s.scrollLeft - l.x,
|
|
34616
34652
|
y: o.top + s.scrollTop - l.y,
|
|
@@ -34947,10 +34983,10 @@ function R6(e, t = Ob, {
|
|
|
34947
34983
|
const a = we(!1), i = we(!1), o = Me((u) => {
|
|
34948
34984
|
const c = su(e);
|
|
34949
34985
|
Jy(!!c, "ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"), a.current = !c || _6(u) || !A6(u) || !!Nb(c, u.target) || i.current, i.current = !1;
|
|
34950
|
-
}, [e]), s =
|
|
34986
|
+
}, [e]), s = Ot((u) => {
|
|
34951
34987
|
const c = su(e);
|
|
34952
34988
|
c && Nb(c, u.target) ? i.current = !0 : i.current = !1;
|
|
34953
|
-
}), l =
|
|
34989
|
+
}), l = Ot((u) => {
|
|
34954
34990
|
a.current || t(u);
|
|
34955
34991
|
});
|
|
34956
34992
|
Ie(() => {
|
|
@@ -35206,7 +35242,7 @@ function sv({
|
|
|
35206
35242
|
activeKey: s
|
|
35207
35243
|
} = o || {}, l = Mb(e, t), u = n == null && e != null ? Mb(s) === l : n;
|
|
35208
35244
|
return [{
|
|
35209
|
-
onClick:
|
|
35245
|
+
onClick: Ot((d) => {
|
|
35210
35246
|
r || (a == null || a(d), i && !d.isPropagationStopped() && i(l, d));
|
|
35211
35247
|
}),
|
|
35212
35248
|
"aria-disabled": r || void 0,
|
|
@@ -35262,7 +35298,7 @@ function Xn({
|
|
|
35262
35298
|
originalEvent: O,
|
|
35263
35299
|
source: B
|
|
35264
35300
|
});
|
|
35265
|
-
}, [c]), b =
|
|
35301
|
+
}, [c]), b = Ot((N, O) => {
|
|
35266
35302
|
n == null || n(N, O), h(!1, O, "select"), O.isPropagationStopped() || A == null || A(N, O);
|
|
35267
35303
|
}), R = Tt(() => ({
|
|
35268
35304
|
toggle: h,
|
|
@@ -35274,9 +35310,9 @@ function Xn({
|
|
|
35274
35310
|
setToggle: S
|
|
35275
35311
|
}), [h, o, u, p, x, f, S]);
|
|
35276
35312
|
p && T && !u && (m.current = p.contains(p.ownerDocument.activeElement));
|
|
35277
|
-
const L =
|
|
35313
|
+
const L = Ot(() => {
|
|
35278
35314
|
x && x.focus && x.focus();
|
|
35279
|
-
}), k =
|
|
35315
|
+
}), k = Ot(() => {
|
|
35280
35316
|
const N = E.current;
|
|
35281
35317
|
let O = i;
|
|
35282
35318
|
if (O == null && (O = d.current && nv(d.current) ? "keyboard" : !1), O === !1 || O === "keyboard" && !/^key.+$/.test(N))
|