@rqmii_immersive/agent-react-sdk 6.1.2 → 6.1.3

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.
Files changed (38) hide show
  1. package/dist/{RqmiiAgentChat-DePYH6Tm.js → RqmiiAgentChat-DclCKBut.js} +2 -2
  2. package/dist/{RqmiiAgentChat-DePYH6Tm.js.map → RqmiiAgentChat-DclCKBut.js.map} +1 -1
  3. package/dist/{RqmiiAgentChat-E1rns4hb.cjs → RqmiiAgentChat-DwItcha-.cjs} +2 -2
  4. package/dist/{RqmiiAgentChat-E1rns4hb.cjs.map → RqmiiAgentChat-DwItcha-.cjs.map} +1 -1
  5. package/dist/agent-react-sdk.css +1 -1
  6. package/dist/embed/chunks/{Orb-BlCpmOIm.js → Orb-CUO2PRaI.js} +2 -2
  7. package/dist/embed/chunks/{Orb-BlCpmOIm.js.map → Orb-CUO2PRaI.js.map} +1 -1
  8. package/dist/embed/chunks/{embed-core-BbLbqohb.js → embed-core-eP9Wge1U.js} +4 -4
  9. package/dist/embed/chunks/{embed-core-BbLbqohb.js.map → embed-core-eP9Wge1U.js.map} +1 -1
  10. package/dist/embed/chunks/{highlighted-body-JLMTFACH-BP16yo0g.js → highlighted-body-JLMTFACH-BN16E0-4.js} +3 -3
  11. package/dist/embed/chunks/{highlighted-body-JLMTFACH-BP16yo0g.js.map → highlighted-body-JLMTFACH-BN16E0-4.js.map} +1 -1
  12. package/dist/embed/chunks/{mermaid-WFAXDIZX-OtW4F01K.js → mermaid-WFAXDIZX-CH5kl7g7.js} +229 -226
  13. package/dist/embed/chunks/{mermaid-WFAXDIZX-OtW4F01K.js.map → mermaid-WFAXDIZX-CH5kl7g7.js.map} +1 -1
  14. package/dist/embed/chunks/{session-room-CFECkqBg.js → session-room-B4Z-4_lV.js} +2 -2
  15. package/dist/embed/chunks/{session-room-CFECkqBg.js.map → session-room-B4Z-4_lV.js.map} +1 -1
  16. package/dist/embed/core.js +2 -2
  17. package/dist/{highlighted-body-JLMTFACH-BmLfF80m.js → highlighted-body-JLMTFACH-DAlcAY-8.js} +2 -2
  18. package/dist/{highlighted-body-JLMTFACH-BmLfF80m.js.map → highlighted-body-JLMTFACH-DAlcAY-8.js.map} +1 -1
  19. package/dist/{highlighted-body-JLMTFACH-BgbiDd39.cjs → highlighted-body-JLMTFACH-rWYYYFTi.cjs} +2 -2
  20. package/dist/{highlighted-body-JLMTFACH-BgbiDd39.cjs.map → highlighted-body-JLMTFACH-rWYYYFTi.cjs.map} +1 -1
  21. package/dist/lazy.cjs +1 -1
  22. package/dist/lazy.js +1 -1
  23. package/dist/mermaid-WFAXDIZX-DmOW6O9q.cjs +2 -0
  24. package/dist/mermaid-WFAXDIZX-DmOW6O9q.cjs.map +1 -0
  25. package/dist/mermaid-WFAXDIZX-r3CZs5tK.js +5 -0
  26. package/dist/mermaid-WFAXDIZX-r3CZs5tK.js.map +1 -0
  27. package/dist/ui/chat/panels.d.ts.map +1 -1
  28. package/dist/{ui-C5VFxBD4.js → ui-CtiQXBti.js} +243 -240
  29. package/dist/{ui-C5VFxBD4.js.map → ui-CtiQXBti.js.map} +1 -1
  30. package/dist/{ui-BQAa9g8U.cjs → ui-qViuypFA.cjs} +14 -14
  31. package/dist/{ui-BQAa9g8U.cjs.map → ui-qViuypFA.cjs.map} +1 -1
  32. package/dist/ui.cjs +1 -1
  33. package/dist/ui.js +2 -2
  34. package/package.json +1 -1
  35. package/dist/mermaid-WFAXDIZX-CjDBEjC-.js +0 -5
  36. package/dist/mermaid-WFAXDIZX-CjDBEjC-.js.map +0 -1
  37. package/dist/mermaid-WFAXDIZX-D1q7n0BY.cjs +0 -2
  38. package/dist/mermaid-WFAXDIZX-D1q7n0BY.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { X as E, Z as qh, H as Go, K as f, p as ye, z as de, q as ct, F as vs, Q as Vh, G as J, N as De, a3 as En, M as it, L as Yh, a6 as Wh, a0 as Gh, C as Qh, e as Ps, I as Yn, x as Jr, D as wa, J as Qi, a1 as Qo, a8 as Kh, a5 as Ko, $ as Ia, a2 as Xh, a7 as Zh, a4 as Xo, P as Wt, T as Jh } from "./embed-core-BbLbqohb.js";
1
+ import { X as E, Z as qh, H as Go, K as f, p as ye, z as de, q as it, F as vs, Q as Vh, G as J, N as De, a3 as En, M as at, L as Yh, a6 as Wh, a0 as Gh, C as Qh, e as Ps, I as Yn, x as Jr, D as wa, J as Qi, a1 as Qo, a8 as Kh, a5 as Ko, $ as Ia, a2 as Xh, a7 as Zh, a4 as Xo, P as Wt, T as Jh } from "./embed-core-eP9Wge1U.js";
2
2
  /**
3
3
  * @license lucide-react v1.24.0 - ISC
4
4
  *
@@ -464,7 +464,7 @@ function ii(e, t, n, r) {
464
464
  function Bf(e) {
465
465
  return Array.isArray(e) ? e : typeof e == "number" ? [Un, e] : e == null ? nl : [e];
466
466
  }
467
- function at(e, t, n, r) {
467
+ function st(e, t, n, r) {
468
468
  let i, a, s;
469
469
  typeof t == "function" && typeof n != "function" ? (a = void 0, s = t, i = n) : (a = t, s = n, i = r), ii(e, a, u, i);
470
470
  function u(o, l) {
@@ -483,7 +483,7 @@ function Ff({ defaultOrigin: e = "", allowedLinkPrefixes: t = [], allowedImagePr
483
483
  throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");
484
484
  return (h) => {
485
485
  const p = qf(e, t, n, r, i, a, s, u, o);
486
- rl(h), at(h, p);
486
+ rl(h), st(h, p);
487
487
  };
488
488
  }
489
489
  function Bs(e, t) {
@@ -634,7 +634,7 @@ const qf = (e, t, n, r, i, a, s, u, o) => {
634
634
  if (d.tagName === "a") {
635
635
  const m = Fs(d.properties.href, t, e, !1, !1, i);
636
636
  if (m === null) {
637
- if (d[Ai] = !0, at(d, l), p && typeof h == "number") {
637
+ if (d[Ai] = !0, st(d, l), p && typeof h == "number") {
638
638
  const g = zf(d, u, s);
639
639
  if (g.type === "remove")
640
640
  return p.children.splice(h, 1), [Gt, h];
@@ -647,7 +647,7 @@ const qf = (e, t, n, r, i, a, s, u, o) => {
647
647
  if (d.tagName === "img") {
648
648
  const m = Fs(d.properties.src, n, e, r, !0, i);
649
649
  if (m === null) {
650
- if (d[Ai] = !0, at(d, l), p && typeof h == "number") {
650
+ if (d[Ai] = !0, st(d, l), p && typeof h == "number") {
651
651
  const g = $f(d, o, a);
652
652
  if (g.type === "remove")
653
653
  return p.children.splice(h, 1), [Gt, h];
@@ -8207,7 +8207,7 @@ function Xl(e, t) {
8207
8207
  // To do: support `space`?
8208
8208
  file: i.options.file
8209
8209
  });
8210
- return i.stitches && at(s, "comment", function(u, o, l) {
8210
+ return i.stitches && st(s, "comment", function(u, o, l) {
8211
8211
  const d = (
8212
8212
  /** @type {Stitch} */
8213
8213
  /** @type {unknown} */
@@ -9009,7 +9009,7 @@ function ac(e, t) {
9009
9009
  return (e.index === 0 || Jt(n) || hi(n)) && // If it’s an email, the previous character should not be a slash.
9010
9010
  (!t || n !== 47);
9011
9011
  }
