minerva-plexus-csd 1.0.3 → 1.0.4

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.
@@ -4,13 +4,13 @@ var $d = (e) => {
4
4
  };
5
5
  var E1 = (e, t, n) => t in e ? y1(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
6
  var me = (e, t, n) => E1(e, typeof t != "symbol" ? t + "" : t, n), jd = (e, t, n) => t.has(e) || $d("Cannot " + n);
7
- var ge = (e, t, n) => (jd(e, t, "read from private field"), n ? n.call(e) : t.get(e)), at = (e, t, n) => t.has(e) ? $d("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Fe = (e, t, n, r) => (jd(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- import * as Me from "react";
9
- import Ae, { createContext as mn, useState as se, useMemo as It, useContext as Re, useEffect as Le, useRef as we, useCallback as $e, useReducer as v1, useLayoutEffect as S1 } from "react";
10
- import Oe from "js-cookie";
7
+ var ge = (e, t, n) => (jd(e, t, "read from private field"), n ? n.call(e) : t.get(e)), rt = (e, t, n) => t.has(e) ? $d("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Pe = (e, t, n, r) => (jd(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
+ import * as De from "react";
9
+ import Ae, { createContext as mn, useState as se, useMemo as It, useContext as Re, useEffect as Oe, useRef as we, useCallback as Be, useReducer as v1, useLayoutEffect as S1 } from "react";
10
+ import Et from "js-cookie";
11
11
  import Zu from "sweetalert2";
12
12
  import { useTranslation as hn, initReactI18next as w1 } from "react-i18next";
13
- import D, { css as ot, keyframes as _c, createGlobalStyle as T1 } from "styled-components";
13
+ import D, { css as it, keyframes as _c, createGlobalStyle as T1 } from "styled-components";
14
14
  import tE from "i18next";
15
15
  import { default as qM } from "i18next";
16
16
  import Dr from "react-dom";
@@ -254,40 +254,40 @@ function C1() {
254
254
  }), typeof Reflect == "object" && Reflect.construct) {
255
255
  try {
256
256
  Reflect.construct(fe, []);
257
- } catch (We) {
258
- oe = We;
257
+ } catch (Ve) {
258
+ oe = Ve;
259
259
  }
260
260
  Reflect.construct(R, [], fe);
261
261
  } else {
262
262
  try {
263
263
  fe.call();
264
- } catch (We) {
265
- oe = We;
264
+ } catch (Ve) {
265
+ oe = Ve;
266
266
  }
267
267
  R.call(fe.prototype);
268
268
  }
269
269
  } else {
270
270
  try {
271
271
  throw Error();
272
- } catch (We) {
273
- oe = We;
272
+ } catch (Ve) {
273
+ oe = Ve;
274
274
  }
275
275
  R();
276
276
  }