9012
- function ot(e) {
9012
+ function lt(e) {
9013
9013
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
9014
9014
  }
9015
9015
  sc.peek = J1;
@@ -9030,7 +9030,7 @@ function G1(e) {
9030
9030
  }
9031
9031
  function Q1(e) {
9032
9032
  const t = this.resume(), n = this.stack[this.stack.length - 1];
9033
- n.type, n.identifier = ot(
9033
+ n.type, n.identifier = lt(
9034
9034
  this.sliceSerialize(e)
9035
9035
  ).toLowerCase(), n.label = t;
9036
9036
  }
@@ -9039,7 +9039,7 @@ function K1(e) {
9039
9039
  }
9040
9040
  function X1(e) {
9041
9041
  const t = this.resume(), n = this.stack[this.stack.length - 1];
9042
- n.type, n.identifier = ot(
9042
+ n.type, n.identifier = lt(
9043
9043
  this.sliceSerialize(e)
9044
9044
  ).toLowerCase(), n.label = t;
9045
9045
  }
@@ -9438,7 +9438,7 @@ function wg(e) {
9438
9438
  }
9439
9439
  function Ig(e, t) {
9440
9440
  let n = !1;
9441
- return at(e, function(r) {
9441
+ return st(e, function(r) {
9442
9442
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
9443
9443
  return n = !0, Ki;
9444
9444
  }), !!((!e.depth || e.depth < 3) && Wa(e) && (t.options.setext || n));
@@ -10107,7 +10107,7 @@ function hb(e) {
10107
10107
  ]
10108
10108
  };
10109
10109
  }
10110
- function lt(e, t, n, r) {
10110
+ function ct(e, t, n, r) {
10111
10111
  const i = e.length;
10112
10112
  let a = 0, s;
10113
10113
  if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
@@ -10117,7 +10117,7 @@ function lt(e, t, n, r) {
10117
10117
  s = r.slice(a, a + 1e4), s.unshift(t, 0), e.splice(...s), a += 1e4, t += 1e4;
10118
10118
  }
10119
10119
  function nt(e, t) {
10120
- return e.length > 0 ? (lt(e, e.length, 0, t), e) : t;
10120
+ return e.length > 0 ? (ct(e, e.length, 0, t), e) : t;
10121
10121
  }
10122
10122
  const ku = {}.hasOwnProperty;
10123
10123
  function Tc(e) {
@@ -10149,7 +10149,7 @@ function mb(e, t) {
10149
10149
  const r = [];
10150
10150
  for (; ++n < t.length; )
10151
10151
  (t[n].add === "after" ? e : r).push(t[n]);
10152
- lt(e, 0, 0, r);
10152
+ ct(e, 0, 0, r);
10153
10153
  }
10154
10154
  const pb = {
10155
10155
  tokenize: kb,
@@ -10424,7 +10424,7 @@ function Sb(e, t) {
10424
10424
  ...l.end
10425
10425
  }, r = [], e[i][1].end.offset - e[i][1].start.offset && (r = nt(r, [["enter", e[i][1], t], ["exit", e[i][1], t]])), r = nt(r, [["enter", h, t], ["enter", o, t], ["exit", o, t], ["enter", d, t]]), r = nt(r, fi(t.parser.constructs.insideSpan.null, e.slice(i + 1, n), t)), r = nt(r, [["exit", d, t], ["enter", l, t], ["exit", l, t], ["exit", h, t]]);
10426
10426
  let p = 0;
10427
- e[n][1].end.offset - e[n][1].start.offset && (p = 2, r = nt(r, [["enter", e[n][1], t], ["exit", e[n][1], t]])), lt(e, i - 1, n - i + 3, r), n = i + r.length - p - 2;
10427
+ e[n][1].end.offset - e[n][1].start.offset && (p = 2, r = nt(r, [["enter", e[n][1], t], ["exit", e[n][1], t]])), ct(e, i - 1, n - i + 3, r), n = i + r.length - p - 2;
10428
10428
  break;
10429
10429
  }
10430
10430
  }
@@ -10671,22 +10671,22 @@ function Bb(e, t, n) {
10671
10671
  return e.exit("codeFenced"), t(I);
10672
10672
  }
10673
10673
  function M(I, v, O) {
10674
- let U = 0;
10674
+ let j = 0;
10675
10675
  return w;
10676
- function w(j) {
10677
- return I.enter("lineEnding"), I.consume(j), I.exit("lineEnding"), B;
10676
+ function w(U) {
10677
+ return I.enter("lineEnding"), I.consume(U), I.exit("lineEnding"), B;
10678
10678
  }
10679
- function B(j) {
10680
- return I.enter("codeFencedFence"), le(j) ? pe(I, $, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(j) : $(j);
10679
+ function B(U) {
10680
+ return I.enter("codeFencedFence"), le(U) ? pe(I, $, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(U) : $(U);
10681
10681
  }
10682
- function $(j) {
10683
- return j === u ? (I.enter("codeFencedFenceSequence"), W(j)) : O(j);
10682
+ function $(U) {
10683
+ return U === u ? (I.enter("codeFencedFenceSequence"), W(U)) : O(U);
10684
10684
  }
10685
- function W(j) {
10686
- return j === u ? (U++, I.consume(j), W) : U >= s ? (I.exit("codeFencedFenceSequence"), le(j) ? pe(I, Y, "whitespace")(j) : Y(j)) : O(j);
10685
+ function W(U) {
10686
+ return U === u ? (j++, I.consume(U), W) : j >= s ? (I.exit("codeFencedFenceSequence"), le(U) ? pe(I, Y, "whitespace")(U) : Y(U)) : O(U);
10687
10687
  }
10688
- function Y(j) {
10689
- return j === null || re(j) ? (I.exit("codeFencedFence"), v(j)) : O(j);
10688
+ function Y(U) {
10689
+ return U === null || re(U) ? (I.exit("codeFencedFence"), v(U)) : O(U);
10690
10690
  }
10691
10691
  }
10692
10692
  }
@@ -10957,7 +10957,7 @@ function Oc(e) {
10957
10957
  }, u = d.slice(i, n), u.unshift(r), d.splice(i, n - i + 1, u));
10958
10958
  }
10959
10959
  }
10960
- return lt(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !l;
10960
+ return ct(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !l;
10961
10961
  }
10962
10962
  function Yb(e, t) {
10963
10963
  const n = e.get(t)[1], r = e.get(t)[2];
@@ -11134,7 +11134,7 @@ function eE(e, t, n) {
11134
11134
  )(m);
11135
11135
  }
11136
11136
  function u(m) {
11137
- return i = ot(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), o) : n(m);
11137
+ return i = lt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), o) : n(m);
11138
11138
  }
11139
11139
  function o(m) {
11140
11140
  return Ae(m) ? Jn(e, l)(m) : l(m);
@@ -11208,7 +11208,7 @@ function aE(e, t) {
11208
11208
  end: e[n][1].end,
11209
11209
  contentType: "text"
11210
11210
  };
11211
- lt(e, r, n - r + 1, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]);
11211
+ ct(e, r, n - r + 1, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]);
11212
11212
  }
11213
11213
  return e;
11214
11214
  }
@@ -11301,12 +11301,12 @@ function cE(e, t, n) {
11301
11301
  return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), o = N, v) : le(N) ? (e.consume(N), I) : O(N);
11302
11302
  }
11303
11303
  function v(N) {
11304
- return N === o ? (e.consume(N), o = null, U) : N === null || re(N) ? n(N) : (e.consume(N), v);
11304
+ return N === o ? (e.consume(N), o = null, j) : N === null || re(N) ? n(N) : (e.consume(N), v);
11305
11305
  }
11306
11306
  function O(N) {
11307
11307
  return N === null || N === 34 || N === 39 || N === 47 || N === 60 || N === 61 || N === 62 || N === 96 || Ae(N) ? M(N) : (e.consume(N), O);
11308
11308
  }
11309
- function U(N) {
11309
+ function j(N) {
11310
11310
  return N === 47 || N === 62 || le(N) ? y(N) : n(N);
11311
11311
  }
11312
11312
  function w(N) {
@@ -11322,9 +11322,9 @@ function cE(e, t, n) {
11322
11322
  return e.check(oa, Y, Ne)(N);
11323
11323
  }
11324
11324
  function Y(N) {
11325
- return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), j;
11325
+ return e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), U;
11326
11326
  }
11327
- function j(N) {
11327
+ function U(N) {
11328
11328
  return N === null || re(N) ? W(N) : (e.enter("htmlFlowData"), $(N));
11329
11329
  }
11330
11330
  function G(N) {
@@ -11420,28 +11420,28 @@ function fE(e, t, n) {
11420
11420
  return re(T) ? (s = v, X(T)) : le(T) ? (e.consume(T), v) : G(T);
11421
11421
  }
11422
11422
  function O(T) {
11423
- return T === 45 || Ue(T) ? (e.consume(T), O) : T === 47 || T === 62 || Ae(T) ? U(T) : n(T);
11423
+ return T === 45 || Ue(T) ? (e.consume(T), O) : T === 47 || T === 62 || Ae(T) ? j(T) : n(T);
11424
11424
  }
11425
- function U(T) {
11426
- return T === 47 ? (e.consume(T), G) : T === 58 || T === 95 || Ve(T) ? (e.consume(T), w) : re(T) ? (s = U, X(T)) : le(T) ? (e.consume(T), U) : G(T);
11425
+ function j(T) {
11426
+ return T === 47 ? (e.consume(T), G) : T === 58 || T === 95 || Ve(T) ? (e.consume(T), w) : re(T) ? (s = j, X(T)) : le(T) ? (e.consume(T), j) : G(T);
11427
11427
  }
11428
11428
  function w(T) {
11429
11429
  return T === 45 || T === 46 || T === 58 || T === 95 || Ue(T) ? (e.consume(T), w) : B(T);
11430
11430
  }
11431
11431
  function B(T) {
11432
- return T === 61 ? (e.consume(T), $) : re(T) ? (s = B, X(T)) : le(T) ? (e.consume(T), B) : U(T);
11432
+ return T === 61 ? (e.consume(T), $) : re(T) ? (s = B, X(T)) : le(T) ? (e.consume(T), B) : j(T);
11433
11433
  }
11434
11434
  function $(T) {
11435
11435
  return T === null || T === 60 || T === 61 || T === 62 || T === 96 ? n(T) : T === 34 || T === 39 ? (e.consume(T), i = T, W) : re(T) ? (s = $, X(T)) : le(T) ? (e.consume(T), $) : (e.consume(T), Y);
11436
11436
  }
11437
11437
  function W(T) {
11438
- return T === i ? (e.consume(T), i = void 0, j) : T === null ? n(T) : re(T) ? (s = W, X(T)) : (e.consume(T), W);
11438
+ return T === i ? (e.consume(T), i = void 0, U) : T === null ? n(T) : re(T) ? (s = W, X(T)) : (e.consume(T), W);
11439
11439
  }
11440
11440
  function Y(T) {
11441
- return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 96 ? n(T) : T === 47 || T === 62 || Ae(T) ? U(T) : (e.consume(T), Y);
11441
+ return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 96 ? n(T) : T === 47 || T === 62 || Ae(T) ? j(T) : (e.consume(T), Y);
11442
11442
  }
11443
- function j(T) {
11444
- return T === 47 || T === 62 || Ae(T) ? U(T) : n(T);
11443
+ function U(T) {
11444
+ return T === 47 || T === 62 || Ae(T) ? j(T) : n(T);
11445
11445
  }
11446
11446
  function G(T) {
11447
11447
  return T === 62 ? (e.consume(T), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(T);
@@ -11478,7 +11478,7 @@ function bE(e) {
11478
11478
  r.type = "data", t += i;
11479
11479
  }
11480
11480
  }
11481
- return e.length !== n.length && lt(e, 0, e.length, n), e;
11481
+ return e.length !== n.length && ct(e, 0, e.length, n), e;
11482
11482
  }
11483
11483
  function EE(e, t) {
11484
11484
  let n = e.length, r = 0, i, a, s;
@@ -11520,7 +11520,7 @@ function EE(e, t) {
11520
11520
  ...e[a - 2][1].start
11521
11521
  }
11522
11522
  };
11523
- return s = [["enter", u, t], ["enter", o, t]], s = nt(s, e.slice(i + 1, i + r + 3)), s = nt(s, [["enter", l, t]]), s = nt(s, fi(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, a - 3), t)), s = nt(s, [["exit", l, t], e[a - 2], e[a - 1], ["exit", o, t]]), s = nt(s, e.slice(a + 1)), s = nt(s, [["exit", u, t]]), lt(e, i, e.length, s), e;
11523
+ return s = [["enter", u, t], ["enter", o, t]], s = nt(s, e.slice(i + 1, i + r + 3)), s = nt(s, [["enter", l, t]]), s = nt(s, fi(t.parser.constructs.insideSpan.null, e.slice(i + r + 4, a - 3), t)), s = nt(s, [["exit", l, t], e[a - 2], e[a - 1], ["exit", o, t]]), s = nt(s, e.slice(a + 1)), s = nt(s, [["exit", u, t]]), ct(e, i, e.length, s), e;
11524
11524
  }
11525
11525
  function TE(e, t, n) {
11526
11526
  const r = this, i = r._labelStarts;
@@ -11532,7 +11532,7 @@ function TE(e, t, n) {
11532
11532
  }
11533
11533
  return u;
11534
11534
  function u(p) {
11535
- return a ? a._inactive ? h(p) : (s = r.parser.defined.includes(ot(r.sliceSerialize({
11535
+ return a ? a._inactive ? h(p) : (s = r.parser.defined.includes(lt(r.sliceSerialize({
11536
11536
  start: a.end,
11537
11537
  end: r.now()
11538
11538
  }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), o) : n(p);
@@ -11584,7 +11584,7 @@ function kE(e, t, n) {
11584
11584
  return vc.call(r, e, a, s, "reference", "referenceMarker", "referenceString")(u);
11585
11585
  }
11586
11586
  function a(u) {
11587
- return r.parser.defined.includes(ot(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(u) : n(u);
11587
+ return r.parser.defined.includes(lt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(u) : n(u);
11588
11588
  }
11589
11589
  function s(u) {
11590
11590
  return n(u);
@@ -11927,7 +11927,7 @@ function jE(e, t, n) {
11927
11927
  function u(o) {
11928
11928
  if (!s || !s._balanced)
11929
11929
  return n(o);
11930
- const l = ot(r.sliceSerialize({
11930
+ const l = lt(r.sliceSerialize({
11931
11931
  start: s.end,
11932
11932
  end: r.now()
11933
11933
  }));
@@ -12006,7 +12006,7 @@ function zE(e, t, n) {
12006
12006
  if (h === 93) {
12007
12007
  e.exit("chunkString");
12008
12008
  const p = e.exit("gfmFootnoteCallString");
12009
- return i.includes(ot(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(h), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(h);
12009
+ return i.includes(lt(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(h), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(h);
12010
12010
  }
12011
12011
  return Ae(h) || (s = !0), a++, e.consume(h), h === 92 ? d : l;
12012
12012
  }
@@ -12036,7 +12036,7 @@ function $E(e, t, n) {
12036
12036
  if (g === 93) {
12037
12037
  e.exit("chunkString");
12038
12038
  const k = e.exit("gfmFootnoteDefinitionLabelString");
12039
- return a = ot(r.sliceSerialize(k)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
12039
+ return a = lt(r.sliceSerialize(k)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
12040
12040
  }
12041
12041
  return Ae(g) || (u = !0), s++, e.consume(g), g === 92 ? h : d;
12042
12042
  }
@@ -12100,7 +12100,7 @@ function WE(e) {
12100
12100
  start: Object.assign({}, s[l][1].end),
12101
12101
  end: Object.assign({}, s[o][1].start)
12102
12102
  }, p = [["enter", d, u], ["enter", s[l][1], u], ["exit", s[l][1], u], ["enter", h, u]], m = u.parser.constructs.insideSpan.null;
12103
- m && lt(p, p.length, 0, fi(m, s.slice(l + 1, o), u)), lt(p, p.length, 0, [["exit", h, u], ["enter", s[o][1], u], ["exit", s[o][1], u], ["exit", d, u]]), lt(s, l - 1, o - l + 3, p), o = l + p.length - 2;
12103
+ m && ct(p, p.length, 0, fi(m, s.slice(l + 1, o), u)), ct(p, p.length, 0, [["exit", h, u], ["enter", s[o][1], u], ["exit", s[o][1], u], ["exit", d, u]]), ct(s, l - 1, o - l + 3, p), o = l + p.length - 2;
12104
12104
  break;
12105
12105
  }
12106
12106
  }
@@ -12296,9 +12296,9 @@ function ZE(e, t, n) {
12296
12296
  return w === 124 ? (e.enter("tableCellDivider"), e.consume(w), e.exit("tableCellDivider"), v) : w === null || re(w) ? (e.exit("tableRow"), t(w)) : le(w) ? pe(e, v, "whitespace")(w) : (e.enter("data"), O(w));
12297
12297
  }
12298
12298
  function O(w) {
12299
- return w === null || w === 124 || Ae(w) ? (e.exit("data"), v(w)) : (e.consume(w), w === 92 ? U : O);
12299
+ return w === null || w === 124 || Ae(w) ? (e.exit("data"), v(w)) : (e.consume(w), w === 92 ? j : O);
12300
12300
  }
12301
- function U(w) {
12301
+ function j(w) {
12302
12302
  return w === 92 || w === 124 ? (e.consume(w), O) : O(w);
12303
12303
  }
12304
12304
  }
@@ -12531,14 +12531,14 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12531
12531
  }, _T = (e) => {
12532
12532
  let t = new Uint8Array(e.length), n = kT(e, t), r = CT(e, t);
12533
12533
  return { text: e, regions: t, openFence: n, openSpan: r, mathMask: null, linkUrlMask: null, htmlTagMask: null };
12534
- }, la = null, Br = null, st = (e) => {
12534
+ }, la = null, Br = null, ut = (e) => {
12535
12535
  if (Br !== null && e === la) return Br;
12536
12536
  let t = _T(e);
12537
12537
  return la = e, Br = t, t;
12538
12538
  }, ST = () => {
12539
12539
  la = null, Br = null;
12540
12540
  }, NT = (e, t) => t >= e.regions.length ? e.openFence !== null || e.openSpan !== null : t < 0 ? !1 : e.regions[t] !== Ce.PROSE, wT = (e, t) => e.regions[t] === Ce.CODE_SPAN, Ja = (e, t) => {
12541
- let n = st(e), r = t + t, i = 0;
12541
+ let n = ut(e), r = t + t, i = 0;
12542
12542
  for (let a = e.indexOf(r); a !== -1; a = e.indexOf(r, a)) n.regions[a] === Ce.PROSE ? (i += 1, a += 2) : a += 1;
12543
12543
  return i;
12544
12544
  }, es = new Uint8Array(0), IT = (e) => e === "inlineLatex" || e === "blockLatex", LT = (e, t) => t === "[" && e === "none" ? "blockLatex" : t === "]" && e === "blockLatex" ? "none" : t === "(" && e === "none" ? "inlineLatex" : t === ")" && e === "inlineLatex" ? "none" : null, RT = (e, t) => t ? e === "blockDollar" ? "none" : "blockDollar" : e === "blockDollar" ? e : e === "inlineDollar" ? "none" : "inlineDollar", OT = (e) => e.includes("$") || e.includes("\\(") || e.includes("\\["), DT = (e, t, n) => {
@@ -12595,7 +12595,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12595
12595
  }
12596
12596
  }
12597
12597
  return i;
12598
- }, Fc = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.htmlTagMask === null && (e.htmlTagMask = e.text.includes("<") ? BT(e) : es), e.htmlTagMask[t] === 1), Ye = (e, t) => NT(st(e), t), Mt = (e, t) => wT(st(e), t), FT = /^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm, HT = (e) => !e || typeof e != "string" || !e.includes(">") ? e : e.replace(FT, (t, n, r, i) => Ye(e, i) ? t : `${n}\\>${r}`), Bt = (e, { delimiter: t, markerLength: n, regex: r }) => {
12598
+ }, Fc = (e, t) => t < 0 || t >= e.text.length ? !1 : (e.htmlTagMask === null && (e.htmlTagMask = e.text.includes("<") ? BT(e) : es), e.htmlTagMask[t] === 1), Ye = (e, t) => NT(ut(e), t), Mt = (e, t) => wT(ut(e), t), FT = /^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm, HT = (e) => !e || typeof e != "string" || !e.includes(">") ? e : e.replace(FT, (t, n, r, i) => Ye(e, i) ? t : `${n}\\>${r}`), Bt = (e, { delimiter: t, markerLength: n, regex: r }) => {
12599
12599
  let i = e.lastIndexOf(t, e.length - 2), a = i === -1 ? e.length - 1 : i;
12600
12600
  return e.slice(Math.max(0, a - n + 1)).match(r);
12601
12601
  }, jT = { delimiter: "*", markerLength: 2, regex: /(\*\*)([^*]*\*?)$/ }, UT = { delimiter: "_", markerLength: 2, regex: /(__)([^_]*?)$/ }, zT = { delimiter: "*", markerLength: 3, regex: /(\*\*\*)([^*]*?)$/ }, $T = { delimiter: "*", markerLength: 1, regex: /(\*)([^*]*?)$/ }, qT = { delimiter: "_", markerLength: 1, regex: /(_)([^_]*?)$/ }, VT = { delimiter: "~", markerLength: 2, regex: /(~~)([^~]*?)$/ }, YT = { delimiter: "_", markerLength: 2, regex: /(__)([^_]+)_$/ }, WT = { delimiter: "~", markerLength: 2, regex: /(~~)([^~]+)~$/ }, sn = /^[\s_~*`]*$/, Hc = /^[\s]*[-*+][\s]+$/, GT = /[\p{L}\p{N}_]/u, QT = /^\*{4,}$/, dt = (e) => {
@@ -12612,7 +12612,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12612
12612
  for (let r = t + 1; r < e.length; r += 1) if (e[r] === "[") n += 1;
12613
12613
  else if (e[r] === "]" && (n -= 1, n === 0)) return r;
12614
12614
  return -1;
12615
- }, XT = (e, t) => Cn(st(e), t), mi = (e, t, n) => {
12615
+ }, XT = (e, t) => Cn(ut(e), t), mi = (e, t, n) => {
12616
12616
  let r = 0;
12617
12617
  for (let o = t - 1; o >= 0; o -= 1) if (e[o] === `
12618
12618
  `) {
@@ -12639,7 +12639,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12639
12639
  let i = JT(e, t), a = !!t && !Yr(t), s = !!e && !Yr(e);
12640
12640
  return i && n % 2 === 0 && !r ? { count: !1 } : s && n % 2 === 1 || a ? { count: !0, inWordAsteriskChain: i } : { count: !1 };
12641
12641
  }, Uc = (e) => {
12642
- let t = st(e), n = 0, r = !1, i = e.length;
12642
+ let t = ut(e), n = 0, r = !1, i = e.length;
12643
12643
  for (let a = 0; a < i; a += 1) {
12644
12644
  if (e[a] !== "*" || t.regions[a] !== Ce.PROSE) {
12645
12645
  dt(e[a]) || (r = !1);
@@ -12652,7 +12652,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12652
12652
  }
12653
12653
  return n;
12654
12654
  }, tx = (e, t, n, r) => !!(n === "\\" || Cn(e, t) || ts(e, t) || Fc(e, t) || n === "_" || r === "_" || n && r && dt(n) && dt(r)), nx = (e) => {
12655
- let t = st(e), n = 0, r = e.length;
12655
+ let t = ut(e), n = 0, r = e.length;
12656
12656
  for (let i = 0; i < r; i += 1) {
12657
12657
  if (e[i] !== "_" || t.regions[i] !== Ce.PROSE) continue;
12658
12658
  let a = i > 0 ? e[i - 1] : "", s = i < r - 1 ? e[i + 1] : "";
@@ -12660,7 +12660,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12660
12660
  }
12661
12661
  return n;
12662
12662
  }, rx = (e) => {
12663
- let t = st(e), n = 0, r = 0;
12663
+ let t = ut(e), n = 0, r = 0;
12664
12664
  for (let i = 0; i < e.length; i += 1) e[i] === "*" && t.regions[i] === Ce.PROSE ? r += 1 : (r >= 3 && (n += Math.floor(r / 3)), r = 0);
12665
12665
  return r >= 3 && (n += Math.floor(r / 3)), n;
12666
12666
  }, ns = (e) => Ja(e, "*"), Lu = (e) => e === "" || e === " " || e === " " || e === `
@@ -12680,7 +12680,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12680
12680
  let o = a > 0 ? i[a - 1] : "", l = s ? "\\" : o, d = n < i.length ? i[n] : "";
12681
12681
  return dt(l) && dt(d) || ix(i, a, l, d, r) || Cn(e, a) || ts(e, a) || Fc(e, a) ? !1 : Math.floor(u / 2) % 2 === 1;
12682
12682
  }, Ru = (e) => {
12683
- let t = st(e), n = e.length, r = { lineEnd: -1, result: !1 }, i = !1, a = 0;
12683
+ let t = ut(e), n = e.length, r = { lineEnd: -1, result: !1 }, i = !1, a = 0;
12684
12684
  for (; a < n; ) {
12685
12685
  if (e[a] !== "_" || t.regions[a] !== Ce.PROSE) {
12686
12686
  a += 1;
@@ -12724,7 +12724,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12724
12724
  let { text: n } = e;
12725
12725
  return n[t] === "*" && e.regions[t] === Ce.PROSE && n[t - 1] !== "*" && n[t + 1] !== "*" && n[t - 1] !== "\\" && !Cn(e, t);
12726
12726
  }, dx = (e) => {
12727
- let t = st(e);
12727
+ let t = ut(e);
12728
12728
  for (let n = e.indexOf("*"); n !== -1; n = e.indexOf("*", n + 1)) {
12729
12729
  if (!cx(t, n)) continue;
12730
12730
  let r = n > 0 ? e[n - 1] : "", i = n < e.length - 1 ? e[n + 1] : "", a = !r || Yr(r), s = !i || Yr(i);
@@ -12738,7 +12738,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12738
12738
  let n = e.substring(t + 1);
12739
12739
  return !n || sn.test(n) ? e : Uc(e) % 2 === 1 ? `${e}*` : e;
12740
12740
  }, zc = (e) => {
12741
- let t = st(e);
12741
+ let t = ut(e);
12742
12742
  for (let n = e.indexOf("_"); n !== -1; n = e.indexOf("_", n + 1)) if (t.regions[n] === Ce.PROSE && e[n - 1] !== "_" && e[n + 1] !== "_" && e[n - 1] !== "\\" && !Cn(t, n) && !ts(t, n)) {
12743
12743
  let r = n > 0 ? e[n - 1] : "", i = n < e.length - 1 ? e[n + 1] : "";
12744
12744
  if (r && i && dt(r) && dt(i)) continue;
@@ -12790,7 +12790,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12790
12790
  for (let r = t.index; r < e.length; r += 1) if (!(e[r] !== "<" || !yx(e, r)) && !Ye(e, r) && !(n && XT(e, r))) return e.substring(0, r).trimEnd();
12791
12791
  return e;
12792
12792
  }, Cx = (e) => {
12793
- let t = st(e);
12793
+ let t = ut(e);
12794
12794
  if (t.openFence) return e;
12795
12795
  let n = t.openSpan;
12796
12796
  if (!n) return e;
@@ -12800,7 +12800,7 @@ var uT = Object.defineProperty, oT = Object.defineProperties, lT = Object.getOwn
12800
12800
  for (; a >= 0 && e[a] === "`"; ) i += 1, a -= 1;
12801
12801
  return i >= n.runLength ? e : e + "`".repeat(n.runLength - i);
12802
12802
  }, _x = (e) => Ja(e, "$"), Sx = (e) => {
12803
- let t = st(e), n = 0;
12803
+ let t = ut(e), n = 0;
12804
12804
  for (let r = 0; r < e.length; r += 1) {
12805
12805
  if (e[r] === "\\") {
12806
12806
  r += 1;
@@ -13269,9 +13269,9 @@ const Wx = (e, t) => {
13269
13269
  "bottom-left",
13270
13270
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
13271
13271
  "left-bottom"
13272
- ], M = () => [...D(), K, Q], I = () => ["auto", "hidden", "clip", "visible", "scroll"], v = () => ["auto", "contain", "none"], O = () => [K, Q, o], U = () => [wt, "full", "auto", ...O()], w = () => [bt, "none", "subgrid", K, Q], B = () => ["auto", {
13272
+ ], M = () => [...D(), K, Q], I = () => ["auto", "hidden", "clip", "visible", "scroll"], v = () => ["auto", "contain", "none"], O = () => [K, Q, o], j = () => [wt, "full", "auto", ...O()], w = () => [bt, "none", "subgrid", K, Q], B = () => ["auto", {
13273
13273
  span: ["full", bt, K, Q]
13274
- }, bt, K, Q], $ = () => [bt, "auto", K, Q], W = () => ["auto", "min", "max", "fr", K, Q], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...O()], X = () => [wt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], ae = () => [u, wt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...O()], fe = () => [wt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...O()], T = () => [e, K, Q], Ie = () => [...D(), Hu, Fu, {
13274
+ }, bt, K, Q], $ = () => [bt, "auto", K, Q], W = () => ["auto", "min", "max", "fr", K, Q], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...O()], X = () => [wt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...O()], ae = () => [u, wt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...O()], fe = () => [wt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...O()], T = () => [e, K, Q], Ie = () => [...D(), Hu, Fu, {
13275
13275
  position: [K, Q]
13276
13276
  }], Ne = () => ["no-repeat", {
13277
13277
  repeat: ["", "x", "y", "space", "round"]
@@ -13482,21 +13482,21 @@ const Wx = (e, t) => {
13482
13482
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13483
13483
  */
13484
13484
  inset: [{
13485
- inset: U()
13485
+ inset: j()
13486
13486
  }],
13487
13487
  /**
13488
13488
  * Inset Inline
13489
13489
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13490
13490
  */
13491
13491
  "inset-x": [{
13492
- "inset-x": U()
13492
+ "inset-x": j()
13493
13493
  }],
13494
13494
  /**
13495
13495
  * Inset Block
13496
13496
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13497
13497
  */
13498
13498
  "inset-y": [{
13499
- "inset-y": U()
13499
+ "inset-y": j()
13500
13500
  }],
13501
13501
  /**
13502
13502
  * Inset Inline Start
@@ -13504,12 +13504,12 @@ const Wx = (e, t) => {
13504
13504
  * @todo class group will be renamed to `inset-s` in next major release
13505
13505
  */
13506
13506
  start: [{
13507
- "inset-s": U(),
13507
+ "inset-s": j(),
13508
13508
  /**
13509
13509
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
13510
13510
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
13511
13511
  */
13512
- start: U()
13512
+ start: j()
13513
13513
  }],
13514
13514
  /**
13515
13515
  * Inset Inline End
@@ -13517,54 +13517,54 @@ const Wx = (e, t) => {
13517
13517
  * @todo class group will be renamed to `inset-e` in next major release
13518
13518
  */
13519
13519
  end: [{
13520
- "inset-e": U(),
13520
+ "inset-e": j(),
13521
13521
  /**
13522
13522
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
13523
13523
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
13524
13524
  */
13525
- end: U()
13525
+ end: j()
13526
13526
  }],
13527
13527
  /**
13528
13528
  * Inset Block Start
13529
13529
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13530
13530
  */
13531
13531
  "inset-bs": [{
13532
- "inset-bs": U()
13532
+ "inset-bs": j()
13533
13533
  }],
13534
13534
  /**
13535
13535
  * Inset Block End
13536
13536
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13537
13537
  */
13538
13538
  "inset-be": [{
13539
- "inset-be": U()
13539
+ "inset-be": j()
13540
13540
  }],
13541
13541
  /**
13542
13542
  * Top
13543
13543
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13544
13544
  */
13545
13545
  top: [{
13546
- top: U()
13546
+ top: j()
13547
13547
  }],
13548
13548
  /**
13549
13549
  * Right
13550
13550
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13551
13551
  */
13552
13552
  right: [{
13553
- right: U()
13553
+ right: j()
13554
13554
  }],
13555
13555
  /**
13556
13556
  * Bottom
13557
13557
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13558
13558
  */
13559
13559
  bottom: [{
13560
- bottom: U()
13560
+ bottom: j()
13561
13561
  }],
13562
13562
  /**
13563
13563
  * Left
13564
13564
  * @see https://tailwindcss.com/docs/top-right-bottom-left
13565
13565
  */
13566
13566
  left: [{
13567
- left: U()
13567
+ left: j()
13568
13568
  }],
13569
13569
  /**
13570
13570
  * Visibility
@@ -13740,14 +13740,14 @@ const Wx = (e, t) => {
13740
13740
  * @see https://tailwindcss.com/docs/justify-items
13741
13741
  */
13742
13742
  "justify-items": [{
13743
- "justify-items": [...j(), "normal"]
13743
+ "justify-items": [...U(), "normal"]
13744
13744
  }],
13745
13745
  /**
13746
13746
  * Justify Self
13747
13747
  * @see https://tailwindcss.com/docs/justify-self
13748
13748
  */
13749
13749
  "justify-self": [{
13750
- "justify-self": ["auto", ...j()]
13750
+ "justify-self": ["auto", ...U()]
13751
13751
  }],
13752
13752
  /**
13753
13753
  * Align Content
@@ -13761,7 +13761,7 @@ const Wx = (e, t) => {
13761
13761
  * @see https://tailwindcss.com/docs/align-items
13762
13762
  */
13763
13763
  "align-items": [{
13764
- items: [...j(), {
13764
+ items: [...U(), {
13765
13765
  baseline: ["", "last"]
13766
13766
  }]
13767
13767
  }],
@@ -13770,7 +13770,7 @@ const Wx = (e, t) => {
13770
13770
  * @see https://tailwindcss.com/docs/align-self
13771
13771
  */
13772
13772
  "align-self": [{
13773
- self: ["auto", ...j(), {
13773
+ self: ["auto", ...U(), {
13774
13774
  baseline: ["", "last"]
13775
13775
  }]
13776
13776
  }],
@@ -13786,14 +13786,14 @@ const Wx = (e, t) => {
13786
13786
  * @see https://tailwindcss.com/docs/place-items
13787
13787
  */
13788
13788
  "place-items": [{
13789
- "place-items": [...j(), "baseline"]
13789
+ "place-items": [...U(), "baseline"]
13790
13790
  }],
13791
13791
  /**
13792
13792
  * Place Self
13793
13793
  * @see https://tailwindcss.com/docs/place-self
13794
13794
  */
13795
13795
  "place-self": [{
13796
- "place-self": ["auto", ...j()]
13796
+ "place-self": ["auto", ...U()]
13797
13797
  }],
13798
13798
  // Spacing
13799
13799
  /**
@@ -15964,15 +15964,15 @@ function z2() {
15964
15964
  A = A || {};
15965
15965
  var S = 1, y = 1;
15966
15966
  function D(Y) {
15967
- var j = Y.match(t);
15968
- j && (S += j.length);
15967
+ var U = Y.match(t);
15968
+ U && (S += U.length);
15969
15969
  var G = Y.lastIndexOf(o);
15970
15970
  y = ~G ? Y.length - G : y + Y.length;
15971
15971
  }
15972
15972
  function M() {
15973
15973
  var Y = { line: S, column: y };
15974
- return function(j) {
15975
- return j.position = new I(Y), U(), j;
15974
+ return function(U) {
15975
+ return U.position = new I(Y), j(), U;
15976
15976
  };
15977
15977
  }
15978
15978
  function I(Y) {
@@ -15980,48 +15980,48 @@ function z2() {
15980
15980
  }
15981
15981
  I.prototype.content = C;
15982
15982
  function v(Y) {
15983
- var j = new Error(
15983
+ var U = new Error(
15984
15984
  A.source + ":" + S + ":" + y + ": " + Y
15985
15985
  );
15986
- if (j.reason = Y, j.filename = A.source, j.line = S, j.column = y, j.source = C, !A.silent) throw j;
15986
+ if (U.reason = Y, U.filename = A.source, U.line = S, U.column = y, U.source = C, !A.silent) throw U;
15987
15987
  }
15988
15988
  function O(Y) {
15989
- var j = Y.exec(C);
15990
- if (j) {
15991
- var G = j[0];
15992
- return D(G), C = C.slice(G.length), j;
15989
+ var U = Y.exec(C);
15990
+ if (U) {
15991
+ var G = U[0];
15992
+ return D(G), C = C.slice(G.length), U;
15993
15993
  }
15994
15994
  }
15995
- function U() {
15995
+ function j() {
15996
15996
  O(n);
15997
15997
  }
15998
15998
  function w(Y) {
15999
- var j;
16000
- for (Y = Y || []; j = B(); )
16001
- j !== !1 && Y.push(j);
15999
+ var U;
16000
+ for (Y = Y || []; U = B(); )
16001
+ U !== !1 && Y.push(U);
16002
16002
  return Y;
16003
16003
  }
16004
16004
  function B() {
16005
16005
  var Y = M();
16006
16006
  if (!(l != C.charAt(0) || d != C.charAt(1))) {
16007
- for (var j = 2; h != C.charAt(j) && (d != C.charAt(j) || l != C.charAt(j + 1)); )
16008
- ++j;
16009
- if (j += 2, h === C.charAt(j - 1))
16007
+ for (var U = 2; h != C.charAt(U) && (d != C.charAt(U) || l != C.charAt(U + 1)); )
16008
+ ++U;
16009
+ if (U += 2, h === C.charAt(U - 1))
16010
16010
  return v("End of comment missing");
16011
- var G = C.slice(2, j - 2);
16012
- return y += 2, D(G), C = C.slice(j), y += 2, Y({
16011
+ var G = C.slice(2, U - 2);
16012
+ return y += 2, D(G), C = C.slice(U), y += 2, Y({
16013
16013
  type: p,
16014
16014
  comment: G
16015
16015
  });
16016
16016
  }
16017
16017
  }
16018
16018
  function $() {
16019
- var Y = M(), j = O(r);
16020
- if (j) {
16019
+ var Y = M(), U = O(r);
16020
+ if (U) {
16021
16021
  if (B(), !O(i)) return v("property missing ':'");
16022
16022
  var G = O(a), X = Y({
16023
16023
  type: m,
16024
- property: k(j[0].replace(e, h)),
16024
+ property: k(U[0].replace(e, h)),
16025
16025
  value: G ? k(G[0].replace(e, h)) : h
16026
16026
  });
16027
16027
  return O(s), X;
@@ -16030,11 +16030,11 @@ function z2() {
16030
16030
  function W() {
16031
16031
  var Y = [];
16032
16032
  w(Y);
16033
- for (var j; j = $(); )
16034
- j !== !1 && (Y.push(j), w(Y));
16033
+ for (var U; U = $(); )
16034
+ U !== !1 && (Y.push(U), w(Y));
16035
16035
  return Y;
16036
16036
  }
16037
- return U(), W();
16037
+ return j(), W();
16038
16038
  }
16039
16039
  function k(C) {
16040
16040
  return C ? C.replace(u, h) : h;
@@ -16627,14 +16627,14 @@ function bk(e) {
16627
16627
  )
16628
16628
  return;
16629
16629
  const v = t.events.length;
16630
- let O = v, U, w;
16630
+ let O = v, j, w;
16631
16631
  for (; O--; )
16632
16632
  if (t.events[O][0] === "exit" && t.events[O][1].type === "chunkFlow") {
16633
- if (U) {
16633
+ if (j) {
16634
16634
  w = t.events[O][1].end;
16635
16635
  break;
16636
16636
  }
16637
- U = !0;
16637
+ j = !0;
16638
16638
  }
16639
16639
  for (A(r), I = v; I < t.events.length; )
16640
16640
  t.events[I][1].end = {
@@ -16890,14 +16890,14 @@ function Pk(e, t, n) {
16890
16890
  _index: $,
16891
16891
  line: W,
16892
16892
  column: Y,
16893
- offset: j
16893
+ offset: U
16894
16894
  } = r;
16895
16895
  return {
16896
16896
  _bufferIndex: B,
16897
16897
  _index: $,
16898
16898
  line: W,
16899
16899
  column: Y,
16900
- offset: j
16900
+ offset: U
16901
16901
  };
16902
16902
  }
16903
16903
  function k(B) {
@@ -16939,7 +16939,7 @@ function Pk(e, t, n) {
16939
16939
  }
16940
16940
  function v(B, $) {
16941
16941
  return W;
16942
- function W(Y, j, G) {
16942
+ function W(Y, U, G) {
16943
16943
  let X, ae, fe, T;
16944
16944
  return Array.isArray(Y) ? (
16945
16945
  /* c8 ignore next 1 */
@@ -16969,7 +16969,7 @@ function Pk(e, t, n) {
16969
16969
  function N(te) {
16970
16970
  return Le;
16971
16971
  function Le(Pe) {
16972
- return T = U(), fe = te, te.partial || (l.currentConstruct = te), te.name && l.parser.constructs.disable.null.includes(te.name) ? be() : te.tokenize.call(
16972
+ return T = j(), fe = te, te.partial || (l.currentConstruct = te), te.name && l.parser.constructs.disable.null.includes(te.name) ? be() : te.tokenize.call(
16973
16973
  // If we do have fields, create an object w/ `context` as its
16974
16974
  // prototype.
16975
16975
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -16981,7 +16981,7 @@ function Pk(e, t, n) {
16981
16981
  }
16982
16982
  }
16983
16983
  function ge(te) {
16984
- return B(fe, T), j;
16984
+ return B(fe, T), U;
16985
16985
  }
16986
16986
  function be(te) {
16987
16987
  return T.restore(), ++ae < X.length ? N(X[ae]) : G;
@@ -16989,16 +16989,16 @@ function Pk(e, t, n) {
16989
16989
  }
16990
16990
  }
16991
16991
  function O(B, $) {
16992
- B.resolveAll && !a.includes(B) && a.push(B), B.resolve && lt(l.events, $, l.events.length - $, B.resolve(l.events.slice($), l)), B.resolveTo && (l.events = B.resolveTo(l.events, l));
16992
+ B.resolveAll && !a.includes(B) && a.push(B), B.resolve && ct(l.events, $, l.events.length - $, B.resolve(l.events.slice($), l)), B.resolveTo && (l.events = B.resolveTo(l.events, l));
16993
16993
  }
16994
- function U() {
16995
- const B = g(), $ = l.previous, W = l.currentConstruct, Y = l.events.length, j = Array.from(u);
16994
+ function j() {
16995
+ const B = g(), $ = l.previous, W = l.currentConstruct, Y = l.events.length, U = Array.from(u);
16996
16996
  return {
16997
16997
  from: Y,
16998
16998
  restore: G
16999
16999
  };
17000
17000
  function G() {
17001
- r = B, l.previous = $, l.currentConstruct = W, l.events.length = Y, u = j, w();
17001
+ r = B, l.previous = $, l.currentConstruct = W, l.events.length = Y, u = U, w();
17002
17002
  }
17003
17003
  }
17004
17004
  function w() {
@@ -17212,7 +17212,7 @@ function zk(e) {
17212
17212
  hardBreakTrailing: l(W),
17213
17213
  htmlFlow: l(Y),
17214
17214
  htmlFlowData: B,
17215
- htmlText: l(j),
17215
+ htmlText: l(U),
17216
17216
  htmlTextData: B,
17217
17217
  image: l(ae),
17218
17218
  label: T,
@@ -17227,7 +17227,7 @@ function zk(e) {
17227
17227
  resourceDestinationString: Ie,
17228
17228
  resourceTitleString: Ne,
17229
17229
  resource: N,
17230
- setextHeading: l(U),
17230
+ setextHeading: l(j),
17231
17231
  setextHeadingLineSequence: O,
17232
17232
  setextHeadingText: v,
17233
17233
  strong: l(),
@@ -17431,7 +17431,7 @@ function zk(e) {
17431
17431
  }
17432
17432
  function y(R) {
17433
17433
  const H = this.resume(), Z = this.stack[this.stack.length - 1];
17434
- Z.label = H, Z.identifier = ot(this.sliceSerialize(R)).toLowerCase();
17434
+ Z.label = H, Z.identifier = lt(this.sliceSerialize(R)).toLowerCase();
17435
17435
  }
17436
17436
  function D() {
17437
17437
  const R = this.resume(), H = this.stack[this.stack.length - 1];
@@ -17455,7 +17455,7 @@ function zk(e) {
17455
17455
  const H = this.stack[this.stack.length - 1];
17456
17456
  H.depth = this.sliceSerialize(R).codePointAt(0) === 61 ? 1 : 2;
17457
17457
  }
17458
- function U() {
17458
+ function j() {
17459
17459
  this.data.setextHeadingSlurpLineEnding = void 0;
17460
17460
  }
17461
17461
  function w(R) {
@@ -17487,7 +17487,7 @@ function zk(e) {
17487
17487
  const R = this.resume(), H = this.stack[this.stack.length - 1];
17488
17488
  H.value = R;
17489
17489
  }
17490
- function j() {
17490
+ function U() {
17491
17491
  const R = this.resume(), H = this.stack[this.stack.length - 1];
17492
17492
  H.value = R;
17493
17493
  }
@@ -17515,7 +17515,7 @@ function zk(e) {
17515
17515
  }
17516
17516
  function fe(R) {
17517
17517
  const H = this.sliceSerialize(R), Z = this.stack[this.stack.length - 2];
17518
- Z.label = Zg(H), Z.identifier = ot(H).toLowerCase();
17518
+ Z.label = Zg(H), Z.identifier = lt(H).toLowerCase();
17519
17519
  }
17520
17520
  function T() {
17521
17521
  const R = this.stack[this.stack.length - 1], H = this.resume(), Z = this.stack[this.stack.length - 1];
@@ -17541,7 +17541,7 @@ function zk(e) {
17541
17541
  }
17542
17542
  function be(R) {
17543
17543
  const H = this.resume(), Z = this.stack[this.stack.length - 1];
17544
- Z.label = H, Z.identifier = ot(this.sliceSerialize(R)).toLowerCase(), this.data.referenceType = "full";
17544
+ Z.label = H, Z.identifier = lt(this.sliceSerialize(R)).toLowerCase(), this.data.referenceType = "full";
17545
17545
  }
17546
17546
  function te(R) {
17547
17547
  this.data.characterReferenceType = R.type;
@@ -18212,7 +18212,7 @@ function ky(e, t) {
18212
18212
  patch: yy,
18213
18213
  wrap: _y
18214
18214
  };
18215
- return at(e, function(d) {
18215
+ return st(e, function(d) {
18216
18216
  if (d.type === "definition" || d.type === "footnoteDefinition") {
18217
18217
  const h = d.type === "definition" ? r : i, p = String(d.identifier).toUpperCase();
18218
18218
  h.has(p) || h.set(p, d);
@@ -19758,11 +19758,11 @@ ${y.join(`
19758
19758
  `, 1)[0], g = t[1].length, k = this.options.pedantic ? Vi(m, g) : m.replace(this.rules.other.leadingSpaceTab, (D) => Vi(D, g)), C = e.split(`
19759
19759
  `, 1)[0], A = !k.trim(), S = 0;
19760
19760
  if (this.options.pedantic ? (S = 2, h = k.trimStart()) : A ? S = g + 1 : (S = k.search(this.rules.other.nonSpaceChar), S = S > 4 ? 1 : S, h = k.slice(S), S += g), A && this.rules.other.blankLine.test(C) && (e = e.substring(C.length + 1), d = !0), !d) {
19761
- let D = this.rules.other.nextBulletRegex(S), M = this.rules.other.hrRegex(S), I = this.rules.other.fencesBeginRegex(S), v = this.rules.other.headingBeginRegex(S), O = this.rules.other.htmlBeginRegex(S), U = this.rules.other.blockquoteBeginRegex(S);
19761
+ let D = this.rules.other.nextBulletRegex(S), M = this.rules.other.hrRegex(S), I = this.rules.other.fencesBeginRegex(S), v = this.rules.other.headingBeginRegex(S), O = this.rules.other.htmlBeginRegex(S), j = this.rules.other.blockquoteBeginRegex(S);
19762
19762
  for (; e; ) {
19763
19763
  let w = e.split(`
19764
19764
  `, 1)[0], B;
19765
- if (C = w, this.options.pedantic ? (C = C.replace(this.rules.other.listReplaceNesting, " "), B = C) : B = C.replace(this.rules.other.leadingSpaceTab, ($) => Vi($)), I.test(C) || v.test(C) || O.test(C) || U.test(C) || D.test(C) || M.test(C)) break;
19765
+ if (C = w, this.options.pedantic ? (C = C.replace(this.rules.other.listReplaceNesting, " "), B = C) : B = C.replace(this.rules.other.leadingSpaceTab, ($) => Vi($)), I.test(C) || v.test(C) || O.test(C) || j.test(C) || D.test(C) || M.test(C)) break;
19766
19766
  if (B.search(this.rules.other.nonSpaceChar) >= S || !C.trim()) h += `
19767
19767
  ` + B.slice(S);
19768
19768
  else {
@@ -20382,7 +20382,7 @@ ${e}</tr>
20382
20382
  checkbox({ raw: e }) {
20383
20383
  return e;
20384
20384
  }
20385
- }, ut = class ba {
20385
+ }, ot = class ba {
20386
20386
  options;
20387
20387
  renderer;
20388
20388
  textRenderer;
@@ -20557,7 +20557,7 @@ ${e}</tr>
20557
20557
  return e ? rt.lex : rt.lexInline;
20558
20558
  }
20559
20559
  provideParser(e = this.block) {
20560
- return e ? ut.parse : ut.parseInline;
20560
+ return e ? ot.parse : ot.parseInline;
20561
20561
  }
20562
20562
  };
20563
20563
  function qt(e, t) {
@@ -20569,7 +20569,7 @@ var Q3 = class {
20569
20569
  options = this.setOptions;
20570
20570
  parse = this.parseMarkdown(!0);
20571
20571
  parseInline = this.parseMarkdown(!1);
20572
- Parser = ut;
20572
+ Parser = ot;
20573
20573
  Renderer = Xr;
20574
20574
  TextRenderer = bs;
20575
20575
  Lexer = rt;
@@ -20688,7 +20688,7 @@ var Q3 = class {
20688
20688
  return rt.lex(e, t ?? this.defaults);
20689
20689
  }
20690
20690
  parser(e, t) {
20691
- return ut.parse(e, t ?? this.defaults);
20691
+ return ot.parse(e, t ?? this.defaults);
20692
20692
  }
20693
20693
  parseMarkdown(e) {
20694
20694
  return (t, n) => {
@@ -20699,14 +20699,14 @@ var Q3 = class {
20699
20699
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
20700
20700
  let s = i.hooks ? await i.hooks.preprocess(t) : t, u = await (i.hooks ? await i.hooks.provideLexer(e) : e ? rt.lex : rt.lexInline)(s, i), o = i.hooks ? await i.hooks.processAllTokens(u) : u;
20701
20701
  i.walkTokens && await Promise.all(this.walkTokens(o, i.walkTokens));
20702
- let l = await (i.hooks ? await i.hooks.provideParser(e) : e ? ut.parse : ut.parseInline)(o, i);
20702
+ let l = await (i.hooks ? await i.hooks.provideParser(e) : e ? ot.parse : ot.parseInline)(o, i);
20703
20703
  return i.hooks ? await i.hooks.postprocess(l) : l;
20704
20704
  })().catch(a);
20705
20705
  try {
20706
20706
  i.hooks && (t = i.hooks.preprocess(t));
20707
20707
  let s = (i.hooks ? i.hooks.provideLexer(e) : e ? rt.lex : rt.lexInline)(t, i);
20708
20708
  i.hooks && (s = i.hooks.processAllTokens(s)), i.walkTokens && this.walkTokens(s, i.walkTokens);
20709
- let u = (i.hooks ? i.hooks.provideParser(e) : e ? ut.parse : ut.parseInline)(s, i);
20709
+ let u = (i.hooks ? i.hooks.provideParser(e) : e ? ot.parse : ot.parseInline)(s, i);
20710
20710
  return i.hooks && (u = i.hooks.postprocess(u)), u;
20711
20711
  } catch (s) {
20712
20712
  return a(s);
@@ -20741,8 +20741,8 @@ ke.walkTokens = function(e, t) {
20741
20741
  return en.walkTokens(e, t);
20742
20742
  };
20743
20743
  ke.parseInline = en.parseInline;
20744
- ke.Parser = ut;
20745
- ke.parser = ut.parse;
20744
+ ke.Parser = ot;
20745
+ ke.parser = ot.parse;
20746
20746
  ke.Renderer = Xr;
20747
20747
  ke.TextRenderer = bs;
20748
20748
  ke.Lexer = rt;
@@ -20754,7 +20754,7 @@ ke.options;
20754
20754
  ke.setOptions;
20755
20755
  ke.walkTokens;
20756
20756
  ke.parseInline;
20757
- ut.parse;
20757
+ ot.parse;
20758
20758
  rt.lex;
20759
20759
  var X3 = 300, Z3 = "300px", J3 = 500;
20760
20760
  function eA(e = {}) {
@@ -21015,7 +21015,7 @@ var Dd = E.createContext(!1), vd = () => E.useContext(Dd), pi = (...e) => sd(Vc(
21015
21015
  for (; t > 0 && e[t - 1] === `
21016
21016
  `; ) t--;
21017
21017
  return e.slice(0, t);
21018
- }, wA = E.lazy(() => import("./highlighted-body-JLMTFACH-BP16yo0g.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), IA = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
21018
+ }, wA = E.lazy(() => import("./highlighted-body-JLMTFACH-BN16E0-4.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), IA = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
21019
21019
  let o = he(), { codeBlockMaxHeight: l } = E.useContext(He), d = E.useMemo(() => NA(e), [e]), h = E.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d.split(`
21020
21020
  `).map((p) => [{ content: p, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d]);
21021
21021
  return f.jsx(Bd.Provider, { value: { code: e }, children: f.jsxs(_A, { dir: "ltr", isIncomplete: i, language: t, children: [f.jsx(SA, { language: t }), r ? f.jsx("div", { className: o("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: f.jsx("div", { className: o("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: r }) }) : null, f.jsx(E.Suspense, { fallback: f.jsx(CA, { className: n, language: t, lineNumbers: s, maxHeight: l, result: h, startLine: a, ...u }), children: f.jsx(wA, { className: n, code: d, isIncomplete: i, language: t, lineNumbers: s, maxHeight: l, raw: h, startLine: a, ...u }) })] }) });
@@ -21086,7 +21086,7 @@ var Dd = E.createContext(!1), vd = () => E.useContext(Dd), pi = (...e) => sd(Vc(
21086
21086
  m(!1), k(!0), a?.(v);
21087
21087
  }, [a]), I = async () => {
21088
21088
  if (n) try {
21089
- let v = await (await fetch(n)).blob(), O = new URL(n, window.location.origin).pathname.split("/").pop() || "", U = O.split(".").pop(), w = O.includes(".") && U !== void 0 && U.length <= 4, B = "";
21089
+ let v = await (await fetch(n)).blob(), O = new URL(n, window.location.origin).pathname.split("/").pop() || "", j = O.split(".").pop(), w = O.includes(".") && j !== void 0 && j.length <= 4, B = "";
21090
21090
  if (w) B = O;
21091
21091
  else {
21092
21092
  let $ = v.type, W = "png";
@@ -21364,9 +21364,9 @@ var qd = (e) => {
21364
21364
  r?.(new Error("Table not found"));
21365
21365
  return;
21366
21366
  }
21367
- let O = qd(v), U = "";
21368
- y === "csv" ? U = Yd(O, k) : y === "tsv" ? U = rC(O) : U = Wd(O);
21369
- let w = new ClipboardItem({ "text/plain": new Blob([U], { type: "text/plain" }), "text/html": new Blob([v.outerHTML], { type: "text/html" }) });
21367
+ let O = qd(v), j = "";
21368
+ y === "csv" ? j = Yd(O, k) : y === "tsv" ? j = rC(O) : j = Wd(O);
21369
+ let w = new ClipboardItem({ "text/plain": new Blob([j], { type: "text/plain" }), "text/html": new Blob([v.outerHTML], { type: "text/html" }) });
21370
21370
  await navigator.clipboard.write([w]), l(!0), u(!1), n?.(y), h.current = window.setTimeout(() => l(!1), i);
21371
21371
  } catch (I) {
21372
21372
  r?.(I);
@@ -21623,10 +21623,10 @@ var mC = ({ node: e, className: t, children: n, ...r }) => {
21623
21623
  return f.jsx(E.Suspense, { fallback: f.jsx(Co, {}), children: f.jsx(B, { code: M, isIncomplete: p, language: g, meta: C }) });
21624
21624
  }
21625
21625
  if (g === "mermaid" && h) {
21626
- let B = Zr(l, "mermaid"), $ = Or(l, "download"), W = Or(l, "copy"), Y = Or(l, "fullscreen"), j = Or(l, "panZoom"), G = B && ($ || W || Y);
21627
- return f.jsx(E.Suspense, { fallback: f.jsx(Co, {}), children: f.jsxs("div", { className: s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t), "data-streamdown": "mermaid-block", children: [f.jsx("div", { className: s("flex h-8 items-center text-muted-foreground text-xs"), children: f.jsx("span", { className: s("ml-1 font-mono lowercase"), children: "mermaid" }) }), G ? f.jsx("div", { className: s("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: f.jsxs("div", { className: s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "mermaid-block-actions", children: [$ ? f.jsx($d, { chart: M, config: o?.config }) : null, W ? f.jsx(ka, { code: M, ...yo(l, "mermaid") }) : null, Y ? f.jsx(nC, { chart: M, config: o?.config }) : null] }) }) : null, f.jsx("div", { className: s("overflow-hidden rounded-md border border-border bg-background"), children: f.jsx(oC, { chart: M, config: o?.config, showControls: j }) })] }) });
21626
+ let B = Zr(l, "mermaid"), $ = Or(l, "download"), W = Or(l, "copy"), Y = Or(l, "fullscreen"), U = Or(l, "panZoom"), G = B && ($ || W || Y);
21627
+ return f.jsx(E.Suspense, { fallback: f.jsx(Co, {}), children: f.jsxs("div", { className: s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t), "data-streamdown": "mermaid-block", children: [f.jsx("div", { className: s("flex h-8 items-center text-muted-foreground text-xs"), children: f.jsx("span", { className: s("ml-1 font-mono lowercase"), children: "mermaid" }) }), G ? f.jsx("div", { className: s("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: f.jsxs("div", { className: s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "mermaid-block-actions", children: [$ ? f.jsx($d, { chart: M, config: o?.config }) : null, W ? f.jsx(ka, { code: M, ...yo(l, "mermaid") }) : null, Y ? f.jsx(nC, { chart: M, config: o?.config }) : null] }) }) : null, f.jsx("div", { className: s("overflow-hidden rounded-md border border-border bg-background"), children: f.jsx(oC, { chart: M, config: o?.config, showControls: U }) })] }) });
21628
21628
  }
21629
- let I = Zr(l, "code"), v = No(l, "download"), O = No(l, "copy"), { "data-block": U, ...w } = r;
21629
+ let I = Zr(l, "code"), v = No(l, "download"), O = No(l, "copy"), { "data-block": j, ...w } = r;
21630
21630
  return f.jsx(IA, { className: t, code: M, isIncomplete: p, language: g, lineNumbers: D, startLine: y, ...w, children: I ? f.jsxs(f.Fragment, { children: [v ? f.jsx(UA, { code: M, language: g }) : null, O ? f.jsx(ka, { ...yo(l, "code") }) : null] }) : null });
21631
21631
  }, bh = E.memo(mC, (e, t) => _e(e, t) && dC(e.node, t.node));
21632
21632
  bh.displayName = "MarkdownCode";
@@ -21682,7 +21682,7 @@ var TC = /^[ \t]{0,3}(`{3,}|~{3,})/, xC = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
21682
21682
  }
21683
21683
  return !1;
21684
21684
  }, yC = () => (e) => {
21685
- at(e, "html", (t, n, r) => {
21685
+ st(e, "html", (t, n, r) => {
21686
21686
  !r || typeof n != "number" || (r.children[n] = { type: "text", value: t.value });
21687
21687
  });
21688
21688
  }, Io = [], Lo = { allowDangerousHtml: !0 }, Dr = /* @__PURE__ */ new WeakMap(), AC = class {
@@ -21759,7 +21759,7 @@ var TC = /^[ \t]{0,3}(`{3,}|~{3,})/, xC = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-
21759
21759
  let { allowElement: n, allowedElements: r, disallowedElements: i, skipHtml: a, unwrapDisallowed: s, urlTransform: u } = t;
21760
21760
  if (n || r || i || a || u) {
21761
21761
  let o = u || NC;
21762
- at(e, (l, d, h) => {
21762
+ st(e, (l, d, h) => {
21763
21763
  if (l.type === "raw" && h && typeof d == "number") return wC(h, d, a, l.value), d;
21764
21764
  if (l.type === "element" && (IC(l, o), LC(l, d, h, r, i, n) && h && typeof d == "number")) return s && l.children ? h.children.splice(d, 1, ...l.children) : h.children.splice(d, 1), d;
21765
21765
  });
@@ -21936,7 +21936,7 @@ function Sh(e) {
21936
21936
  }
21937
21937
  function e_() {
21938
21938
  return (e) => {
21939
- at(e, "element", (t) => {
21939
+ st(e, "element", (t) => {
21940
21940
  if (_h.has(t.tagName)) {
21941
21941
  t.properties != null || (t.properties = {}), t.properties.dir = "ltr";
21942
21942
  return;
@@ -21948,14 +21948,14 @@ function e_() {
21948
21948
  var Nh = (e) => e.type === "text" ? e.value : "children" in e && Array.isArray(e.children) ? e.children.map(Nh).join("") : "", t_ = (e) => (t) => {
21949
21949
  if (!e || e.length === 0) return;
21950
21950
  let n = new Set(e.map((r) => r.toLowerCase()));
21951
- at(t, "element", (r) => {
21951
+ st(t, "element", (r) => {
21952
21952
  if (n.has(r.tagName.toLowerCase())) {
21953
21953
  let i = Nh(r);
21954
21954
  r.children = i ? [{ type: "text", value: i }] : [];
21955
21955
  }
21956
21956
  });
21957
21957
  }, n_ = () => (e) => {
21958
- at(e, "code", (t) => {
21958
+ st(e, "code", (t) => {
21959
21959
  var n, r;
21960
21960
  t.meta && (t.data = (n = t.data) != null ? n : {}, t.data.hProperties = { ...(r = t.data.hProperties) != null ? r : {}, metastring: t.meta });
21961
21961
  });
@@ -21977,7 +21977,7 @@ var s_ = (e = []) => {
21977
21977
  var i;
21978
21978
  if (t.size === 0) return;
21979
21979
  let a = String((i = r.value) != null ? i : "");
21980
- at(n, "link", (s, u, o) => {
21980
+ st(n, "link", (s, u, o) => {
21981
21981
  if (!(!o || u === void 0) && a_(s, t, a)) return o.children.splice(u, 1, ...s.children), u;
21982
21982
  });
21983
21983
  };
@@ -22014,9 +22014,9 @@ var Sa = (e) => {
22014
22014
  }, b_ = (e, t) => {
22015
22015
  let n = Sa(e), r = Sa(t), i = Object.keys(n);
22016
22016
  return i.length === Object.keys(r).length && i.every((a) => Object.hasOwn(r, a) && n[a] === r[a]);
22017
- }, Rh = E.memo(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: s = qo, remarkPlugins: u = m_, className: o, shikiTheme: l, mermaid: d, codeBlockMaxHeight: h = 400, controls: p = !0, isAnimating: m = !1, tableMaxHeight: g = 300, animated: k, BlockComponent: C = Lh, parseMarkdownIntoBlocksFn: A = qC, caret: S, plugins: y, remend: D, linkSafety: M = Ih, portal: I, lineNumbers: v = !0, allowedTags: O, fallbackComponent: U, literalTagContent: w, disableAutolinkProtocols: B, translations: $, icons: W, prefix: Y, onAnimationStart: j, onAnimationEnd: G, ...X }) => {
22018
- let ae = E.useId(), fe = Sa(X), T = E.useMemo(() => TA(Y), [Y]), Ie = E.useRef(null), Ne = E.useRef(j), N = E.useRef(G);
22019
- Ne.current = j, N.current = G, E.useEffect(() => {
22017
+ }, Rh = E.memo(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: s = qo, remarkPlugins: u = m_, className: o, shikiTheme: l, mermaid: d, codeBlockMaxHeight: h = 400, controls: p = !0, isAnimating: m = !1, tableMaxHeight: g = 300, animated: k, BlockComponent: C = Lh, parseMarkdownIntoBlocksFn: A = qC, caret: S, plugins: y, remend: D, linkSafety: M = Ih, portal: I, lineNumbers: v = !0, allowedTags: O, fallbackComponent: j, literalTagContent: w, disableAutolinkProtocols: B, translations: $, icons: W, prefix: Y, onAnimationStart: U, onAnimationEnd: G, ...X }) => {
22018
+ let ae = E.useId(), fe = Sa(X), T = E.useMemo(() => TA(Y), [Y]), Ie = E.useRef(null), Ne = E.useRef(U), N = E.useRef(G);
22019
+ Ne.current = U, N.current = G, E.useEffect(() => {
22020
22020
  var ne, R, H;
22021
22021
  if (t === "static") return;
22022
22022
  let Z = Ie.current;
@@ -22052,19 +22052,19 @@ var Sa = (e) => {
22052
22052
  let Z = H.code;
22053
22053
  H.code = (ee) => "data-block" in ee ? Z ? E.createElement(Z, ee) : null : E.createElement(ne, ee);
22054
22054
  }
22055
- if (U) {
22056
- if (O) for (let ee of Object.keys(O)) Object.hasOwn(H, ee) || (H[ee] = U);
22057
- let Z = { configurable: !0, enumerable: !1, value: U, writable: !1 };
22055
+ if (j) {
22056
+ if (O) for (let ee of Object.keys(O)) Object.hasOwn(H, ee) || (H[ee] = j);
22057
+ let Z = { configurable: !0, enumerable: !1, value: j, writable: !1 };
22058
22058
  return new Proxy(H, { getOwnPropertyDescriptor(ee, Te) {
22059
22059
  let me = Object.getOwnPropertyDescriptor(ee, Te);
22060
22060
  if (me) return me;
22061
22061
  if (typeof Te == "string" && Bo.test(Te)) return Z;
22062
22062
  }, get(ee, Te, me) {
22063
- return typeof Te == "string" && Bo.test(Te) && !Object.hasOwn(ee, Te) ? U : Reflect.get(ee, Te, me);
22063
+ return typeof Te == "string" && Bo.test(Te) && !Object.hasOwn(ee, Te) ? j : Reflect.get(ee, Te, me);
22064
22064
  } });
22065
22065
  }
22066
22066
  return H;
22067
- }, [a, U, O]), yr = E.useMemo(() => {
22067
+ }, [a, j, O]), yr = E.useMemo(() => {
22068
22068
  let ne = [];
22069
22069
  return y != null && y.cjk && (ne = [...ne, ...y.cjk.remarkPluginsBefore]), ne = [...ne, ...u], B && B.length > 0 && (ne = [...ne, [s_, B]]), y != null && y.cjk && (ne = [...ne, ...y.cjk.remarkPluginsAfter]), y != null && y.math && (ne = [...ne, y.math.remarkPlugin]), ne;
22070
22070
  }, [u, y?.math, y?.cjk, B]), Nt = E.useMemo(() => {
@@ -22144,7 +22144,7 @@ var Hn = (e) => e > 0 ? e : null, E_ = (e, t) => {
22144
22144
  let o = s != null ? Math.min(a, s) : a, l = Math.min(i, o / e.height, 1);
22145
22145
  return !(l > 0) || Number.isNaN(l) ? null : { fitZoom: l, viewportHeight: o };
22146
22146
  }, y_ = ({ children: e, className: t, contentSize: n, fitKey: r, minZoom: i = 0.5, maxZoom: a = 3, zoomStep: s = 0.1, showControls: u = !0, initialZoom: o = 1, isAutoFit: l = !1, fullscreen: d = !1 }) => {
22147
- let { RotateCcwIcon: h, ZoomInIcon: p, ZoomOutIcon: m } = ft(), g = he(), k = mt(), C = E.useRef(null), A = E.useRef(null), S = E.useRef(!1), [y, D] = E.useState(o), [M, I] = E.useState(i), [v, O] = E.useState(o), [U, w] = E.useState({ x: 0, y: 0 }), [B, $] = E.useState(!1), [W, Y] = E.useState({ x: 0, y: 0 }), [j, G] = E.useState({ x: 0, y: 0 }), [X, ae] = E.useState(null), fe = E.useCallback((V) => {
22147
+ let { RotateCcwIcon: h, ZoomInIcon: p, ZoomOutIcon: m } = ft(), g = he(), k = mt(), C = E.useRef(null), A = E.useRef(null), S = E.useRef(!1), [y, D] = E.useState(o), [M, I] = E.useState(i), [v, O] = E.useState(o), [j, w] = E.useState({ x: 0, y: 0 }), [B, $] = E.useState(!1), [W, Y] = E.useState({ x: 0, y: 0 }), [U, G] = E.useState({ x: 0, y: 0 }), [X, ae] = E.useState(null), fe = E.useCallback((V) => {
22148
22148
  let ue = C.current;
22149
22149
  if (!ue) return;
22150
22150
  let we = k_(V, ue, d);
@@ -22165,15 +22165,15 @@ var Hn = (e) => e > 0 ? e : null, E_ = (e, t) => {
22165
22165
  T(ue);
22166
22166
  }, [T, s]), be = E.useCallback((V) => {
22167
22167
  if (V.button !== 0 || V.isPrimary === !1) return;
22168
- $(!0), S.current = !0, Y({ x: V.clientX, y: V.clientY }), G(U);
22168
+ $(!0), S.current = !0, Y({ x: V.clientX, y: V.clientY }), G(j);
22169
22169
  let ue = V.currentTarget;
22170
22170
  ue instanceof HTMLElement && ue.setPointerCapture(V.pointerId);
22171
- }, [U]), te = E.useCallback((V) => {
22171
+ }, [j]), te = E.useCallback((V) => {
22172
22172
  if (!B) return;
22173
22173
  V.preventDefault();
22174
22174
  let ue = V.clientX - W.x, we = V.clientY - W.y;
22175
- w({ x: j.x + ue, y: j.y + we });
22176
- }, [B, W, j]), Le = E.useCallback((V) => {
22175
+ w({ x: U.x + ue, y: U.y + we });
22176
+ }, [B, W, U]), Le = E.useCallback((V) => {
22177
22177
  $(!1);
22178
22178
  let ue = V.currentTarget;
22179
22179
  ue instanceof HTMLElement && ue.releasePointerCapture(V.pointerId);
@@ -22205,7 +22205,7 @@ var Hn = (e) => e > 0 ? e : null, E_ = (e, t) => {
22205
22205
  };
22206
22206
  }, [B, te, Le]);
22207
22207
  let Pe = !d && l && X != null ? { height: X } : void 0;
22208
- return f.jsxs("div", { className: g("relative flex flex-col", d ? "h-full w-full" : "min-h-28 w-full", t), ref: C, style: { cursor: B ? "grabbing" : "grab", ...Pe }, children: [u ? f.jsxs("div", { className: g("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm", d ? "bottom-4 left-4" : "bottom-2 left-2"), children: [f.jsx("button", { "aria-label": k.zoomIn, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v >= a, onClick: Ie, title: k.zoomIn, type: "button", children: f.jsx(p, { "aria-hidden": "true", size: 16 }) }), f.jsx("button", { "aria-label": k.zoomOut, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v <= M, onClick: Ne, title: k.zoomOut, type: "button", children: f.jsx(m, { "aria-hidden": "true", size: 16 }) }), f.jsx("button", { "aria-label": k.resetView, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"), onClick: N, title: k.resetView, type: "button", children: f.jsx(h, { "aria-hidden": "true", size: 16 }) })] }) : null, f.jsx("div", { className: g("flex h-full w-full flex-1 origin-center items-center justify-center transition-transform duration-150 ease-out"), onPointerDown: be, ref: A, role: "application", style: { transform: `translate(${U.x}px, ${U.y}px) scale(${v})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
22208
+ return f.jsxs("div", { className: g("relative flex flex-col", d ? "h-full w-full" : "min-h-28 w-full", t), ref: C, style: { cursor: B ? "grabbing" : "grab", ...Pe }, children: [u ? f.jsxs("div", { className: g("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm", d ? "bottom-4 left-4" : "bottom-2 left-2"), children: [f.jsx("button", { "aria-label": k.zoomIn, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v >= a, onClick: Ie, title: k.zoomIn, type: "button", children: f.jsx(p, { "aria-hidden": "true", size: 16 }) }), f.jsx("button", { "aria-label": k.zoomOut, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"), disabled: v <= M, onClick: Ne, title: k.zoomOut, type: "button", children: f.jsx(m, { "aria-hidden": "true", size: 16 }) }), f.jsx("button", { "aria-label": k.resetView, className: g("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"), onClick: N, title: k.resetView, type: "button", children: f.jsx(h, { "aria-hidden": "true", size: 16 }) })] }) : null, f.jsx("div", { className: g("flex h-full w-full flex-1 origin-center items-center justify-center transition-transform duration-150 ease-out"), onPointerDown: be, ref: A, role: "application", style: { transform: `translate(${j.x}px, ${j.y}px) scale(${v})`, transformOrigin: "center center", touchAction: "none", willChange: "transform" }, children: e })] });
22209
22209
  }, A_ = (e, t) => new Promise((n) => {
22210
22210
  let r = setTimeout(n, e);
22211
22211
  t(() => {
@@ -22219,7 +22219,7 @@ var Hn = (e) => e > 0 ? e : null, E_ = (e, t) => {
22219
22219
  return { ok: !1, error: a instanceof Error ? a.message : i };
22220
22220
  }
22221
22221
  }, Oh = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
22222
- let a = he(), [s, u] = E.useState(null), [o, l] = E.useState(!1), [d, h] = E.useState(""), [p, m] = E.useState(null), g = mt(), [k, C] = E.useState(""), [A, S] = E.useState(0), { mermaid: y } = E.useContext(He), D = _s(), M = y?.errorComponent, { shouldRender: I, containerRef: v } = eA({ immediate: r }), O = E.useRef(null), U = E.useRef(!1), w = E.useRef(!1), B = vd(), $ = E.useRef(B), W = E.useRef(null);
22222
+ let a = he(), [s, u] = E.useState(null), [o, l] = E.useState(!1), [d, h] = E.useState(""), [p, m] = E.useState(null), g = mt(), [k, C] = E.useState(""), [A, S] = E.useState(0), { mermaid: y } = E.useContext(He), D = _s(), M = y?.errorComponent, { shouldRender: I, containerRef: v } = eA({ immediate: r }), O = E.useRef(null), j = E.useRef(!1), w = E.useRef(!1), B = vd(), $ = E.useRef(B), W = E.useRef(null);
22223
22223
  E.useEffect(() => (w.current = !0, () => {
22224
22224
  var G;
22225
22225
  w.current = !1, (G = W.current) == null || G.call(W);
@@ -22238,12 +22238,12 @@ var Hn = (e) => e > 0 ? e : null, E_ = (e, t) => {
22238
22238
  u("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
22239
22239
  return;
22240
22240
  }
22241
- if (O.current = { chart: e, config: n }, U.current) return;
22241
+ if (O.current = { chart: e, config: n }, j.current) return;
22242
22242
  let G = (X, ae) => {
22243
22243
  ae.ok ? (h(ae.svg), m(ae.size), C(ae.svg)) : X === O.current && u(ae.error);
22244
22244
  };
22245
22245
  (async () => {
22246
- U.current = !0, u(null), l(!0);
22246
+ j.current = !0, u(null), l(!0);
22247
22247
  try {
22248
22248
  let X = O.current;
22249
22249
  for (; X; ) {
@@ -22252,7 +22252,7 @@ var Hn = (e) => e > 0 ? e : null, E_ = (e, t) => {
22252
22252
  X = O.current;
22253
22253
  }
22254
22254
  } finally {
22255
- U.current = !1, w.current && l(!1);
22255
+ j.current = !1, w.current && l(!1);
22256
22256
  }
22257
22257
  })();
22258
22258
  }, [e, n, A, I, D]), !(I || d || k)) return f.jsx("div", { className: a("my-4 min-h-[200px]", t), ref: v });
@@ -22261,8 +22261,8 @@ var Hn = (e) => e > 0 ? e : null, E_ = (e, t) => {
22261
22261
  let G = () => S((X) => X + 1);
22262
22262
  return M ? f.jsx("div", { ref: v, children: f.jsx(M, { chart: e, error: s, retry: G }) }) : f.jsxs("div", { className: a("rounded-md bg-red-50 p-4", t), ref: v, children: [f.jsxs("p", { className: a("font-mono text-red-700 text-sm"), children: ["Mermaid Error: ", s] }), f.jsxs("details", { className: a("mt-2"), children: [f.jsx("summary", { className: a("cursor-pointer text-red-600 text-xs"), children: "Show Code" }), f.jsx("pre", { className: a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"), children: e })] })] });
22263
22263
  }
22264
- let j = d || k;
22265
- return f.jsx("div", { className: a(r ? "size-full" : "max-h-[min(70vh,40rem)] w-full", t), "data-streamdown": "mermaid", ref: v, children: f.jsx(y_, { className: a(r ? "size-full overflow-hidden" : "max-h-[min(70vh,40rem)] overflow-hidden", t), contentSize: p, fitKey: e, fullscreen: r, isAutoFit: !0, maxZoom: 3, minZoom: 0.1, showControls: i, zoomStep: 0.1, children: f.jsx("div", { "aria-label": g.mermaidAriaLabel, className: a("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: j }, role: "img" }) }) });
22264
+ let U = d || k;
22265
+ return f.jsx("div", { className: a(r ? "size-full" : "max-h-[min(70vh,40rem)] w-full", t), "data-streamdown": "mermaid", ref: v, children: f.jsx(y_, { className: a(r ? "size-full overflow-hidden" : "max-h-[min(70vh,40rem)] overflow-hidden", t), contentSize: p, fitKey: e, fullscreen: r, isAutoFit: !0, maxZoom: 3, minZoom: 0.1, showControls: i, zoomStep: 0.1, children: f.jsx("div", { "aria-label": g.mermaidAriaLabel, className: a("flex justify-center", r ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: U }, role: "img" }) }) });
22266
22266
  };
22267
22267
  function __(e) {
22268
22268
  if (!e) return "";
@@ -22381,7 +22381,7 @@ function I_({
22381
22381
  className: a = ""
22382
22382
  }) {
22383
22383
  if (e)
22384
- return /* @__PURE__ */ f.jsx(ct, { agent: e, size: r, active: i, className: a });
22384
+ return /* @__PURE__ */ f.jsx(it, { agent: e, size: r, active: i, className: a });
22385
22385
  if (t)
22386
22386
  return /* @__PURE__ */ f.jsx("div", { className: de("rqmii-agent-avatar", `rqmii-agent-avatar--${r}`, i && "is-active", a), children: /* @__PURE__ */ f.jsx("img", { src: t, alt: n || "Avatar" }) });
22387
22387
  if (n) {
@@ -22452,7 +22452,7 @@ const ws = ye.memo(function({ language: t, languages: n, onChange: r }) {
22452
22452
  const g = u.trim();
22453
22453
  !g || i || (r(g), o(""), l.current && (l.current.style.height = "auto"));
22454
22454
  }, m = s ? J(t, "orSendMessage") : J(t, "sendMessage");
22455
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-input", it(), a === "voice" && "is-voice"), children: [
22455
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-input", at(), a === "voice" && "is-voice"), children: [
22456
22456
  /* @__PURE__ */ f.jsx(
22457
22457
  "textarea",
22458
22458
  {
@@ -22514,16 +22514,16 @@ const M_ = ye.memo(function({ suggestions: t, language: n, onClick: r }) {
22514
22514
  const D = m.current;
22515
22515
  C(D);
22516
22516
  const M = A.clientWidth, I = D_(), v = () => {
22517
- for (let U = 0; U < D.length; U++) {
22518
- const w = D[U];
22517
+ for (let j = 0; j < D.length; j++) {
22518
+ const w = D[j];
22519
22519
  if (w && w.offsetTop + w.offsetHeight > I + 0.5)
22520
- return U;
22520
+ return j;
22521
22521
  }
22522
22522
  return null;
22523
22523
  };
22524
22524
  let O = v();
22525
22525
  if (O !== null)
22526
- for (let U = 0; U <= D.length; U++) {
22526
+ for (let j = 0; j <= D.length; j++) {
22527
22527
  C(D);
22528
22528
  const w = D.slice(0, O).filter(($) => !!$);
22529
22529
  Wo(w, M, k, Yo);
@@ -22532,7 +22532,7 @@ const M_ = ye.memo(function({ suggestions: t, language: n, onClick: r }) {
22532
22532
  O = B;
22533
22533
  }
22534
22534
  if (l(O), u(O !== null), O !== null) {
22535
- const U = D.slice(0, O).filter((B) => !!B), w = U.length ? Math.max(...U.map((B) => B.offsetTop + B.offsetHeight)) : Vn;
22535
+ const j = D.slice(0, O).filter((B) => !!B), w = j.length ? Math.max(...j.map((B) => B.offsetTop + B.offsetHeight)) : Vn;
22536
22536
  h(w - Vn);
22537
22537
  } else
22538
22538
  h(null);
@@ -22739,7 +22739,7 @@ function q_({
22739
22739
  return /* @__PURE__ */ f.jsxs(
22740
22740
  "div",
22741
22741
  {
22742
- className: de("rqmii-chat-rating", !u && "rqmii-chat-rating--unrated", it()),
22742
+ className: de("rqmii-chat-rating", !u && "rqmii-chat-rating--unrated", at()),
22743
22743
  dir: De(e),
22744
22744
  children: [
22745
22745
  u && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
@@ -22780,7 +22780,7 @@ function Bh({
22780
22780
  return /* @__PURE__ */ f.jsxs(
22781
22781
  "div",
22782
22782
  {
22783
- className: de("rqmii-chat-panel rqmii-chat-panel--feedback", it()),
22783
+ className: de("rqmii-chat-panel rqmii-chat-panel--feedback", at()),
22784
22784
  dir: De(t),
22785
22785
  style: p,
22786
22786
  children: [
@@ -22789,7 +22789,7 @@ function Bh({
22789
22789
  /* @__PURE__ */ f.jsx("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": J(t, "minimize"), children: /* @__PURE__ */ f.jsx(ur, { size: 20 }) })
22790
22790
  ] }),
22791
22791
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-feedback-body", children: [
22792
- /* @__PURE__ */ f.jsx(ct, { agent: e, size: "hero" }),
22792
+ /* @__PURE__ */ f.jsx(it, { agent: e, size: "hero" }),
22793
22793
  /* @__PURE__ */ f.jsx(Mh, { rating: n, readonly: !0 }),
22794
22794
  /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-feedback-title", children: J(t, "ratingThankYou") }),
22795
22795
  /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-feedback-subtitle", children: J(t, "feedbackSubtitle") }),
@@ -22820,11 +22820,11 @@ function Tr(e) {
22820
22820
  const V_ = ye.memo(function({ agent: t, language: n, languages: r, onLanguageChange: i, onClose: a, onSend: s, isVoiceEnabled: u = !1, isAudioPlaying: o = !1, isVoiceSetupLoading: l = !1, onStartVoice: d, visualViewportHeight: h, disabled: p = !1, connecting: m = !1, error: g, suggestions: k, onSuggestionClick: C, compact: A = !1 }) {
22821
22821
  const S = Tr(h), [y, D] = ye.useState(Qi);
22822
22822
  ye.useEffect(() => {
22823
- const U = () => D(Qi());
22824
- return window.addEventListener("resize", U), () => window.removeEventListener("resize", U);
22823
+ const j = () => D(Qi());
22824
+ return window.addEventListener("resize", j), () => window.removeEventListener("resize", j);
22825
22825
  }, []);
22826
22826
  const M = A && !y, I = M ? "start" : "hero", v = k && k.length > 0, O = De(n);
22827
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--start", M && "rqmii-chat-panel--start-compact", it()), style: S, children: [
22827
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--start", M && "rqmii-chat-panel--start-compact", at()), style: S, children: [
22828
22828
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar", children: [
22829
22829
  /* @__PURE__ */ f.jsx("span", {}),
22830
22830
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar-actions", children: [
@@ -22834,9 +22834,9 @@ const V_ = ye.memo(function({ agent: t, language: n, languages: r, onLanguageCha
22834
22834
  ] }),
22835
22835
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-start-body", children: [
22836
22836
  u ? /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-call-avatar-wrap", M && "is-compact"), children: [
22837
- /* @__PURE__ */ f.jsx(ct, { agent: t, size: I, active: o }),
22837
+ /* @__PURE__ */ f.jsx(it, { agent: t, size: I, active: o }),
22838
22838
  /* @__PURE__ */ f.jsx("button", { type: "button", className: de("rqmii-chat-call-button", M && "is-compact"), onClick: d, disabled: l, "aria-label": J(n, "startVoice"), children: l ? /* @__PURE__ */ f.jsx(nn, { className: "rqmii-chat-spin", size: M ? 18 : 24 }) : /* @__PURE__ */ f.jsx(Ra, { size: M ? 18 : 24 }) })
22839
- ] }) : /* @__PURE__ */ f.jsx(ct, { agent: t, size: I }),
22839
+ ] }) : /* @__PURE__ */ f.jsx(it, { agent: t, size: I }),
22840
22840
  /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-agent-name", dir: O, children: u ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
22841
22841
  /* @__PURE__ */ f.jsx("span", { children: J(n, "call") }),
22842
22842
  " ",
@@ -22845,13 +22845,13 @@ const V_ = ye.memo(function({ agent: t, language: n, languages: r, onLanguageCha
22845
22845
  m && !g && !u && /* @__PURE__ */ f.jsx(W_, { language: n }),
22846
22846
  g && /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-error-text", children: g })
22847
22847
  ] }),
22848
- v && /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-start-suggestions", children: /* @__PURE__ */ f.jsx(M_, { suggestions: k, language: n, onClick: (U) => C?.(U) }) }),
22848
+ v && /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-start-suggestions", children: /* @__PURE__ */ f.jsx(M_, { suggestions: k, language: n, onClick: (j) => C?.(j) }) }),
22849
22849
  /* @__PURE__ */ f.jsx(Is, { language: n, onSend: s, disabled: p, isVoiceEnabled: u }),
22850
22850
  /* @__PURE__ */ f.jsx(tn, { language: n, agent: t })
22851
22851
  ] });
22852
22852
  }), Y_ = ye.memo(function({ agent: t, language: n, languages: r, onLanguageChange: i, onClose: a, onStartVoice: s, isVoiceSetupLoading: u = !1, isAudioPlaying: o, visualViewportHeight: l }) {
22853
22853
  const d = Tr(l), h = De(n);
22854
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--voice-start", it()), style: d, children: [
22854
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--voice-start", at()), style: d, children: [
22855
22855
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar", children: [
22856
22856
  /* @__PURE__ */ f.jsx("span", {}),
22857
22857
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar-actions", children: [
@@ -22861,7 +22861,7 @@ const V_ = ye.memo(function({ agent: t, language: n, languages: r, onLanguageCha
22861
22861
  ] }),
22862
22862
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-call-body", children: [
22863
22863
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-call-avatar-wrap", children: [
22864
- /* @__PURE__ */ f.jsx(ct, { agent: t, size: "hero", active: o }),
22864
+ /* @__PURE__ */ f.jsx(it, { agent: t, size: "hero", active: o }),
22865
22865
  /* @__PURE__ */ f.jsx("button", { type: "button", className: "rqmii-chat-call-button", onClick: s, disabled: u, "aria-label": J(n, "startVoice"), children: u ? /* @__PURE__ */ f.jsx(nn, { className: "rqmii-chat-spin", size: 24 }) : /* @__PURE__ */ f.jsx(Ra, { size: 24 }) })
22866
22866
  ] }),
22867
22867
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-agent-name", dir: h, children: [
@@ -22880,11 +22880,11 @@ function W_({ language: e }) {
22880
22880
  ] });
22881
22881
  }
22882
22882
  const G_ = ye.memo(function({ agent: t, language: n, onEndSession: r, onMinimize: i, messages: a, partialTranscript: s, onSend: u, isAudioPlaying: o, isVoiceEnabled: l, onToggleVoice: d, isListening: h, isSpeaking: p, isLoading: m, isAgentThinking: g, isAgentSpeaking: k, isFirstAgentSpeech: C, onStartVoice: A, elapsed: S, visualViewportHeight: y, waitingForResponse: D }) {
22883
- const M = Jr(t, n, !!C), I = Fh({ canInterrupt: M, language: n, isListening: h, isLoading: m, isSpeaking: p, isAudioPlaying: o, isAgentThinking: g, isAgentSpeaking: k, persistentListening: !1 }), v = gi({ canInterrupt: M, isSpeaking: p, isAudioPlaying: o, isAgentSpeaking: k }), O = Tr(y), U = t.widget?.appearance?.show_topbar_avatar_image !== !1;
22884
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--conversation", it()), style: O, children: [
22883
+ const M = Jr(t, n, !!C), I = Fh({ canInterrupt: M, language: n, isListening: h, isLoading: m, isSpeaking: p, isAudioPlaying: o, isAgentThinking: g, isAgentSpeaking: k, persistentListening: !1 }), v = gi({ canInterrupt: M, isSpeaking: p, isAudioPlaying: o, isAgentSpeaking: k }), O = Tr(y), j = t.widget?.appearance?.show_topbar_avatar_image !== !1;
22884
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--conversation", at()), style: O, children: [
22885
22885
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-header", children: [
22886
- U && /* @__PURE__ */ f.jsx(ct, { agent: t, size: "header", active: o }),
22887
- l && I && /* @__PURE__ */ f.jsx("div", { className: de("rqmii-chat-header-status", !U && "is-expanded"), children: /* @__PURE__ */ f.jsx("span", { children: I }) }),
22886
+ j && /* @__PURE__ */ f.jsx(it, { agent: t, size: "header", active: o }),
22887
+ l && I && /* @__PURE__ */ f.jsx("div", { className: de("rqmii-chat-header-status", !j && "is-expanded"), children: /* @__PURE__ */ f.jsx("span", { children: I }) }),
22888
22888
  /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-header-spacer" }),
22889
22889
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-header-actions", children: [
22890
22890
  i && /* @__PURE__ */ f.jsx("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, "aria-label": J(n, "minimize"), children: /* @__PURE__ */ f.jsx(ur, { size: 20 }) }),
@@ -22899,14 +22899,14 @@ const G_ = ye.memo(function({ agent: t, language: n, onEndSession: r, onMinimize
22899
22899
  ] });
22900
22900
  }), Q_ = ye.memo(function({ agent: t, language: n, onEndSession: r, onMinimize: i, isListening: a, isLoading: s, isSpeaking: u, isAudioPlaying: o, isAgentThinking: l, isAgentSpeaking: d, isFirstAgentSpeech: h, onToggleVoice: p, elapsed: m, visualViewportHeight: g }) {
22901
22901
  const k = Jr(t, n, !!h), C = Fh({ canInterrupt: k, language: n, isListening: a, isLoading: s, isSpeaking: u, isAudioPlaying: o, isAgentThinking: l, isAgentSpeaking: d, persistentListening: !0 }), A = gi({ canInterrupt: k, isSpeaking: u, isAudioPlaying: o, isAgentSpeaking: d }), S = Tr(g), y = De(n);
22902
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--voice-call", it()), style: S, children: [
22902
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--voice-call", at()), style: S, children: [
22903
22903
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-call-status", children: [
22904
22904
  /* @__PURE__ */ f.jsx("span", { className: de("rqmii-chat-live-dot", a && "is-live") }),
22905
22905
  /* @__PURE__ */ f.jsx("span", { children: wa(m) }),
22906
22906
  /* @__PURE__ */ f.jsx("button", { type: "button", className: "rqmii-chat-circle-button", onClick: i, children: /* @__PURE__ */ f.jsx(ur, { size: 20 }) })
22907
22907
  ] }),
22908
22908
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-voice-frame", children: [
22909
- /* @__PURE__ */ f.jsx(ct, { agent: t, size: "hero", active: o }),
22909
+ /* @__PURE__ */ f.jsx(it, { agent: t, size: "hero", active: o }),
22910
22910
  /* @__PURE__ */ f.jsx("div", { className: "rqmii-chat-agent-name", dir: y, children: /* @__PURE__ */ f.jsx("bdi", { children: t.name }) }),
22911
22911
  /* @__PURE__ */ f.jsx("div", { className: de("rqmii-chat-status-pill", !C && "is-empty"), children: C || J(n, "listening") }),
22912
22912
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-voice-actions", children: [
@@ -22925,8 +22925,8 @@ function gi({ canInterrupt: e, isSpeaking: t, isAudioPlaying: n, isAgentSpeaking
22925
22925
  }
22926
22926
  const K_ = ye.memo(function({ agent: t, language: n, onRestore: r, onClose: i, isListening: a, isAudioPlaying: s, isSpeaking: u, isAgentSpeaking: o, isFirstAgentSpeech: l, onToggleVoice: d, elapsed: h, variant: p = "voice" }) {
22927
22927
  const m = p === "text", g = gi({ canInterrupt: Jr(t, n, !!l), isSpeaking: u, isAudioPlaying: s, isAgentSpeaking: o });
22928
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-minimized", it()), children: [
22929
- /* @__PURE__ */ f.jsx(ct, { agent: t, size: "minimized", active: s }),
22928
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-minimized", at()), children: [
22929
+ /* @__PURE__ */ f.jsx(it, { agent: t, size: "minimized", active: s }),
22930
22930
  !m && /* @__PURE__ */ f.jsx("span", { className: "rqmii-chat-minimized-time", children: wa(h) }),
22931
22931
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-minimized-actions", children: [
22932
22932
  /* @__PURE__ */ f.jsx("button", { type: "button", className: "rqmii-chat-circle-button", onClick: r, "aria-label": J(n, "maximize"), children: /* @__PURE__ */ f.jsx(el, { size: 20 }) }),
@@ -22956,7 +22956,7 @@ const K_ = ye.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
22956
22956
  onRate: y,
22957
22957
  onTellUsMore: D
22958
22958
  }) {
22959
- const M = Tr(h), I = t.widget?.behavior?.conversation_ended_screen, v = !!I?.post_chat_rating_enabled, O = I?.show_conversation_id ?? !0, U = k === "busy", w = k === "unavailable", B = de(U && "is-busy", w && "is-unavailable"), $ = k ? /* @__PURE__ */ f.jsx(X_, { failure: k, language: n }) : /* @__PURE__ */ f.jsx(
22959
+ const M = Tr(h), I = t.widget?.behavior?.conversation_ended_screen, v = !!I?.post_chat_rating_enabled, O = I?.show_conversation_id ?? !0, j = k === "busy", w = k === "unavailable", B = de(j && "is-busy", w && "is-unavailable"), $ = k ? /* @__PURE__ */ f.jsx(X_, { failure: k, language: n }) : /* @__PURE__ */ f.jsx(
22960
22960
  q_,
22961
22961
  {
22962
22962
  language: n,
@@ -22971,7 +22971,7 @@ const K_ = ye.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
22971
22971
  onRate: y,
22972
22972
  onTellUsMore: D
22973
22973
  }
22974
- ), W = Yn(i), Y = W || i === "hybrid", j = i === "text" || i === "hybrid", G = /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar-actions rqmii-chat-topbar-actions--ended", children: [
22974
+ ), W = Yn(i), Y = W || i === "hybrid", U = i === "text" || i === "hybrid", G = /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar-actions rqmii-chat-topbar-actions--ended", children: [
22975
22975
  /* @__PURE__ */ f.jsx(ws, { language: n, languages: r, onChange: s }),
22976
22976
  /* @__PURE__ */ f.jsx(
22977
22977
  "button",
@@ -22996,24 +22996,27 @@ const K_ = ye.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
22996
22996
  )
22997
22997
  ] });
22998
22998
  if (W)
22999
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--voice-call", it()), style: M, children: [
22999
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--voice-call", at()), style: M, children: [
23000
23000
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar", children: [
23001
23001
  /* @__PURE__ */ f.jsx("span", {}),
23002
23002
  G
23003
23003
  ] }),
23004
23004
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-voice-frame", children: [
23005
- /* @__PURE__ */ f.jsx(ct, { agent: t, size: "hero", className: B }),
23006
- /* @__PURE__ */ f.jsx("div", { className: de("rqmii-chat-agent-name", w && "is-muted"), dir: De(n), children: U ? /* @__PURE__ */ f.jsx(Z_, { name: t.name, language: n }) : /* @__PURE__ */ f.jsx("bdi", { children: t.name }) }),
23005
+ j ? (
23006
+ // The voice screen's busy ring turns like the welcome bubble's border, in red.
23007
+ /* @__PURE__ */ f.jsx("span", { className: "rqmii-chat-busy-ring", children: /* @__PURE__ */ f.jsx(it, { agent: t, size: "hero" }) })
23008
+ ) : /* @__PURE__ */ f.jsx(it, { agent: t, size: "hero", className: B }),
23009
+ /* @__PURE__ */ f.jsx("div", { className: de("rqmii-chat-agent-name", w && "is-muted"), dir: De(n), children: j ? /* @__PURE__ */ f.jsx(Z_, { name: t.name, language: n }) : /* @__PURE__ */ f.jsx("bdi", { children: t.name }) }),
23007
23010
  $
23008
23011
  ] }),
23009
23012
  /* @__PURE__ */ f.jsx(tn, { language: n, agent: t })
23010
23013
  ] });
23011
23014
  const X = t.widget?.appearance?.show_topbar_avatar_image !== !1;
23012
- return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--conversation", it()), style: M, children: [
23015
+ return /* @__PURE__ */ f.jsxs("div", { className: de("rqmii-chat-panel rqmii-chat-panel--conversation", at()), style: M, children: [
23013
23016
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar", children: [
23014
23017
  /* @__PURE__ */ f.jsxs("div", { className: "rqmii-chat-topbar-agent", children: [
23015
- X && /* @__PURE__ */ f.jsx(ct, { agent: t, size: "header", className: B }),
23016
- U && /* @__PURE__ */ f.jsx("span", { className: "rqmii-chat-busy-label", dir: De(n), children: J(n, "agentBusyStatus") })
23018
+ X && /* @__PURE__ */ f.jsx(it, { agent: t, size: "header", className: B }),
23019
+ j && /* @__PURE__ */ f.jsx("span", { className: "rqmii-chat-busy-label", dir: De(n), children: J(n, "agentBusyStatus") })
23017
23020
  ] }),
23018
23021
  G
23019
23022
  ] }),
@@ -23021,7 +23024,7 @@ const K_ = ye.memo(function({ agent: t, language: n, onRestore: r, onClose: i, i
23021
23024
  /* @__PURE__ */ f.jsx(Ls, { messages: a, language: n }),
23022
23025
  $
23023
23026
  ] }),
23024
- j && /* @__PURE__ */ f.jsx(Is, { language: n, onSend: l, disabled: w, isVoiceEnabled: i === "hybrid" }),
23027
+ U && /* @__PURE__ */ f.jsx(Is, { language: n, onSend: l, disabled: w, isVoiceEnabled: i === "hybrid" }),
23025
23028
  /* @__PURE__ */ f.jsx(tn, { language: n, agent: t })
23026
23029
  ] });
23027
23030
  });
@@ -23264,7 +23267,7 @@ function hS({ track: e, onShowing: t }) {
23264
23267
  function fS({ agent: e, language: t }) {
23265
23268
  return /* @__PURE__ */ f.jsxs("div", { className: "rqmii-avatar-preparing", role: "status", children: [
23266
23269
  e.faceImage && /* @__PURE__ */ f.jsx("div", { className: "rqmii-avatar-preparing-backdrop", style: { backgroundImage: `url("${e.faceImage}")` } }),
23267
- /* @__PURE__ */ f.jsx(ct, { agent: e, size: "start" }),
23270
+ /* @__PURE__ */ f.jsx(it, { agent: e, size: "start" }),
23268
23271
  /* @__PURE__ */ f.jsxs("span", { className: "rqmii-avatar-preparing-text", dir: De(t), children: [
23269
23272
  /* @__PURE__ */ f.jsx(nn, { className: "rqmii-chat-spin", size: 16 }),
23270
23273
  J(t, "preparingAvatar")
@@ -23283,7 +23286,7 @@ const pS = ye.memo(function({ agent: t, language: n, sdk: r, onEndSession: i, on
23283
23286
  /* @__PURE__ */ f.jsxs(
23284
23287
  "div",
23285
23288
  {
23286
- className: de("rqmii-avatar-call", m && "is-chat-open", k && "is-fullscreen", it()),
23289
+ className: de("rqmii-avatar-call", m && "is-chat-open", k && "is-fullscreen", at()),
23287
23290
  dir: "ltr",
23288
23291
  children: [
23289
23292
  /* @__PURE__ */ f.jsxs("div", { ref: d, className: "rqmii-avatar-stage", children: [
@@ -23359,7 +23362,7 @@ function ES({
23359
23362
  {
23360
23363
  className: de(
23361
23364
  "rqmii-chat-panel rqmii-chat-panel--consent",
23362
- it()
23365
+ at()
23363
23366
  ),
23364
23367
  dir: De(e),
23365
23368
  children: [
@@ -23417,12 +23420,12 @@ const Rs = ye.memo(function({
23417
23420
  return !1;
23418
23421
  }
23419
23422
  return !1;
23420
- }), v = d || Ia(t), O = !l && (!!g || !!k), U = v === "avatar" ? !!h.isInRoom : h.isSessionReady, [w, B] = E.useState(() => Yn(v) && U), [$, W] = E.useState(() => (v === "text" || v === "hybrid") && h.isSessionReady), [Y, j] = E.useState(!1), [G, X] = E.useState(O), [ae, fe] = E.useState(null), T = Yn(v) && w || v === "hybrid" && $, Ie = Xh(T), Ne = Zh(), N = A && !!S && !M && !l, { events: ge } = Xo();
23423
+ }), v = d || Ia(t), O = !l && (!!g || !!k), j = v === "avatar" ? !!h.isInRoom : h.isSessionReady, [w, B] = E.useState(() => Yn(v) && j), [$, W] = E.useState(() => (v === "text" || v === "hybrid") && h.isSessionReady), [Y, U] = E.useState(!1), [G, X] = E.useState(O), [ae, fe] = E.useState(null), T = Yn(v) && w || v === "hybrid" && $, Ie = Xh(T), Ne = Zh(), N = A && !!S && !M && !l, { events: ge } = Xo();
23421
23424
  E.useEffect(() => {
23422
23425
  if (!ge) return;
23423
23426
  const Ee = () => {
23424
- Qi() && j(!0);
23425
- }, Xe = () => j(!1);
23427
+ Qi() && U(!0);
23428
+ }, Xe = () => U(!1);
23426
23429
  return ge.on("minimize_chat", Ee), ge.on("maximize_chat", Xe), () => {
23427
23430
  ge.off("minimize_chat", Ee), ge.off("maximize_chat", Xe);
23428
23431
  };
@@ -23452,8 +23455,8 @@ const Rs = ye.memo(function({
23452
23455
  E.useEffect(() => {
23453
23456
  V.current || l || (g ? (V.current = !0, Pe(g)) : k && (V.current = !0, fe(null), X(!0), h.isVoiceActive || h.startVoice()));
23454
23457
  }, []), E.useEffect(() => {
23455
- G && U && (X(!1), Yn(v) ? B(!0) : W(!0));
23456
- }, [G, U, v]), E.useEffect(() => {
23458
+ G && j && (X(!1), Yn(v) ? B(!0) : W(!0));
23459
+ }, [G, j, v]), E.useEffect(() => {
23457
23460
  G && h.error && (X(!1), fe(h.error));
23458
23461
  }, [G, h.error]);
23459
23462
  const ue = E.useCallback(() => {
@@ -23481,8 +23484,8 @@ const Rs = ye.memo(function({
23481
23484
  isPreview: l,
23482
23485
  onLanguageChange: Le,
23483
23486
  onClose: a,
23484
- onMinimize: () => j(!0),
23485
- onRestore: () => j(!1),
23487
+ onMinimize: () => U(!0),
23488
+ onRestore: () => U(!1),
23486
23489
  onSend: Pe,
23487
23490
  voiceStarted: w,
23488
23491
  conversationStarted: $,
@@ -23495,7 +23498,7 @@ const Rs = ye.memo(function({
23495
23498
  fe(null), X(!0), h.sendSuggestion?.(Ee);
23496
23499
  } });
23497
23500
  }), xS = ye.memo(function({ agent: t, language: n, languages: r, chatKind: i, sdk: a, onLanguageChange: s, onClose: u, onMinimize: o, onRestore: l, onSend: d, voiceStarted: h, conversationStarted: p, isMinimized: m, elapsed: g, setVoiceStarted: k, setConversationStarted: C, visualViewportHeight: A, connecting: S = !1, connectError: y = null, onCloseWidget: D, initiateVoice: M, onSendSuggestion: I }) {
23498
- const v = t.widget?.behavior?.typing_indicator_enabled ?? !0, O = i === "text" ? a.waitingForResponse && v : !1, U = a.messages;
23501
+ const v = t.widget?.behavior?.typing_indicator_enabled ?? !0, O = i === "text" ? a.waitingForResponse && v : !1, j = a.messages;
23499
23502
  if (m)
23500
23503
  return /* @__PURE__ */ f.jsx(K_, { agent: t, language: n, onRestore: l, onClose: u, isListening: a.isVoiceActive, isAudioPlaying: a.isAudioPlaying, isSpeaking: a.mic.isSpeaking, isAgentSpeaking: a.isAgentSpeaking, isFirstAgentSpeech: a.isFirstAgentSpeech, onToggleVoice: a.toggleVoice, elapsed: g, variant: i === "text" ? "text" : "voice" });
23501
23504
  if (i === "voice" && h)
@@ -23510,7 +23513,7 @@ const Rs = ye.memo(function({
23510
23513
  }, $ = i === "hybrid" || Ia(t) === "hybrid";
23511
23514
  return /* @__PURE__ */ f.jsx(V_, { agent: t, language: n, languages: r, onLanguageChange: s, onClose: D, onSend: d, isVoiceEnabled: $, isAudioPlaying: a.isAudioPlaying, isVoiceSetupLoading: a.isVoiceSetupLoading || S, onStartVoice: M, visualViewportHeight: A, disabled: S, connecting: S, error: y || void 0, suggestions: w, onSuggestionClick: B, compact: !!w });
23512
23515
  }
23513
- return /* @__PURE__ */ f.jsx(G_, { agent: t, language: n, onEndSession: u, messages: U, partialTranscript: TS(a.partialTranscript), onSend: d, isAudioPlaying: a.isAudioPlaying, isVoiceEnabled: i === "hybrid", isListening: a.isVoiceActive, isSpeaking: a.mic.isSpeaking, isLoading: a.mic.isLoading, isAgentThinking: a.isAgentThinking, isAgentSpeaking: a.isAgentSpeaking, isFirstAgentSpeech: a.isFirstAgentSpeech, onToggleVoice: a.toggleVoice, onStartVoice: a.startVoice, onMinimize: o, elapsed: g, visualViewportHeight: A, waitingForResponse: O });
23516
+ return /* @__PURE__ */ f.jsx(G_, { agent: t, language: n, onEndSession: u, messages: j, partialTranscript: TS(a.partialTranscript), onSend: d, isAudioPlaying: a.isAudioPlaying, isVoiceEnabled: i === "hybrid", isListening: a.isVoiceActive, isSpeaking: a.mic.isSpeaking, isLoading: a.mic.isLoading, isAgentThinking: a.isAgentThinking, isAgentSpeaking: a.isAgentSpeaking, isFirstAgentSpeech: a.isFirstAgentSpeech, onToggleVoice: a.toggleVoice, onStartVoice: a.startVoice, onMinimize: o, elapsed: g, visualViewportHeight: A, waitingForResponse: O });
23514
23517
  });
23515
23518
  function kS(e, t, n = []) {
23516
23519
  const { events: r } = En();
@@ -23518,7 +23521,7 @@ function kS(e, t, n = []) {
23518
23521
  }
23519
23522
  const yS = { isListening: !1, isLoading: !1, isSpeaking: !1 };
23520
23523
  function Os() {
23521
- const { messages: e, sendTextMessage: t, clearMessages: n } = Ko(), { partialTranscript: r, microphone: i, talkMode: a, isUserSpeaking: s, isAudioPlaying: u, setMicrophoneEnabled: o } = Uh(), { changeSessionLanguage: l, clearSessionHistory: d, interrupt: h, error: p, isConnected: m, isSessionReady: g, isAgentThinking: k, isAgentSpeaking: C, isFirstAgentSpeech: A, session: S } = Xo(), [y, D] = E.useState([]), [M, I] = E.useState(!1), [v, O] = E.useState(!1), U = E.useRef(!1), w = E.useRef(e.length);
23524
+ const { messages: e, sendTextMessage: t, clearMessages: n } = Ko(), { partialTranscript: r, microphone: i, talkMode: a, isUserSpeaking: s, isAudioPlaying: u, setMicrophoneEnabled: o } = Uh(), { changeSessionLanguage: l, clearSessionHistory: d, interrupt: h, error: p, isConnected: m, isSessionReady: g, isAgentThinking: k, isAgentSpeaking: C, isFirstAgentSpeech: A, session: S } = Xo(), [y, D] = E.useState([]), [M, I] = E.useState(!1), [v, O] = E.useState(!1), j = E.useRef(!1), w = E.useRef(e.length);
23522
23525
  E.useEffect(() => {
23523
23526
  !g || y.length === 0 || (y.forEach((ae) => t(ae)), D([]));
23524
23527
  }, [g, y, t]), E.useEffect(() => {
@@ -23530,13 +23533,13 @@ function Os() {
23530
23533
  }, [e]), kS("message_rate_limited", E.useCallback(() => I(!1), []));
23531
23534
  const B = a === Jh.PUSH_TO_TALK, $ = m && S.modality === "voice";
23532
23535
  E.useEffect(() => {
23533
- !$ || B || i.pending || (v && !i.enabled && !U.current ? (U.current = !0, o(!0)) : !v && i.enabled && o(!1));
23536
+ !$ || B || i.pending || (v && !i.enabled && !j.current ? (j.current = !0, o(!0)) : !v && i.enabled && o(!1));
23534
23537
  }, [$, B, v, i.enabled, i.pending, o]);
23535
23538
  const W = E.useCallback((ae) => {
23536
- ae && (U.current = !1), O(ae);
23539
+ ae && (j.current = !1), O(ae);
23537
23540
  }, []), Y = E.useCallback((ae) => {
23538
23541
  I(!0), g ? t(ae) : D((fe) => [...fe, ae]);
23539
- }, [g, t]), j = E.useMemo(() => y.length === 0 ? e : [...e, ...y.map((ae, fe) => ({ id: `pending-${fe}`, role: "user", text: ae }))], [e, y]), G = E.useCallback(() => {
23542
+ }, [g, t]), U = E.useMemo(() => y.length === 0 ? e : [...e, ...y.map((ae, fe) => ({ id: `pending-${fe}`, role: "user", text: ae }))], [e, y]), G = E.useCallback(() => {
23540
23543
  D([]), n();
23541
23544
  }, [n]), X = {
23542
23545
  isListening: i.enabled,
@@ -23544,7 +23547,7 @@ function Os() {
23544
23547
  isSpeaking: s
23545
23548
  };
23546
23549
  return {
23547
- displayMessages: j,
23550
+ displayMessages: U,
23548
23551
  send: Y,
23549
23552
  clearAll: G,
23550
23553
  waitingForResponse: M,
@@ -23753,4 +23756,4 @@ export {
23753
23756
  He as R,
23754
23757
  RS as W
23755
23758
  };
23756
- //# sourceMappingURL=mermaid-WFAXDIZX-OtW4F01K.js.map
23759
+ //# sourceMappingURL=mermaid-WFAXDIZX-CH5kl7g7.js.map