277
- } catch (We) {
278
- if (We && oe && typeof We.stack == "string") {
279
- for (var pe = We.stack.split(`
280
- `), He = oe.stack.split(`
281
- `), ke = pe.length - 1, Ie = He.length - 1; ke >= 1 && Ie >= 0 && pe[ke] !== He[Ie]; )
277
+ } catch (Ve) {
278
+ if (Ve && oe && typeof Ve.stack == "string") {
279
+ for (var pe = Ve.stack.split(`
280
+ `), Ge = oe.stack.split(`
281
+ `), ke = pe.length - 1, Ie = Ge.length - 1; ke >= 1 && Ie >= 0 && pe[ke] !== Ge[Ie]; )
282
282
  Ie--;
283
283
  for (; ke >= 1 && Ie >= 0; ke--, Ie--)
284
- if (pe[ke] !== He[Ie]) {
284
+ if (pe[ke] !== Ge[Ie]) {
285
285
  if (ke !== 1 || Ie !== 1)
286
286
  do
287
- if (ke--, Ie--, Ie < 0 || pe[ke] !== He[Ie]) {
288
- var ut = `
287
+ if (ke--, Ie--, Ie < 0 || pe[ke] !== Ge[Ie]) {
288
+ var lt = `
289
289
  ` + pe[ke].replace(" at new ", " at ");
290
- return R.displayName && ut.includes("<anonymous>") && (ut = ut.replace("<anonymous>", R.displayName)), typeof R == "function" && ne.set(R, ut), ut;
290
+ return R.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", R.displayName)), typeof R == "function" && ne.set(R, lt), lt;
291
291
  }
292
292
  while (ke >= 1 && Ie >= 0);
293
293
  break;
@@ -299,18 +299,18 @@ function C1() {
299
299
  var Cn = R ? R.displayName || R.name : "", on = Cn ? te(Cn) : "";
300
300
  return typeof R == "function" && ne.set(R, on), on;
301
301
  }
302
- function Be(R, $, Z) {
302
+ function Ue(R, $, Z) {
303
303
  return z(R, !1);
304
304
  }
305
- function mt(R) {
305
+ function gt(R) {
306
306
  var $ = R.prototype;
307
307
  return !!($ && $.isReactComponent);
308
308
  }
309
- function rt(R, $, Z) {
309
+ function nt(R, $, Z) {
310
310
  if (R == null)
311
311
  return "";
312
312
  if (typeof R == "function")
313
- return z(R, mt(R));
313
+ return z(R, gt(R));
314
314
  if (typeof R == "string")
315
315
  return te(R);
316
316
  switch (R) {
@@ -322,43 +322,43 @@ function C1() {
322
322
  if (typeof R == "object")
323
323
  switch (R.$$typeof) {
324
324
  case u:
325
- return Be(R.render);
325
+ return Ue(R.render);
326
326
  case g:
327
- return rt(R.type, $, Z);
327
+ return nt(R.type, $, Z);
328
328
  case p: {
329
329
  var oe = R, ye = oe._payload, Se = oe._init;
330
330
  try {
331
- return rt(Se(ye), $, Z);
331
+ return nt(Se(ye), $, Z);
332
332
  } catch {
333
333
  }
334
334
  }
335
335
  }
336
336
  return "";
337
337
  }
338
- var ht = Object.prototype.hasOwnProperty, Sn = {}, tn = E.ReactDebugCurrentFrame;
339
- function qe(R) {
338
+ var mt = Object.prototype.hasOwnProperty, Sn = {}, tn = E.ReactDebugCurrentFrame;
339
+ function je(R) {
340
340
  if (R) {
341
- var $ = R._owner, Z = rt(R.type, R._source, $ ? $.type : null);
341
+ var $ = R._owner, Z = nt(R.type, R._source, $ ? $.type : null);
342
342
  tn.setExtraStackFrame(Z);
343
343
  } else
344
344
  tn.setExtraStackFrame(null);
345
345
  }
346
346
  function qt(R, $, Z, oe, ye) {
347
347
  {
348
- var Se = Function.call.bind(ht);
348
+ var Se = Function.call.bind(mt);
349
349
  for (var fe in R)
350
350
  if (Se(R, fe)) {
351
351
  var pe = void 0;
352
352
  try {
353
353
  if (typeof R[fe] != "function") {
354
- var He = Error((oe || "React class") + ": " + Z + " type `" + fe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof R[fe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
355
- throw He.name = "Invariant Violation", He;
354
+ var Ge = Error((oe || "React class") + ": " + Z + " type `" + fe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof R[fe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
355
+ throw Ge.name = "Invariant Violation", Ge;
356
356
  }
357
357
  pe = R[fe]($, fe, oe, Z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
358
358
  } catch (ke) {
359
359
  pe = ke;
360
360
  }
361
- pe && !(pe instanceof Error) && (qe(ye), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", oe || "React class", Z, fe, typeof pe), qe(null)), pe instanceof Error && !(pe.message in Sn) && (Sn[pe.message] = !0, qe(ye), m("Failed %s type: %s", Z, pe.message), qe(null));
361
+ pe && !(pe instanceof Error) && (je(ye), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", oe || "React class", Z, fe, typeof pe), je(null)), pe instanceof Error && !(pe.message in Sn) && (Sn[pe.message] = !0, je(ye), m("Failed %s type: %s", Z, pe.message), je(null));
362
362
  }
363
363
  }
364
364
  }
@@ -391,17 +391,17 @@ function C1() {
391
391
  ref: !0,
392
392
  __self: !0,
393
393
  __source: !0
394
- }, be, Ve;
394
+ }, be, ze;
395
395
  function Mt(R) {
396
- if (ht.call(R, "ref")) {
396
+ if (mt.call(R, "ref")) {
397
397
  var $ = Object.getOwnPropertyDescriptor(R, "ref").get;
398
398
  if ($ && $.isReactWarning)
399
399
  return !1;
400
400
  }
401
401
  return R.ref !== void 0;
402
402
  }
403
- function bt(R) {
404
- if (ht.call(R, "key")) {
403
+ function ht(R) {
404
+ if (mt.call(R, "key")) {
405
405
  var $ = Object.getOwnPropertyDescriptor(R, "key").get;
406
406
  if ($ && $.isReactWarning)
407
407
  return !1;
@@ -422,10 +422,10 @@ function C1() {
422
422
  });
423
423
  }
424
424
  }
425
- function Ge(R, $) {
425
+ function qe(R, $) {
426
426
  {
427
427
  var Z = function() {
428
- Ve || (Ve = !0, m("%s: `ref` 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)", $));
428
+ ze || (ze = !0, m("%s: `ref` 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)", $));
429
429
  };
430
430
  Z.isReactWarning = !0, Object.defineProperty(R, "ref", {
431
431
  get: Z,
@@ -462,28 +462,28 @@ function C1() {
462
462
  value: ye
463
463
  }), Object.freeze && (Object.freeze(pe.props), Object.freeze(pe)), pe;
464
464
  };
465
- function yt(R, $, Z, oe, ye) {
465
+ function bt(R, $, Z, oe, ye) {
466
466
  {
467
- var Se, fe = {}, pe = null, He = null;
468
- Z !== void 0 && (H(Z), pe = "" + Z), bt($) && (H($.key), pe = "" + $.key), Mt($) && (He = $.ref, rn($, ye));
467
+ var Se, fe = {}, pe = null, Ge = null;
468
+ Z !== void 0 && (H(Z), pe = "" + Z), ht($) && (H($.key), pe = "" + $.key), Mt($) && (Ge = $.ref, rn($, ye));
469
469
  for (Se in $)
470
- ht.call($, Se) && !de.hasOwnProperty(Se) && (fe[Se] = $[Se]);
470
+ mt.call($, Se) && !de.hasOwnProperty(Se) && (fe[Se] = $[Se]);
471
471
  if (R && R.defaultProps) {
472
472
  var ke = R.defaultProps;
473
473
  for (Se in ke)
474
474
  fe[Se] === void 0 && (fe[Se] = ke[Se]);
475
475
  }
476
- if (pe || He) {
476
+ if (pe || Ge) {
477
477
  var Ie = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
478
- pe && an(fe, Ie), He && Ge(fe, Ie);
478
+ pe && an(fe, Ie), Ge && qe(fe, Ie);
479
479
  }
480
- return Ht(R, pe, He, ye, oe, re.current, fe);
480
+ return Ht(R, pe, Ge, ye, oe, re.current, fe);
481
481
  }
482
482
  }
483
483
  var ba = E.ReactCurrentOwner, Ld = E.ReactDebugCurrentFrame;
484
484
  function xn(R) {
485
485
  if (R) {
486
- var $ = R._owner, Z = rt(R.type, R._source, $ ? $.type : null);
486
+ var $ = R._owner, Z = nt(R.type, R._source, $ ? $.type : null);
487
487
  Ld.setExtraStackFrame(Z);
488
488
  } else
489
489
  Ld.setExtraStackFrame(null);
@@ -597,33 +597,33 @@ Check the top-level render call using <` + Z + ">.");
597
597
  if (!fe) {
598
598
  var pe = "";
599
599
  (R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && (pe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
- var He = l1();
601
- He ? pe += He : pe += Dd();
600
+ var Ge = l1();
601
+ Ge ? pe += Ge : pe += Dd();
602
602
  var ke;
603
603
  R === null ? ke = "null" : Gt(R) ? ke = "array" : R !== void 0 && R.$$typeof === n ? (ke = "<" + (j(R.type) || "Unknown") + " />", pe = " Did you accidentally export a JSX literal instead of a component?") : ke = typeof R, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ke, pe);
604
604
  }
605
- var Ie = yt(R, $, Z, ye, Se);
605
+ var Ie = bt(R, $, Z, ye, Se);
606
606
  if (Ie == null)
607
607
  return Ie;
608
608
  if (fe) {
609
- var ut = $.children;
610
- if (ut !== void 0)
609
+ var lt = $.children;
610
+ if (lt !== void 0)
611
611
  if (oe)
612
- if (Gt(ut)) {
613
- for (var Cn = 0; Cn < ut.length; Cn++)
614
- Fd(ut[Cn], R);
615
- Object.freeze && Object.freeze(ut);
612
+ if (Gt(lt)) {
613
+ for (var Cn = 0; Cn < lt.length; Cn++)
614
+ Fd(lt[Cn], R);
615
+ Object.freeze && Object.freeze(lt);
616
616
  } else
617
617
  m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
618
  else
619
- Fd(ut, R);
619
+ Fd(lt, R);
620
620
  }
621
- if (ht.call($, "key")) {
622
- var on = j(R), We = Object.keys($).filter(function(b1) {
621
+ if (mt.call($, "key")) {
622
+ var on = j(R), Ve = Object.keys($).filter(function(b1) {
623
623
  return b1 !== "key";
624
- }), va = We.length > 0 ? "{key: someKey, " + We.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ }), va = Ve.length > 0 ? "{key: someKey, " + Ve.join(": ..., ") + ": ...}" : "{key: someKey}";
625
625
  if (!Ud[on + va]) {
626
- var h1 = We.length > 0 ? "{" + We.join(": ..., ") + ": ...}" : "{}";
626
+ var h1 = Ve.length > 0 ? "{" + Ve.join(": ..., ") + ": ...}" : "{}";
627
627
  m(`A props object containing a "key" prop is being spread into JSX:
628
628
  let props = %s;
629
629
  <%s {...props} />
@@ -664,8 +664,8 @@ const EM = (e) => {
664
664
  cn = { ...cn, ...e };
665
665
  }, At = () => (cn.apiUrl || (console.warn("[Minerva] apiUrl no configurado. Usando valor por defecto."), cn.apiUrl = Hd.API_URL), cn.apiKey || (console.warn("[Minerva] apiKey no configurado. Usando valor por defecto."), cn.apiKey = Hd.API_KEY), cn), vM = (e) => {
666
666
  rE = e;
667
- }, aE = () => rE, Xe = async (e, t = {}) => {
668
- const { apiUrl: n } = At(), r = Oe.get("access_token"), a = {
667
+ }, aE = () => rE, Ye = async (e, t = {}) => {
668
+ const { apiUrl: n } = At(), r = Et.get("access_token"), a = {
669
669
  "Content-Type": "application/json",
670
670
  ...t.headers || {}
671
671
  };
@@ -677,7 +677,7 @@ const EM = (e) => {
677
677
  headers: a
678
678
  });
679
679
  if (o.status === 401) {
680
- console.warn("Token expired or invalid. Redirecting to login..."), Oe.remove("access_token", { path: "/" });
680
+ console.warn("Token expired or invalid. Redirecting to login...");
681
681
  return;
682
682
  }
683
683
  if (!o.ok)
@@ -703,8 +703,7 @@ const EM = (e) => {
703
703
  * Realiza una solicitud para iniciar sesión.
704
704
  */
705
705
  login: async (e, t) => {
706
- Oe.remove("access_token", { path: "/" });
707
- const n = await Xe(vt.LOGIN, {
706
+ const n = await Ye(vt.LOGIN, {
708
707
  method: "POST",
709
708
  headers: {
710
709
  "Content-Type": "application/x-www-form-urlencoded",
@@ -728,7 +727,7 @@ const EM = (e) => {
728
727
  * en desuso por el momento
729
728
  */
730
729
  getUser: async () => {
731
- const e = await Xe(vt.USER, {
730
+ const e = await Ye(vt.USER, {
732
731
  method: "GET"
733
732
  });
734
733
  if (!e)
@@ -743,7 +742,6 @@ const EM = (e) => {
743
742
  * Realiza una solicitud para cerrar la sesión.
744
743
  */
745
744
  logout: async () => {
746
- Oe.remove("access_token", { path: "/" });
747
745
  }
748
746
  }, kc = {
749
747
  /**
@@ -757,7 +755,7 @@ const EM = (e) => {
757
755
  createConversation: async (e, t) => {
758
756
  if (!t)
759
757
  throw new Error("Service is required to create a conversation.");
760
- const { apiUrl: n } = At(), r = `${n}${vt.CONVERSATIONS_CREATE}/?service=${encodeURIComponent(t)}${e ? `&title=${encodeURIComponent(e)}` : ""}`, a = await Xe(r, {
758
+ const { apiUrl: n } = At(), r = `${n}${vt.CONVERSATIONS_CREATE}/?service=${encodeURIComponent(t)}${e ? `&title=${encodeURIComponent(e)}` : ""}`, a = await Ye(r, {
761
759
  method: "POST",
762
760
  mode: "cors",
763
761
  headers: {
@@ -782,7 +780,7 @@ const EM = (e) => {
782
780
  * @returns {Promise<Conversation[]>} Promesa que resuelve con una lista de conversaciones.
783
781
  */
784
782
  getUserConversations: async (e) => {
785
- const { apiUrl: t } = At(), n = await Xe(
783
+ const { apiUrl: t } = At(), n = await Ye(
786
784
  `${t}${vt.USER_CONVERSATIONS}?service=${e}`,
787
785
  {
788
786
  method: "GET"
@@ -806,7 +804,7 @@ const EM = (e) => {
806
804
  * @returns {Promise<Conversation>} Promesa que resuelve con la conversación obtenida.
807
805
  */
808
806
  getConversationById: async (e, t) => {
809
- const { apiUrl: n } = At(), r = await Xe(
807
+ const { apiUrl: n } = At(), r = await Ye(
810
808
  `${n}${vt.CONVERSATION_MESSAGES}/${e}?service=${t}`,
811
809
  {
812
810
  method: "GET",
@@ -834,7 +832,7 @@ const EM = (e) => {
834
832
  * @throws {Error}
835
833
  */
836
834
  deleteConversationById: async (e, t) => {
837
- const { apiUrl: n } = At(), r = await Xe(
835
+ const { apiUrl: n } = At(), r = await Ye(
838
836
  `${n}${vt.DELETE_CONVERSATION}${e}?conversation_id=${e}&service=${t}`,
839
837
  {
840
838
  method: "POST"
@@ -852,7 +850,7 @@ const EM = (e) => {
852
850
  }, R1 = {
853
851
  getUserServices: async () => {
854
852
  try {
855
- const e = await Xe(vt.SERVICESENDPOINT, {
853
+ const e = await Ye(vt.SERVICESENDPOINT, {
856
854
  method: "GET"
857
855
  });
858
856
  if (!e)
@@ -920,7 +918,7 @@ const EM = (e) => {
920
918
  * @returns {Promise<Message[]>} Promesa que resuelve con una lista de mensajes.
921
919
  */
922
920
  getMessagesByConversationId: async (e) => {
923
- const { apiUrl: t } = At(), n = await Xe(
921
+ const { apiUrl: t } = At(), n = await Ye(
924
922
  `${t}${vt.GET_MESSAGES_BY_CONVERSATION_ID}/${e}?conversation_id=${e}`,
925
923
  {
926
924
  method: "GET",
@@ -945,7 +943,7 @@ const EM = (e) => {
945
943
  * @returns {Promise<Message>} Promesa que resuelve con el mensaje enviado.
946
944
  */
947
945
  sendMessage: async (e, t) => {
948
- const { apiUrl: n } = At(), r = await Xe(
946
+ const { apiUrl: n } = At(), r = await Ye(
949
947
  `${n}${vt.SEND_MESSAGE}`,
950
948
  {
951
949
  method: "POST",
@@ -969,7 +967,7 @@ const EM = (e) => {
969
967
  const { apiUrl: t } = At(), n = `${t}/bot/stop_request_stream?conversation_id=${e}`;
970
968
  console.log("Enviando petición para detener el stream al endpoint:", n), console.log("Conversación ID:", e);
971
969
  try {
972
- const r = await Xe(n, {
970
+ const r = await Ye(n, {
973
971
  method: "POST",
974
972
  headers: {
975
973
  "Content-Type": "application/json"
@@ -1002,7 +1000,7 @@ const EM = (e) => {
1002
1000
  text: t,
1003
1001
  //from_user: { id: userId },
1004
1002
  service: n
1005
- }, o = await Xe(
1003
+ }, o = await Ye(
1006
1004
  `${a}${vt.SEND_MESSAGE}`,
1007
1005
  {
1008
1006
  method: "POST",
@@ -1035,7 +1033,7 @@ const EM = (e) => {
1035
1033
  messageId: t,
1036
1034
  text: n
1037
1035
  }) => {
1038
- const a = await Xe("/bot/edit_request_stream", {
1036
+ const a = await Ye("/bot/edit_request_stream", {
1039
1037
  method: "POST",
1040
1038
  headers: { "Content-Type": "application/json" },
1041
1039
  body: JSON.stringify({
@@ -1104,7 +1102,7 @@ const EM = (e) => {
1104
1102
  console.error("❌ Error al obtener conversaciones:", T);
1105
1103
  }
1106
1104
  };
1107
- Le(() => {
1105
+ Oe(() => {
1108
1106
  !a && r && i && c();
1109
1107
  }, [a, r, i]);
1110
1108
  const d = async (T, E) => {
@@ -1138,9 +1136,9 @@ const EM = (e) => {
1138
1136
  service: i,
1139
1137
  conversations: o[i] || []
1140
1138
  });
1141
- Le(() => {
1139
+ Oe(() => {
1142
1140
  r && !a && t && !n && h();
1143
- }, [r, a, h]), Le(() => {
1141
+ }, [r, a, h]), Oe(() => {
1144
1142
  r && !a && n && y();
1145
1143
  }, [r, y]);
1146
1144
  const A = It(
@@ -1469,7 +1467,7 @@ const U1 = D.div.attrs({
1469
1467
  return f.jsx("svg", { width: e, height: e, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: n === "outline" ? r : a });
1470
1468
  }, X1 = ({ size: e = 24, color: t = "#003E57" }) => f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [f.jsx("path", { d: "M18 6L6 18", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), f.jsx("path", { d: "M6 6L18 18", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), Z1 = ({ size: e = 20, color: t = "#597886" }) => f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [f.jsx("path", { d: "M3 6H5H21", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), f.jsx("path", { d: "M19 6V20C19 21.1046 18.1046 22 17 22H7C5.89543 22 5 21.1046 5 20V6M10 10V16M14 10V16M8 6V4C8 2.89543 8.89543 2 10 2H14C15.1046 2 16 2.89543 16 4V6", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), J1 = ({ size: e = 20, color: t = "#597886" }) => f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: f.jsx("path", { d: "M12 5V19M5 12H19", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Q1 = ({ size: e = 20, color: t = "#597886" }) => f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: f.jsx("path", { d: "M5 12H19", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), ew = ({ size: e = 20, color: t = "#597886" }) => f.jsxs("svg", { width: e, height: e, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [f.jsx("path", { d: "M10 16.6667H17.5", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), f.jsx("path", { d: "M13.75 2.91669C14.0815 2.58517 14.5312 2.39893 15 2.39893C15.2321 2.39893 15.462 2.44465 15.6765 2.53349C15.891 2.62233 16.0858 2.75254 16.25 2.91669C16.4142 3.08084 16.5444 3.27572 16.6332 3.4902C16.722 3.70467 16.7678 3.93455 16.7678 4.16669C16.7678 4.39884 16.722 4.62871 16.6332 4.84319C16.5444 5.05766 16.4142 5.25254 16.25 5.41669L5.83333 15.8334L2.5 16.6667L3.33333 13.3334L13.75 2.91669Z", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), tw = ({ size: e = 20, color: t = "#597886" }) => f.jsxs("svg", { width: e, height: e, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [f.jsx("path", { d: "M9.16675 4.16675L5.00008 7.50008H1.66675V12.5001H5.00008L9.16675 15.8334V4.16675Z", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), f.jsx("path", { d: "M15.8916 4.1084C17.4539 5.67113 18.3315 7.79036 18.3315 10.0001C18.3315 12.2098 17.4539 14.329 15.8916 15.8917M12.95 7.05007C13.7311 7.83143 14.1699 8.89105 14.1699 9.9959C14.1699 11.1007 13.7311 12.1604 12.95 12.9417", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), f.jsx("path", { d: "M2.5 2.5L17.5 17.5", stroke: t, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), nw = ({ size: e = 24, color: t = "#003E57" }) => f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: t, xmlns: "http://www.w3.org/2000/svg", children: f.jsx("path", { fill: t, d: "M12.1119 4.80081C7.81531 4.73811 4.40279 8.53546 4.83737 12.8141C5.19623 16.3486 7.90383 18.971 11.4834 19.199C11.7616 19.2169 11.9988 18.9968 11.9988 18.7178C11.9988 18.4659 11.8022 18.256 11.5512 18.2401C8.36769 18.0352 5.97934 15.6483 5.76931 12.4642C5.53372 8.87571 8.25818 5.83927 11.8482 5.76126C15.3917 5.68303 18.2121 8.45475 18.2121 12.0082V12.6821C18.2121 13.4751 17.6856 14.1994 16.9117 14.3704C15.8205 14.6116 14.8513 13.7826 14.8513 12.731V9.12745C14.8513 8.86203 14.6363 8.64678 14.371 8.64678C14.1058 8.64678 13.8903 8.86176 13.8903 9.12715V9.66363C13.1417 8.89672 12.0351 8.48176 10.8419 8.70799C9.52556 8.96153 8.45441 10.0417 8.21437 11.3889C7.83272 13.515 9.46495 15.3735 11.5209 15.3735C12.6427 15.3735 13.6308 14.8145 14.2417 13.9663C14.7361 14.8916 15.7521 15.4974 16.903 15.351C18.2364 15.1813 19.2023 13.9834 19.2023 12.638V12.01C19.175 8.00439 16.0965 4.85872 12.1119 4.80081ZM11.5179 14.4103C10.1938 14.4103 9.1169 13.3323 9.1169 12.0073C9.1169 10.6823 10.1947 9.60662 11.5179 9.60662C12.8411 9.60662 13.9188 10.6847 13.9188 12.0097C13.9188 13.3347 12.8441 14.4103 11.5179 14.4103Z" }) }), gE = ({ size: e = 24, color: t = "#000000" }) => f.jsx("svg", { width: e, height: e, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: f.jsx("path", { d: "M37 18L25 30L13 18", stroke: t, strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" }) }), mE = ({ size: e = 24, color: t = "#000000" }) => f.jsx("svg", { width: e, height: e, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: f.jsx("path", { d: "M13 30L25 18L37 30", stroke: t, strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" }) }), rw = ({ size: e = 24, color: t = "#003E57" }) => f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: t, xmlns: "http://www.w3.org/2000/svg", children: f.jsx("g", { transform: "matrix(1 0 0 1 12 12)", children: f.jsx("path", { transform: " translate(-12, -12)", d: "M 4 2 C 2.895 2 2 2.895 2 4 L 2 18 L 4 18 L 4 4 L 18 4 L 18 2 L 4 2 z M 8 6 C 6.895 6 6 6.895 6 8 L 6 20 C 6 21.105 6.895 22 8 22 L 20 22 C 21.105 22 22 21.105 22 20 L 22 8 C 22 6.895 21.105 6 20 6 L 8 6 z M 8 8 L 20 8 L 20 20 L 8 20 L 8 8 z", strokeLinecap: "round" }) }) }), aw = ({ size: e = 24, color: t = "#003E57" }) => f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: t, xmlns: "http://www.w3.org/2000/svg", children: f.jsx("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }) }), hE = ({ isOpen: e, onClose: t, title: n, children: r, customStyles: a, testId: i, ariaLabel: o, width: s, height: l, disableBackdropClick: u = !1, data: c, className: d }) => {
1471
1469
  const g = we(null), p = we(null);
1472
- if (Le(() => {
1470
+ if (Oe(() => {
1473
1471
  var y;
1474
1472
  return e ? (p.current = document.activeElement, (y = g.current) == null || y.focus(), document.body.style.overflow = "hidden") : (document.body.style.overflow = "auto", p.current instanceof HTMLElement && p.current.focus()), () => {
1475
1473
  document.body.style.overflow = "auto", p.current instanceof HTMLElement && p.current.focus();
@@ -1667,17 +1665,17 @@ D.div`
1667
1665
  gap: 8px;
1668
1666
  `;
1669
1667
  const dw = {
1670
- big: ot`
1668
+ big: it`
1671
1669
  height: 44px;
1672
1670
  font-size: 15px;
1673
1671
  padding: 12px 36px;
1674
1672
  `,
1675
- middle: ot`
1673
+ middle: it`
1676
1674
  height: 36px;
1677
1675
  font-size: 14px;
1678
1676
  padding: 10px 30px;
1679
1677
  `,
1680
- small: ot`
1678
+ small: it`
1681
1679
  height: 24px;
1682
1680
  font-size: 12px;
1683
1681
  padding: 0px 8px;
@@ -1689,7 +1687,7 @@ const dw = {
1689
1687
  `
1690
1688
  }, pw = {
1691
1689
  primary: {
1692
- filled: ot`
1690
+ filled: it`
1693
1691
  background-color: var(--Colors-Primary, #003e57);
1694
1692
  color: #ffffff;
1695
1693
  &:hover {
@@ -1698,7 +1696,7 @@ const dw = {
1698
1696
  border: 1px solid #003e57;
1699
1697
  }
1700
1698
  `,
1701
- outlined: ot`
1699
+ outlined: it`
1702
1700
  background-color: transparent;
1703
1701
  color: var(--Colors-Primary, #003e57);
1704
1702
  border: 1px solid #003e57;
@@ -1709,7 +1707,7 @@ const dw = {
1709
1707
  `
1710
1708
  },
1711
1709
  secondary: {
1712
- filled: ot`
1710
+ filled: it`
1713
1711
  background-color: #597886;
1714
1712
  color: #ffffff;
1715
1713
  border: 0;
@@ -1719,7 +1717,7 @@ const dw = {
1719
1717
  color: #597886;
1720
1718
  }
1721
1719
  `,
1722
- outlined: ot`
1720
+ outlined: it`
1723
1721
  background-color: transparent;
1724
1722
  color: #597886;
1725
1723
  border: 1px solid #597886;
@@ -1730,7 +1728,7 @@ const dw = {
1730
1728
  `
1731
1729
  },
1732
1730
  tertiary: {
1733
- filled: ot`
1731
+ filled: it`
1734
1732
  background-color: #d76c73;
1735
1733
  color: #ffffff;
1736
1734
  border: 0;
@@ -1740,7 +1738,7 @@ const dw = {
1740
1738
  color: #d76c73;
1741
1739
  }
1742
1740
  `,
1743
- outlined: ot`
1741
+ outlined: it`
1744
1742
  background-color: transparent;
1745
1743
  color: #d76c73;
1746
1744
  border: 1px solid #d76c73;
@@ -1751,7 +1749,7 @@ const dw = {
1751
1749
  `
1752
1750
  },
1753
1751
  quaternary: {
1754
- filled: ot`
1752
+ filled: it`
1755
1753
  background-color: #197ec2;
1756
1754
  color: #ffffff;
1757
1755
  border: 0;
@@ -1761,7 +1759,7 @@ const dw = {
1761
1759
  color: #197ec2;
1762
1760
  }
1763
1761
  `,
1764
- outlined: ot`
1762
+ outlined: it`
1765
1763
  background-color: transparent;
1766
1764
  color: #197ec2;
1767
1765
  border: 1px solid #197ec2;
@@ -2120,7 +2118,7 @@ D.main`
2120
2118
  padding: 1rem;
2121
2119
  overflow-y: auto;
2122
2120
 
2123
- ${({ responsiveBreakpoint: e }) => e && ot`
2121
+ ${({ responsiveBreakpoint: e }) => e && it`
2124
2122
  @media (max-width: ${e}) {
2125
2123
  width: 100%;
2126
2124
  }
@@ -2350,7 +2348,7 @@ function SE(e, t) {
2350
2348
  function Qu(e) {
2351
2349
  return e.toLowerCase();
2352
2350
  }
2353
- let tt = class {
2351
+ let et = class {
2354
2352
  /**
2355
2353
  * @param {string} property
2356
2354
  * Property.
@@ -2363,20 +2361,20 @@ let tt = class {
2363
2361
  this.attribute = n, this.property = t;
2364
2362
  }
2365
2363
  };
2366
- tt.prototype.attribute = "";
2367
- tt.prototype.booleanish = !1;
2368
- tt.prototype.boolean = !1;
2369
- tt.prototype.commaOrSpaceSeparated = !1;
2370
- tt.prototype.commaSeparated = !1;
2371
- tt.prototype.defined = !1;
2372
- tt.prototype.mustUseProperty = !1;
2373
- tt.prototype.number = !1;
2374
- tt.prototype.overloadedBoolean = !1;
2375
- tt.prototype.property = "";
2376
- tt.prototype.spaceSeparated = !1;
2377
- tt.prototype.space = void 0;
2364
+ et.prototype.attribute = "";
2365
+ et.prototype.booleanish = !1;
2366
+ et.prototype.boolean = !1;
2367
+ et.prototype.commaOrSpaceSeparated = !1;
2368
+ et.prototype.commaSeparated = !1;
2369
+ et.prototype.defined = !1;
2370
+ et.prototype.mustUseProperty = !1;
2371
+ et.prototype.number = !1;
2372
+ et.prototype.overloadedBoolean = !1;
2373
+ et.prototype.property = "";
2374
+ et.prototype.spaceSeparated = !1;
2375
+ et.prototype.space = void 0;
2378
2376
  let Mw = 0;
2379
- const ue = yn(), Ne = yn(), ec = yn(), q = yn(), Te = yn(), Fn = yn(), it = yn();
2377
+ const ue = yn(), Ne = yn(), ec = yn(), q = yn(), Te = yn(), Fn = yn(), at = yn();
2380
2378
  function yn() {
2381
2379
  return 2 ** ++Mw;
2382
2380
  }
@@ -2384,7 +2382,7 @@ const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2384
2382
  __proto__: null,
2385
2383
  boolean: ue,
2386
2384
  booleanish: Ne,
2387
- commaOrSpaceSeparated: it,
2385
+ commaOrSpaceSeparated: at,
2388
2386
  commaSeparated: Fn,
2389
2387
  number: q,
2390
2388
  overloadedBoolean: ec,
@@ -2393,7 +2391,7 @@ const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2393
2391
  /** @type {ReadonlyArray<keyof typeof types>} */
2394
2392
  Object.keys(tc)
2395
2393
  );
2396
- let Ic = class extends tt {
2394
+ let Ic = class extends et {
2397
2395
  /**
2398
2396
  * @constructor
2399
2397
  * @param {string} property
@@ -3033,7 +3031,7 @@ const Pw = Wn({
3033
3031
  timelineBegin: "timelinebegin"
3034
3032
  },
3035
3033
  properties: {
3036
- about: it,
3034
+ about: at,
3037
3035
  accentHeight: q,
3038
3036
  accumulate: null,
3039
3037
  additive: null,
@@ -3145,7 +3143,7 @@ const Pw = Wn({
3145
3143
  k2: q,
3146
3144
  k3: q,
3147
3145
  k4: q,
3148
- kernelMatrix: it,
3146
+ kernelMatrix: at,
3149
3147
  kernelUnitLength: null,
3150
3148
  keyPoints: null,
3151
3149
  // SEMI_COLON_SEPARATED
@@ -3302,21 +3300,21 @@ const Pw = Wn({
3302
3300
  preserveAspectRatio: null,
3303
3301
  primitiveUnits: null,
3304
3302
  propagate: null,
3305
- property: it,
3303
+ property: at,
3306
3304
  r: null,
3307
3305
  radius: null,
3308
3306
  referrerPolicy: null,
3309
3307
  refX: null,
3310
3308
  refY: null,
3311
- rel: it,
3312
- rev: it,
3309
+ rel: at,
3310
+ rev: at,
3313
3311
  renderingIntent: null,
3314
3312
  repeatCount: null,
3315
3313
  repeatDur: null,
3316
- requiredExtensions: it,
3317
- requiredFeatures: it,
3318
- requiredFonts: it,
3319
- requiredFormats: it,
3314
+ requiredExtensions: at,
3315
+ requiredFeatures: at,
3316
+ requiredFonts: at,
3317
+ requiredFormats: at,
3320
3318
  resource: null,
3321
3319
  restart: null,
3322
3320
  result: null,
@@ -3344,7 +3342,7 @@ const Pw = Wn({
3344
3342
  strikethroughThickness: q,
3345
3343
  string: null,
3346
3344
  stroke: null,
3347
- strokeDashArray: it,
3345
+ strokeDashArray: at,
3348
3346
  strokeDashOffset: null,
3349
3347
  strokeLineCap: null,
3350
3348
  strokeLineJoin: null,
@@ -3358,7 +3356,7 @@ const Pw = Wn({
3358
3356
  syncMaster: null,
3359
3357
  syncTolerance: null,
3360
3358
  syncToleranceDefault: null,
3361
- systemLanguage: it,
3359
+ systemLanguage: at,
3362
3360
  tabIndex: q,
3363
3361
  tableValues: null,
3364
3362
  target: null,
@@ -3372,7 +3370,7 @@ const Pw = Wn({
3372
3370
  title: null,
3373
3371
  transformBehavior: null,
3374
3372
  type: null,
3375
- typeOf: it,
3373
+ typeOf: at,
3376
3374
  to: null,
3377
3375
  transform: null,
3378
3376
  transformOrigin: null,
@@ -3461,7 +3459,7 @@ const Pw = Wn({
3461
3459
  }, Bw = /[A-Z]/g, Yd = /-[a-z]/g, $w = /^data[-\w.:]+$/i;
3462
3460
  function jw(e, t) {
3463
3461
  const n = Qu(t);
3464
- let r = t, a = tt;
3462
+ let r = t, a = et;
3465
3463
  if (n in e.normal)
3466
3464
  return e.property[e.normal[n]];
3467
3465
  if (n.length > 4 && n.slice(0, 4) === "data" && $w.test(t)) {
@@ -3644,7 +3642,7 @@ function tp(e) {
3644
3642
  function np(e) {
3645
3643
  return e && typeof e == "number" ? e : 1;
3646
3644
  }
3647
- class je extends Error {
3645
+ class $e extends Error {
3648
3646
  /**
3649
3647
  * Create a message for `reason`.
3650
3648
  *
@@ -3718,19 +3716,19 @@ class je extends Error {
3718
3716
  this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file, this.message = a, this.line = s ? s.line : void 0, this.name = sr(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = o && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual, this.expected, this.note, this.url;
3719
3717
  }
3720
3718
  }
3721
- je.prototype.file = "";
3722
- je.prototype.name = "";
3723
- je.prototype.reason = "";
3724
- je.prototype.message = "";
3725
- je.prototype.stack = "";
3726
- je.prototype.column = void 0;
3727
- je.prototype.line = void 0;
3728
- je.prototype.ancestors = void 0;
3729
- je.prototype.cause = void 0;
3730
- je.prototype.fatal = void 0;
3731
- je.prototype.place = void 0;
3732
- je.prototype.ruleId = void 0;
3733
- je.prototype.source = void 0;
3719
+ $e.prototype.file = "";
3720
+ $e.prototype.name = "";
3721
+ $e.prototype.reason = "";
3722
+ $e.prototype.message = "";
3723
+ $e.prototype.stack = "";
3724
+ $e.prototype.column = void 0;
3725
+ $e.prototype.line = void 0;
3726
+ $e.prototype.ancestors = void 0;
3727
+ $e.prototype.cause = void 0;
3728
+ $e.prototype.fatal = void 0;
3729
+ $e.prototype.place = void 0;
3730
+ $e.prototype.ruleId = void 0;
3731
+ $e.prototype.source = void 0;
3734
3732
  const Dc = {}.hasOwnProperty, vT = /* @__PURE__ */ new Map(), ST = /[A-Z]/g, wT = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), TT = /* @__PURE__ */ new Set(["td", "th"]), IE = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
3735
3733
  function xT(e, t) {
3736
3734
  if (!t || t.Fragment === void 0)
@@ -3953,7 +3951,7 @@ function PT(e, t) {
3953
3951
  const r = (
3954
3952
  /** @type {Error} */
3955
3953
  n
3956
- ), a = new je("Cannot parse `style` attribute", {
3954
+ ), a = new $e("Cannot parse `style` attribute", {
3957
3955
  ancestors: e.ancestors,
3958
3956
  cause: r,
3959
3957
  ruleId: "style",
@@ -3994,7 +3992,7 @@ function LE(e, t, n) {
3994
3992
  gr(e);
3995
3993
  }
3996
3994
  function gr(e, t) {
3997
- const n = new je(
3995
+ const n = new $e(
3998
3996
  "Cannot handle MDX estrees without `createEvaluater`",
3999
3997
  {
4000
3998
  ancestors: e.ancestors,
@@ -4087,7 +4085,7 @@ function Nt(e, t, n, r) {
4087
4085
  for (n && e.splice(t, n); i < r.length; )
4088
4086
  o = r.slice(i, i + 1e4), o.unshift(t, 0), e.splice(...o), i += 1e4, t += 1e4;
4089
4087
  }
4090
- function dt(e, t) {
4088
+ function ct(e, t) {
4091
4089
  return e.length > 0 ? (Nt(e, e.length, 0, t), e) : t;
4092
4090
  }
4093
4091
  const ip = {}.hasOwnProperty;
@@ -4138,7 +4136,7 @@ function ME(e, t) {
4138
4136
  function Un(e) {
4139
4137
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
4140
4138
  }
4141
- const Ct = Jt(/[A-Za-z]/), st = Jt(/[\dA-Za-z]/), VT = Jt(/[#-'*+\--9=?A-Z^-~]/);
4139
+ const Ct = Jt(/[A-Za-z]/), ot = Jt(/[\dA-Za-z]/), VT = Jt(/[#-'*+\--9=?A-Z^-~]/);
4142
4140
  function ac(e) {
4143
4141
  return (
4144
4142
  // Special whitespace codes (which have negative values), C0 and Control
@@ -4150,7 +4148,7 @@ const ic = Jt(/\d/), WT = Jt(/[\dA-Fa-f]/), KT = Jt(/[!-/:-@[-`{-~]/);
4150
4148
  function ae(e) {
4151
4149
  return e !== null && e < -2;
4152
4150
  }
4153
- function Ze(e) {
4151
+ function Xe(e) {
4154
4152
  return e !== null && (e < 0 || e === 32);
4155
4153
  }
4156
4154
  function he(e) {
@@ -4169,7 +4167,7 @@ function Kn(e) {
4169
4167
  for (; ++n < e.length; ) {
4170
4168
  const i = e.charCodeAt(n);
4171
4169
  let o = "";
4172
- if (i === 37 && st(e.charCodeAt(n + 1)) && st(e.charCodeAt(n + 2)))
4170
+ if (i === 37 && ot(e.charCodeAt(n + 1)) && ot(e.charCodeAt(n + 2)))
4173
4171
  a = 2;
4174
4172
  else if (i < 128)
4175
4173
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i)) || (o = String.fromCharCode(i));
@@ -4346,7 +4344,7 @@ function tx(e, t, n) {
4346
4344
  return xe(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
4347
4345
  }
4348
4346
  function sp(e) {
4349
- if (e === null || Ze(e) || XT(e))
4347
+ if (e === null || Xe(e) || XT(e))
4350
4348
  return 1;
4351
4349
  if (YT(e))
4352
4350
  return 2;
@@ -4412,7 +4410,7 @@ function nx(e, t) {
4412
4410
  ...o.start
4413
4411
  }, e[n][1].start = {
4414
4412
  ...s.end
4415
- }, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = dt(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = dt(u, [["enter", a, t], ["enter", o, t], ["exit", o, t], ["enter", i, t]]), u = dt(u, Uc(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = dt(u, [["exit", i, t], ["enter", s, t], ["exit", s, t], ["exit", a, t]]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = dt(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : c = 0, Nt(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
4413
+ }, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = ct(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = ct(u, [["enter", a, t], ["enter", o, t], ["exit", o, t], ["enter", i, t]]), u = ct(u, Uc(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = ct(u, [["exit", i, t], ["enter", s, t], ["exit", s, t], ["exit", a, t]]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = ct(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : c = 0, Nt(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
4416
4414
  break;
4417
4415
  }
4418
4416
  }
@@ -4451,10 +4449,10 @@ function ix(e, t, n) {
4451
4449
  return Ct(p) ? (e.consume(p), o) : p === 64 ? n(p) : u(p);
4452
4450
  }
4453
4451
  function o(p) {
4454
- return p === 43 || p === 45 || p === 46 || st(p) ? (r = 1, s(p)) : u(p);
4452
+ return p === 43 || p === 45 || p === 46 || ot(p) ? (r = 1, s(p)) : u(p);
4455
4453
  }
4456
4454
  function s(p) {
4457
- return p === 58 ? (e.consume(p), r = 0, l) : (p === 43 || p === 45 || p === 46 || st(p)) && r++ < 32 ? (e.consume(p), s) : (r = 0, u(p));
4455
+ return p === 58 ? (e.consume(p), r = 0, l) : (p === 43 || p === 45 || p === 46 || ot(p)) && r++ < 32 ? (e.consume(p), s) : (r = 0, u(p));
4458
4456
  }
4459
4457
  function l(p) {
4460
4458
  return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || ac(p) ? n(p) : (e.consume(p), l);
@@ -4463,13 +4461,13 @@ function ix(e, t, n) {
4463
4461
  return p === 64 ? (e.consume(p), c) : VT(p) ? (e.consume(p), u) : n(p);
4464
4462
  }
4465
4463
  function c(p) {
4466
- return st(p) ? d(p) : n(p);
4464
+ return ot(p) ? d(p) : n(p);
4467
4465
  }
4468
4466
  function d(p) {
4469
4467
  return p === 46 ? (e.consume(p), r = 0, c) : p === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : g(p);
4470
4468
  }
4471
4469
  function g(p) {
4472
- if ((p === 45 || st(p)) && r++ < 63) {
4470
+ if ((p === 45 || ot(p)) && r++ < 63) {
4473
4471
  const h = p === 45 ? g : d;
4474
4472
  return e.consume(p), h;
4475
4473
  }
@@ -4551,7 +4549,7 @@ function dx(e, t, n) {
4551
4549
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), l;
4552
4550
  }
4553
4551
  function l(d) {
4554
- return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), i = 31, o = st, c(d));
4552
+ return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), i = 31, o = ot, c(d));
4555
4553
  }
4556
4554
  function u(d) {
4557
4555
  return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, o = WT, c) : (e.enter("characterReferenceValue"), i = 7, o = ic, c(d));
@@ -4559,7 +4557,7 @@ function dx(e, t, n) {
4559
4557
  function c(d) {
4560
4558
  if (d === 59 && a) {
4561
4559
  const g = e.exit("characterReferenceValue");
4562
- return o === st && !Fc(r.sliceSerialize(g)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
4560
+ return o === ot && !Fc(r.sliceSerialize(g)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
4563
4561
  }
4564
4562
  return o(d) && a++ < i ? (e.consume(d), c) : n(d);
4565
4563
  }
@@ -5018,7 +5016,7 @@ function $E(e, t, n, r, a, i, o, s, l) {
5018
5016
  return T === 60 || T === 62 || T === 92 ? (e.consume(T), p) : p(T);
5019
5017
  }
5020
5018
  function y(T) {
5021
- return !c && (T === null || T === 41 || Ze(T)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(T)) : c < u && T === 40 ? (e.consume(T), c++, y) : T === 41 ? (e.consume(T), c--, y) : T === null || T === 32 || T === 40 || ac(T) ? n(T) : (e.consume(T), T === 92 ? A : y);
5019
+ return !c && (T === null || T === 41 || Xe(T)) ? (e.exit("chunkString"), e.exit(s), e.exit(o), e.exit(r), t(T)) : c < u && T === 40 ? (e.consume(T), c++, y) : T === 41 ? (e.consume(T), c--, y) : T === null || T === 32 || T === 40 || ac(T) ? n(T) : (e.consume(T), T === 92 ? A : y);
5022
5020
  }
5023
5021
  function A(T) {
5024
5022
  return T === 40 || T === 41 || T === 92 ? (e.consume(T), y) : y(T);
@@ -5106,7 +5104,7 @@ function Ix(e, t, n) {
5106
5104
  return a = Un(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), l) : n(p);
5107
5105
  }
5108
5106
  function l(p) {
5109
- return Ze(p) ? lr(e, u)(p) : u(p);
5107
+ return Xe(p) ? lr(e, u)(p) : u(p);
5110
5108
  }
5111
5109
  function u(p) {
5112
5110
  return $E(
@@ -5134,7 +5132,7 @@ function Ix(e, t, n) {
5134
5132
  function Nx(e, t, n) {
5135
5133
  return r;
5136
5134
  function r(s) {
5137
- return Ze(s) ? lr(e, a)(s) : n(s);
5135
+ return Xe(s) ? lr(e, a)(s) : n(s);
5138
5136
  }
5139
5137
  function a(s) {
5140
5138
  return qE(e, i, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s);
@@ -5187,7 +5185,7 @@ function Px(e, t, n) {
5187
5185
  return e.enter("atxHeadingSequence"), o(c);
5188
5186
  }
5189
5187
  function o(c) {
5190
- return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Ze(c) ? (e.exit("atxHeadingSequence"), s(c)) : n(c);
5188
+ return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Xe(c) ? (e.exit("atxHeadingSequence"), s(c)) : n(c);
5191
5189
  }
5192
5190
  function s(c) {
5193
5191
  return c === 35 ? (e.enter("atxHeadingSequence"), l(c)) : c === null || ae(c) ? (e.exit("atxHeading"), t(c)) : he(c) ? xe(e, s, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
@@ -5196,7 +5194,7 @@ function Px(e, t, n) {
5196
5194
  return c === 35 ? (e.consume(c), l) : (e.exit("atxHeadingSequence"), s(c));
5197
5195
  }
5198
5196
  function u(c) {
5199
- return c === null || c === 35 || Ze(c) ? (e.exit("atxHeadingText"), s(c)) : (e.consume(c), u);
5197
+ return c === null || c === 35 || Xe(c) ? (e.exit("atxHeadingText"), s(c)) : (e.consume(c), u);
5200
5198
  }
5201
5199
  }
5202
5200
  const Fx = [
@@ -5307,11 +5305,11 @@ function qx(e, t, n) {
5307
5305
  return Ct(x) ? (e.consume(x), o = String.fromCharCode(x), A) : n(x);
5308
5306
  }
5309
5307
  function A(x) {
5310
- if (x === null || x === 47 || x === 62 || Ze(x)) {
5308
+ if (x === null || x === 47 || x === 62 || Xe(x)) {
5311
5309
  const K = x === 47, X = o.toLowerCase();
5312
5310
  return !K && !i && dp.includes(X) ? (a = 1, r.interrupt ? t(x) : M(x)) : Fx.includes(o.toLowerCase()) ? (a = 6, K ? (e.consume(x), T) : r.interrupt ? t(x) : M(x)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : i ? E(x) : m(x));
5313
5311
  }
5314
- return x === 45 || st(x) ? (e.consume(x), o += String.fromCharCode(x), A) : n(x);
5312
+ return x === 45 || ot(x) ? (e.consume(x), o += String.fromCharCode(x), A) : n(x);
5315
5313
  }
5316
5314
  function T(x) {
5317
5315
  return x === 62 ? (e.consume(x), r.interrupt ? t : M) : n(x);
@@ -5323,7 +5321,7 @@ function qx(e, t, n) {
5323
5321
  return x === 47 ? (e.consume(x), L) : x === 58 || x === 95 || Ct(x) ? (e.consume(x), C) : he(x) ? (e.consume(x), m) : L(x);
5324
5322
  }
5325
5323
  function C(x) {
5326
- return x === 45 || x === 46 || x === 58 || x === 95 || st(x) ? (e.consume(x), C) : b(x);
5324
+ return x === 45 || x === 46 || x === 58 || x === 95 || ot(x) ? (e.consume(x), C) : b(x);
5327
5325
  }
5328
5326
  function b(x) {
5329
5327
  return x === 61 ? (e.consume(x), v) : he(x) ? (e.consume(x), b) : m(x);
@@ -5335,7 +5333,7 @@ function qx(e, t, n) {
5335
5333
  return x === l ? (e.consume(x), l = null, _) : x === null || ae(x) ? n(x) : (e.consume(x), k);
5336
5334
  }
5337
5335
  function O(x) {
5338
- return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Ze(x) ? b(x) : (e.consume(x), O);
5336
+ return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Xe(x) ? b(x) : (e.consume(x), O);
5339
5337
  }
5340
5338
  function _(x) {
5341
5339
  return x === 47 || x === 62 || he(x) ? m(x) : n(x);
@@ -5455,19 +5453,19 @@ function Vx(e, t, n) {
5455
5453
  return Ct(w) ? (e.consume(w), v) : n(w);
5456
5454
  }
5457
5455
  function v(w) {
5458
- return w === 45 || st(w) ? (e.consume(w), v) : k(w);
5456
+ return w === 45 || ot(w) ? (e.consume(w), v) : k(w);
5459
5457
  }
5460
5458
  function k(w) {
5461
5459
  return ae(w) ? (o = k, G(w)) : he(w) ? (e.consume(w), k) : V(w);
5462
5460
  }
5463
5461
  function O(w) {
5464
- return w === 45 || st(w) ? (e.consume(w), O) : w === 47 || w === 62 || Ze(w) ? _(w) : n(w);
5462
+ return w === 45 || ot(w) ? (e.consume(w), O) : w === 47 || w === 62 || Xe(w) ? _(w) : n(w);
5465
5463
  }
5466
5464
  function _(w) {
5467
5465
  return w === 47 ? (e.consume(w), V) : w === 58 || w === 95 || Ct(w) ? (e.consume(w), L) : ae(w) ? (o = _, G(w)) : he(w) ? (e.consume(w), _) : V(w);
5468
5466
  }
5469
5467
  function L(w) {
5470
- return w === 45 || w === 46 || w === 58 || w === 95 || st(w) ? (e.consume(w), L) : I(w);
5468
+ return w === 45 || w === 46 || w === 58 || w === 95 || ot(w) ? (e.consume(w), L) : I(w);
5471
5469
  }
5472
5470
  function I(w) {
5473
5471
  return w === 61 ? (e.consume(w), M) : ae(w) ? (o = I, G(w)) : he(w) ? (e.consume(w), I) : _(w);
@@ -5479,10 +5477,10 @@ function Vx(e, t, n) {
5479
5477
  return w === a ? (e.consume(w), a = void 0, B) : w === null ? n(w) : ae(w) ? (o = U, G(w)) : (e.consume(w), U);
5480
5478
  }
5481
5479
  function j(w) {
5482
- return w === null || w === 34 || w === 39 || w === 60 || w === 61 || w === 96 ? n(w) : w === 47 || w === 62 || Ze(w) ? _(w) : (e.consume(w), j);
5480
+ return w === null || w === 34 || w === 39 || w === 60 || w === 61 || w === 96 ? n(w) : w === 47 || w === 62 || Xe(w) ? _(w) : (e.consume(w), j);
5483
5481
  }
5484
5482
  function B(w) {
5485
- return w === 47 || w === 62 || Ze(w) ? _(w) : n(w);
5483
+ return w === 47 || w === 62 || Xe(w) ? _(w) : n(w);
5486
5484
  }
5487
5485
  function V(w) {
5488
5486
  return w === 62 ? (e.consume(w), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(w);
@@ -5559,7 +5557,7 @@ function Zx(e, t) {
5559
5557
  ...e[o - 2][1].start
5560
5558
  }
5561
5559
  };
5562
- return s = [["enter", l, t], ["enter", u, t]], s = dt(s, e.slice(i + 1, i + r + 3)), s = dt(s, [["enter", c, t]]), s = dt(s, Uc(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, o - 3), t)), s = dt(s, [["exit", c, t], e[o - 2], e[o - 1], ["exit", u, t]]), s = dt(s, e.slice(o + 1)), s = dt(s, [["exit", l, t]]), Nt(e, i, e.length, s), e;
5560
+ return s = [["enter", l, t], ["enter", u, t]], s = ct(s, e.slice(i + 1, i + r + 3)), s = ct(s, [["enter", c, t]]), s = ct(s, Uc(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, o - 3), t)), s = ct(s, [["exit", c, t], e[o - 2], e[o - 1], ["exit", u, t]]), s = ct(s, e.slice(o + 1)), s = ct(s, [["exit", l, t]]), Nt(e, i, e.length, s), e;
5563
5561
  }
5564
5562
  function Jx(e, t, n) {
5565
5563
  const r = this;
@@ -5595,13 +5593,13 @@ function Qx(e, t, n) {
5595
5593
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), a;
5596
5594
  }
5597
5595
  function a(d) {
5598
- return Ze(d) ? lr(e, i)(d) : i(d);
5596
+ return Xe(d) ? lr(e, i)(d) : i(d);
5599
5597
  }
5600
5598
  function i(d) {
5601
5599
  return d === 41 ? c(d) : $E(e, o, s, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d);
5602
5600
  }
5603
5601
  function o(d) {
5604
- return Ze(d) ? lr(e, l)(d) : c(d);
5602
+ return Xe(d) ? lr(e, l)(d) : c(d);
5605
5603
  }
5606
5604
  function s(d) {
5607
5605
  return n(d);
@@ -5610,7 +5608,7 @@ function Qx(e, t, n) {
5610
5608
  return d === 34 || d === 39 || d === 40 ? qE(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : c(d);
5611
5609
  }
5612
5610
  function u(d) {
5613
- return Ze(d) ? lr(e, c)(d) : c(d);
5611
+ return Xe(d) ? lr(e, c)(d) : c(d);
5614
5612
  }
5615
5613
  function c(d) {
5616
5614
  return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), t) : n(d);
@@ -5701,7 +5699,7 @@ function sC(e, t, n) {
5701
5699
  return u === a ? (e.consume(u), r++, l) : (e.exit("thematicBreakSequence"), he(u) ? xe(e, s, "whitespace")(u) : s(u));
5702
5700
  }
5703
5701
  }
5704
- const Ye = {
5702
+ const Ke = {
5705
5703
  continuation: {
5706
5704
  tokenize: dC
5707
5705
  },
@@ -5762,7 +5760,7 @@ function dC(e, t, n) {
5762
5760
  return r.containerState.furtherBlankLines || !he(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(uC, t, o)(s));
5763
5761
  }
5764
5762
  function o(s) {
5765
- return r.containerState._closeFlow = !0, r.interrupt = void 0, xe(e, e.attempt(Ye, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
5763
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, xe(e, e.attempt(Ke, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
5766
5764
  }
5767
5765
  }
5768
5766
  function pC(e, t, n) {
@@ -5954,19 +5952,19 @@ function wC(e, t) {
5954
5952
  return e;
5955
5953
  }
5956
5954
  const TC = {
5957
- 42: Ye,
5958
- 43: Ye,
5959
- 45: Ye,
5960
- 48: Ye,
5961
- 49: Ye,
5962
- 50: Ye,
5963
- 51: Ye,
5964
- 52: Ye,
5965
- 53: Ye,
5966
- 54: Ye,
5967
- 55: Ye,
5968
- 56: Ye,
5969
- 57: Ye,
5955
+ 42: Ke,
5956
+ 43: Ke,
5957
+ 45: Ke,
5958
+ 48: Ke,
5959
+ 49: Ke,
5960
+ 50: Ke,
5961
+ 51: Ke,
5962
+ 52: Ke,
5963
+ 53: Ke,
5964
+ 54: Ke,
5965
+ 55: Ke,
5966
+ 56: Ke,
5967
+ 57: Ke,
5970
5968
  62: PE
5971
5969
  }, xC = {
5972
5970
  91: _x
@@ -6051,7 +6049,7 @@ function LC(e, t, n) {
6051
6049
  let c = t.tokenize.call(u, l);
6052
6050
  return t.resolveAll && i.push(t), u;
6053
6051
  function d(I) {
6054
- return o = dt(o, I), A(), o[o.length - 1] !== null ? [] : (O(t, 0), u.events = Uc(i, u.events, u), u.events);
6052
+ return o = ct(o, I), A(), o[o.length - 1] !== null ? [] : (O(t, 0), u.events = Uc(i, u.events, u), u.events);
6055
6053
  }
6056
6054
  function g(I, M) {
6057
6055
  return MC(p(I), M);
@@ -6322,7 +6320,7 @@ function GC(e) {
6322
6320
  autolink: i(tn),
6323
6321
  autolinkProtocol: _,
6324
6322
  autolinkEmail: _,
6325
- atxHeading: i(mt),
6323
+ atxHeading: i(gt),
6326
6324
  blockQuote: i(ie),
6327
6325
  characterEscape: _,
6328
6326
  characterReference: _,
@@ -6338,26 +6336,26 @@ function GC(e) {
6338
6336
  definitionDestinationString: o,
6339
6337
  definitionLabelString: o,
6340
6338
  definitionTitleString: o,
6341
- emphasis: i(Be),
6342
- hardBreakEscape: i(rt),
6343
- hardBreakTrailing: i(rt),
6344
- htmlFlow: i(ht, o),
6339
+ emphasis: i(Ue),
6340
+ hardBreakEscape: i(nt),
6341
+ hardBreakTrailing: i(nt),
6342
+ htmlFlow: i(mt, o),
6345
6343
  htmlFlowData: _,
6346
- htmlText: i(ht, o),
6344
+ htmlText: i(mt, o),
6347
6345
  htmlTextData: _,
6348
6346
  image: i(Sn),
6349
6347
  label: o,
6350
6348
  link: i(tn),
6351
6349
  listItem: i(qt),
6352
6350
  listItemValue: g,
6353
- listOrdered: i(qe, d),
6354
- listUnordered: i(qe),
6351
+ listOrdered: i(je, d),
6352
+ listUnordered: i(je),
6355
6353
  paragraph: i(wn),
6356
6354
  reference: x,
6357
6355
  referenceString: o,
6358
6356
  resourceDestinationString: o,
6359
6357
  resourceTitleString: o,
6360
- setextHeading: i(mt),
6358
+ setextHeading: i(gt),
6361
6359
  strong: i(Gt),
6362
6360
  thematicBreak: i(Tn)
6363
6361
  },
@@ -6437,18 +6435,18 @@ function GC(e) {
6437
6435
  if (P[be][0] === "enter")
6438
6436
  de.push(be);
6439
6437
  else {
6440
- const Ve = de.pop();
6441
- be = a(P, Ve, be);
6438
+ const ze = de.pop();
6439
+ be = a(P, ze, be);
6442
6440
  }
6443
6441
  for (be = -1; ++be < P.length; ) {
6444
- const Ve = t[P[be][0]];
6445
- zE.call(Ve, P[be][1].type) && Ve[P[be][1].type].call(Object.assign({
6442
+ const ze = t[P[be][0]];
6443
+ zE.call(ze, P[be][1].type) && ze[P[be][1].type].call(Object.assign({
6446
6444
  sliceSerialize: P[be][2].sliceSerialize
6447
6445
  }, re), P[be][1]);
6448
6446
  }
6449
6447
  if (re.tokenStack.length > 0) {
6450
- const Ve = re.tokenStack[re.tokenStack.length - 1];
6451
- (Ve[1] || gp).call(re, void 0, Ve[0]);
6448
+ const ze = re.tokenStack[re.tokenStack.length - 1];
6449
+ (ze[1] || gp).call(re, void 0, ze[0]);
6452
6450
  }
6453
6451
  for (H.position = {
6454
6452
  start: zt(P.length > 0 ? P[0][1].start : {
@@ -6466,18 +6464,18 @@ function GC(e) {
6466
6464
  return H;
6467
6465
  }
6468
6466
  function a(P, H, re) {
6469
- let de = H - 1, be = -1, Ve = !1, Mt, bt, rn, an;
6467
+ let de = H - 1, be = -1, ze = !1, Mt, ht, rn, an;
6470
6468
  for (; ++de <= re; ) {
6471
- const Ge = P[de];
6472
- switch (Ge[1].type) {
6469
+ const qe = P[de];
6470
+ switch (qe[1].type) {
6473
6471
  case "listUnordered":
6474
6472
  case "listOrdered":
6475
6473
  case "blockQuote": {
6476
- Ge[0] === "enter" ? be++ : be--, an = void 0;
6474
+ qe[0] === "enter" ? be++ : be--, an = void 0;
6477
6475
  break;
6478
6476
  }
6479
6477
  case "lineEndingBlank": {
6480
- Ge[0] === "enter" && (Mt && !an && !be && !rn && (rn = de), an = void 0);
6478
+ qe[0] === "enter" && (Mt && !an && !be && !rn && (rn = de), an = void 0);
6481
6479
  break;
6482
6480
  }
6483
6481
  case "linePrefix":
@@ -6489,31 +6487,31 @@ function GC(e) {
6489
6487
  default:
6490
6488
  an = void 0;
6491
6489
  }
6492
- if (!be && Ge[0] === "enter" && Ge[1].type === "listItemPrefix" || be === -1 && Ge[0] === "exit" && (Ge[1].type === "listUnordered" || Ge[1].type === "listOrdered")) {
6490
+ if (!be && qe[0] === "enter" && qe[1].type === "listItemPrefix" || be === -1 && qe[0] === "exit" && (qe[1].type === "listUnordered" || qe[1].type === "listOrdered")) {
6493
6491
  if (Mt) {
6494
6492
  let Ht = de;
6495
- for (bt = void 0; Ht--; ) {
6496
- const yt = P[Ht];
6497
- if (yt[1].type === "lineEnding" || yt[1].type === "lineEndingBlank") {
6498
- if (yt[0] === "exit") continue;
6499
- bt && (P[bt][1].type = "lineEndingBlank", Ve = !0), yt[1].type = "lineEnding", bt = Ht;
6500
- } else if (!(yt[1].type === "linePrefix" || yt[1].type === "blockQuotePrefix" || yt[1].type === "blockQuotePrefixWhitespace" || yt[1].type === "blockQuoteMarker" || yt[1].type === "listItemIndent")) break;
6493
+ for (ht = void 0; Ht--; ) {
6494
+ const bt = P[Ht];
6495
+ if (bt[1].type === "lineEnding" || bt[1].type === "lineEndingBlank") {
6496
+ if (bt[0] === "exit") continue;
6497
+ ht && (P[ht][1].type = "lineEndingBlank", ze = !0), bt[1].type = "lineEnding", ht = Ht;
6498
+ } else if (!(bt[1].type === "linePrefix" || bt[1].type === "blockQuotePrefix" || bt[1].type === "blockQuotePrefixWhitespace" || bt[1].type === "blockQuoteMarker" || bt[1].type === "listItemIndent")) break;
6501
6499
  }
6502
- rn && (!bt || rn < bt) && (Mt._spread = !0), Mt.end = Object.assign({}, bt ? P[bt][1].start : Ge[1].end), P.splice(bt || de, 0, ["exit", Mt, Ge[2]]), de++, re++;
6500
+ rn && (!ht || rn < ht) && (Mt._spread = !0), Mt.end = Object.assign({}, ht ? P[ht][1].start : qe[1].end), P.splice(ht || de, 0, ["exit", Mt, qe[2]]), de++, re++;
6503
6501
  }
6504
- if (Ge[1].type === "listItemPrefix") {
6502
+ if (qe[1].type === "listItemPrefix") {
6505
6503
  const Ht = {
6506
6504
  type: "listItem",
6507
6505
  _spread: !1,
6508
- start: Object.assign({}, Ge[1].start),
6506
+ start: Object.assign({}, qe[1].start),
6509
6507
  // @ts-expect-error: we’ll add `end` in a second.
6510
6508
  end: void 0
6511
6509
  };
6512
- Mt = Ht, P.splice(de, 0, ["enter", Ht, Ge[2]]), de++, re++, rn = void 0, an = !0;
6510
+ Mt = Ht, P.splice(de, 0, ["enter", Ht, qe[2]]), de++, re++, rn = void 0, an = !0;
6513
6511
  }
6514
6512
  }
6515
6513
  }
6516
- return P[H][1]._spread = Ve, re;
6514
+ return P[H][1]._spread = ze, re;
6517
6515
  }
6518
6516
  function i(P, H) {
6519
6517
  return re;
@@ -6748,13 +6746,13 @@ function GC(e) {
6748
6746
  url: ""
6749
6747
  };
6750
6748
  }
6751
- function Be() {
6749
+ function Ue() {
6752
6750
  return {
6753
6751
  type: "emphasis",
6754
6752
  children: []
6755
6753
  };
6756
6754
  }
6757
- function mt() {
6755
+ function gt() {
6758
6756
  return {
6759
6757
  type: "heading",
6760
6758
  // @ts-expect-error `depth` will be set later.
@@ -6762,12 +6760,12 @@ function GC(e) {
6762
6760
  children: []
6763
6761
  };
6764
6762
  }
6765
- function rt() {
6763
+ function nt() {
6766
6764
  return {
6767
6765
  type: "break"
6768
6766
  };
6769
6767
  }
6770
- function ht() {
6768
+ function mt() {
6771
6769
  return {
6772
6770
  type: "html",
6773
6771
  value: ""
@@ -6789,7 +6787,7 @@ function GC(e) {
6789
6787
  children: []
6790
6788
  };
6791
6789
  }
6792
- function qe(P) {
6790
+ function je(P) {
6793
6791
  return {
6794
6792
  type: "list",
6795
6793
  ordered: P.type === "listOrdered",
@@ -8351,7 +8349,7 @@ class nv {
8351
8349
  * Message.
8352
8350
  */
8353
8351
  message(t, n, r) {
8354
- const a = new je(
8352
+ const a = new $e(
8355
8353
  // @ts-expect-error: the overloads are fine.
8356
8354
  t,
8357
8355
  n,
@@ -9032,9 +9030,9 @@ function g0(e) {
9032
9030
  }
9033
9031
  const m0 = async (e, t) => {
9034
9032
  const n = `/messages/register_interaction?message_id=${e}&interaction=${t}`;
9035
- await Xe(n, { method: "POST" });
9033
+ await Ye(n, { method: "POST" });
9036
9034
  }, h0 = async (e) => {
9037
- const t = `/messages/get_interaction?message_id=${e}`, n = await Xe(t);
9035
+ const t = `/messages/get_interaction?message_id=${e}`, n = await Ye(t);
9038
9036
  if (!n) return null;
9039
9037
  const r = await n.json();
9040
9038
  return (r == null ? void 0 : r.interaction) ?? null;
@@ -9244,11 +9242,11 @@ const b0 = ({
9244
9242
  /* @__PURE__ */ f.jsx(Oa, {}),
9245
9243
  /* @__PURE__ */ f.jsx(Oa, {}),
9246
9244
  /* @__PURE__ */ f.jsx(Oa, {})
9247
- ] }), Ue = [];
9245
+ ] }), Fe = [];
9248
9246
  for (let e = 0; e < 256; ++e)
9249
- Ue.push((e + 256).toString(16).slice(1));
9247
+ Fe.push((e + 256).toString(16).slice(1));
9250
9248
  function v0(e, t = 0) {
9251
- return (Ue[e[t + 0]] + Ue[e[t + 1]] + Ue[e[t + 2]] + Ue[e[t + 3]] + "-" + Ue[e[t + 4]] + Ue[e[t + 5]] + "-" + Ue[e[t + 6]] + Ue[e[t + 7]] + "-" + Ue[e[t + 8]] + Ue[e[t + 9]] + "-" + Ue[e[t + 10]] + Ue[e[t + 11]] + Ue[e[t + 12]] + Ue[e[t + 13]] + Ue[e[t + 14]] + Ue[e[t + 15]]).toLowerCase();
9249
+ return (Fe[e[t + 0]] + Fe[e[t + 1]] + Fe[e[t + 2]] + Fe[e[t + 3]] + "-" + Fe[e[t + 4]] + Fe[e[t + 5]] + "-" + Fe[e[t + 6]] + Fe[e[t + 7]] + "-" + Fe[e[t + 8]] + Fe[e[t + 9]] + "-" + Fe[e[t + 10]] + Fe[e[t + 11]] + Fe[e[t + 12]] + Fe[e[t + 13]] + Fe[e[t + 14]] + Fe[e[t + 15]]).toLowerCase();
9252
9250
  }
9253
9251
  let La;
9254
9252
  const S0 = new Uint8Array(16);
@@ -9758,19 +9756,19 @@ var Wc = eR;
9758
9756
  function eR(e) {
9759
9757
  return e.toLowerCase();
9760
9758
  }
9761
- var gv = mv, gt = mv.prototype;
9762
- gt.space = null;
9763
- gt.attribute = null;
9764
- gt.property = null;
9765
- gt.boolean = !1;
9766
- gt.booleanish = !1;
9767
- gt.overloadedBoolean = !1;
9768
- gt.number = !1;
9769
- gt.commaSeparated = !1;
9770
- gt.spaceSeparated = !1;
9771
- gt.commaOrSpaceSeparated = !1;
9772
- gt.mustUseProperty = !1;
9773
- gt.defined = !1;
9759
+ var gv = mv, ft = mv.prototype;
9760
+ ft.space = null;
9761
+ ft.attribute = null;
9762
+ ft.property = null;
9763
+ ft.boolean = !1;
9764
+ ft.booleanish = !1;
9765
+ ft.overloadedBoolean = !1;
9766
+ ft.number = !1;
9767
+ ft.commaSeparated = !1;
9768
+ ft.spaceSeparated = !1;
9769
+ ft.commaOrSpaceSeparated = !1;
9770
+ ft.mustUseProperty = !1;
9771
+ ft.defined = !1;
9774
9772
  function mv(e, t) {
9775
9773
  this.property = e, this.attribute = t;
9776
9774
  }
@@ -9863,56 +9861,56 @@ var hR = _r, bR = Ev, yR = hR({
9863
9861
  xmlns: null,
9864
9862
  xmlnsXLink: null
9865
9863
  }
9866
- }), Yc = Ot, ER = _r, Ke = Yc.booleanish, ct = Yc.number, sn = Yc.spaceSeparated, vR = ER({
9864
+ }), Yc = Ot, ER = _r, We = Yc.booleanish, ut = Yc.number, sn = Yc.spaceSeparated, vR = ER({
9867
9865
  transform: SR,
9868
9866
  properties: {
9869
9867
  ariaActiveDescendant: null,
9870
- ariaAtomic: Ke,
9868
+ ariaAtomic: We,
9871
9869
  ariaAutoComplete: null,
9872
- ariaBusy: Ke,
9873
- ariaChecked: Ke,
9874
- ariaColCount: ct,
9875
- ariaColIndex: ct,
9876
- ariaColSpan: ct,
9870
+ ariaBusy: We,
9871
+ ariaChecked: We,
9872
+ ariaColCount: ut,
9873
+ ariaColIndex: ut,
9874
+ ariaColSpan: ut,
9877
9875
  ariaControls: sn,
9878
9876
  ariaCurrent: null,
9879
9877
  ariaDescribedBy: sn,
9880
9878
  ariaDetails: null,
9881
- ariaDisabled: Ke,
9879
+ ariaDisabled: We,
9882
9880
  ariaDropEffect: sn,
9883
9881
  ariaErrorMessage: null,
9884
- ariaExpanded: Ke,
9882
+ ariaExpanded: We,
9885
9883
  ariaFlowTo: sn,
9886
- ariaGrabbed: Ke,
9884
+ ariaGrabbed: We,
9887
9885
  ariaHasPopup: null,
9888
- ariaHidden: Ke,
9886
+ ariaHidden: We,
9889
9887
  ariaInvalid: null,
9890
9888
  ariaKeyShortcuts: null,
9891
9889
  ariaLabel: null,
9892
9890
  ariaLabelledBy: sn,
9893
- ariaLevel: ct,
9891
+ ariaLevel: ut,
9894
9892
  ariaLive: null,
9895
- ariaModal: Ke,
9896
- ariaMultiLine: Ke,
9897
- ariaMultiSelectable: Ke,
9893
+ ariaModal: We,
9894
+ ariaMultiLine: We,
9895
+ ariaMultiSelectable: We,
9898
9896
  ariaOrientation: null,
9899
9897
  ariaOwns: sn,
9900
9898
  ariaPlaceholder: null,
9901
- ariaPosInSet: ct,
9902
- ariaPressed: Ke,
9903
- ariaReadOnly: Ke,
9899
+ ariaPosInSet: ut,
9900
+ ariaPressed: We,
9901
+ ariaReadOnly: We,
9904
9902
  ariaRelevant: null,
9905
- ariaRequired: Ke,
9903
+ ariaRequired: We,
9906
9904
  ariaRoleDescription: sn,
9907
- ariaRowCount: ct,
9908
- ariaRowIndex: ct,
9909
- ariaRowSpan: ct,
9910
- ariaSelected: Ke,
9911
- ariaSetSize: ct,
9905
+ ariaRowCount: ut,
9906
+ ariaRowIndex: ut,
9907
+ ariaRowSpan: ut,
9908
+ ariaSelected: We,
9909
+ ariaSetSize: ut,
9912
9910
  ariaSort: null,
9913
- ariaValueMax: ct,
9914
- ariaValueMin: ct,
9915
- ariaValueNow: ct,
9911
+ ariaValueMax: ut,
9912
+ ariaValueMin: ut,
9913
+ ariaValueNow: ut,
9916
9914
  ariaValueText: null,
9917
9915
  role: null
9918
9916
  }
@@ -9920,7 +9918,7 @@ var hR = _r, bR = Ev, yR = hR({
9920
9918
  function SR(e, t) {
9921
9919
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
9922
9920
  }
9923
- var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er = Yn.booleanish, Ce = Yn.number, ze = Yn.spaceSeparated, Ur = Yn.commaSeparated, CR = wR({
9921
+ var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er = Yn.booleanish, Ce = Yn.number, He = Yn.spaceSeparated, Ur = Yn.commaSeparated, CR = wR({
9924
9922
  space: "html",
9925
9923
  attributes: {
9926
9924
  acceptcharset: "accept-charset",
@@ -9934,8 +9932,8 @@ var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er =
9934
9932
  // Standard Properties.
9935
9933
  abbr: null,
9936
9934
  accept: Ur,
9937
- acceptCharset: ze,
9938
- accessKey: ze,
9935
+ acceptCharset: He,
9936
+ accessKey: He,
9939
9937
  action: null,
9940
9938
  allow: null,
9941
9939
  allowFullScreen: ce,
@@ -9945,20 +9943,20 @@ var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er =
9945
9943
  as: null,
9946
9944
  async: ce,
9947
9945
  autoCapitalize: null,
9948
- autoComplete: ze,
9946
+ autoComplete: He,
9949
9947
  autoFocus: ce,
9950
9948
  autoPlay: ce,
9951
9949
  capture: ce,
9952
9950
  charSet: null,
9953
9951
  checked: ce,
9954
9952
  cite: null,
9955
- className: ze,
9953
+ className: He,
9956
9954
  cols: Ce,
9957
9955
  colSpan: null,
9958
9956
  content: null,
9959
9957
  contentEditable: er,
9960
9958
  controls: ce,
9961
- controlsList: ze,
9959
+ controlsList: He,
9962
9960
  coords: Ce | Ur,
9963
9961
  crossOrigin: null,
9964
9962
  data: null,
@@ -9979,14 +9977,14 @@ var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er =
9979
9977
  formMethod: null,
9980
9978
  formNoValidate: ce,
9981
9979
  formTarget: null,
9982
- headers: ze,
9980
+ headers: He,
9983
9981
  height: Ce,
9984
9982
  hidden: ce,
9985
9983
  high: Ce,
9986
9984
  href: null,
9987
9985
  hrefLang: null,
9988
- htmlFor: ze,
9989
- httpEquiv: ze,
9986
+ htmlFor: He,
9987
+ httpEquiv: He,
9990
9988
  id: null,
9991
9989
  imageSizes: null,
9992
9990
  imageSrcSet: Ur,
@@ -9995,10 +9993,10 @@ var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er =
9995
9993
  is: null,
9996
9994
  isMap: ce,
9997
9995
  itemId: null,
9998
- itemProp: ze,
9999
- itemRef: ze,
9996
+ itemProp: He,
9997
+ itemRef: He,
10000
9998
  itemScope: ce,
10001
- itemType: ze,
9999
+ itemType: He,
10002
10000
  kind: null,
10003
10001
  label: null,
10004
10002
  lang: null,
@@ -10106,19 +10104,19 @@ var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er =
10106
10104
  open: ce,
10107
10105
  optimum: Ce,
10108
10106
  pattern: null,
10109
- ping: ze,
10107
+ ping: He,
10110
10108
  placeholder: null,
10111
10109
  playsInline: ce,
10112
10110
  poster: null,
10113
10111
  preload: null,
10114
10112
  readOnly: ce,
10115
10113
  referrerPolicy: null,
10116
- rel: ze,
10114
+ rel: He,
10117
10115
  required: ce,
10118
10116
  reversed: ce,
10119
10117
  rows: Ce,
10120
10118
  rowSpan: Ce,
10121
- sandbox: ze,
10119
+ sandbox: He,
10122
10120
  scope: null,
10123
10121
  scoped: ce,
10124
10122
  seamless: ce,
@@ -10152,7 +10150,7 @@ var Yn = Ot, wR = _r, TR = Ev, ce = Yn.boolean, xR = Yn.overloadedBoolean, er =
10152
10150
  // Several. Use CSS `text-align` instead,
10153
10151
  aLink: null,
10154
10152
  // `<body>`. Use CSS `a:active {color}` instead
10155
- archive: ze,
10153
+ archive: He,
10156
10154
  // `<object>`. List of URIs to archives
10157
10155
  axis: null,
10158
10156
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -11719,25 +11717,25 @@ var od = {}.hasOwnProperty;
11719
11717
  function Lv() {
11720
11718
  }
11721
11719
  Lv.prototype = Ov;
11722
- var De = new Lv(), nN = De;
11723
- De.highlight = aN;
11724
- De.register = kr;
11725
- De.alias = rN;
11726
- De.registered = iN;
11727
- De.listLanguages = oN;
11720
+ var Le = new Lv(), nN = Le;
11721
+ Le.highlight = aN;
11722
+ Le.register = kr;
11723
+ Le.alias = rN;
11724
+ Le.registered = iN;
11725
+ Le.listLanguages = oN;
11728
11726
  kr(JI);
11729
11727
  kr(QI);
11730
11728
  kr(eN);
11731
11729
  kr(tN);
11732
- De.util.encode = uN;
11733
- De.Token.stringify = sN;
11730
+ Le.util.encode = uN;
11731
+ Le.Token.stringify = sN;
11734
11732
  function kr(e) {
11735
11733
  if (typeof e != "function" || !e.displayName)
11736
11734
  throw new Error("Expected `function` for `grammar`, got `" + e + "`");
11737
- De.languages[e.displayName] === void 0 && e(De);
11735
+ Le.languages[e.displayName] === void 0 && e(Le);
11738
11736
  }
11739
11737
  function rN(e, t) {
11740
- var n = De.languages, r = e, a, i, o, s;
11738
+ var n = Le.languages, r = e, a, i, o, s;
11741
11739
  t && (r = {}, r[e] = t);
11742
11740
  for (a in r)
11743
11741
  for (i = r[a], i = typeof i == "string" ? [i] : i, o = i.length, s = -1; ++s < o; )
@@ -11747,13 +11745,13 @@ function aN(e, t) {
11747
11745
  var n = Ov.highlight, r;
11748
11746
  if (typeof e != "string")
11749
11747
  throw new Error("Expected `string` for `value`, got `" + e + "`");
11750
- if (De.util.type(t) === "Object")
11748
+ if (Le.util.type(t) === "Object")
11751
11749
  r = t, t = null;
11752
11750
  else {
11753
11751
  if (typeof t != "string")
11754
11752
  throw new Error("Expected `string` for `name`, got `" + t + "`");
11755
- if (od.call(De.languages, t))
11756
- r = De.languages[t];
11753
+ if (od.call(Le.languages, t))
11754
+ r = Le.languages[t];
11757
11755
  else
11758
11756
  throw new Error("Unknown language: `" + t + "` is not registered");
11759
11757
  }
@@ -11762,25 +11760,25 @@ function aN(e, t) {
11762
11760
  function iN(e) {
11763
11761
  if (typeof e != "string")
11764
11762
  throw new Error("Expected `string` for `language`, got `" + e + "`");
11765
- return od.call(De.languages, e);
11763
+ return od.call(Le.languages, e);
11766
11764
  }
11767
11765
  function oN() {
11768
- var e = De.languages, t = [], n;
11766
+ var e = Le.languages, t = [], n;
11769
11767
  for (n in e)
11770
11768
  od.call(e, n) && typeof e[n] == "object" && t.push(n);
11771
11769
  return t;
11772
11770
  }
11773
11771
  function sN(e, t, n) {
11774
11772
  var r;
11775
- return typeof e == "string" ? { type: "text", value: e } : De.util.type(e) === "Array" ? lN(e, t) : (r = {
11773
+ return typeof e == "string" ? { type: "text", value: e } : Le.util.type(e) === "Array" ? lN(e, t) : (r = {
11776
11774
  type: e.type,
11777
- content: De.Token.stringify(e.content, t, n),
11775
+ content: Le.Token.stringify(e.content, t, n),
11778
11776
  tag: "span",
11779
11777
  classes: ["token", e.type],
11780
11778
  attributes: {},
11781
11779
  language: t,
11782
11780
  parent: n
11783
- }, e.alias && (r.classes = r.classes.concat(e.alias)), De.hooks.run("wrap", r), XI(
11781
+ }, e.alias && (r.classes = r.classes.concat(e.alias)), Le.hooks.run("wrap", r), XI(
11784
11782
  r.tag + "." + r.classes.join("."),
11785
11783
  cN(r.attributes),
11786
11784
  r.content
@@ -11790,7 +11788,7 @@ function lN(e, t) {
11790
11788
  for (var n = [], r = e.length, a = -1, i; ++a < r; )
11791
11789
  i = e[a], i !== "" && i !== null && i !== void 0 && n.push(i);
11792
11790
  for (a = -1, r = n.length; ++a < r; )
11793
- i = n[a], n[a] = De.Token.stringify(i, t, n);
11791
+ i = n[a], n[a] = Le.Token.stringify(i, t, n);
11794
11792
  return n;
11795
11793
  }
11796
11794
  function uN(e) {
@@ -16032,7 +16030,7 @@ function dO() {
16032
16030
  return $i;
16033
16031
  }
16034
16032
  var ji, ug;
16035
- function nt() {
16033
+ function tt() {
16036
16034
  if (ug) return ji;
16037
16035
  ug = 1, ji = e, e.displayName = "markupTemplating", e.aliases = [];
16038
16036
  function e(t) {
@@ -16109,7 +16107,7 @@ var qi, cg;
16109
16107
  function pO() {
16110
16108
  if (cg) return qi;
16111
16109
  cg = 1;
16112
- var e = nt();
16110
+ var e = tt();
16113
16111
  qi = t, t.displayName = "django", t.aliases = ["jinja2"];
16114
16112
  function t(n) {
16115
16113
  n.register(e), function(r) {
@@ -16487,7 +16485,7 @@ var Yi, bg;
16487
16485
  function EO() {
16488
16486
  if (bg) return Yi;
16489
16487
  bg = 1;
16490
- var e = nt();
16488
+ var e = tt();
16491
16489
  Yi = t, t.displayName = "ejs", t.aliases = ["eta"];
16492
16490
  function t(n) {
16493
16491
  n.register(e), function(r) {
@@ -16676,7 +16674,7 @@ var Ji, vg;
16676
16674
  function wO() {
16677
16675
  if (vg) return Ji;
16678
16676
  vg = 1;
16679
- var e = da(), t = nt();
16677
+ var e = da(), t = tt();
16680
16678
  Ji = n, n.displayName = "erb", n.aliases = [];
16681
16679
  function n(r) {
16682
16680
  r.register(e), r.register(t), function(a) {
@@ -16788,7 +16786,7 @@ var to, Tg;
16788
16786
  function xO() {
16789
16787
  if (Tg) return to;
16790
16788
  Tg = 1;
16791
- var e = Pv(), t = nt();
16789
+ var e = Pv(), t = tt();
16792
16790
  to = n, n.displayName = "etlua", n.aliases = [];
16793
16791
  function n(r) {
16794
16792
  r.register(e), r.register(t), function(a) {
@@ -18050,7 +18048,7 @@ var uo, Ng;
18050
18048
  function OO() {
18051
18049
  if (Ng) return uo;
18052
18050
  Ng = 1;
18053
- var e = nt();
18051
+ var e = tt();
18054
18052
  uo = t, t.displayName = "ftl", t.aliases = [];
18055
18053
  function t(n) {
18056
18054
  n.register(e), function(r) {
@@ -18952,7 +18950,7 @@ var Co, Vg;
18952
18950
  function WO() {
18953
18951
  if (Vg) return Co;
18954
18952
  Vg = 1;
18955
- var e = nt();
18953
+ var e = tt();
18956
18954
  Co = t, t.displayName = "handlebars", t.aliases = ["hbs"];
18957
18955
  function t(n) {
18958
18956
  n.register(e), function(r) {
@@ -21500,7 +21498,7 @@ var fs, Dm;
21500
21498
  function fa() {
21501
21499
  if (Dm) return fs;
21502
21500
  Dm = 1;
21503
- var e = nt();
21501
+ var e = tt();
21504
21502
  fs = t, t.displayName = "php", t.aliases = [];
21505
21503
  function t(n) {
21506
21504
  n.register(e), function(r) {
@@ -21830,7 +21828,7 @@ var gs, Mm;
21830
21828
  function k2() {
21831
21829
  if (Mm) return gs;
21832
21830
  Mm = 1;
21833
- var e = nt(), t = fa();
21831
+ var e = tt(), t = fa();
21834
21832
  gs = n, n.displayName = "latte", n.aliases = [];
21835
21833
  function n(r) {
21836
21834
  r.register(e), r.register(t), function(a) {
@@ -22151,7 +22149,7 @@ var ys, Bm;
22151
22149
  function O2() {
22152
22150
  if (Bm) return ys;
22153
22151
  Bm = 1;
22154
- var e = nt();
22152
+ var e = tt();
22155
22153
  ys = t, t.displayName = "liquid", t.aliases = [];
22156
22154
  function t(n) {
22157
22155
  n.register(e), n.languages.liquid = {
@@ -27911,7 +27909,7 @@ var Gl, cb;
27911
27909
  function r4() {
27912
27910
  if (cb) return Gl;
27913
27911
  cb = 1;
27914
- var e = nt();
27912
+ var e = tt();
27915
27913
  Gl = t, t.displayName = "smarty", t.aliases = [];
27916
27914
  function t(n) {
27917
27915
  n.register(e), function(r) {
@@ -28176,7 +28174,7 @@ var Wl, gb;
28176
28174
  function s4() {
28177
28175
  if (gb) return Wl;
28178
28176
  gb = 1;
28179
- var e = nt();
28177
+ var e = tt();
28180
28178
  Wl = t, t.displayName = "soy", t.aliases = [];
28181
28179
  function t(n) {
28182
28180
  n.register(e), function(r) {
@@ -29542,7 +29540,7 @@ var gu, Mb;
29542
29540
  function x4() {
29543
29541
  if (Mb) return gu;
29544
29542
  Mb = 1;
29545
- var e = nt();
29543
+ var e = tt();
29546
29544
  gu = t, t.displayName = "tt2", t.aliases = [];
29547
29545
  function t(n) {
29548
29546
  n.register(e), function(r) {
@@ -29594,7 +29592,7 @@ var mu, Pb;
29594
29592
  function C4() {
29595
29593
  if (Pb) return mu;
29596
29594
  Pb = 1;
29597
- var e = nt();
29595
+ var e = tt();
29598
29596
  mu = t, t.displayName = "twig", t.aliases = [];
29599
29597
  function t(n) {
29600
29598
  n.register(e), n.languages.twig = {
@@ -31188,7 +31186,7 @@ S.register(Pv());
31188
31186
  S.register(U2());
31189
31187
  S.register(B2());
31190
31188
  S.register($2());
31191
- S.register(nt());
31189
+ S.register(tt());
31192
31190
  S.register(j2());
31193
31191
  S.register(q2());
31194
31192
  S.register(G2());
@@ -31732,7 +31730,7 @@ const Z4 = {
31732
31730
  showFeedbackButtons: l = !0
31733
31731
  }) => {
31734
31732
  const { isWaitingForFirstResponse: u, messages: c, setIsWaitingForFirstResponse: d } = ha(), g = c.length > 0 ? c[c.length - 1] : null;
31735
- Le(() => {
31733
+ Oe(() => {
31736
31734
  e.id === (g == null ? void 0 : g.id) && e.content.length > 1 && u && d(!1);
31737
31735
  }, [e.content, g, u]);
31738
31736
  const p = g3(e.content);
@@ -32245,19 +32243,19 @@ const V3 = (e) => {
32245
32243
  showeditIcon: i = !0
32246
32244
  }) => {
32247
32245
  const { t: o } = hn("minerva"), { selectedConversation: s } = Cr(), { messages: l, fetchMessages: u, isBotStreaming: c } = ha(), [d, g] = se(null), p = we(null), h = we(null);
32248
- Le(() => {
32246
+ Oe(() => {
32249
32247
  p.current && p.current.scrollIntoView({ behavior: "smooth" });
32250
- }, [l]), Le(() => {
32248
+ }, [l]), Oe(() => {
32251
32249
  s && s.id !== h.current && (h.current = s.id, setTimeout(() => {
32252
32250
  u(s.id);
32253
32251
  }, 0));
32254
32252
  }, [s, u]);
32255
- const y = $e((E, m) => {
32253
+ const y = Be((E, m) => {
32256
32254
  const C = new SpeechSynthesisUtterance(E);
32257
32255
  g(m), C.onend = () => {
32258
32256
  g(null);
32259
32257
  }, speechSynthesis.speak(C);
32260
- }, []), A = $e(() => {
32258
+ }, []), A = Be(() => {
32261
32259
  speechSynthesis.cancel(), g(null);
32262
32260
  }, []), T = (E) => {
32263
32261
  console.log("Feedback recibido:", E);
@@ -32372,7 +32370,7 @@ function rD(e, t) {
32372
32370
  }
32373
32371
  function aD(e, t, n) {
32374
32372
  var r = we(e !== void 0), a = se(t), i = a[0], o = a[1], s = e !== void 0, l = r.current;
32375
- return r.current = s, !s && l && i !== t && o(t), [s ? e : i, $e(function(u) {
32373
+ return r.current = s, !s && l && i !== t && o(t), [s ? e : i, Be(function(u) {
32376
32374
  for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), g = 1; g < c; g++)
32377
32375
  d[g - 1] = arguments[g];
32378
32376
  n && n.apply(void 0, [u].concat(d)), o(u);
@@ -32387,7 +32385,7 @@ function iD(e, t) {
32387
32385
  function Yv(e, t) {
32388
32386
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fc(e, t);
32389
32387
  }
32390
- const oD = ["xxl", "xl", "lg", "md", "sm", "xs"], sD = "xs", Ir = /* @__PURE__ */ Me.createContext({
32388
+ const oD = ["xxl", "xl", "lg", "md", "sm", "xs"], sD = "xs", Ir = /* @__PURE__ */ De.createContext({
32391
32389
  prefixes: {},
32392
32390
  breakpoints: oD,
32393
32391
  minBreakpoint: sD
@@ -32518,33 +32516,33 @@ function dD() {
32518
32516
  }
32519
32517
  function b(z) {
32520
32518
  if (typeof z == "object" && z !== null) {
32521
- var Be = z.$$typeof;
32522
- switch (Be) {
32519
+ var Ue = z.$$typeof;
32520
+ switch (Ue) {
32523
32521
  case n:
32524
- var mt = z.type;
32525
- switch (mt) {
32522
+ var gt = z.type;
32523
+ switch (gt) {
32526
32524
  case u:
32527
32525
  case c:
32528
32526
  case a:
32529
32527
  case o:
32530
32528
  case i:
32531
32529
  case g:
32532
- return mt;
32530
+ return gt;
32533
32531
  default:
32534
- var rt = mt && mt.$$typeof;
32535
- switch (rt) {
32532
+ var nt = gt && gt.$$typeof;
32533
+ switch (nt) {
32536
32534
  case l:
32537
32535
  case d:
32538
32536
  case y:
32539
32537
  case h:
32540
32538
  case s:
32541
- return rt;
32539
+ return nt;
32542
32540
  default:
32543
- return Be;
32541
+ return Ue;
32544
32542
  }
32545
32543
  }
32546
32544
  case r:
32547
- return Be;
32545
+ return Ue;
32548
32546
  }
32549
32547
  }
32550
32548
  }
@@ -32772,11 +32770,11 @@ function gD() {
32772
32770
  );
32773
32771
  throw z.name = "Invariant Violation", z;
32774
32772
  } else if (e.NODE_ENV !== "production" && typeof console < "u") {
32775
- var Be = te + ":" + Q;
32776
- !F[Be] && // Avoid spamming the console because they are often not actionable except for lib authors
32773
+ var Ue = te + ":" + Q;
32774
+ !F[Ue] && // Avoid spamming the console because they are often not actionable except for lib authors
32777
32775
  x < 3 && (o(
32778
32776
  "You are manually calling a React.PropTypes validation function for the `" + ne + "` prop on `" + te + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
32779
- ), F[Be] = !0, x++);
32777
+ ), F[Ue] = !0, x++);
32780
32778
  }
32781
32779
  }
32782
32780
  return J[Q] == null ? Y ? J[Q] === null ? new A("The " + ie + " `" + ne + "` is marked as required " + ("in `" + te + "`, but its value is `null`.")) : new A("The " + ie + " `" + ne + "` is marked as required in " + ("`" + te + "`, but its value is `undefined`.")) : null : N(J, Q, te, ie, ne);
@@ -32861,8 +32859,8 @@ function gD() {
32861
32859
  if (y(Q, N[te]))
32862
32860
  return null;
32863
32861
  var ie = JSON.stringify(N, function(_e, z) {
32864
- var Be = W(z);
32865
- return Be === "symbol" ? String(z) : z;
32862
+ var Ue = W(z);
32863
+ return Ue === "symbol" ? String(z) : z;
32866
32864
  });
32867
32865
  return new A("Invalid " + Y + " `" + J + "` of value `" + String(Q) + "` " + ("supplied to `" + X + "`, expected one of " + ie + "."));
32868
32866
  }
@@ -32902,8 +32900,8 @@ function gD() {
32902
32900
  return null;
32903
32901
  z.data && a(z.data, "expectedType") && ie.push(z.data.expectedType);
32904
32902
  }
32905
- var Be = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
32906
- return new A("Invalid " + Q + " `" + te + "` supplied to " + ("`" + J + "`" + Be + "."));
32903
+ var Ue = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
32904
+ return new A("Invalid " + Q + " `" + te + "` supplied to " + ("`" + J + "`" + Ue + "."));
32907
32905
  }
32908
32906
  return T(K);
32909
32907
  }
@@ -33472,13 +33470,13 @@ function hd(e, t) {
33472
33470
  }
33473
33471
  function CD(e) {
33474
33472
  const t = we(e);
33475
- return Le(() => {
33473
+ return Oe(() => {
33476
33474
  t.current = e;
33477
33475
  }, [e]), t;
33478
33476
  }
33479
33477
  function AD(e) {
33480
33478
  const t = CD(e);
33481
- return $e(function(...n) {
33479
+ return Be(function(...n) {
33482
33480
  return t.current && t.current(...n);
33483
33481
  }, [t]);
33484
33482
  }
@@ -33487,32 +33485,32 @@ function RD() {
33487
33485
  }
33488
33486
  function _D(e) {
33489
33487
  const t = we(e);
33490
- return Le(() => {
33488
+ return Oe(() => {
33491
33489
  t.current = e;
33492
33490
  }, [e]), t;
33493
33491
  }
33494
33492
  function Kt(e) {
33495
33493
  const t = _D(e);
33496
- return $e(function(...n) {
33494
+ return Be(function(...n) {
33497
33495
  return t.current && t.current(...n);
33498
33496
  }, [t]);
33499
33497
  }
33500
33498
  function kD(e, t, n, r = !1) {
33501
33499
  const a = Kt(n);
33502
- Le(() => {
33500
+ Oe(() => {
33503
33501
  const i = typeof e == "function" ? e() : e;
33504
33502
  return i.addEventListener(t, a, r), () => i.removeEventListener(t, a, r);
33505
33503
  }, [e]);
33506
33504
  }
33507
33505
  function ID() {
33508
33506
  const e = we(!0), t = we(() => e.current);
33509
- return Le(() => (e.current = !0, () => {
33507
+ return Oe(() => (e.current = !0, () => {
33510
33508
  e.current = !1;
33511
33509
  }), []), t.current;
33512
33510
  }
33513
33511
  function ND(e) {
33514
33512
  const t = we(null);
33515
- return Le(() => {
33513
+ return Oe(() => {
33516
33514
  t.current = e;
33517
33515
  }), t.current;
33518
33516
  }
@@ -33572,7 +33570,7 @@ function bd({
33572
33570
  onKeyDown: d
33573
33571
  }, u];
33574
33572
  }
33575
- const iS = /* @__PURE__ */ Me.forwardRef((e, t) => {
33573
+ const iS = /* @__PURE__ */ De.forwardRef((e, t) => {
33576
33574
  let {
33577
33575
  as: n,
33578
33576
  disabled: r
@@ -33601,7 +33599,7 @@ function PD(e, t) {
33601
33599
  function FD(e) {
33602
33600
  return !e || e.trim() === "#";
33603
33601
  }
33604
- const oS = /* @__PURE__ */ Me.forwardRef((e, t) => {
33602
+ const oS = /* @__PURE__ */ De.forwardRef((e, t) => {
33605
33603
  let {
33606
33604
  onKeyDown: n
33607
33605
  } = e, r = PD(e, MD);
@@ -33621,7 +33619,7 @@ const oS = /* @__PURE__ */ Me.forwardRef((e, t) => {
33621
33619
  }));
33622
33620
  });
33623
33621
  oS.displayName = "Anchor";
33624
- const sS = /* @__PURE__ */ Me.forwardRef(({
33622
+ const sS = /* @__PURE__ */ De.forwardRef(({
33625
33623
  as: e,
33626
33624
  bsPrefix: t,
33627
33625
  variant: n = "primary",
@@ -33675,7 +33673,7 @@ function UD({
33675
33673
  spans: o
33676
33674
  }];
33677
33675
  }
33678
- const vc = /* @__PURE__ */ Me.forwardRef(
33676
+ const vc = /* @__PURE__ */ De.forwardRef(
33679
33677
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
33680
33678
  (e, t) => {
33681
33679
  const [{
@@ -33700,7 +33698,7 @@ function Ty(e, t) {
33700
33698
  }
33701
33699
  function $D(e, t, n) {
33702
33700
  const r = we(e !== void 0), [a, i] = se(t), o = e !== void 0, s = r.current;
33703
- return r.current = o, !o && s && a !== t && i(t), [o ? e : a, $e((...l) => {
33701
+ return r.current = o, !o && s && a !== t && i(t), [o ? e : a, Be((...l) => {
33704
33702
  const [u, ...c] = l;
33705
33703
  let d = n == null ? void 0 : n(u, ...c);
33706
33704
  return i(u), d;
@@ -33710,7 +33708,7 @@ function jD() {
33710
33708
  const [, e] = v1((t) => t + 1, 0);
33711
33709
  return e;
33712
33710
  }
33713
- const ga = /* @__PURE__ */ Me.createContext(null);
33711
+ const ga = /* @__PURE__ */ De.createContext(null);
33714
33712
  var xy = Object.prototype.hasOwnProperty;
33715
33713
  function Cy(e, t, n) {
33716
33714
  for (n of e.keys())
@@ -33765,12 +33763,12 @@ function cr(e, t) {
33765
33763
  }
33766
33764
  function qD(e) {
33767
33765
  const t = ID();
33768
- return [e[0], $e((n) => {
33766
+ return [e[0], Be((n) => {
33769
33767
  if (t())
33770
33768
  return e[1](n);
33771
33769
  }, [t, e[1]])];
33772
33770
  }
33773
- var Je = "top", pt = "bottom", ft = "right", Qe = "left", yd = "auto", Nr = [Je, pt, ft, Qe], Gn = "start", hr = "end", GD = "clippingParents", lS = "viewport", tr = "popper", HD = "reference", Ay = /* @__PURE__ */ Nr.reduce(function(e, t) {
33771
+ var Ze = "top", dt = "bottom", pt = "right", Je = "left", yd = "auto", Nr = [Ze, dt, pt, Je], Gn = "start", hr = "end", GD = "clippingParents", lS = "viewport", tr = "popper", HD = "reference", Ay = /* @__PURE__ */ Nr.reduce(function(e, t) {
33774
33772
  return e.concat([t + "-" + Gn, t + "-" + hr]);
33775
33773
  }, []), uS = /* @__PURE__ */ [].concat(Nr, [yd]).reduce(function(e, t) {
33776
33774
  return e.concat([t, t + "-" + Gn, t + "-" + hr]);
@@ -33778,7 +33776,7 @@ var Je = "top", pt = "bottom", ft = "right", Qe = "left", yd = "auto", Nr = [Je,
33778
33776
  function _t(e) {
33779
33777
  return e.split("-")[0];
33780
33778
  }
33781
- function lt(e) {
33779
+ function st(e) {
33782
33780
  if (e == null)
33783
33781
  return window;
33784
33782
  if (e.toString() !== "[object Window]") {
@@ -33788,17 +33786,17 @@ function lt(e) {
33788
33786
  return e;
33789
33787
  }
33790
33788
  function gn(e) {
33791
- var t = lt(e).Element;
33789
+ var t = st(e).Element;
33792
33790
  return e instanceof t || e instanceof Element;
33793
33791
  }
33794
33792
  function kt(e) {
33795
- var t = lt(e).HTMLElement;
33793
+ var t = st(e).HTMLElement;
33796
33794
  return e instanceof t || e instanceof HTMLElement;
33797
33795
  }
33798
33796
  function Ed(e) {
33799
33797
  if (typeof ShadowRoot > "u")
33800
33798
  return !1;
33801
- var t = lt(e).ShadowRoot;
33799
+ var t = st(e).ShadowRoot;
33802
33800
  return e instanceof t || e instanceof ShadowRoot;
33803
33801
  }
33804
33802
  var pn = Math.max, ea = Math.min, Hn = Math.round;
@@ -33815,7 +33813,7 @@ function zn(e, t, n) {
33815
33813
  t === void 0 && (t = !1), n === void 0 && (n = !1);
33816
33814
  var r = e.getBoundingClientRect(), a = 1, i = 1;
33817
33815
  t && kt(e) && (a = e.offsetWidth > 0 && Hn(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Hn(r.height) / e.offsetHeight || 1);
33818
- var o = gn(e) ? lt(e) : window, s = o.visualViewport, l = !cS() && n, u = (r.left + (l && s ? s.offsetLeft : 0)) / a, c = (r.top + (l && s ? s.offsetTop : 0)) / i, d = r.width / a, g = r.height / i;
33816
+ var o = gn(e) ? st(e) : window, s = o.visualViewport, l = !cS() && n, u = (r.left + (l && s ? s.offsetLeft : 0)) / a, c = (r.top + (l && s ? s.offsetTop : 0)) / i, d = r.width / a, g = r.height / i;
33819
33817
  return {
33820
33818
  width: d,
33821
33819
  height: g,
@@ -33854,7 +33852,7 @@ function Xt(e) {
33854
33852
  return e ? (e.nodeName || "").toLowerCase() : null;
33855
33853
  }
33856
33854
  function $t(e) {
33857
- return lt(e).getComputedStyle(e);
33855
+ return st(e).getComputedStyle(e);
33858
33856
  }
33859
33857
  function t6(e) {
33860
33858
  return ["table", "td", "th"].indexOf(Xt(e)) >= 0;
@@ -33898,7 +33896,7 @@ function n6(e) {
33898
33896
  return null;
33899
33897
  }
33900
33898
  function Or(e) {
33901
- for (var t = lt(e), n = Ry(e); n && t6(n) && $t(n).position === "static"; )
33899
+ for (var t = st(e), n = Ry(e); n && t6(n) && $t(n).position === "static"; )
33902
33900
  n = Ry(n);
33903
33901
  return n && (Xt(n) === "html" || Xt(n) === "body" && $t(n).position === "static") ? t : n || n6(e) || t;
33904
33902
  }
@@ -33934,9 +33932,9 @@ var a6 = function(t, n) {
33934
33932
  })) : t, fS(typeof t != "number" ? t : gS(t, Nr));
33935
33933
  };
33936
33934
  function i6(e) {
33937
- var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, s = _t(n.placement), l = Sd(s), u = [Qe, ft].indexOf(s) >= 0, c = u ? "height" : "width";
33935
+ var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, s = _t(n.placement), l = Sd(s), u = [Je, pt].indexOf(s) >= 0, c = u ? "height" : "width";
33938
33936
  if (!(!i || !o)) {
33939
- var d = a6(a.padding, n), g = vd(i), p = l === "y" ? Je : Qe, h = l === "y" ? pt : ft, y = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], A = o[l] - n.rects.reference[l], T = Or(i), E = T ? l === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, m = y / 2 - A / 2, C = d[p], b = E - g[c] - d[h], v = E / 2 - g[c] / 2 + m, k = dr(C, v, b), O = l;
33937
+ var d = a6(a.padding, n), g = vd(i), p = l === "y" ? Ze : Je, h = l === "y" ? dt : pt, y = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], A = o[l] - n.rects.reference[l], T = Or(i), E = T ? l === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, m = y / 2 - A / 2, C = d[p], b = E - g[c] - d[h], v = E / 2 - g[c] / 2 + m, k = dr(C, v, b), O = l;
33940
33938
  n.modifiersData[r] = (t = {}, t[O] = k, t.centerOffset = k - v, t);
33941
33939
  }
33942
33940
  }
@@ -33978,19 +33976,19 @@ function _y(e) {
33978
33976
  y
33979
33977
  };
33980
33978
  p = A.x, y = A.y;
33981
- var T = o.hasOwnProperty("x"), E = o.hasOwnProperty("y"), m = Qe, C = Je, b = window;
33979
+ var T = o.hasOwnProperty("x"), E = o.hasOwnProperty("y"), m = Je, C = Ze, b = window;
33982
33980
  if (u) {
33983
33981
  var v = Or(n), k = "clientHeight", O = "clientWidth";
33984
- if (v === lt(n) && (v = en(n), $t(v).position !== "static" && s === "absolute" && (k = "scrollHeight", O = "scrollWidth")), v = v, a === Je || (a === Qe || a === ft) && i === hr) {
33985
- C = pt;
33982
+ if (v === st(n) && (v = en(n), $t(v).position !== "static" && s === "absolute" && (k = "scrollHeight", O = "scrollWidth")), v = v, a === Ze || (a === Je || a === pt) && i === hr) {
33983
+ C = dt;
33986
33984
  var _ = d && v === b && b.visualViewport ? b.visualViewport.height : (
33987
33985
  // $FlowFixMe[prop-missing]
33988
33986
  v[k]
33989
33987
  );
33990
33988
  y -= _ - r.height, y *= l ? 1 : -1;
33991
33989
  }
33992
- if (a === Qe || (a === Je || a === pt) && i === hr) {
33993
- m = ft;
33990
+ if (a === Je || (a === Ze || a === dt) && i === hr) {
33991
+ m = pt;
33994
33992
  var L = d && v === b && b.visualViewport ? b.visualViewport.width : (
33995
33993
  // $FlowFixMe[prop-missing]
33996
33994
  v[O]
@@ -34003,7 +34001,7 @@ function _y(e) {
34003
34001
  }, u && l6), M = c === !0 ? u6({
34004
34002
  x: p,
34005
34003
  y
34006
- }, lt(n)) : {
34004
+ }, st(n)) : {
34007
34005
  x: p,
34008
34006
  y
34009
34007
  };
@@ -34047,7 +34045,7 @@ var qr = {
34047
34045
  passive: !0
34048
34046
  };
34049
34047
  function p6(e) {
34050
- var t = e.state, n = e.instance, r = e.options, a = r.scroll, i = a === void 0 ? !0 : a, o = r.resize, s = o === void 0 ? !0 : o, l = lt(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
34048
+ var t = e.state, n = e.instance, r = e.options, a = r.scroll, i = a === void 0 ? !0 : a, o = r.resize, s = o === void 0 ? !0 : o, l = st(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
34051
34049
  return i && u.forEach(function(c) {
34052
34050
  c.addEventListener("scroll", n.update, qr);
34053
34051
  }), s && l.addEventListener("resize", n.update, qr), function() {
@@ -34086,7 +34084,7 @@ function ky(e) {
34086
34084
  });
34087
34085
  }
34088
34086
  function wd(e) {
34089
- var t = lt(e), n = t.pageXOffset, r = t.pageYOffset;
34087
+ var t = st(e), n = t.pageXOffset, r = t.pageYOffset;
34090
34088
  return {
34091
34089
  scrollLeft: n,
34092
34090
  scrollTop: r
@@ -34096,7 +34094,7 @@ function Td(e) {
34096
34094
  return zn(en(e)).left + wd(e).scrollLeft;
34097
34095
  }
34098
34096
  function h6(e, t) {
34099
- var n = lt(e), r = en(e), a = n.visualViewport, i = r.clientWidth, o = r.clientHeight, s = 0, l = 0;
34097
+ var n = st(e), r = en(e), a = n.visualViewport, i = r.clientWidth, o = r.clientHeight, s = 0, l = 0;
34100
34098
  if (a) {
34101
34099
  i = a.width, o = a.height;
34102
34100
  var u = cS();
@@ -34128,7 +34126,7 @@ function mS(e) {
34128
34126
  function pr(e, t) {
34129
34127
  var n;
34130
34128
  t === void 0 && (t = []);
34131
- var r = mS(e), a = r === ((n = e.ownerDocument) == null ? void 0 : n.body), i = lt(r), o = a ? [i].concat(i.visualViewport || [], xd(r) ? r : []) : r, s = t.concat(o);
34129
+ var r = mS(e), a = r === ((n = e.ownerDocument) == null ? void 0 : n.body), i = st(r), o = a ? [i].concat(i.visualViewport || [], xd(r) ? r : []) : r, s = t.concat(o);
34132
34130
  return a ? s : (
34133
34131
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
34134
34132
  s.concat(pr(ma(o)))
@@ -34165,25 +34163,25 @@ function v6(e, t, n, r) {
34165
34163
  function hS(e) {
34166
34164
  var t = e.reference, n = e.element, r = e.placement, a = r ? _t(r) : null, i = r ? Vn(r) : null, o = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, l;
34167
34165
  switch (a) {
34168
- case Je:
34166
+ case Ze:
34169
34167
  l = {
34170
34168
  x: o,
34171
34169
  y: t.y - n.height
34172
34170
  };
34173
34171
  break;
34174
- case pt:
34172
+ case dt:
34175
34173
  l = {
34176
34174
  x: o,
34177
34175
  y: t.y + t.height
34178
34176
  };
34179
34177
  break;
34180
- case ft:
34178
+ case pt:
34181
34179
  l = {
34182
34180
  x: t.x + t.width,
34183
34181
  y: s
34184
34182
  };
34185
34183
  break;
34186
- case Qe:
34184
+ case Je:
34187
34185
  l = {
34188
34186
  x: t.x - n.width,
34189
34187
  y: s
@@ -34224,7 +34222,7 @@ function br(e, t) {
34224
34222
  if (g === tr && I) {
34225
34223
  var M = I[a];
34226
34224
  Object.keys(L).forEach(function(U) {
34227
- var j = [ft, pt].indexOf(U) >= 0 ? 1 : -1, B = [Je, pt].indexOf(U) >= 0 ? "y" : "x";
34225
+ var j = [pt, dt].indexOf(U) >= 0 ? 1 : -1, B = [Ze, dt].indexOf(U) >= 0 ? "y" : "x";
34228
34226
  L[U] += M[B] * j;
34229
34227
  });
34230
34228
  }
@@ -34269,13 +34267,13 @@ function T6(e) {
34269
34267
  allowedAutoPlacements: y
34270
34268
  }) : X);
34271
34269
  }, []), b = t.rects.reference, v = t.rects.popper, k = /* @__PURE__ */ new Map(), O = !0, _ = C[0], L = 0; L < C.length; L++) {
34272
- var I = C[L], M = _t(I), U = Vn(I) === Gn, j = [Je, pt].indexOf(M) >= 0, B = j ? "width" : "height", V = br(t, {
34270
+ var I = C[L], M = _t(I), U = Vn(I) === Gn, j = [Ze, dt].indexOf(M) >= 0, B = j ? "width" : "height", V = br(t, {
34273
34271
  placement: I,
34274
34272
  boundary: c,
34275
34273
  rootBoundary: d,
34276
34274
  altBoundary: g,
34277
34275
  padding: u
34278
- }), G = j ? U ? ft : Qe : U ? pt : Je;
34276
+ }), G = j ? U ? pt : Je : U ? dt : Ze;
34279
34277
  b[B] > v[B] && (G = Xr(G));
34280
34278
  var W = Xr(G), ee = [];
34281
34279
  if (i && ee.push(V[M] <= 0), s && ee.push(V[G] <= 0, V[W] <= 0), ee.every(function(K) {
@@ -34326,7 +34324,7 @@ function Ny(e, t, n) {
34326
34324
  };
34327
34325
  }
34328
34326
  function Oy(e) {
34329
- return [Je, ft, pt, Qe].some(function(t) {
34327
+ return [Ze, pt, dt, Je].some(function(t) {
34330
34328
  return e[t] >= 0;
34331
34329
  });
34332
34330
  }
@@ -34354,10 +34352,10 @@ const A6 = {
34354
34352
  fn: C6
34355
34353
  };
34356
34354
  function R6(e, t, n) {
34357
- var r = _t(e), a = [Qe, Je].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
34355
+ var r = _t(e), a = [Je, Ze].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, {
34358
34356
  placement: e
34359
34357
  })) : n, o = i[0], s = i[1];
34360
- return o = o || 0, s = (s || 0) * a, [Qe, ft].indexOf(r) >= 0 ? {
34358
+ return o = o || 0, s = (s || 0) * a, [Je, pt].indexOf(r) >= 0 ? {
34361
34359
  x: s,
34362
34360
  y: o
34363
34361
  } : {
@@ -34416,15 +34414,15 @@ function L6(e) {
34416
34414
  };
34417
34415
  if (v) {
34418
34416
  if (i) {
34419
- var U, j = C === "y" ? Je : Qe, B = C === "y" ? pt : ft, V = C === "y" ? "height" : "width", G = v[C], W = G + A[j], ee = G - A[B], w = p ? -O[V] / 2 : 0, N = E === Gn ? k[V] : O[V], F = E === Gn ? -O[V] : -k[V], x = t.elements.arrow, K = p && x ? vd(x) : {
34417
+ var U, j = C === "y" ? Ze : Je, B = C === "y" ? dt : pt, V = C === "y" ? "height" : "width", G = v[C], W = G + A[j], ee = G - A[B], w = p ? -O[V] / 2 : 0, N = E === Gn ? k[V] : O[V], F = E === Gn ? -O[V] : -k[V], x = t.elements.arrow, K = p && x ? vd(x) : {
34420
34418
  width: 0,
34421
34419
  height: 0
34422
- }, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : pS(), Y = X[j], J = X[B], Q = dr(0, k[V], K[V]), te = m ? k[V] / 2 - w - Q - Y - L.mainAxis : N - Q - Y - L.mainAxis, ie = m ? -k[V] / 2 + w + Q + J + L.mainAxis : F + Q + J + L.mainAxis, ne = t.elements.arrow && Or(t.elements.arrow), _e = ne ? C === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, z = (U = I == null ? void 0 : I[C]) != null ? U : 0, Be = G + te - z - _e, mt = G + ie - z, rt = dr(p ? ea(W, Be) : W, G, p ? pn(ee, mt) : ee);
34423
- v[C] = rt, M[C] = rt - G;
34420
+ }, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : pS(), Y = X[j], J = X[B], Q = dr(0, k[V], K[V]), te = m ? k[V] / 2 - w - Q - Y - L.mainAxis : N - Q - Y - L.mainAxis, ie = m ? -k[V] / 2 + w + Q + J + L.mainAxis : F + Q + J + L.mainAxis, ne = t.elements.arrow && Or(t.elements.arrow), _e = ne ? C === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, z = (U = I == null ? void 0 : I[C]) != null ? U : 0, Ue = G + te - z - _e, gt = G + ie - z, nt = dr(p ? ea(W, Ue) : W, G, p ? pn(ee, gt) : ee);
34421
+ v[C] = nt, M[C] = nt - G;
34424
34422
  }
34425
34423
  if (s) {
34426
- var ht, Sn = C === "x" ? Je : Qe, tn = C === "x" ? pt : ft, qe = v[b], qt = b === "y" ? "height" : "width", wn = qe + A[Sn], Gt = qe - A[tn], nn = [Je, Qe].indexOf(T) !== -1, Tn = (ht = I == null ? void 0 : I[b]) != null ? ht : 0, P = nn ? wn : qe - k[qt] - O[qt] - Tn + L.altAxis, H = nn ? qe + k[qt] + O[qt] - Tn - L.altAxis : Gt, re = p && nn ? r6(P, qe, H) : dr(p ? P : wn, qe, p ? H : Gt);
34427
- v[b] = re, M[b] = re - qe;
34424
+ var mt, Sn = C === "x" ? Ze : Je, tn = C === "x" ? dt : pt, je = v[b], qt = b === "y" ? "height" : "width", wn = je + A[Sn], Gt = je - A[tn], nn = [Ze, Je].indexOf(T) !== -1, Tn = (mt = I == null ? void 0 : I[b]) != null ? mt : 0, P = nn ? wn : je - k[qt] - O[qt] - Tn + L.altAxis, H = nn ? je + k[qt] + O[qt] - Tn - L.altAxis : Gt, re = p && nn ? r6(P, je, H) : dr(p ? P : wn, je, p ? H : Gt);
34425
+ v[b] = re, M[b] = re - je;
34428
34426
  }
34429
34427
  t.modifiersData[r] = M;
34430
34428
  }
@@ -34443,7 +34441,7 @@ function M6(e) {
34443
34441
  };
34444
34442
  }
34445
34443
  function P6(e) {
34446
- return e === lt(e) || !kt(e) ? wd(e) : M6(e);
34444
+ return e === st(e) || !kt(e) ? wd(e) : M6(e);
34447
34445
  }
34448
34446
  function F6(e) {
34449
34447
  var t = e.getBoundingClientRect(), n = Hn(t.width) / e.offsetWidth || 1, r = Hn(t.height) / e.offsetHeight || 1;
@@ -34683,10 +34681,10 @@ function X6(e, t, n = {}) {
34683
34681
  strategy: i = "absolute",
34684
34682
  modifiers: o = Y6
34685
34683
  } = n, s = V6(n, z6);
34686
- const l = we(o), u = we(), c = $e(() => {
34684
+ const l = we(o), u = we(), c = Be(() => {
34687
34685
  var A;
34688
34686
  (A = u.current) == null || A.update();
34689
- }, []), d = $e(() => {
34687
+ }, []), d = Be(() => {
34690
34688
  var A;
34691
34689
  (A = u.current) == null || A.forceUpdate();
34692
34690
  }, []), [g, p] = qD(se({
@@ -34719,13 +34717,13 @@ function X6(e, t, n = {}) {
34719
34717
  });
34720
34718
  }
34721
34719
  }), [c, d, p]), y = It(() => (cr(l.current, o) || (l.current = o), l.current), [o]);
34722
- return Le(() => {
34720
+ return Oe(() => {
34723
34721
  !u.current || !r || u.current.setOptions({
34724
34722
  placement: a,
34725
34723
  strategy: i,
34726
34724
  modifiers: [...y, h, W6]
34727
34725
  });
34728
- }, [i, a, h, r, y]), Le(() => {
34726
+ }, [i, a, h, r, y]), Oe(() => {
34729
34727
  if (!(!r || e == null || t == null))
34730
34728
  return u.current = H6(e, t, Object.assign({}, s, {
34731
34729
  placement: a,
@@ -34792,7 +34790,7 @@ function r9(e, t = Py, {
34792
34790
  disabled: n,
34793
34791
  clickTrigger: r = "click"
34794
34792
  } = {}) {
34795
- const a = we(!1), i = we(!1), o = $e((u) => {
34793
+ const a = we(!1), i = we(!1), o = Be((u) => {
34796
34794
  const c = Vu(e);
34797
34795
  yS(!!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 || n9(u) || !t9(u) || !!My(c, u.target) || i.current, i.current = !1;
34798
34796
  }, [e]), s = Kt((u) => {
@@ -34801,7 +34799,7 @@ function r9(e, t = Py, {
34801
34799
  }), l = Kt((u) => {
34802
34800
  a.current || t(u);
34803
34801
  });
34804
- Le(() => {
34802
+ Oe(() => {
34805
34803
  var u, c;
34806
34804
  if (n || e == null) return;
34807
34805
  const d = uD(Vu(e)), g = d.defaultView || window;
@@ -35005,7 +35003,7 @@ function TS() {
35005
35003
  toggle: n = Uy,
35006
35004
  setToggle: r,
35007
35005
  menuElement: a
35008
- } = Re(ga) || {}, i = $e((s) => {
35006
+ } = Re(ga) || {}, i = Be((s) => {
35009
35007
  n(!t, s);
35010
35008
  }, [t, n]), o = {
35011
35009
  id: e,
@@ -35027,7 +35025,7 @@ function xS({
35027
35025
  });
35028
35026
  }
35029
35027
  xS.displayName = "DropdownToggle";
35030
- const xc = /* @__PURE__ */ Me.createContext(null), By = (e, t = null) => e != null ? String(e) : t || null, CS = /* @__PURE__ */ Me.createContext(null);
35028
+ const xc = /* @__PURE__ */ De.createContext(null), By = (e, t = null) => e != null ? String(e) : t || null, CS = /* @__PURE__ */ De.createContext(null);
35031
35029
  CS.displayName = "NavContext";
35032
35030
  const v9 = "data-rr-ui-";
35033
35031
  function AS(e) {
@@ -35064,7 +35062,7 @@ function RS({
35064
35062
  isActive: u
35065
35063
  }];
35066
35064
  }
35067
- const _S = /* @__PURE__ */ Me.forwardRef((e, t) => {
35065
+ const _S = /* @__PURE__ */ De.forwardRef((e, t) => {
35068
35066
  let {
35069
35067
  eventKey: n,
35070
35068
  disabled: r,
@@ -35090,7 +35088,7 @@ function T9() {
35090
35088
  return Re(kS);
35091
35089
  }
35092
35090
  function $y() {
35093
- const e = jD(), t = we(null), n = $e((r) => {
35091
+ const e = jD(), t = we(null), n = Be((r) => {
35094
35092
  t.current = r, e();
35095
35093
  }, [e]);
35096
35094
  return [t, n];
@@ -35105,7 +35103,7 @@ function Lr({
35105
35103
  placement: o = "bottom-start",
35106
35104
  children: s
35107
35105
  }) {
35108
- const l = T9(), [u, c] = $D(t, e, r), [d, g] = $y(), p = d.current, [h, y] = $y(), A = h.current, T = ND(u), E = we(null), m = we(!1), C = Re(xc), b = $e((I, M, U = M == null ? void 0 : M.type) => {
35106
+ const l = T9(), [u, c] = $D(t, e, r), [d, g] = $y(), p = d.current, [h, y] = $y(), A = h.current, T = ND(u), E = we(null), m = we(!1), C = Re(xc), b = Be((I, M, U = M == null ? void 0 : M.type) => {
35109
35107
  c(I, {
35110
35108
  originalEvent: M,
35111
35109
  source: U
@@ -35132,9 +35130,9 @@ function Lr({
35132
35130
  const U = Ty(d.current, a)[0];
35133
35131
  U && U.focus && U.focus();
35134
35132
  });
35135
- Le(() => {
35133
+ Oe(() => {
35136
35134
  u ? _() : m.current && (m.current = !1, O());
35137
- }, [u, m, O, _]), Le(() => {
35135
+ }, [u, m, O, _]), Oe(() => {
35138
35136
  E.current = null;
35139
35137
  });
35140
35138
  const L = (I, M) => {
@@ -35143,7 +35141,7 @@ function Lr({
35143
35141
  let j = U.indexOf(I) + M;
35144
35142
  return j = Math.max(0, Math.min(j, U.length)), U[j];
35145
35143
  };
35146
- return kD($e(() => l.document, [l]), "keydown", (I) => {
35144
+ return kD(Be(() => l.document, [l]), "keydown", (I) => {
35147
35145
  var M, U;
35148
35146
  const {
35149
35147
  key: j
@@ -35193,9 +35191,9 @@ Lr.displayName = "Dropdown";
35193
35191
  Lr.Menu = vS;
35194
35192
  Lr.Toggle = xS;
35195
35193
  Lr.Item = _S;
35196
- const Cd = /* @__PURE__ */ Me.createContext({});
35194
+ const Cd = /* @__PURE__ */ De.createContext({});
35197
35195
  Cd.displayName = "DropdownContext";
35198
- const IS = /* @__PURE__ */ Me.forwardRef(({
35196
+ const IS = /* @__PURE__ */ De.forwardRef(({
35199
35197
  className: e,
35200
35198
  bsPrefix: t,
35201
35199
  as: n = "hr",
@@ -35208,7 +35206,7 @@ const IS = /* @__PURE__ */ Me.forwardRef(({
35208
35206
  ...a
35209
35207
  })));
35210
35208
  IS.displayName = "DropdownDivider";
35211
- const NS = /* @__PURE__ */ Me.forwardRef(({
35209
+ const NS = /* @__PURE__ */ De.forwardRef(({
35212
35210
  className: e,
35213
35211
  bsPrefix: t,
35214
35212
  as: n = "div",
@@ -35221,7 +35219,7 @@ const NS = /* @__PURE__ */ Me.forwardRef(({
35221
35219
  ...a
35222
35220
  })));
35223
35221
  NS.displayName = "DropdownHeader";
35224
- const OS = /* @__PURE__ */ Me.forwardRef(({
35222
+ const OS = /* @__PURE__ */ De.forwardRef(({
35225
35223
  bsPrefix: e,
35226
35224
  className: t,
35227
35225
  eventKey: n,
@@ -35246,7 +35244,7 @@ const OS = /* @__PURE__ */ Me.forwardRef(({
35246
35244
  });
35247
35245
  });
35248
35246
  OS.displayName = "DropdownItem";
35249
- const LS = /* @__PURE__ */ Me.forwardRef(({
35247
+ const LS = /* @__PURE__ */ De.forwardRef(({
35250
35248
  className: e,
35251
35249
  bsPrefix: t,
35252
35250
  as: n = "span",
@@ -35259,14 +35257,14 @@ const LS = /* @__PURE__ */ Me.forwardRef(({
35259
35257
  LS.displayName = "DropdownItemText";
35260
35258
  const x9 = typeof global < "u" && // @ts-ignore
35261
35259
  global.navigator && // @ts-ignore
35262
- global.navigator.product === "ReactNative", C9 = typeof document < "u", A9 = C9 || x9 ? S1 : Le, Ad = /* @__PURE__ */ Me.createContext(null);
35260
+ global.navigator.product === "ReactNative", C9 = typeof document < "u", A9 = C9 || x9 ? S1 : Oe, Ad = /* @__PURE__ */ De.createContext(null);
35263
35261
  Ad.displayName = "InputGroupContext";
35264
- const DS = /* @__PURE__ */ Me.createContext(null);
35262
+ const DS = /* @__PURE__ */ De.createContext(null);
35265
35263
  DS.displayName = "NavbarContext";
35266
35264
  var jy = {};
35267
35265
  function MS(e, t) {
35268
35266
  if (jy.NODE_ENV === "production") return e;
35269
- const n = $e((r) => {
35267
+ const n = Be((r) => {
35270
35268
  r == null || !r.isReactComponent || (jy.NODE_ENV !== "production" ? cy(!1, `${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`) : cy(!1));
35271
35269
  }, [t]);
35272
35270
  return hd(n, e);
@@ -35277,7 +35275,7 @@ function PS(e, t, n) {
35277
35275
  let d = e ? o : i;
35278
35276
  return t === "up" ? d = e ? a : r : t === "end" ? d = e ? c : u : t === "start" ? d = e ? l : s : t === "down-centered" ? d = "bottom" : t === "up-centered" && (d = "top"), d;
35279
35277
  }
35280
- const FS = /* @__PURE__ */ Me.forwardRef(({
35278
+ const FS = /* @__PURE__ */ De.forwardRef(({
35281
35279
  bsPrefix: e,
35282
35280
  className: t,
35283
35281
  align: n,
@@ -35340,7 +35338,7 @@ const FS = /* @__PURE__ */ Me.forwardRef(({
35340
35338
  });
35341
35339
  });
35342
35340
  FS.displayName = "DropdownMenu";
35343
- const US = /* @__PURE__ */ Me.forwardRef(({
35341
+ const US = /* @__PURE__ */ De.forwardRef(({
35344
35342
  bsPrefix: e,
35345
35343
  split: t,
35346
35344
  className: n,
@@ -35359,7 +35357,7 @@ const US = /* @__PURE__ */ Me.forwardRef(({
35359
35357
  });
35360
35358
  });
35361
35359
  US.displayName = "DropdownToggle";
35362
- const BS = /* @__PURE__ */ Me.forwardRef((e, t) => {
35360
+ const BS = /* @__PURE__ */ De.forwardRef((e, t) => {
35363
35361
  const {
35364
35362
  bsPrefix: n,
35365
35363
  drop: r = "down",
@@ -35429,7 +35427,7 @@ function qy(e, t) {
35429
35427
  function I9(e, t) {
35430
35428
  e.classList ? e.classList.remove(t) : typeof e.className == "string" ? e.className = qy(e.className, t) : e.setAttribute("class", qy(e.className && e.className.baseVal || "", t));
35431
35429
  }
35432
- const $S = /* @__PURE__ */ Me.forwardRef(({
35430
+ const $S = /* @__PURE__ */ De.forwardRef(({
35433
35431
  bsPrefix: e,
35434
35432
  className: t,
35435
35433
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
@@ -35889,7 +35887,7 @@ const Gy = D(fn)`
35889
35887
  showeditIcon: d
35890
35888
  }) => {
35891
35889
  const { logout: g } = jt(), [p, h] = se(() => localStorage.getItem("minerva_chat_expanded") === "true"), y = () => {
35892
- Oe.remove("access_token", { path: "/" }), window.location.reload(), g();
35890
+ window.location.reload(), g();
35893
35891
  }, A = () => {
35894
35892
  h((E) => {
35895
35893
  const m = !E;
@@ -36267,7 +36265,7 @@ const X9 = ({
36267
36265
  const n = await iE.login(e, t), r = n.access_token;
36268
36266
  if (!r)
36269
36267
  throw new Error("No access token found in response");
36270
- return Oe.set("access_token", r, { path: "/" }), n;
36268
+ return Et.set("access_token", r, { path: "/" }), n;
36271
36269
  } catch (n) {
36272
36270
  throw console.error("Error en la respuesta de login:", n), n;
36273
36271
  }
@@ -36278,7 +36276,6 @@ const X9 = ({
36278
36276
  } catch (t) {
36279
36277
  console.error("Error al cerrar sesión en el backend:", t);
36280
36278
  } finally {
36281
- Oe.remove("access_token", { path: "/" }), Oe.remove("auth_method", { path: "/" });
36282
36279
  }
36283
36280
  }, or = {
36284
36281
  LOGIN: "/login",
@@ -36314,9 +36311,9 @@ const X9 = ({
36314
36311
  c(!1);
36315
36312
  }
36316
36313
  };
36317
- Le(() => {
36314
+ Oe(() => {
36318
36315
  (async () => {
36319
- Oe.get("access_token") ? (g(!0), await _()) : (g(!1), C([])), h(!1), A(!1);
36316
+ Et.get("access_token") ? (g(!0), await _()) : (g(!1), C([])), h(!1), A(!1);
36320
36317
  })();
36321
36318
  }, []);
36322
36319
  const L = async (j, B) => {
@@ -36324,7 +36321,7 @@ const X9 = ({
36324
36321
  try {
36325
36322
  const G = (await J9(j, B)).access_token;
36326
36323
  if (!G) throw new Error("No access token received");
36327
- Oe.set("access_token", G, { path: "/" }), Oe.set("auth_method", "both", { path: "/" }), g(!0), E(!0), await _(), k(`${l ?? ""}${or.DASHBOARD}`);
36324
+ Et.set("access_token", G, { path: "/" }), Et.set("auth_method", "both", { path: "/" }), g(!0), E(!0), await _(), k(`${l ?? ""}${or.DASHBOARD}`);
36328
36325
  } catch (V) {
36329
36326
  console.error("Login failed:", V.message || V), g(!1), Zu.fire({
36330
36327
  title: "Login Failed",
@@ -36338,8 +36335,8 @@ const X9 = ({
36338
36335
  }, I = async () => {
36339
36336
  v(!0);
36340
36337
  try {
36341
- const j = Oe.get("auth_method"), B = Oe.get("id_token");
36342
- if (Oe.remove("access_token", { path: "/" }), Oe.remove("id_token", { path: "/" }), Oe.remove("auth_method", { path: "/" }), g(!1), C([]), j === "keycloak") {
36338
+ const j = Et.get("auth_method"), B = Et.get("id_token");
36339
+ if (g(!1), C([]), j === "keycloak") {
36343
36340
  const V = B ? `${o}&id_token_hint=${encodeURIComponent(B)}` : o;
36344
36341
  window.location.replace(V);
36345
36342
  } else j === "microsoft" ? window.location.replace(s) : await Q9();
@@ -36349,7 +36346,7 @@ const X9 = ({
36349
36346
  v(!1);
36350
36347
  }
36351
36348
  }, M = async () => {
36352
- A(!0), Oe.get("access_token") ? (g(!0), await _()) : (g(!1), C([])), h(!1), A(!1);
36349
+ A(!0), Et.get("access_token") ? (g(!0), await _()) : (g(!1), C([])), h(!1), A(!1);
36353
36350
  }, U = It(
36354
36351
  () => ({
36355
36352
  isAuthenticated: d,
@@ -36418,7 +36415,7 @@ const X9 = ({
36418
36415
  } catch (g) {
36419
36416
  console.error("Error creando la conversación:", g);
36420
36417
  }
36421
- }, d = $e(async () => {
36418
+ }, d = Be(async () => {
36422
36419
  if (t && o && !u.current) {
36423
36420
  u.current = !0;
36424
36421
  try {
@@ -36711,7 +36708,7 @@ const LM = ({
36711
36708
  bottom: ${({ chatVersion: e, miniVersionHeight: t }) => e === "mini" ? t : "10px"};
36712
36709
  left: ${({ chatVersion: e, miniVersionHeight: t }) => e === "mini" ? t : "10px"};
36713
36710
 
36714
- ${({ chatVersion: e }) => e !== "mini" && ot`
36711
+ ${({ chatVersion: e }) => e !== "mini" && it`
36715
36712
  @media (max-width: 768px) {
36716
36713
  left: 50%;
36717
36714
  transform: translateX(-50%);
@@ -37435,7 +37432,7 @@ function fr(e) {
37435
37432
  throw new TypeError("The input to be decoded is not correctly encoded.");
37436
37433
  }
37437
37434
  }
37438
- class et extends Error {
37435
+ class Qe extends Error {
37439
37436
  constructor(n, r) {
37440
37437
  var a;
37441
37438
  super(n, r);
@@ -37443,8 +37440,8 @@ class et extends Error {
37443
37440
  this.name = this.constructor.name, (a = Error.captureStackTrace) == null || a.call(Error, this, this.constructor);
37444
37441
  }
37445
37442
  }
37446
- me(et, "code", "ERR_JOSE_GENERIC");
37447
- class Et extends et {
37443
+ me(Qe, "code", "ERR_JOSE_GENERIC");
37444
+ class yt extends Qe {
37448
37445
  constructor(n, r, a = "unspecified", i = "unspecified") {
37449
37446
  super(n, { cause: { claim: a, reason: i, payload: r } });
37450
37447
  me(this, "code", "ERR_JWT_CLAIM_VALIDATION_FAILED");
@@ -37454,8 +37451,8 @@ class Et extends et {
37454
37451
  this.claim = a, this.reason = i, this.payload = r;
37455
37452
  }
37456
37453
  }
37457
- me(Et, "code", "ERR_JWT_CLAIM_VALIDATION_FAILED");
37458
- class Cc extends et {
37454
+ me(yt, "code", "ERR_JWT_CLAIM_VALIDATION_FAILED");
37455
+ class Cc extends Qe {
37459
37456
  constructor(n, r, a = "unspecified", i = "unspecified") {
37460
37457
  super(n, { cause: { claim: a, reason: i, payload: r } });
37461
37458
  me(this, "code", "ERR_JWT_EXPIRED");
@@ -37466,42 +37463,42 @@ class Cc extends et {
37466
37463
  }
37467
37464
  }
37468
37465
  me(Cc, "code", "ERR_JWT_EXPIRED");
37469
- class XS extends et {
37466
+ class XS extends Qe {
37470
37467
  constructor() {
37471
37468
  super(...arguments);
37472
37469
  me(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
37473
37470
  }
37474
37471
  }
37475
37472
  me(XS, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
37476
- class Rt extends et {
37473
+ class Rt extends Qe {
37477
37474
  constructor() {
37478
37475
  super(...arguments);
37479
37476
  me(this, "code", "ERR_JOSE_NOT_SUPPORTED");
37480
37477
  }
37481
37478
  }
37482
37479
  me(Rt, "code", "ERR_JOSE_NOT_SUPPORTED");
37483
- class Pe extends et {
37480
+ class Me extends Qe {
37484
37481
  constructor() {
37485
37482
  super(...arguments);
37486
37483
  me(this, "code", "ERR_JWS_INVALID");
37487
37484
  }
37488
37485
  }
37489
- me(Pe, "code", "ERR_JWS_INVALID");
37490
- class _d extends et {
37486
+ me(Me, "code", "ERR_JWS_INVALID");
37487
+ class _d extends Qe {
37491
37488
  constructor() {
37492
37489
  super(...arguments);
37493
37490
  me(this, "code", "ERR_JWT_INVALID");
37494
37491
  }
37495
37492
  }
37496
37493
  me(_d, "code", "ERR_JWT_INVALID");
37497
- class kd extends et {
37494
+ class kd extends Qe {
37498
37495
  constructor() {
37499
37496
  super(...arguments);
37500
37497
  me(this, "code", "ERR_JWKS_INVALID");
37501
37498
  }
37502
37499
  }
37503
37500
  me(kd, "code", "ERR_JWKS_INVALID");
37504
- class Id extends et {
37501
+ class Id extends Qe {
37505
37502
  constructor(n = "no applicable key found in the JSON Web Key Set", r) {
37506
37503
  super(n, r);
37507
37504
  me(this, "code", "ERR_JWKS_NO_MATCHING_KEY");
@@ -37509,7 +37506,7 @@ class Id extends et {
37509
37506
  }
37510
37507
  me(Id, "code", "ERR_JWKS_NO_MATCHING_KEY");
37511
37508
  var Jy, Qy;
37512
- class ZS extends (Qy = et, Jy = Symbol.asyncIterator, Qy) {
37509
+ class ZS extends (Qy = Qe, Jy = Symbol.asyncIterator, Qy) {
37513
37510
  constructor(n = "multiple matching keys found in the JSON Web Key Set", r) {
37514
37511
  super(n, r);
37515
37512
  me(this, Jy);
@@ -37517,14 +37514,14 @@ class ZS extends (Qy = et, Jy = Symbol.asyncIterator, Qy) {
37517
37514
  }
37518
37515
  }
37519
37516
  me(ZS, "code", "ERR_JWKS_MULTIPLE_MATCHING_KEYS");
37520
- class JS extends et {
37517
+ class JS extends Qe {
37521
37518
  constructor(n = "request timed out", r) {
37522
37519
  super(n, r);
37523
37520
  me(this, "code", "ERR_JWKS_TIMEOUT");
37524
37521
  }
37525
37522
  }
37526
37523
  me(JS, "code", "ERR_JWKS_TIMEOUT");
37527
- class QS extends et {
37524
+ class QS extends Qe {
37528
37525
  constructor(n = "signature verification failed", r) {
37529
37526
  super(n, r);
37530
37527
  me(this, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
@@ -38046,45 +38043,45 @@ const Wy = async (e, t, n, r = !1) => {
38046
38043
  };
38047
38044
  async function $5(e, t, n) {
38048
38045
  if (!Zt(e))
38049
- throw new Pe("Flattened JWS must be an object");
38046
+ throw new Me("Flattened JWS must be an object");
38050
38047
  if (e.protected === void 0 && e.header === void 0)
38051
- throw new Pe('Flattened JWS must have either of the "protected" or "header" members');
38048
+ throw new Me('Flattened JWS must have either of the "protected" or "header" members');
38052
38049
  if (e.protected !== void 0 && typeof e.protected != "string")
38053
- throw new Pe("JWS Protected Header incorrect type");
38050
+ throw new Me("JWS Protected Header incorrect type");
38054
38051
  if (e.payload === void 0)
38055
- throw new Pe("JWS Payload missing");
38052
+ throw new Me("JWS Payload missing");
38056
38053
  if (typeof e.signature != "string")
38057
- throw new Pe("JWS Signature missing or incorrect type");
38054
+ throw new Me("JWS Signature missing or incorrect type");
38058
38055
  if (e.header !== void 0 && !Zt(e.header))
38059
- throw new Pe("JWS Unprotected Header incorrect type");
38056
+ throw new Me("JWS Unprotected Header incorrect type");
38060
38057
  let r = {};
38061
38058
  if (e.protected)
38062
38059
  try {
38063
38060
  const A = fr(e.protected);
38064
38061
  r = JSON.parse(Er.decode(A));
38065
38062
  } catch {
38066
- throw new Pe("JWS Protected Header is invalid");
38063
+ throw new Me("JWS Protected Header is invalid");
38067
38064
  }
38068
38065
  if (!w5(r, e.header))
38069
- throw new Pe("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
38066
+ throw new Me("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
38070
38067
  const a = {
38071
38068
  ...r,
38072
38069
  ...e.header
38073
- }, i = R5(Pe, /* @__PURE__ */ new Map([["b64", !0]]), n == null ? void 0 : n.crit, r, a);
38070
+ }, i = R5(Me, /* @__PURE__ */ new Map([["b64", !0]]), n == null ? void 0 : n.crit, r, a);
38074
38071
  let o = !0;
38075
38072
  if (i.has("b64") && (o = r.b64, typeof o != "boolean"))
38076
- throw new Pe('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
38073
+ throw new Me('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
38077
38074
  const { alg: s } = a;
38078
38075
  if (typeof s != "string" || !s)
38079
- throw new Pe('JWS "alg" (Algorithm) Header Parameter missing or invalid');
38076
+ throw new Me('JWS "alg" (Algorithm) Header Parameter missing or invalid');
38080
38077
  const l = n && _5("algorithms", n.algorithms);
38081
38078
  if (l && !l.has(s))
38082
38079
  throw new XS('"alg" (Algorithm) Header Parameter value not allowed');
38083
38080
  if (o) {
38084
38081
  if (typeof e.payload != "string")
38085
- throw new Pe("JWS Payload must be a string");
38082
+ throw new Me("JWS Payload must be a string");
38086
38083
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
38087
- throw new Pe("JWS Payload must be a string or an Uint8Array instance");
38084
+ throw new Me("JWS Payload must be a string or an Uint8Array instance");
38088
38085
  let u = !1;
38089
38086
  typeof t == "function" && (t = await t(r, e), u = !0), P5(s, t, "verify");
38090
38087
  const c = h5(zr.encode(e.protected ?? ""), zr.encode("."), typeof e.payload == "string" ? zr.encode(e.payload) : e.payload);
@@ -38092,7 +38089,7 @@ async function $5(e, t, n) {
38092
38089
  try {
38093
38090
  d = fr(e.signature);
38094
38091
  } catch {
38095
- throw new Pe("Failed to base64url decode the signature");
38092
+ throw new Me("Failed to base64url decode the signature");
38096
38093
  }
38097
38094
  const g = await L5(t, s);
38098
38095
  if (!await B5(s, g, d, c))
@@ -38102,7 +38099,7 @@ async function $5(e, t, n) {
38102
38099
  try {
38103
38100
  h = fr(e.payload);
38104
38101
  } catch {
38105
- throw new Pe("Failed to base64url decode the payload");
38102
+ throw new Me("Failed to base64url decode the payload");
38106
38103
  }
38107
38104
  else typeof e.payload == "string" ? h = zr.encode(e.payload) : h = e.payload;
38108
38105
  const y = { payload: h };
@@ -38110,10 +38107,10 @@ async function $5(e, t, n) {
38110
38107
  }
38111
38108
  async function j5(e, t, n) {
38112
38109
  if (e instanceof Uint8Array && (e = Er.decode(e)), typeof e != "string")
38113
- throw new Pe("Compact JWS must be a string or Uint8Array");
38110
+ throw new Me("Compact JWS must be a string or Uint8Array");
38114
38111
  const { 0: r, 1: a, 2: i, length: o } = e.split(".");
38115
38112
  if (o !== 3)
38116
- throw new Pe("Invalid Compact JWS");
38113
+ throw new Me("Invalid Compact JWS");
38117
38114
  const s = await $5({ payload: a, protected: r, signature: i }, t, n), l = { payload: s.payload, protectedHeader: s.protectedHeader };
38118
38115
  return typeof t == "function" ? { ...l, key: s.key } : l;
38119
38116
  }
@@ -38171,18 +38168,18 @@ function W5(e, t, n = {}) {
38171
38168
  throw new _d("JWT Claims Set must be a top-level JSON object");
38172
38169
  const { typ: a } = n;
38173
38170
  if (a && (typeof e.typ != "string" || Yy(e.typ) !== Yy(a)))
38174
- throw new Et('unexpected "typ" JWT header value', r, "typ", "check_failed");
38171
+ throw new yt('unexpected "typ" JWT header value', r, "typ", "check_failed");
38175
38172
  const { requiredClaims: i = [], issuer: o, subject: s, audience: l, maxTokenAge: u } = n, c = [...i];
38176
38173
  u !== void 0 && c.push("iat"), l !== void 0 && c.push("aud"), s !== void 0 && c.push("sub"), o !== void 0 && c.push("iss");
38177
38174
  for (const h of new Set(c.reverse()))
38178
38175
  if (!(h in r))
38179
- throw new Et(`missing required "${h}" claim`, r, h, "missing");
38176
+ throw new yt(`missing required "${h}" claim`, r, h, "missing");
38180
38177
  if (o && !(Array.isArray(o) ? o : [o]).includes(r.iss))
38181
- throw new Et('unexpected "iss" claim value', r, "iss", "check_failed");
38178
+ throw new yt('unexpected "iss" claim value', r, "iss", "check_failed");
38182
38179
  if (s && r.sub !== s)
38183
- throw new Et('unexpected "sub" claim value', r, "sub", "check_failed");
38180
+ throw new yt('unexpected "sub" claim value', r, "sub", "check_failed");
38184
38181
  if (l && !V5(r.aud, typeof l == "string" ? [l] : l))
38185
- throw new Et('unexpected "aud" claim value', r, "aud", "check_failed");
38182
+ throw new yt('unexpected "aud" claim value', r, "aud", "check_failed");
38186
38183
  let d;
38187
38184
  switch (typeof n.clockTolerance) {
38188
38185
  case "string":
@@ -38199,16 +38196,16 @@ function W5(e, t, n = {}) {
38199
38196
  }
38200
38197
  const { currentDate: g } = n, p = q5(g || /* @__PURE__ */ new Date());
38201
38198
  if ((r.iat !== void 0 || u) && typeof r.iat != "number")
38202
- throw new Et('"iat" claim must be a number', r, "iat", "invalid");
38199
+ throw new yt('"iat" claim must be a number', r, "iat", "invalid");
38203
38200
  if (r.nbf !== void 0) {
38204
38201
  if (typeof r.nbf != "number")
38205
- throw new Et('"nbf" claim must be a number', r, "nbf", "invalid");
38202
+ throw new yt('"nbf" claim must be a number', r, "nbf", "invalid");
38206
38203
  if (r.nbf > p + d)
38207
- throw new Et('"nbf" claim timestamp check failed', r, "nbf", "check_failed");
38204
+ throw new yt('"nbf" claim timestamp check failed', r, "nbf", "check_failed");
38208
38205
  }
38209
38206
  if (r.exp !== void 0) {
38210
38207
  if (typeof r.exp != "number")
38211
- throw new Et('"exp" claim must be a number', r, "exp", "invalid");
38208
+ throw new yt('"exp" claim must be a number', r, "exp", "invalid");
38212
38209
  if (r.exp <= p - d)
38213
38210
  throw new Cc('"exp" claim timestamp check failed', r, "exp", "check_failed");
38214
38211
  }
@@ -38217,7 +38214,7 @@ function W5(e, t, n = {}) {
38217
38214
  if (h - d > y)
38218
38215
  throw new Cc('"iat" claim timestamp check failed (too far in the past)', r, "iat", "check_failed");
38219
38216
  if (h < 0 - d)
38220
- throw new Et('"iat" claim timestamp check failed (it should be in the past)', r, "iat", "check_failed");
38217
+ throw new yt('"iat" claim timestamp check failed (it should be in the past)', r, "iat", "check_failed");
38221
38218
  }
38222
38219
  return r;
38223
38220
  }
@@ -38251,11 +38248,11 @@ function Z5(e) {
38251
38248
  var $n, vr;
38252
38249
  class J5 {
38253
38250
  constructor(t) {
38254
- at(this, $n);
38255
- at(this, vr, /* @__PURE__ */ new WeakMap());
38251
+ rt(this, $n);
38252
+ rt(this, vr, /* @__PURE__ */ new WeakMap());
38256
38253
  if (!X5(t))
38257
38254
  throw new kd("JSON Web Key Set malformed");
38258
- Fe(this, $n, structuredClone(t));
38255
+ Pe(this, $n, structuredClone(t));
38259
38256
  }
38260
38257
  jwks() {
38261
38258
  return ge(this, $n);
@@ -38335,11 +38332,11 @@ async function tM(e, t, n, r = fetch) {
38335
38332
  throw i.name === "TimeoutError" ? new JS() : i;
38336
38333
  });
38337
38334
  if (a.status !== 200)
38338
- throw new et("Expected 200 OK from the JSON Web Key Set HTTP response");
38335
+ throw new Qe("Expected 200 OK from the JSON Web Key Set HTTP response");
38339
38336
  try {
38340
38337
  return await a.json();
38341
38338
  } catch {
38342
- throw new et("Failed to parse the JSON Web Key Set HTTP response as JSON");
38339
+ throw new Qe("Failed to parse the JSON Web Key Set HTTP response as JSON");
38343
38340
  }
38344
38341
  }
38345
38342
  const Xu = Symbol();
@@ -38349,19 +38346,19 @@ function nM(e, t) {
38349
38346
  var Sr, wr, Tr, jn, Ft, Tt, xt, xr, Ut, Bt;
38350
38347
  class rM {
38351
38348
  constructor(t, n) {
38352
- at(this, Sr);
38353
- at(this, wr);
38354
- at(this, Tr);
38355
- at(this, jn);
38356
- at(this, Ft);
38357
- at(this, Tt);
38358
- at(this, xt);
38359
- at(this, xr);
38360
- at(this, Ut);
38361
- at(this, Bt);
38349
+ rt(this, Sr);
38350
+ rt(this, wr);
38351
+ rt(this, Tr);
38352
+ rt(this, jn);
38353
+ rt(this, Ft);
38354
+ rt(this, Tt);
38355
+ rt(this, xt);
38356
+ rt(this, xr);
38357
+ rt(this, Ut);
38358
+ rt(this, Bt);
38362
38359
  if (!(t instanceof URL))
38363
38360
  throw new TypeError("url must be an instance of URL");
38364
- Fe(this, Sr, new URL(t.href)), Fe(this, wr, typeof (n == null ? void 0 : n.timeoutDuration) == "number" ? n == null ? void 0 : n.timeoutDuration : 5e3), Fe(this, Tr, typeof (n == null ? void 0 : n.cooldownDuration) == "number" ? n == null ? void 0 : n.cooldownDuration : 3e4), Fe(this, jn, typeof (n == null ? void 0 : n.cacheMaxAge) == "number" ? n == null ? void 0 : n.cacheMaxAge : 6e5), Fe(this, xt, new Headers(n == null ? void 0 : n.headers)), Rc && !ge(this, xt).has("User-Agent") && ge(this, xt).set("User-Agent", Rc), ge(this, xt).has("accept") || (ge(this, xt).set("accept", "application/json"), ge(this, xt).append("accept", "application/jwk-set+json")), Fe(this, xr, n == null ? void 0 : n[eM]), (n == null ? void 0 : n[Xu]) !== void 0 && (Fe(this, Bt, n == null ? void 0 : n[Xu]), nM(n == null ? void 0 : n[Xu], ge(this, jn)) && (Fe(this, Ft, ge(this, Bt).uat), Fe(this, Ut, Zy(ge(this, Bt).jwks))));
38361
+ Pe(this, Sr, new URL(t.href)), Pe(this, wr, typeof (n == null ? void 0 : n.timeoutDuration) == "number" ? n == null ? void 0 : n.timeoutDuration : 5e3), Pe(this, Tr, typeof (n == null ? void 0 : n.cooldownDuration) == "number" ? n == null ? void 0 : n.cooldownDuration : 3e4), Pe(this, jn, typeof (n == null ? void 0 : n.cacheMaxAge) == "number" ? n == null ? void 0 : n.cacheMaxAge : 6e5), Pe(this, xt, new Headers(n == null ? void 0 : n.headers)), Rc && !ge(this, xt).has("User-Agent") && ge(this, xt).set("User-Agent", Rc), ge(this, xt).has("accept") || (ge(this, xt).set("accept", "application/json"), ge(this, xt).append("accept", "application/jwk-set+json")), Pe(this, xr, n == null ? void 0 : n[eM]), (n == null ? void 0 : n[Xu]) !== void 0 && (Pe(this, Bt, n == null ? void 0 : n[Xu]), nM(n == null ? void 0 : n[Xu], ge(this, jn)) && (Pe(this, Ft, ge(this, Bt).uat), Pe(this, Ut, Zy(ge(this, Bt).jwks))));
38365
38362
  }
38366
38363
  pendingFetch() {
38367
38364
  return !!ge(this, Tt);
@@ -38387,10 +38384,10 @@ class rM {
38387
38384
  }
38388
38385
  }
38389
38386
  async reload() {
38390
- ge(this, Tt) && Q5() && Fe(this, Tt, void 0), ge(this, Tt) || Fe(this, Tt, tM(ge(this, Sr).href, ge(this, xt), AbortSignal.timeout(ge(this, wr)), ge(this, xr)).then((t) => {
38391
- Fe(this, Ut, Zy(t)), ge(this, Bt) && (ge(this, Bt).uat = Date.now(), ge(this, Bt).jwks = t), Fe(this, Ft, Date.now()), Fe(this, Tt, void 0);
38387
+ ge(this, Tt) && Q5() && Pe(this, Tt, void 0), ge(this, Tt) || Pe(this, Tt, tM(ge(this, Sr).href, ge(this, xt), AbortSignal.timeout(ge(this, wr)), ge(this, xr)).then((t) => {
38388
+ Pe(this, Ut, Zy(t)), ge(this, Bt) && (ge(this, Bt).uat = Date.now(), ge(this, Bt).jwks = t), Pe(this, Ft, Date.now()), Pe(this, Tt, void 0);
38392
38389
  }).catch((t) => {
38393
- throw Fe(this, Tt, void 0), t;
38390
+ throw Pe(this, Tt, void 0), t;
38394
38391
  })), await ge(this, Tt);
38395
38392
  }
38396
38393
  }
@@ -38478,7 +38475,7 @@ const iM = async (e, t, n, r) => {
38478
38475
  clientSecret: o,
38479
38476
  updateAuth: s
38480
38477
  } = jt(), l = we(!1);
38481
- return Le(() => {
38478
+ return Oe(() => {
38482
38479
  if (l.current) return;
38483
38480
  l.current = !0;
38484
38481
  const c = new URLSearchParams(window.location.search).get("code");
@@ -38507,17 +38504,17 @@ const iM = async (e, t, n, r) => {
38507
38504
  t,
38508
38505
  n,
38509
38506
  i
38510
- ), Oe.set("access_token", h.access_token, {
38507
+ ), Et.set("access_token", h.access_token, {
38511
38508
  path: "/",
38512
38509
  expires: 1,
38513
38510
  secure: !0,
38514
38511
  sameSite: "strict"
38515
- }), Oe.set("id_token", h.id_token, {
38512
+ }), Et.set("id_token", h.id_token, {
38516
38513
  path: "/",
38517
38514
  expires: 1,
38518
38515
  secure: !0,
38519
38516
  sameSite: "strict"
38520
- }), Oe.set("auth_method", "keycloak", { path: "/" }), await s(), e(or.DASHBOARD)) : e(or.LOGIN);
38517
+ }), Et.set("auth_method", "keycloak", { path: "/" }), await s(), e(or.DASHBOARD)) : e(or.LOGIN);
38521
38518
  } catch (p) {
38522
38519
  console.error("Falló el intercambio del código:", p), e(or.LOGIN);
38523
38520
  }