@multiplayer-app/ai-agent-react 0.1.0-beta.74 → 0.1.0-beta.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { z as j } from "zod";
2
2
  import * as te from "react";
3
- import Bn, { forwardRef as So, createElement as xd, useMemo as yt, useState as st, useEffect as He, useLayoutEffect as No, memo as Bt, useCallback as it, useRef as tt, createContext as gp, useContext as yp, useImperativeHandle as a_, isValidElement as G5 } from "react";
4
- import { useInfiniteQuery as bp, useQuery as Sr, useQueryClient as i_, useMutation as h2, QueryClient as o_, QueryClientProvider as s_ } from "@tanstack/react-query";
3
+ import Bn, { forwardRef as So, createElement as xd, useMemo as yt, useState as lt, useEffect as He, useLayoutEffect as No, memo as Bt, useCallback as it, useRef as tt, createContext as yp, useContext as bp, useImperativeHandle as a_, isValidElement as G5 } from "react";
4
+ import { useInfiniteQuery as kp, useQuery as Sr, useQueryClient as i_, useMutation as m2, QueryClient as o_, QueryClientProvider as s_ } from "@tanstack/react-query";
5
5
  import { create as l_, useStore as c_ } from "zustand";
6
6
  import { nanoid as Ft } from "nanoid";
7
7
  import * as W5 from "react-dom";
@@ -27,7 +27,7 @@ const d_ = j.object({
27
27
  tools: j.array(j.string()).default([]),
28
28
  defaultModel: j.string().optional(),
29
29
  autoConfirmTools: j.array(j.string()).optional()
30
- }), m2 = j.object({
30
+ }), f2 = j.object({
31
31
  appId: j.string(),
32
32
  workspaceId: j.string().optional(),
33
33
  debug: j.boolean().optional(),
@@ -217,11 +217,11 @@ var Md = { exports: {} }, Ea = {};
217
217
  * This source code is licensed under the MIT license found in the
218
218
  * LICENSE file in the root directory of this source tree.
219
219
  */
220
- var f2;
220
+ var g2;
221
221
  function h_() {
222
- if (f2)
222
+ if (g2)
223
223
  return Ea;
224
- f2 = 1;
224
+ g2 = 1;
225
225
  var e = Bn, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
226
226
  function o(s, l, u) {
227
227
  var d, p = {}, m = null, h = null;
@@ -245,9 +245,9 @@ var Ma = {};
245
245
  * This source code is licensed under the MIT license found in the
246
246
  * LICENSE file in the root directory of this source tree.
247
247
  */
248
- var g2;
248
+ var y2;
249
249
  function m_() {
250
- return g2 || (g2 = 1, process.env.NODE_ENV !== "production" && function() {
250
+ return y2 || (y2 = 1, process.env.NODE_ENV !== "production" && function() {
251
251
  var e = Bn, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, f = "@@iterator";
252
252
  function _(H) {
253
253
  if (H === null || typeof H != "object")
@@ -267,10 +267,10 @@ function m_() {
267
267
  {
268
268
  var Re = v.ReactDebugCurrentFrame, at = Re.getStackAddendum();
269
269
  at !== "" && (ie += "%s", ye = ye.concat([at]));
270
- var lt = ye.map(function(Je) {
270
+ var ct = ye.map(function(Je) {
271
271
  return String(Je);
272
272
  });
273
- lt.unshift("Warning: " + ie), Function.prototype.apply.call(console[H], console, lt);
273
+ ct.unshift("Warning: " + ie), Function.prototype.apply.call(console[H], console, ct);
274
274
  }
275
275
  }
276
276
  var x = !1, S = !1, E = !1, $ = !1, B = !1, C;
@@ -327,9 +327,9 @@ function m_() {
327
327
  var Re = H.displayName || null;
328
328
  return Re !== null ? Re : J(H.type) || "Memo";
329
329
  case m: {
330
- var at = H, lt = at._payload, Je = at._init;
330
+ var at = H, ct = at._payload, Je = at._init;
331
331
  try {
332
- return J(Je(lt));
332
+ return J(Je(ct));
333
333
  } catch {
334
334
  return null;
335
335
  }
@@ -430,8 +430,8 @@ function m_() {
430
430
  Xe = !0;
431
431
  var at = Error.prepareStackTrace;
432
432
  Error.prepareStackTrace = void 0;
433
- var lt;
434
- lt = ke.current, ke.current = null, de();
433
+ var ct;
434
+ ct = ke.current, ke.current = null, de();
435
435
  try {
436
436
  if (ie) {
437
437
  var Je = function() {
@@ -484,7 +484,7 @@ function m_() {
484
484
  }
485
485
  }
486
486
  } finally {
487
- Xe = !1, ke.current = lt, fe(), Error.prepareStackTrace = at;
487
+ Xe = !1, ke.current = ct, fe(), Error.prepareStackTrace = at;
488
488
  }
489
489
  var Yr = H ? H.displayName || H.name : "", Cr = Yr ? Fe(Yr) : "";
490
490
  return typeof H == "function" && ne.set(H, Cr), Cr;
@@ -516,9 +516,9 @@ function m_() {
516
516
  case p:
517
517
  return Ce(H.type, ie, ye);
518
518
  case m: {
519
- var Re = H, at = Re._payload, lt = Re._init;
519
+ var Re = H, at = Re._payload, ct = Re._init;
520
520
  try {
521
- return Ce(lt(at), ie, ye);
521
+ return Ce(ct(at), ie, ye);
522
522
  } catch {
523
523
  }
524
524
  }
@@ -535,9 +535,9 @@ function m_() {
535
535
  }
536
536
  function Ue(H, ie, ye, Re, at) {
537
537
  {
538
- var lt = Function.call.bind(xe);
538
+ var ct = Function.call.bind(xe);
539
539
  for (var Je in H)
540
- if (lt(H, Je)) {
540
+ if (ct(H, Je)) {
541
541
  var Ge = void 0;
542
542
  try {
543
543
  if (typeof H[Je] != "function") {
@@ -623,7 +623,7 @@ function m_() {
623
623
  });
624
624
  }
625
625
  }
626
- var wt = function(H, ie, ye, Re, at, lt, Je) {
626
+ var wt = function(H, ie, ye, Re, at, ct, Je) {
627
627
  var Ge = {
628
628
  // This tag allows us to uniquely identify this as a React Element
629
629
  $$typeof: t,
@@ -633,7 +633,7 @@ function m_() {
633
633
  ref: ye,
634
634
  props: Je,
635
635
  // Record the component responsible for creating this element.
636
- _owner: lt
636
+ _owner: ct
637
637
  };
638
638
  return Ge._store = {}, Object.defineProperty(Ge._store, "validated", {
639
639
  configurable: !1,
@@ -654,14 +654,14 @@ function m_() {
654
654
  };
655
655
  function Ot(H, ie, ye, Re, at) {
656
656
  {
657
- var lt, Je = {}, Ge = null, Ht = null;
657
+ var ct, Je = {}, Ge = null, Ht = null;
658
658
  ye !== void 0 && (q(ye), Ge = "" + ye), At(ie) && (q(ie.key), Ge = "" + ie.key), Ve(ie) && (Ht = ie.ref, Rt(ie, at));
659
- for (lt in ie)
660
- xe.call(ie, lt) && !le.hasOwnProperty(lt) && (Je[lt] = ie[lt]);
659
+ for (ct in ie)
660
+ xe.call(ie, ct) && !le.hasOwnProperty(ct) && (Je[ct] = ie[ct]);
661
661
  if (H && H.defaultProps) {
662
662
  var vt = H.defaultProps;
663
- for (lt in vt)
664
- Je[lt] === void 0 && (Je[lt] = vt[lt]);
663
+ for (ct in vt)
664
+ Je[ct] === void 0 && (Je[ct] = vt[ct]);
665
665
  }
666
666
  if (Ge || Ht) {
667
667
  var xt = typeof H == "function" ? H.displayName || H.name || "Unknown" : H;
@@ -683,7 +683,7 @@ function m_() {
683
683
  function ds(H) {
684
684
  return typeof H == "object" && H !== null && H.$$typeof === t;
685
685
  }
686
- function s2() {
686
+ function l2() {
687
687
  {
688
688
  if (It.current) {
689
689
  var H = J(It.current.type);
@@ -698,10 +698,10 @@ Check the render method of \`` + H + "`.";
698
698
  function K7(H) {
699
699
  return "";
700
700
  }
701
- var l2 = {};
701
+ var c2 = {};
702
702
  function Y7(H) {
703
703
  {
704
- var ie = s2();
704
+ var ie = l2();
705
705
  if (!ie) {
706
706
  var ye = typeof H == "string" ? H : H.displayName || H.name;
707
707
  ye && (ie = `
@@ -711,35 +711,35 @@ Check the top-level render call using <` + ye + ">.");
711
711
  return ie;
712
712
  }
713
713
  }
714
- function c2(H, ie) {
714
+ function u2(H, ie) {
715
715
  {
716
716
  if (!H._store || H._store.validated || H.key != null)
717
717
  return;
718
718
  H._store.validated = !0;
719
719
  var ye = Y7(ie);
720
- if (l2[ye])
720
+ if (c2[ye])
721
721
  return;
722
- l2[ye] = !0;
722
+ c2[ye] = !0;
723
723
  var Re = "";
724
724
  H && H._owner && H._owner !== It.current && (Re = " It was passed a child from " + J(H._owner.type) + "."), Qn(H), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ye, Re), Qn(null);
725
725
  }
726
726
  }
727
- function u2(H, ie) {
727
+ function d2(H, ie) {
728
728
  {
729
729
  if (typeof H != "object")
730
730
  return;
731
731
  if (ve(H))
732
732
  for (var ye = 0; ye < H.length; ye++) {
733
733
  var Re = H[ye];
734
- ds(Re) && c2(Re, ie);
734
+ ds(Re) && u2(Re, ie);
735
735
  }
736
736
  else if (ds(H))
737
737
  H._store && (H._store.validated = !0);
738
738
  else if (H) {
739
739
  var at = _(H);
740
740
  if (typeof at == "function" && at !== H.entries)
741
- for (var lt = at.call(H), Je; !(Je = lt.next()).done; )
742
- ds(Je.value) && c2(Je.value, ie);
741
+ for (var ct = at.call(H), Je; !(Je = ct.next()).done; )
742
+ ds(Je.value) && u2(Je.value, ie);
743
743
  }
744
744
  }
745
745
  }
@@ -780,19 +780,19 @@ Check the top-level render call using <` + ye + ">.");
780
780
  H.ref !== null && (Qn(H), b("Invalid attribute `ref` supplied to `React.Fragment`."), Qn(null));
781
781
  }
782
782
  }
783
- var d2 = {};
784
- function p2(H, ie, ye, Re, at, lt) {
783
+ var p2 = {};
784
+ function h2(H, ie, ye, Re, at, ct) {
785
785
  {
786
786
  var Je = D(H);
787
787
  if (!Je) {
788
788
  var Ge = "";
789
789
  (H === void 0 || typeof H == "object" && H !== null && Object.keys(H).length === 0) && (Ge += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
790
790
  var Ht = K7();
791
- Ht ? Ge += Ht : Ge += s2();
791
+ Ht ? Ge += Ht : Ge += l2();
792
792
  var vt;
793
793
  H === null ? vt = "null" : ve(H) ? vt = "array" : H !== void 0 && H.$$typeof === t ? (vt = "<" + (J(H.type) || "Unknown") + " />", Ge = " Did you accidentally export a JSX literal instead of a component?") : vt = typeof H, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", vt, Ge);
794
794
  }
795
- var xt = Ot(H, ie, ye, at, lt);
795
+ var xt = Ot(H, ie, ye, at, ct);
796
796
  if (xt == null)
797
797
  return xt;
798
798
  if (Je) {
@@ -801,35 +801,35 @@ Check the top-level render call using <` + ye + ">.");
801
801
  if (Re)
802
802
  if (ve(hn)) {
803
803
  for (var Yr = 0; Yr < hn.length; Yr++)
804
- u2(hn[Yr], H);
804
+ d2(hn[Yr], H);
805
805
  Object.freeze && Object.freeze(hn);
806
806
  } else
807
807
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
808
808
  else
809
- u2(hn, H);
809
+ d2(hn, H);
810
810
  }
811
811
  if (xe.call(ie, "key")) {
812
812
  var Cr = J(H), Zt = Object.keys(ie).filter(function(r_) {
813
813
  return r_ !== "key";
814
814
  }), ps = Zt.length > 0 ? "{key: someKey, " + Zt.join(": ..., ") + ": ...}" : "{key: someKey}";
815
- if (!d2[Cr + ps]) {
815
+ if (!p2[Cr + ps]) {
816
816
  var n_ = Zt.length > 0 ? "{" + Zt.join(": ..., ") + ": ...}" : "{}";
817
817
  b(`A props object containing a "key" prop is being spread into JSX:
818
818
  let props = %s;
819
819
  <%s {...props} />
820
820
  React keys must be passed directly to JSX without using spread:
821
821
  let props = %s;
822
- <%s key={someKey} {...props} />`, ps, Cr, n_, Cr), d2[Cr + ps] = !0;
822
+ <%s key={someKey} {...props} />`, ps, Cr, n_, Cr), p2[Cr + ps] = !0;
823
823
  }
824
824
  }
825
825
  return H === r ? X7(xt) : Z7(xt), xt;
826
826
  }
827
827
  }
828
828
  function Q7(H, ie, ye) {
829
- return p2(H, ie, ye, !0);
829
+ return h2(H, ie, ye, !0);
830
830
  }
831
831
  function J7(H, ie, ye) {
832
- return p2(H, ie, ye, !1);
832
+ return h2(H, ie, ye, !1);
833
833
  }
834
834
  var e_ = J7, t_ = Q7;
835
835
  Ma.Fragment = r, Ma.jsx = e_, Ma.jsxs = t_;
@@ -840,10 +840,10 @@ var N = Md.exports, ro;
840
840
  (function(e) {
841
841
  e.Asc = "asc", e.Desc = "desc";
842
842
  })(ro || (ro = {}));
843
- var ct;
843
+ var st;
844
844
  (function(e) {
845
845
  e.System = "system", e.User = "user", e.Assistant = "assistant", e.Tool = "tool", e.Reasoning = "reasoning", e.Error = "error";
846
- })(ct || (ct = {}));
846
+ })(st || (st = {}));
847
847
  var Tt;
848
848
  (function(e) {
849
849
  e.File = "file", e.Link = "link", e.Artifact = "artifact", e.Context = "context";
@@ -852,10 +852,10 @@ var $t;
852
852
  (function(e) {
853
853
  e.Pending = "pending", e.Running = "running", e.Succeeded = "succeeded", e.Failed = "failed";
854
854
  })($t || ($t = {}));
855
- var y2;
855
+ var b2;
856
856
  (function(e) {
857
857
  e.Queued = "queued", e.ApprovalRequired = "approvalRequired", e.Running = "running", e.Paused = "paused", e.Error = "error", e.Complete = "complete";
858
- })(y2 || (y2 = {}));
858
+ })(b2 || (b2 = {}));
859
859
  var Tn;
860
860
  (function(e) {
861
861
  e.Message = "message", e.Reasoning = "reasoning", e.Tool = "tool", e.Artifact = "artifact", e.Error = "error", e.Chat = "chat";
@@ -868,25 +868,25 @@ var ca;
868
868
  (function(e) {
869
869
  e.Processing = "processing", e.Streaming = "streaming", e.Finished = "finished", e.Aborted = "aborted", e.WaitingForUserAction = "waitingForUserAction", e.Error = "error";
870
870
  })(ca || (ca = {}));
871
- var b2;
872
- (function(e) {
873
- e.API_TOOL = "api_tool", e.WEB_SEARCH = "web_search", e.LOCAL_FUNCTION = "local_function", e.SUBAGENT = "subagent", e.REQUEST_CLARIFICATION = "request_clarification";
874
- })(b2 || (b2 = {}));
875
871
  var k2;
876
872
  (function(e) {
877
- e.MESSAGE_PROCESSING = "messageProcessing", e.AGENT_SELECTION = "agentSelection", e.STEP_FINISHED = "stepFinished", e.TITLE_GENERATION = "titleGeneration", e.SUBAGENT = "subagent";
873
+ e.API_TOOL = "api_tool", e.WEB_SEARCH = "web_search", e.LOCAL_FUNCTION = "local_function", e.SUBAGENT = "subagent", e.REQUEST_CLARIFICATION = "request_clarification";
878
874
  })(k2 || (k2 = {}));
879
875
  var v2;
880
876
  (function(e) {
881
- e.ROOT = "ROOT", e.SUBAGENT = "SUBAGENT";
877
+ e.MESSAGE_PROCESSING = "messageProcessing", e.AGENT_SELECTION = "agentSelection", e.STEP_FINISHED = "stepFinished", e.TITLE_GENERATION = "titleGeneration", e.SUBAGENT = "subagent";
882
878
  })(v2 || (v2 = {}));
879
+ var Nd;
880
+ (function(e) {
881
+ e.ROOT = "ROOT", e.SUBAGENT = "SUBAGENT";
882
+ })(Nd || (Nd = {}));
883
883
  var hs = {
884
884
  ChatNew: "chat:new",
885
885
  MessageNew: "message:new",
886
886
  ChatUpdate: "chat:update",
887
887
  ChatSubscribe: "chat:subscribe",
888
888
  ChatUnsubscribe: "chat:unsubscribe"
889
- }, Nd = {
889
+ }, Ad = {
890
890
  Path: "/socket.io",
891
891
  UserRoomPrefix: "user:",
892
892
  DefaultUserId: "guest"
@@ -1538,7 +1538,7 @@ class ms {
1538
1538
  const n = await Lt.getMessages(t);
1539
1539
  if (!n.length)
1540
1540
  return;
1541
- const r = n.filter((a) => a.role !== ct.Error);
1541
+ const r = n.filter((a) => a.role !== st.Error);
1542
1542
  r.length !== n.length && await Lt.saveMessages(t, r);
1543
1543
  }
1544
1544
  async appendErrorMessage(t, n) {
@@ -1546,7 +1546,7 @@ class ms {
1546
1546
  id: Ft(),
1547
1547
  chat: t,
1548
1548
  content: n,
1549
- role: ct.Error,
1549
+ role: st.Error,
1550
1550
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
1551
1551
  reasoning: "",
1552
1552
  toolCalls: [],
@@ -1593,7 +1593,7 @@ class ms {
1593
1593
  }
1594
1594
  toOpenAIMessage(t) {
1595
1595
  return {
1596
- role: t.role === ct.Reasoning ? ct.Assistant : t.role,
1596
+ role: t.role === st.Reasoning ? st.Assistant : t.role,
1597
1597
  content: t.content
1598
1598
  };
1599
1599
  }
@@ -1660,7 +1660,7 @@ class ms {
1660
1660
  const r = await Lt.getMessages(n.id), a = {
1661
1661
  id: Ft(),
1662
1662
  chat: n.id,
1663
- role: ct.User,
1663
+ role: st.User,
1664
1664
  content: t.content,
1665
1665
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
1666
1666
  attachments: t.attachments ?? [],
@@ -1671,7 +1671,7 @@ class ms {
1671
1671
  const o = await this.callModel(i, t.model, t.contextKey), s = {
1672
1672
  id: Ft(),
1673
1673
  chat: n.id,
1674
- role: ct.Assistant,
1674
+ role: st.Assistant,
1675
1675
  content: o,
1676
1676
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
1677
1677
  reasoning: "",
@@ -1693,7 +1693,7 @@ class ms {
1693
1693
  const s = {
1694
1694
  id: Ft(),
1695
1695
  chat: i.id,
1696
- role: ct.User,
1696
+ role: st.User,
1697
1697
  content: t.content,
1698
1698
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
1699
1699
  attachments: t.attachments
@@ -1736,7 +1736,7 @@ class ms {
1736
1736
  const _ = {
1737
1737
  id: Ft(),
1738
1738
  chat: i.id,
1739
- role: ct.Assistant,
1739
+ role: st.Assistant,
1740
1740
  content: "",
1741
1741
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
1742
1742
  };
@@ -3309,7 +3309,7 @@ const cE = [
3309
3309
  const dE = [
3310
3310
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
3311
3311
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
3312
- ], kp = c("arrow-up", dE);
3312
+ ], vp = c("arrow-up", dE);
3313
3313
  /**
3314
3314
  * @license lucide-react v0.555.0 - ISC
3315
3315
  *
@@ -6931,7 +6931,7 @@ const qI = [
6931
6931
  * This source code is licensed under the ISC license.
6932
6932
  * See the LICENSE file in the root directory of this source tree.
6933
6933
  */
6934
- const UI = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], vp = c("chevron-down", UI);
6934
+ const UI = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], _p = c("chevron-down", UI);
6935
6935
  /**
6936
6936
  * @license lucide-react v0.555.0 - ISC
6937
6937
  *
@@ -12980,7 +12980,7 @@ const ZW = [
12980
12980
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
12981
12981
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
12982
12982
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
12983
- ], _p = c("globe", ZW);
12983
+ ], wp = c("globe", ZW);
12984
12984
  /**
12985
12985
  * @license lucide-react v0.555.0 - ISC
12986
12986
  *
@@ -20815,7 +20815,7 @@ const Wue = [
20815
20815
  ["path", { d: "M7 8h8", key: "1jbsf9" }],
20816
20816
  ["path", { d: "M7 12h10", key: "b7w52i" }],
20817
20817
  ["path", { d: "M7 16h6", key: "1vyc9m" }]
20818
- ], wp = c("scan-text", Wue);
20818
+ ], xp = c("scan-text", Wue);
20819
20819
  /**
20820
20820
  * @license lucide-react v0.555.0 - ISC
20821
20821
  *
@@ -26734,7 +26734,7 @@ const L6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
26734
26734
  ArrowRightFromLine: L9,
26735
26735
  ArrowRightLeft: $9,
26736
26736
  ArrowRightToLine: F9,
26737
- ArrowUp: kp,
26737
+ ArrowUp: vp,
26738
26738
  ArrowUp01: U9,
26739
26739
  ArrowUp10: j9,
26740
26740
  ArrowUpAZ: G9,
@@ -26978,7 +26978,7 @@ const L6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
26978
26978
  ChessPawn: DI,
26979
26979
  ChessQueen: PI,
26980
26980
  ChessRook: BI,
26981
- ChevronDown: vp,
26981
+ ChevronDown: _p,
26982
26982
  ChevronFirst: jI,
26983
26983
  ChevronLast: GI,
26984
26984
  ChevronLeft: ZI,
@@ -27388,7 +27388,7 @@ const L6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
27388
27388
  Gitlab: BW,
27389
27389
  GlassWater: WW,
27390
27390
  Glasses: VW,
27391
- Globe: _p,
27391
+ Globe: wp,
27392
27392
  GlobeLock: YW,
27393
27393
  Goal: QW,
27394
27394
  Gpu: eK,
@@ -27903,7 +27903,7 @@ const L6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
27903
27903
  ScanLine: Uue,
27904
27904
  ScanQrCode: jue,
27905
27905
  ScanSearch: Gue,
27906
- ScanText: wp,
27906
+ ScanText: xp,
27907
27907
  School: Xue,
27908
27908
  Scissors: tde,
27909
27909
  ScissorsLineDashed: Jue,
@@ -28329,7 +28329,7 @@ const L6e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
28329
28329
  const d = Math.round(l / 365);
28330
28330
  return i.format(d, "year");
28331
28331
  }, z6e = ({ date: e, refreshMs: t = 3e4, emptyText: n = "" }) => {
28332
- const r = yt(() => D6e(e), [e]), [a, i] = st(() => /* @__PURE__ */ new Date());
28332
+ const r = yt(() => D6e(e), [e]), [a, i] = lt(() => /* @__PURE__ */ new Date());
28333
28333
  return He(() => {
28334
28334
  if (!r)
28335
28335
  return;
@@ -28341,7 +28341,7 @@ function Ro() {
28341
28341
  return typeof window < "u";
28342
28342
  }
28343
28343
  function ga(e) {
28344
- return xp(e) ? (e.nodeName || "").toLowerCase() : "#document";
28344
+ return Ep(e) ? (e.nodeName || "").toLowerCase() : "#document";
28345
28345
  }
28346
28346
  function tn(e) {
28347
28347
  var t;
@@ -28349,9 +28349,9 @@ function tn(e) {
28349
28349
  }
28350
28350
  function Gn(e) {
28351
28351
  var t;
28352
- return (t = (xp(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
28352
+ return (t = (Ep(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
28353
28353
  }
28354
- function xp(e) {
28354
+ function Ep(e) {
28355
28355
  return Ro() ? e instanceof Node || e instanceof tn(e).Node : !1;
28356
28356
  }
28357
28357
  function pt(e) {
@@ -28360,7 +28360,7 @@ function pt(e) {
28360
28360
  function qt(e) {
28361
28361
  return Ro() ? e instanceof HTMLElement || e instanceof tn(e).HTMLElement : !1;
28362
28362
  }
28363
- function Ad(e) {
28363
+ function Td(e) {
28364
28364
  return !Ro() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof tn(e).ShadowRoot;
28365
28365
  }
28366
28366
  const F6e = /* @__PURE__ */ new Set(["inline", "contents"]);
@@ -28388,14 +28388,14 @@ function Io(e) {
28388
28388
  });
28389
28389
  }
28390
28390
  const U6e = ["transform", "translate", "scale", "rotate", "perspective"], H6e = ["transform", "translate", "scale", "rotate", "perspective", "filter"], j6e = ["paint", "layout", "strict", "content"];
28391
- function Ep(e) {
28391
+ function Mp(e) {
28392
28392
  const t = Oo(), n = pt(e) ? xn(e) : e;
28393
28393
  return U6e.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || H6e.some((r) => (n.willChange || "").includes(r)) || j6e.some((r) => (n.contain || "").includes(r));
28394
28394
  }
28395
28395
  function V6e(e) {
28396
28396
  let t = sr(e);
28397
28397
  for (; qt(t) && !ar(t); ) {
28398
- if (Ep(t))
28398
+ if (Mp(t))
28399
28399
  return t;
28400
28400
  if (Io(t))
28401
28401
  return null;
@@ -28429,10 +28429,10 @@ function sr(e) {
28429
28429
  // Step into the shadow DOM of the parent of a slotted node.
28430
28430
  e.assignedSlot || // DOM Element detected.
28431
28431
  e.parentNode || // ShadowRoot detected.
28432
- Ad(e) && e.host || // Fallback.
28432
+ Td(e) && e.host || // Fallback.
28433
28433
  Gn(e)
28434
28434
  );
28435
- return Ad(t) ? t.host : t;
28435
+ return Td(t) ? t.host : t;
28436
28436
  }
28437
28437
  function a3(e) {
28438
28438
  const t = sr(e);
@@ -28443,12 +28443,12 @@ function kr(e, t, n) {
28443
28443
  t === void 0 && (t = []), n === void 0 && (n = !0);
28444
28444
  const a = a3(e), i = a === ((r = e.ownerDocument) == null ? void 0 : r.body), o = tn(a);
28445
28445
  if (i) {
28446
- const s = Td(o);
28446
+ const s = Cd(o);
28447
28447
  return t.concat(o, o.visualViewport || [], ni(a) ? a : [], s && n ? kr(s) : []);
28448
28448
  }
28449
28449
  return t.concat(a, kr(a, [], n));
28450
28450
  }
28451
- function Td(e) {
28451
+ function Cd(e) {
28452
28452
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
28453
28453
  }
28454
28454
  const ao = Math.min, zr = Math.max, io = Math.round, sa = Math.floor, Hn = (e) => ({
@@ -28496,9 +28496,9 @@ function Z6e(e, t, n) {
28496
28496
  }
28497
28497
  function X6e(e) {
28498
28498
  const t = oo(e);
28499
- return [Cd(e), t, Cd(t)];
28499
+ return [Rd(e), t, Rd(t)];
28500
28500
  }
28501
- function Cd(e) {
28501
+ function Rd(e) {
28502
28502
  return e.replace(/start|end/g, (t) => K6e[t]);
28503
28503
  }
28504
28504
  const x2 = ["left", "right"], E2 = ["right", "left"], Q6e = ["top", "bottom"], J6e = ["bottom", "top"];
@@ -28517,7 +28517,7 @@ function e8e(e, t, n) {
28517
28517
  function t8e(e, t, n, r) {
28518
28518
  const a = $o(e);
28519
28519
  let i = e8e(Pr(e), n === "start", r);
28520
- return a && (i = i.map((o) => o + "-" + a), t && (i = i.concat(i.map(Cd)))), i;
28520
+ return a && (i = i.map((o) => o + "-" + a), t && (i = i.concat(i.map(Rd)))), i;
28521
28521
  }
28522
28522
  function oo(e) {
28523
28523
  return e.replace(/left|right|bottom|top/g, (t) => W6e[t]);
@@ -28561,7 +28561,7 @@ function so(e) {
28561
28561
  * tabbable 6.3.0
28562
28562
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
28563
28563
  */
28564
- var a8e = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Rd = /* @__PURE__ */ a8e.join(","), l3 = typeof Element > "u", Ua = l3 ? function() {
28564
+ var a8e = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Id = /* @__PURE__ */ a8e.join(","), l3 = typeof Element > "u", Ua = l3 ? function() {
28565
28565
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, lo = !l3 && Element.prototype.getRootNode ? function(e) {
28566
28566
  var t;
28567
28567
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -28578,25 +28578,25 @@ var a8e = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
28578
28578
  }, o8e = function(t, n, r) {
28579
28579
  if (Ha(t))
28580
28580
  return [];
28581
- var a = Array.prototype.slice.apply(t.querySelectorAll(Rd));
28582
- return n && Ua.call(t, Rd) && a.unshift(t), a = a.filter(r), a;
28583
- }, Id = function(t, n, r) {
28581
+ var a = Array.prototype.slice.apply(t.querySelectorAll(Id));
28582
+ return n && Ua.call(t, Id) && a.unshift(t), a = a.filter(r), a;
28583
+ }, Od = function(t, n, r) {
28584
28584
  for (var a = [], i = Array.from(t); i.length; ) {
28585
28585
  var o = i.shift();
28586
28586
  if (!Ha(o, !1))
28587
28587
  if (o.tagName === "SLOT") {
28588
- var s = o.assignedElements(), l = s.length ? s : o.children, u = Id(l, !0, r);
28588
+ var s = o.assignedElements(), l = s.length ? s : o.children, u = Od(l, !0, r);
28589
28589
  r.flatten ? a.push.apply(a, u) : a.push({
28590
28590
  scopeParent: o,
28591
28591
  candidates: u
28592
28592
  });
28593
28593
  } else {
28594
- var d = Ua.call(o, Rd);
28594
+ var d = Ua.call(o, Id);
28595
28595
  d && r.filter(o) && (n || !t.includes(o)) && a.push(o);
28596
28596
  var p = o.shadowRoot || // check for an undisclosed shadow
28597
28597
  typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !Ha(p, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
28598
28598
  if (p && m) {
28599
- var h = Id(p === !0 ? o.children : p.children, !0, r);
28599
+ var h = Od(p === !0 ? o.children : p.children, !0, r);
28600
28600
  r.flatten ? a.push.apply(a, h) : a.push({
28601
28601
  scopeParent: o,
28602
28602
  candidates: h
@@ -28747,7 +28747,7 @@ var a8e = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
28747
28747
  }, h3 = function(t, n) {
28748
28748
  n = n || {};
28749
28749
  var r;
28750
- return n.getShadowRoot ? r = Id([t], n.includeContainer, {
28750
+ return n.getShadowRoot ? r = Od([t], n.includeContainer, {
28751
28751
  filter: S2.bind(null, n),
28752
28752
  flatten: !1,
28753
28753
  getShadowRoot: n.getShadowRoot,
@@ -28771,7 +28771,7 @@ function f3() {
28771
28771
  function g3() {
28772
28772
  return /apple/i.test(navigator.vendor);
28773
28773
  }
28774
- function Od() {
28774
+ function Ld() {
28775
28775
  const e = /android/i;
28776
28776
  return e.test(m3()) || e.test(f3());
28777
28777
  }
@@ -28796,7 +28796,7 @@ function qr(e, t) {
28796
28796
  const n = t.getRootNode == null ? void 0 : t.getRootNode();
28797
28797
  if (e.contains(t))
28798
28798
  return !0;
28799
- if (n && Ad(n)) {
28799
+ if (n && Td(n)) {
28800
28800
  let r = t;
28801
28801
  for (; r; ) {
28802
28802
  if (e === r)
@@ -28823,11 +28823,11 @@ function E8e(e) {
28823
28823
  function Cn(e) {
28824
28824
  return e?.ownerDocument || document;
28825
28825
  }
28826
- function Mp(e) {
28826
+ function Sp(e) {
28827
28827
  return qt(e) && e.matches(_8e);
28828
28828
  }
28829
28829
  function M8e(e) {
28830
- return e ? e.getAttribute("role") === "combobox" && Mp(e) : !1;
28830
+ return e ? e.getAttribute("role") === "combobox" && Sp(e) : !1;
28831
28831
  }
28832
28832
  function S8e(e) {
28833
28833
  if (!e || y3())
@@ -28863,10 +28863,10 @@ function A8e(e) {
28863
28863
  return "nativeEvent" in e;
28864
28864
  }
28865
28865
  function T8e(e) {
28866
- return e.mozInputSource === 0 && e.isTrusted ? !0 : Od() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
28866
+ return e.mozInputSource === 0 && e.isTrusted ? !0 : Ld() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
28867
28867
  }
28868
28868
  function C8e(e) {
28869
- return y3() ? !1 : !Od() && e.width === 0 && e.height === 0 || Od() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
28869
+ return y3() ? !1 : !Ld() && e.width === 0 && e.height === 0 || Ld() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
28870
28870
  e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
28871
28871
  }
28872
28872
  function Va(e, t) {
@@ -29432,11 +29432,11 @@ function w3(e) {
29432
29432
  $: s
29433
29433
  };
29434
29434
  }
29435
- function Sp(e) {
29435
+ function Np(e) {
29436
29436
  return pt(e) ? e : e.contextElement;
29437
29437
  }
29438
29438
  function ua(e) {
29439
- const t = Sp(e);
29439
+ const t = Np(e);
29440
29440
  if (!qt(t))
29441
29441
  return Hn(1);
29442
29442
  const n = t.getBoundingClientRect(), {
@@ -29463,17 +29463,17 @@ function Z8e(e, t, n) {
29463
29463
  }
29464
29464
  function Br(e, t, n, r) {
29465
29465
  t === void 0 && (t = !1), n === void 0 && (n = !1);
29466
- const a = e.getBoundingClientRect(), i = Sp(e);
29466
+ const a = e.getBoundingClientRect(), i = Np(e);
29467
29467
  let o = Hn(1);
29468
29468
  t && (r ? pt(r) && (o = ua(r)) : o = ua(e));
29469
29469
  const s = Z8e(i, n, r) ? x3(i) : Hn(0);
29470
29470
  let l = (a.left + s.x) / o.x, u = (a.top + s.y) / o.y, d = a.width / o.x, p = a.height / o.y;
29471
29471
  if (i) {
29472
29472
  const m = tn(i), h = r && pt(r) ? tn(r) : r;
29473
- let g = m, f = Td(g);
29473
+ let g = m, f = Cd(g);
29474
29474
  for (; f && r && h !== g; ) {
29475
29475
  const _ = ua(f), v = f.getBoundingClientRect(), b = xn(f), w = v.left + (f.clientLeft + parseFloat(b.paddingLeft)) * _.x, x = v.top + (f.clientTop + parseFloat(b.paddingTop)) * _.y;
29476
- l *= _.x, u *= _.y, d *= _.x, p *= _.y, l += w, u += x, g = tn(f), f = Td(g);
29476
+ l *= _.x, u *= _.y, d *= _.x, p *= _.y, l += w, u += x, g = tn(f), f = Cd(g);
29477
29477
  }
29478
29478
  }
29479
29479
  return so({
@@ -29598,7 +29598,7 @@ function r7e(e, t) {
29598
29598
  const i = xn(e).position === "fixed";
29599
29599
  let o = i ? sr(e) : e;
29600
29600
  for (; pt(o) && !ar(o); ) {
29601
- const s = xn(o), l = Ep(o);
29601
+ const s = xn(o), l = Mp(o);
29602
29602
  !l && s.position === "fixed" && (a = null), (i ? !l && !a : !l && s.position === "static" && !!a && t7e.has(a.position) || ni(o) && !l && M3(e, o)) ? r = r.filter((d) => d !== o) : a = s, o = sr(o);
29603
29603
  }
29604
29604
  return t.set(e, r), r;
@@ -29683,7 +29683,7 @@ function S3(e, t) {
29683
29683
  let r = O2(e, t);
29684
29684
  for (; r && q6e(r) && vs(r); )
29685
29685
  r = O2(r, t);
29686
- return r && ar(r) && vs(r) && !Ep(r) ? n : r || V6e(e) || n;
29686
+ return r && ar(r) && vs(r) && !Mp(r) ? n : r || V6e(e) || n;
29687
29687
  }
29688
29688
  const s7e = async function(e) {
29689
29689
  const t = this.getOffsetParent || S3, n = this.getDimensions, r = await n(e.floating);
@@ -29761,7 +29761,7 @@ function u7e(e, t) {
29761
29761
  }
29762
29762
  return o(!0), i;
29763
29763
  }
29764
- function Np(e, t, n, r) {
29764
+ function Ap(e, t, n, r) {
29765
29765
  r === void 0 && (r = {});
29766
29766
  const {
29767
29767
  ancestorScroll: a = !0,
@@ -29769,7 +29769,7 @@ function Np(e, t, n, r) {
29769
29769
  elementResize: o = typeof ResizeObserver == "function",
29770
29770
  layoutShift: s = typeof IntersectionObserver == "function",
29771
29771
  animationFrame: l = !1
29772
- } = r, u = Sp(e), d = a || i ? [...u ? kr(u) : [], ...kr(t)] : [];
29772
+ } = r, u = Np(e), d = a || i ? [...u ? kr(u) : [], ...kr(t)] : [];
29773
29773
  d.forEach((v) => {
29774
29774
  a && v.addEventListener("scroll", n, {
29775
29775
  passive: !0
@@ -29958,13 +29958,13 @@ function y7e(e) {
29958
29958
  floatingStyles: z
29959
29959
  }), [d, J, R, U, z]);
29960
29960
  }
29961
- const Ap = (e, t) => ({
29961
+ const Tp = (e, t) => ({
29962
29962
  ...d7e(e),
29963
29963
  options: [e, t]
29964
- }), Tp = (e, t) => ({
29964
+ }), Cp = (e, t) => ({
29965
29965
  ...p7e(e),
29966
29966
  options: [e, t]
29967
- }), Cp = (e, t) => ({
29967
+ }), Rp = (e, t) => ({
29968
29968
  ...h7e(e),
29969
29969
  options: [e, t]
29970
29970
  }), b7e = "data-floating-ui-focusable", D2 = "active", $2 = "selected", ri = "ArrowLeft", ai = "ArrowRight", T3 = "ArrowUp", Fo = "ArrowDown", k7e = {
@@ -29984,7 +29984,7 @@ function _7e() {
29984
29984
  z2 = !0;
29985
29985
  }, []), e;
29986
29986
  }
29987
- const w7e = k7e.useId, Rp = w7e || _7e;
29987
+ const w7e = k7e.useId, Ip = w7e || _7e;
29988
29988
  let Ga;
29989
29989
  process.env.NODE_ENV !== "production" && (Ga = /* @__PURE__ */ new Set());
29990
29990
  function ws() {
@@ -30255,7 +30255,7 @@ function T7e(e) {
30255
30255
  const {
30256
30256
  id: t,
30257
30257
  root: n
30258
- } = e, r = Rp(), a = R7e(), [i, o] = te.useState(null), s = te.useRef(null);
30258
+ } = e, r = Ip(), a = R7e(), [i, o] = te.useState(null), s = te.useRef(null);
30259
30259
  return Dt(() => () => {
30260
30260
  i?.remove(), queueMicrotask(() => {
30261
30261
  s.current = null;
@@ -30272,7 +30272,7 @@ function T7e(e) {
30272
30272
  if (n === null || !r || s.current)
30273
30273
  return;
30274
30274
  let l = n || a?.portalNode;
30275
- l && !xp(l) && (l = l.current), l = l || document.body;
30275
+ l && !Ep(l) && (l = l.current), l = l || document.body;
30276
30276
  let u = null;
30277
30277
  t && (u = document.createElement("div"), u.id = t, l.appendChild(u));
30278
30278
  const d = document.createElement("div");
@@ -30354,7 +30354,7 @@ function I7e(e) {
30354
30354
  return qt(e.target) && e.target.tagName === "A";
30355
30355
  }
30356
30356
  function j2(e) {
30357
- return Mp(e);
30357
+ return Sp(e);
30358
30358
  }
30359
30359
  function I3(e, t) {
30360
30360
  t === void 0 && (t = {});
@@ -30414,7 +30414,7 @@ const O7e = {
30414
30414
  outsidePress: typeof e == "boolean" ? e : (n = e?.outsidePress) != null ? n : !0
30415
30415
  };
30416
30416
  };
30417
- function Ip(e, t) {
30417
+ function Op(e, t) {
30418
30418
  t === void 0 && (t = {});
30419
30419
  const {
30420
30420
  open: n,
@@ -30586,7 +30586,7 @@ function D7e(e) {
30586
30586
  open: t = !1,
30587
30587
  onOpenChange: n,
30588
30588
  elements: r
30589
- } = e, a = Rp(), i = te.useRef({}), [o] = te.useState(() => E7e()), s = Po() != null;
30589
+ } = e, a = Ip(), i = te.useRef({}), [o] = te.useState(() => E7e()), s = Po() != null;
30590
30590
  if (process.env.NODE_ENV !== "production") {
30591
30591
  const h = r.reference;
30592
30592
  h && !pt(h) && x7e("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
@@ -30615,7 +30615,7 @@ function D7e(e) {
30615
30615
  refs: p
30616
30616
  }), [t, d, m, o, a, p]);
30617
30617
  }
30618
- function Op(e) {
30618
+ function Lp(e) {
30619
30619
  e === void 0 && (e = {});
30620
30620
  const {
30621
30621
  nodeId: t
@@ -30732,7 +30732,7 @@ function $7e(e, t) {
30732
30732
  const g = ta(h.nativeEvent);
30733
30733
  if (l && pt(g)) {
30734
30734
  if (Ms() && !h.relatedTarget) {
30735
- if (!p.current && !Mp(g))
30735
+ if (!p.current && !Sp(g))
30736
30736
  return;
30737
30737
  } else if (!S8e(g))
30738
30738
  return;
@@ -30790,7 +30790,7 @@ function Ss(e, t, n) {
30790
30790
  }), o), {})
30791
30791
  };
30792
30792
  }
30793
- function Lp(e) {
30793
+ function Dp(e) {
30794
30794
  e === void 0 && (e = []);
30795
30795
  const t = e.map((s) => s?.reference), n = e.map((s) => s?.floating), r = e.map((s) => s?.item), a = te.useCallback(
30796
30796
  (s) => Ss(s, e, "reference"),
@@ -31110,7 +31110,7 @@ function F7e(e, t) {
31110
31110
  } : {}, [u, qe, Ue, xe]);
31111
31111
  }
31112
31112
  const P7e = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
31113
- function Dp(e, t) {
31113
+ function $p(e, t) {
31114
31114
  var n, r;
31115
31115
  t === void 0 && (t = {});
31116
31116
  const {
@@ -31120,7 +31120,7 @@ function Dp(e, t) {
31120
31120
  } = e, {
31121
31121
  enabled: s = !0,
31122
31122
  role: l = "dialog"
31123
- } = t, u = Rp(), d = ((n = i.domReference) == null ? void 0 : n.id) || u, p = te.useMemo(() => {
31123
+ } = t, u = Ip(), d = ((n = i.domReference) == null ? void 0 : n.id) || u, p = te.useMemo(() => {
31124
31124
  var b;
31125
31125
  return ((b = b3(i.floating)) == null ? void 0 : b.id) || o;
31126
31126
  }, [i.floating, o]), m = (r = P7e.get(l)) != null ? r : l, g = Po() != null, f = te.useMemo(() => m === "tooltip" || l === "label" ? {
@@ -31192,17 +31192,17 @@ const nr = ({
31192
31192
  disabled: a = !1,
31193
31193
  className: i = ""
31194
31194
  }) => {
31195
- const [o, s] = st(!1), { refs: l, floatingStyles: u, context: d, isPositioned: p } = Op({
31195
+ const [o, s] = lt(!1), { refs: l, floatingStyles: u, context: d, isPositioned: p } = Lp({
31196
31196
  open: o,
31197
31197
  onOpenChange: s,
31198
31198
  placement: n,
31199
31199
  strategy: "absolute",
31200
- whileElementsMounted: Np,
31201
- middleware: [Ap(8), Cp(), Tp({ padding: 8 })]
31200
+ whileElementsMounted: Ap,
31201
+ middleware: [Tp(8), Rp(), Cp({ padding: 8 })]
31202
31202
  }), m = N7e(d, {
31203
31203
  delay: { open: r, close: 0 },
31204
31204
  enabled: !a
31205
- }), h = $7e(d, { enabled: !a }), g = Ip(d, {
31205
+ }), h = $7e(d, { enabled: !a }), g = Op(d, {
31206
31206
  enabled: !0,
31207
31207
  outsidePress: !0,
31208
31208
  outsidePressEvent: "mousedown",
@@ -31210,7 +31210,7 @@ const nr = ({
31210
31210
  referencePressEvent: "mousedown",
31211
31211
  escapeKey: !0,
31212
31212
  ancestorScroll: !0
31213
- }), f = Dp(d, { role: "tooltip" }), { getReferenceProps: _, getFloatingProps: v } = Lp([m, h, g, f]);
31213
+ }), f = $p(d, { role: "tooltip" }), { getReferenceProps: _, getFloatingProps: v } = Dp([m, h, g, f]);
31214
31214
  return He(() => {
31215
31215
  if (!o || a)
31216
31216
  return;
@@ -31250,8 +31250,8 @@ const nr = ({
31250
31250
  }) => {
31251
31251
  const l = L6e[e], u = n ?? (t === "sm" ? 14 : 20), d = /* @__PURE__ */ N.jsx("button", { type: r, className: `mp-agent-icon-button mp-agent-icon-button-${t} ${a}`.trim(), ...s, children: l && /* @__PURE__ */ N.jsx(l, { size: u }) });
31252
31252
  return i ? /* @__PURE__ */ N.jsx(nr, { content: i, placement: o, children: d }) : d;
31253
- }, $p = ({ text: e }) => {
31254
- const [t, n] = st(!1), r = async () => {
31253
+ }, zp = ({ text: e }) => {
31254
+ const [t, n] = lt(!1), r = async () => {
31255
31255
  try {
31256
31256
  await navigator.clipboard.writeText(e), n(!0), setTimeout(() => n(!1), 2e3);
31257
31257
  } catch (a) {
@@ -31283,7 +31283,7 @@ const nr = ({
31283
31283
  size: "sm"
31284
31284
  }
31285
31285
  ),
31286
- /* @__PURE__ */ N.jsx($p, { text: e.value })
31286
+ /* @__PURE__ */ N.jsx(zp, { text: e.value })
31287
31287
  ] })
31288
31288
  ] });
31289
31289
  });
@@ -31328,7 +31328,7 @@ const oi = 30 * 1e3, si = 5 * 60 * 1e3, L3 = 20, yn = {
31328
31328
  tenant: p,
31329
31329
  ownerId: m
31330
31330
  } = e ?? {};
31331
- return bp({
31331
+ return kp({
31332
31332
  queryKey: yn.infinite({
31333
31333
  groupId: n,
31334
31334
  parentId: r,
@@ -31438,11 +31438,11 @@ const oi = 30 * 1e3, si = 5 * 60 * 1e3, L3 = 20, yn = {
31438
31438
  }, Y2 = "mp-agents-guest-user-id";
31439
31439
  function ya() {
31440
31440
  if (typeof window > "u")
31441
- return `${Nd.DefaultUserId}-${Ft()}`;
31441
+ return `${Ad.DefaultUserId}-${Ft()}`;
31442
31442
  const e = localStorage.getItem(Y2);
31443
31443
  if (e)
31444
31444
  return e;
31445
- const t = `${Nd.DefaultUserId}-${Ft()}`;
31445
+ const t = `${Ad.DefaultUserId}-${Ft()}`;
31446
31446
  return localStorage.setItem(Y2, t), t;
31447
31447
  }
31448
31448
  const z3 = 30 * 1e3, F3 = 5 * 60 * 1e3, P3 = 20, Dr = {
@@ -31459,7 +31459,7 @@ const z3 = 30 * 1e3, F3 = 5 * 60 * 1e3, P3 = 20, Dr = {
31459
31459
  sortField: i = "updatedAt",
31460
31460
  enabled: o = !0
31461
31461
  } = e ?? {};
31462
- return bp({
31462
+ return kp({
31463
31463
  queryKey: Dr.infinite({ userId: n, sortField: i, sortOrder: a, pageSize: r }),
31464
31464
  queryFn: async ({ pageParam: s }) => await t.transport.listChats({
31465
31465
  userId: n,
@@ -31515,7 +31515,7 @@ const z3 = 30 * 1e3, F3 = 5 * 60 * 1e3, P3 = 20, Dr = {
31515
31515
  }
31516
31516
  }, [t.data, n]), t;
31517
31517
  }, hVe = (e = {}, t = []) => {
31518
- const { threshold: n = 50, scrollOnMount: r = !0, observeMutations: a = !0 } = e, i = tt(null), o = tt(null), [s, l] = st(!0), u = tt(!1), d = tt(!1), p = tt(), m = it(() => {
31518
+ const { threshold: n = 50, scrollOnMount: r = !0, observeMutations: a = !0 } = e, i = tt(null), o = tt(null), [s, l] = lt(!0), u = tt(!1), d = tt(!1), p = tt(), m = it(() => {
31519
31519
  const f = i.current;
31520
31520
  if (!f)
31521
31521
  return !1;
@@ -31602,7 +31602,7 @@ const z3 = 30 * 1e3, F3 = 5 * 60 * 1e3, P3 = 20, Dr = {
31602
31602
  });
31603
31603
  }, _i = (e) => e.type === Tt.Context && e?.metadata?.kind === "pageContext";
31604
31604
  var ln = /* @__PURE__ */ ((e) => (e.Idle = "idle", e.Sending = "sending", e.Streaming = "streaming", e))(ln || {});
31605
- const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingForUserAction ? "streaming" : "idle", B3 = () => ({
31605
+ const Dd = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingForUserAction ? "streaming" : "idle", B3 = () => ({
31606
31606
  messages: [],
31607
31607
  reasoning: [],
31608
31608
  artifacts: [],
@@ -31902,7 +31902,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
31902
31902
  id: Ft(),
31903
31903
  chat: r,
31904
31904
  content: a,
31905
- role: ct.System,
31905
+ role: st.System,
31906
31906
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
31907
31907
  };
31908
31908
  return {
@@ -31914,7 +31914,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
31914
31914
  }),
31915
31915
  upsertToolCall: (r, a) => t((i) => {
31916
31916
  const o = We(i, r), s = [...o.messages], l = s.findIndex(
31917
- (u) => u.role === ct.Tool && u.toolCalls?.some((d) => d.id === a.id)
31917
+ (u) => u.role === st.Tool && u.toolCalls?.some((d) => d.id === a.id)
31918
31918
  );
31919
31919
  if (l >= 0) {
31920
31920
  const u = s[l], d = (u.toolCalls ?? []).map((p) => p.id === a.id ? a : p);
@@ -31928,7 +31928,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
31928
31928
  content: "",
31929
31929
  chat: r,
31930
31930
  toolCalls: [a],
31931
- role: ct.Tool,
31931
+ role: st.Tool,
31932
31932
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
31933
31933
  });
31934
31934
  return {
@@ -32016,14 +32016,14 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
32016
32016
  }, K7e = ["mp-agents", "configurations"], Y7e = () => {
32017
32017
  const e = rt(), t = i_(), n = () => t.invalidateQueries({
32018
32018
  queryKey: K7e
32019
- }), r = h2({
32019
+ }), r = m2({
32020
32020
  mutationFn: async ({ agentName: i, input: o }) => {
32021
32021
  if (!e.transport.upsertAgentPreferences)
32022
32022
  throw new Error("upsertAgentPreferences is not supported by this transport");
32023
32023
  return e.transport.upsertAgentPreferences(i, o);
32024
32024
  },
32025
32025
  onSuccess: n
32026
- }), a = h2({
32026
+ }), a = m2({
32027
32027
  mutationFn: async (i) => {
32028
32028
  if (!e.transport.upsertAgentPreferencesBatch)
32029
32029
  throw new Error("upsertAgentPreferencesBatch is not supported by this transport");
@@ -32044,12 +32044,12 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
32044
32044
  retry: !1
32045
32045
  });
32046
32046
  return He(() => {
32047
- o.data && (n(o.data), a(o.data.id, Ld(o.data.status)));
32047
+ o.data && (n(o.data), a(o.data.id, Dd(o.data.status)));
32048
32048
  }, [o.data, n, a]), He(() => {
32049
32049
  o.isError && t && r(void 0);
32050
32050
  }, [o.isError, t, r]), o;
32051
32051
  }, X7e = 20, U3 = (e) => {
32052
- const t = rt(), n = t.config.messagesPageSize ?? X7e, r = _e((o) => o.setChatMessages), a = _e((o) => !!(e && o.chats[e])), i = bp({
32052
+ const t = rt(), n = t.config.messagesPageSize ?? X7e, r = _e((o) => o.setChatMessages), a = _e((o) => !!(e && o.chats[e])), i = kp({
32053
32053
  queryKey: ["mp-agents", "messages", e, n],
32054
32054
  queryFn: async ({ pageParam: o }) => {
32055
32055
  if (!e || !t.transport.getMessages)
@@ -32074,7 +32074,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
32074
32074
  });
32075
32075
  }, [e, i.data, r]), i;
32076
32076
  }, Q7e = () => {
32077
- const e = rt(), t = e.config.user?.id ?? ya(), n = _e((u) => u.activeChatId), r = _e((u) => u.removeChat), a = _e((u) => u.setActiveChat), [i, o] = st(/* @__PURE__ */ new Set()), s = it(
32077
+ const e = rt(), t = e.config.user?.id ?? ya(), n = _e((u) => u.activeChatId), r = _e((u) => u.removeChat), a = _e((u) => u.setActiveChat), [i, o] = lt(/* @__PURE__ */ new Set()), s = it(
32078
32078
  async (u) => {
32079
32079
  o((d) => new Set(d).add(u));
32080
32080
  try {
@@ -32123,7 +32123,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
32123
32123
  applyAllButtonText: n,
32124
32124
  showStatus: r = !0
32125
32125
  }) => {
32126
- const a = rt(), i = G7e(r3), o = Ln(), s = yt(() => e_e(e), [e]), [l, u] = st(/* @__PURE__ */ new Set()), d = yt(() => {
32126
+ const a = rt(), i = G7e(r3), o = Ln(), s = yt(() => e_e(e), [e]), [l, u] = lt(/* @__PURE__ */ new Set()), d = yt(() => {
32127
32127
  const E = (e.output ?? {})?._mp?.lastAction, $ = typeof E?.action == "string" ? E.action : void 0, B = typeof E?.at == "string" ? E.at : void 0;
32128
32128
  return { action: $, at: B };
32129
32129
  }, [e.output]), p = yt(() => d.action === "apply", [d.action]), m = yt(() => d.action === "reject", [d.action]), h = yt(
@@ -32226,7 +32226,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
32226
32226
  ] })
32227
32227
  ] })
32228
32228
  ] });
32229
- }, zp = (e) => {
32229
+ }, Fp = (e) => {
32230
32230
  const { id: t, name: n, url: r, capturedAt: a, source: i, security: o, target: s, kind: l, ...u } = e, d = r ?? i?.url, p = i || d ? { ...i ?? {}, ...d ? { url: d } : {} } : void 0, m = l === "webSnippet" || l === "formSnapshot" || l === "formField" ? !0 : void 0, h = o || (m !== void 0 ? {
32231
32231
  containsPII: m,
32232
32232
  redactionsApplied: []
@@ -32290,7 +32290,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
32290
32290
  } : {},
32291
32291
  ...e.extra ? e.extra : {}
32292
32292
  }, d = n_e(t) ? !0 : void 0;
32293
- return zp({
32293
+ return Fp({
32294
32294
  kind: "pageContext",
32295
32295
  name: e.name ?? "Page context",
32296
32296
  url: t,
@@ -32350,7 +32350,7 @@ const Ld = (e) => e === ca.Streaming || e === ca.Processing || e === ca.WaitingF
32350
32350
  class o_e {
32351
32351
  constructor(t) {
32352
32352
  this.rawConfig = t, this.events = new EventTarget();
32353
- const n = m2.parse(t);
32353
+ const n = f2.parse(t);
32354
32354
  this.config = {
32355
32355
  ...n,
32356
32356
  toolRenderers: t.toolRenderers,
@@ -32402,7 +32402,7 @@ class o_e {
32402
32402
  * needs a rerender/reconnect to pick up changes (e.g. Socket.IO auth headers).
32403
32403
  */
32404
32404
  updateTransportConfig(t) {
32405
- const n = m2.parse({ ...this.rawConfig, transport: t }), r = this.config.transport, a = this.transport;
32405
+ const n = f2.parse({ ...this.rawConfig, transport: t }), r = this.config.transport, a = this.transport;
32406
32406
  this.rawConfig = { ...this.rawConfig, transport: t }, this.config.transport = n.transport;
32407
32407
  const i = this.config.transport.mode;
32408
32408
  if (r.mode !== i) {
@@ -32603,7 +32603,7 @@ const s_e = {
32603
32603
  }, H3 = (e) => ({
32604
32604
  ...s_e,
32605
32605
  ...e
32606
- }), j3 = gp(H3()), l_e = (e) => ({
32606
+ }), j3 = yp(H3()), l_e = (e) => ({
32607
32607
  "--mp-agents-bg": e.background,
32608
32608
  "--mp-agents-surface": e.surface,
32609
32609
  "--mp-agents-text": e.text,
@@ -32624,7 +32624,7 @@ const s_e = {
32624
32624
  }` }),
32625
32625
  t
32626
32626
  ] });
32627
- }, u_e = () => yp(j3), X2 = "mp-agent-selected-model", Ra = "__auto__";
32627
+ }, u_e = () => bp(j3), X2 = "mp-agent-selected-model", Ra = "__auto__";
32628
32628
  function V3(e) {
32629
32629
  return e.mode === "direct" ? `${X2}-${e.mode}-${e.provider}` : `${X2}-${e.mode}`;
32630
32630
  }
@@ -32693,7 +32693,7 @@ const Ki = /* @__PURE__ */ Object.create(null);
32693
32693
  Object.keys(Vn).forEach((e) => {
32694
32694
  Ki[Vn[e]] = e;
32695
32695
  });
32696
- const Dd = { type: "error", data: "parser error" }, Y3 = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Z3 = typeof ArrayBuffer == "function", X3 = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, Fp = ({ type: e, data: t }, n, r) => Y3 && t instanceof Blob ? n ? r(t) : J2(t, r) : Z3 && (t instanceof ArrayBuffer || X3(t)) ? n ? r(t) : J2(new Blob([t]), r) : r(Vn[e] + (t || "")), J2 = (e, t) => {
32696
+ const $d = { type: "error", data: "parser error" }, Y3 = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Z3 = typeof ArrayBuffer == "function", X3 = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, Pp = ({ type: e, data: t }, n, r) => Y3 && t instanceof Blob ? n ? r(t) : J2(t, r) : Z3 && (t instanceof ArrayBuffer || X3(t)) ? n ? r(t) : J2(new Blob([t]), r) : r(Vn[e] + (t || "")), J2 = (e, t) => {
32697
32697
  const n = new FileReader();
32698
32698
  return n.onload = function() {
32699
32699
  const r = n.result.split(",")[1];
@@ -32709,7 +32709,7 @@ function g_e(e, t) {
32709
32709
  return e.data.arrayBuffer().then(em).then(t);
32710
32710
  if (Z3 && (e.data instanceof ArrayBuffer || X3(e.data)))
32711
32711
  return t(em(e.data));
32712
- Fp(e, !1, (n) => {
32712
+ Pp(e, !1, (n) => {
32713
32713
  As || (As = new TextEncoder()), t(As.encode(n));
32714
32714
  });
32715
32715
  }
@@ -32723,7 +32723,7 @@ const y_e = (e) => {
32723
32723
  for (r = 0; r < n; r += 4)
32724
32724
  i = Ia[e.charCodeAt(r)], o = Ia[e.charCodeAt(r + 1)], s = Ia[e.charCodeAt(r + 2)], l = Ia[e.charCodeAt(r + 3)], d[a++] = i << 2 | o >> 4, d[a++] = (o & 15) << 4 | s >> 2, d[a++] = (s & 3) << 6 | l & 63;
32725
32725
  return u;
32726
- }, b_e = typeof ArrayBuffer == "function", Pp = (e, t) => {
32726
+ }, b_e = typeof ArrayBuffer == "function", qp = (e, t) => {
32727
32727
  if (typeof e != "string")
32728
32728
  return {
32729
32729
  type: "message",
@@ -32738,7 +32738,7 @@ const y_e = (e) => {
32738
32738
  data: e.substring(1)
32739
32739
  } : {
32740
32740
  type: Ki[n]
32741
- } : Dd;
32741
+ } : $d;
32742
32742
  }, k_e = (e, t) => {
32743
32743
  if (b_e) {
32744
32744
  const n = y_e(e);
@@ -32757,14 +32757,14 @@ const y_e = (e) => {
32757
32757
  const n = e.length, r = new Array(n);
32758
32758
  let a = 0;
32759
32759
  e.forEach((i, o) => {
32760
- Fp(i, !1, (s) => {
32760
+ Pp(i, !1, (s) => {
32761
32761
  r[o] = s, ++a === n && t(r.join(J3));
32762
32762
  });
32763
32763
  });
32764
32764
  }, __e = (e, t) => {
32765
32765
  const n = e.split(J3), r = [];
32766
32766
  for (let a = 0; a < n.length; a++) {
32767
- const i = Pp(n[a], t);
32767
+ const i = qp(n[a], t);
32768
32768
  if (r.push(i), i.type === "error")
32769
32769
  break;
32770
32770
  }
@@ -32827,7 +32827,7 @@ function x_e(e, t) {
32827
32827
  break;
32828
32828
  const l = xi(n, 8), u = new DataView(l.buffer, l.byteOffset, l.length), d = u.getUint32(0);
32829
32829
  if (d > Math.pow(2, 21) - 1) {
32830
- s.enqueue(Dd);
32830
+ s.enqueue($d);
32831
32831
  break;
32832
32832
  }
32833
32833
  a = d * Math.pow(2, 32) + u.getUint32(4), r = 3;
@@ -32835,10 +32835,10 @@ function x_e(e, t) {
32835
32835
  if (wi(n) < a)
32836
32836
  break;
32837
32837
  const l = xi(n, a);
32838
- s.enqueue(Pp(i ? l : Ts.decode(l), t)), r = 0;
32838
+ s.enqueue(qp(i ? l : Ts.decode(l), t)), r = 0;
32839
32839
  }
32840
32840
  if (a === 0 || a > e) {
32841
- s.enqueue(Dd);
32841
+ s.enqueue($d);
32842
32842
  break;
32843
32843
  }
32844
32844
  }
@@ -32937,7 +32937,7 @@ class O_e extends Error {
32937
32937
  super(t), this.description = n, this.context = r, this.type = "TransportError";
32938
32938
  }
32939
32939
  }
32940
- class qp extends Mt {
32940
+ class Bp extends Mt {
32941
32941
  /**
32942
32942
  * Transport abstract constructor.
32943
32943
  *
@@ -32994,7 +32994,7 @@ class qp extends Mt {
32994
32994
  * @protected
32995
32995
  */
32996
32996
  onData(t) {
32997
- const n = Pp(t, this.socket.binaryType);
32997
+ const n = qp(t, this.socket.binaryType);
32998
32998
  this.onPacket(n);
32999
32999
  }
33000
33000
  /**
@@ -33035,7 +33035,7 @@ class qp extends Mt {
33035
33035
  return n.length ? "?" + n : "";
33036
33036
  }
33037
33037
  }
33038
- class L_e extends qp {
33038
+ class L_e extends Bp {
33039
33039
  constructor() {
33040
33040
  super(...arguments), this._polling = !1;
33041
33041
  }
@@ -33318,7 +33318,7 @@ function av(e) {
33318
33318
  }
33319
33319
  }
33320
33320
  const iv = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
33321
- class q_e extends qp {
33321
+ class q_e extends Bp {
33322
33322
  get name() {
33323
33323
  return "websocket";
33324
33324
  }
@@ -33349,7 +33349,7 @@ class q_e extends qp {
33349
33349
  this.writable = !1;
33350
33350
  for (let n = 0; n < t.length; n++) {
33351
33351
  const r = t[n], a = n === t.length - 1;
33352
- Fp(r, this.supportsBinary, (i) => {
33352
+ Pp(r, this.supportsBinary, (i) => {
33353
33353
  try {
33354
33354
  this.doWrite(r, i);
33355
33355
  } catch {
@@ -33383,7 +33383,7 @@ class B_e extends q_e {
33383
33383
  this.ws.send(n);
33384
33384
  }
33385
33385
  }
33386
- class U_e extends qp {
33386
+ class U_e extends Bp {
33387
33387
  get name() {
33388
33388
  return "webtransport";
33389
33389
  }
@@ -33449,7 +33449,7 @@ const H_e = {
33449
33449
  "query",
33450
33450
  "anchor"
33451
33451
  ];
33452
- function $d(e) {
33452
+ function zd(e) {
33453
33453
  if (e.length > 8e3)
33454
33454
  throw "URI too long";
33455
33455
  const t = e, n = e.indexOf("["), r = e.indexOf("]");
@@ -33469,8 +33469,8 @@ function W_e(e, t) {
33469
33469
  a && (n[a] = i);
33470
33470
  }), n;
33471
33471
  }
33472
- const zd = typeof addEventListener == "function" && typeof removeEventListener == "function", Yi = [];
33473
- zd && addEventListener("offline", () => {
33472
+ const Fd = typeof addEventListener == "function" && typeof removeEventListener == "function", Yi = [];
33473
+ Fd && addEventListener("offline", () => {
33474
33474
  Yi.forEach((e) => e());
33475
33475
  }, !1);
33476
33476
  class vr extends Mt {
@@ -33482,10 +33482,10 @@ class vr extends Mt {
33482
33482
  */
33483
33483
  constructor(t, n) {
33484
33484
  if (super(), this.binaryType = M_e, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, t && typeof t == "object" && (n = t, t = null), t) {
33485
- const r = $d(t);
33485
+ const r = zd(t);
33486
33486
  n.hostname = r.host, n.secure = r.protocol === "https" || r.protocol === "wss", n.port = r.port, r.query && (n.query = r.query);
33487
33487
  } else
33488
- n.host && (n.hostname = $d(n.host).host);
33488
+ n.host && (n.hostname = zd(n.host).host);
33489
33489
  Ho(this, n), this.secure = n.secure != null ? n.secure : typeof location < "u" && location.protocol === "https:", n.hostname && !n.port && (n.port = this.secure ? "443" : "80"), this.hostname = n.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = n.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = [], this._transportsByName = {}, n.transports.forEach((r) => {
33490
33490
  const a = r.prototype.name;
33491
33491
  this.transports.push(a), this._transportsByName[a] = r;
@@ -33503,7 +33503,7 @@ class vr extends Mt {
33503
33503
  },
33504
33504
  transportOptions: {},
33505
33505
  closeOnBeforeunload: !1
33506
- }, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = I_e(this.opts.query)), zd && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
33506
+ }, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = I_e(this.opts.query)), Fd && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
33507
33507
  this.transport && (this.transport.removeAllListeners(), this.transport.close());
33508
33508
  }, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
33509
33509
  this._onClose("transport close", {
@@ -33736,7 +33736,7 @@ class vr extends Mt {
33736
33736
  */
33737
33737
  _onClose(t, n) {
33738
33738
  if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
33739
- if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), zd && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
33739
+ if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Fd && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
33740
33740
  const r = Yi.indexOf(this._offlineEventListener);
33741
33741
  r !== -1 && Yi.splice(r, 1);
33742
33742
  }
@@ -33825,12 +33825,12 @@ let Y_e = class extends K_e {
33825
33825
  };
33826
33826
  function Z_e(e, t = "", n) {
33827
33827
  let r = e;
33828
- n = n || typeof location < "u" && location, e == null && (e = n.protocol + "//" + n.host), typeof e == "string" && (e.charAt(0) === "/" && (e.charAt(1) === "/" ? e = n.protocol + e : e = n.host + e), /^(https?|wss?):\/\//.test(e) || (typeof n < "u" ? e = n.protocol + "//" + e : e = "https://" + e), r = $d(e)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
33828
+ n = n || typeof location < "u" && location, e == null && (e = n.protocol + "//" + n.host), typeof e == "string" && (e.charAt(0) === "/" && (e.charAt(1) === "/" ? e = n.protocol + e : e = n.host + e), /^(https?|wss?):\/\//.test(e) || (typeof n < "u" ? e = n.protocol + "//" + e : e = "https://" + e), r = zd(e)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
33829
33829
  const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
33830
33830
  return r.id = r.protocol + "://" + i + ":" + r.port + t, r.href = r.protocol + "://" + i + (n && n.port === r.port ? "" : ":" + r.port), r;
33831
33831
  }
33832
33832
  const X_e = typeof ArrayBuffer == "function", Q_e = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e.buffer instanceof ArrayBuffer, ov = Object.prototype.toString, J_e = typeof Blob == "function" || typeof Blob < "u" && ov.call(Blob) === "[object BlobConstructor]", ewe = typeof File == "function" || typeof File < "u" && ov.call(File) === "[object FileConstructor]";
33833
- function Bp(e) {
33833
+ function Up(e) {
33834
33834
  return X_e && (e instanceof ArrayBuffer || Q_e(e)) || J_e && e instanceof Blob || ewe && e instanceof File;
33835
33835
  }
33836
33836
  function Zi(e, t) {
@@ -33842,7 +33842,7 @@ function Zi(e, t) {
33842
33842
  return !0;
33843
33843
  return !1;
33844
33844
  }
33845
- if (Bp(e))
33845
+ if (Up(e))
33846
33846
  return !0;
33847
33847
  if (e.toJSON && typeof e.toJSON == "function" && arguments.length === 1)
33848
33848
  return Zi(e.toJSON(), !0);
@@ -33853,31 +33853,31 @@ function Zi(e, t) {
33853
33853
  }
33854
33854
  function twe(e) {
33855
33855
  const t = [], n = e.data, r = e;
33856
- return r.data = Fd(n, t), r.attachments = t.length, { packet: r, buffers: t };
33856
+ return r.data = Pd(n, t), r.attachments = t.length, { packet: r, buffers: t };
33857
33857
  }
33858
- function Fd(e, t) {
33858
+ function Pd(e, t) {
33859
33859
  if (!e)
33860
33860
  return e;
33861
- if (Bp(e)) {
33861
+ if (Up(e)) {
33862
33862
  const n = { _placeholder: !0, num: t.length };
33863
33863
  return t.push(e), n;
33864
33864
  } else if (Array.isArray(e)) {
33865
33865
  const n = new Array(e.length);
33866
33866
  for (let r = 0; r < e.length; r++)
33867
- n[r] = Fd(e[r], t);
33867
+ n[r] = Pd(e[r], t);
33868
33868
  return n;
33869
33869
  } else if (typeof e == "object" && !(e instanceof Date)) {
33870
33870
  const n = {};
33871
33871
  for (const r in e)
33872
- Object.prototype.hasOwnProperty.call(e, r) && (n[r] = Fd(e[r], t));
33872
+ Object.prototype.hasOwnProperty.call(e, r) && (n[r] = Pd(e[r], t));
33873
33873
  return n;
33874
33874
  }
33875
33875
  return e;
33876
33876
  }
33877
33877
  function nwe(e, t) {
33878
- return e.data = Pd(e.data, t), delete e.attachments, e;
33878
+ return e.data = qd(e.data, t), delete e.attachments, e;
33879
33879
  }
33880
- function Pd(e, t) {
33880
+ function qd(e, t) {
33881
33881
  if (!e)
33882
33882
  return e;
33883
33883
  if (e && e._placeholder === !0) {
@@ -33886,10 +33886,10 @@ function Pd(e, t) {
33886
33886
  throw new Error("illegal attachments");
33887
33887
  } else if (Array.isArray(e))
33888
33888
  for (let n = 0; n < e.length; n++)
33889
- e[n] = Pd(e[n], t);
33889
+ e[n] = qd(e[n], t);
33890
33890
  else if (typeof e == "object")
33891
33891
  for (const n in e)
33892
- Object.prototype.hasOwnProperty.call(e, n) && (e[n] = Pd(e[n], t));
33892
+ Object.prototype.hasOwnProperty.call(e, n) && (e[n] = qd(e[n], t));
33893
33893
  return e;
33894
33894
  }
33895
33895
  const rwe = [
@@ -33948,7 +33948,7 @@ class iwe {
33948
33948
  function rm(e) {
33949
33949
  return Object.prototype.toString.call(e) === "[object Object]";
33950
33950
  }
33951
- class Up extends Mt {
33951
+ class Hp extends Mt {
33952
33952
  /**
33953
33953
  * Decoder constructor
33954
33954
  *
@@ -33970,7 +33970,7 @@ class Up extends Mt {
33970
33970
  n = this.decodeString(t);
33971
33971
  const r = n.type === Ze.BINARY_EVENT;
33972
33972
  r || n.type === Ze.BINARY_ACK ? (n.type = r ? Ze.EVENT : Ze.ACK, this.reconstructor = new owe(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
33973
- } else if (Bp(t) || t.base64)
33973
+ } else if (Up(t) || t.base64)
33974
33974
  if (this.reconstructor)
33975
33975
  n = this.reconstructor.takeBinaryData(t), n && (this.reconstructor = null, super.emitReserved("decoded", n));
33976
33976
  else
@@ -34023,7 +34023,7 @@ class Up extends Mt {
34023
34023
  }
34024
34024
  if (t.charAt(++n)) {
34025
34025
  const i = this.tryParse(t.substr(n));
34026
- if (Up.isPayloadValid(r.type, i))
34026
+ if (Hp.isPayloadValid(r.type, i))
34027
34027
  r.data = i;
34028
34028
  else
34029
34029
  throw new Error("invalid payload");
@@ -34088,7 +34088,7 @@ class owe {
34088
34088
  }
34089
34089
  const swe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34090
34090
  __proto__: null,
34091
- Decoder: Up,
34091
+ Decoder: Hp,
34092
34092
  Encoder: iwe,
34093
34093
  get PacketType() {
34094
34094
  return Ze;
@@ -34724,7 +34724,7 @@ ba.prototype.setMax = function(e) {
34724
34724
  ba.prototype.setJitter = function(e) {
34725
34725
  this.jitter = e;
34726
34726
  };
34727
- class qd extends Mt {
34727
+ class Bd extends Mt {
34728
34728
  constructor(t, n) {
34729
34729
  var r;
34730
34730
  super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (n = t, t = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n, Ho(this, n), this.reconnection(n.reconnection !== !1), this.reconnectionAttempts(n.reconnectionAttempts || 1 / 0), this.reconnectionDelay(n.reconnectionDelay || 1e3), this.reconnectionDelayMax(n.reconnectionDelayMax || 5e3), this.randomizationFactor((r = n.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new ba({
@@ -34967,16 +34967,16 @@ function Xi(e, t) {
34967
34967
  typeof e == "object" && (t = e, e = void 0), t = t || {};
34968
34968
  const n = Z_e(e, t.path || "/socket.io"), r = n.source, a = n.id, i = n.path, o = Sa[a] && i in Sa[a].nsps, s = t.forceNew || t["force new connection"] || t.multiplex === !1 || o;
34969
34969
  let l;
34970
- return s ? l = new qd(r, t) : (Sa[a] || (Sa[a] = new qd(r, t)), l = Sa[a]), n.query && !t.query && (t.query = n.queryKey), l.socket(n.path, t);
34970
+ return s ? l = new Bd(r, t) : (Sa[a] || (Sa[a] = new Bd(r, t)), l = Sa[a]), n.query && !t.query && (t.query = n.queryKey), l.socket(n.path, t);
34971
34971
  }
34972
34972
  Object.assign(Xi, {
34973
- Manager: qd,
34973
+ Manager: Bd,
34974
34974
  Socket: sv,
34975
34975
  io: Xi,
34976
34976
  connect: Xi
34977
34977
  });
34978
- const cwe = gp(null), uwe = ({ children: e }) => {
34979
- const t = rt(), n = _e((v) => v.upsertChat), r = _e((v) => v.upsertChatState), a = _e((v) => v.contextKey), i = _e((v) => v.activeChatId), o = yt(() => t.config.user?.id ?? ya(), [t.config.user?.id]), s = t.config.transport, [l, u] = st(null), [d, p] = st(void 0), m = tt(a), h = tt(n), g = tt(r), f = tt(void 0);
34978
+ const cwe = yp(null), uwe = ({ children: e }) => {
34979
+ const t = rt(), n = _e((v) => v.upsertChat), r = _e((v) => v.upsertChatState), a = _e((v) => v.contextKey), i = _e((v) => v.activeChatId), o = yt(() => t.config.user?.id ?? ya(), [t.config.user?.id]), s = t.config.transport, [l, u] = lt(null), [d, p] = lt(void 0), m = tt(a), h = tt(n), g = tt(r), f = tt(void 0);
34980
34980
  He(() => {
34981
34981
  m.current = a, h.current = n, g.current = r;
34982
34982
  }, [a, n, r]), He(() => {
@@ -34988,7 +34988,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
34988
34988
  $.headers && Object.assign(E, $.headers);
34989
34989
  const B = {}, C = $.apiKey && `Bearer ${$.apiKey}` || $.headers?.Authorization;
34990
34990
  C && (B.authorization = C, E.Authorization = C);
34991
- const D = s.socketPath ?? Nd.Path, G = Xi(S, {
34991
+ const D = s.socketPath ?? Ad.Path, G = Xi(S, {
34992
34992
  path: D,
34993
34993
  auth: B,
34994
34994
  transports: ["websocket", "polling"],
@@ -35005,7 +35005,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35005
35005
  const L = t.store.getState(), K = We(L, z.id);
35006
35006
  g.current(z.id, {
35007
35007
  ...K,
35008
- status: Ld(z.status)
35008
+ status: Dd(z.status)
35009
35009
  });
35010
35010
  }
35011
35011
  }, R = (z) => {
@@ -35027,7 +35027,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35027
35027
  const L = t.store.getState(), K = We(L, z.id);
35028
35028
  g.current(z.id, {
35029
35029
  ...K,
35030
- status: Ld(z.status)
35030
+ status: Dd(z.status)
35031
35031
  });
35032
35032
  };
35033
35033
  return G.on("connect", Y), G.on("disconnect", J), G.on("connect_error", (z) => {
@@ -35053,10 +35053,10 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35053
35053
  }, [l, i]);
35054
35054
  const _ = yt(() => ({ socket: l, socketId: d }), [l, d]);
35055
35055
  return /* @__PURE__ */ N.jsx(cwe.Provider, { value: _, children: e });
35056
- }, Hp = gp(null), yVe = ({ config: e, children: t }) => {
35056
+ }, jp = yp(null), yVe = ({ config: e, children: t }) => {
35057
35057
  const n = tt();
35058
35058
  n.current || (n.current = new o_e(e));
35059
- const [, r] = st(0);
35059
+ const [, r] = lt(0);
35060
35060
  He(() => {
35061
35061
  const o = n.current, s = () => r((l) => l + 1);
35062
35062
  return o.events.addEventListener("runtime:transport-config-changed", s), () => {
@@ -35087,14 +35087,14 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35087
35087
  const u = n.current?.config.user?.id ?? ya();
35088
35088
  f_e(u, l);
35089
35089
  });
35090
- }, []), /* @__PURE__ */ N.jsx(Hp.Provider, { value: i, children: /* @__PURE__ */ N.jsx(s_, { client: i.runtime.queryClient, children: /* @__PURE__ */ N.jsx(c_e, { value: i.runtime.config.theme, children: /* @__PURE__ */ N.jsx(uwe, { children: t }) }) }) });
35090
+ }, []), /* @__PURE__ */ N.jsx(jp.Provider, { value: i, children: /* @__PURE__ */ N.jsx(s_, { client: i.runtime.queryClient, children: /* @__PURE__ */ N.jsx(c_e, { value: i.runtime.config.theme, children: /* @__PURE__ */ N.jsx(uwe, { children: t }) }) }) });
35091
35091
  }, rt = () => {
35092
- const e = yp(Hp);
35092
+ const e = bp(jp);
35093
35093
  if (!e)
35094
35094
  throw new Error("useAgentRuntime must be used inside <AgentProvider />");
35095
35095
  return e.runtime;
35096
35096
  }, _e = (e) => {
35097
- const t = yp(Hp);
35097
+ const t = bp(jp);
35098
35098
  if (!t)
35099
35099
  throw new Error("useAgentStore must be used inside <AgentProvider />");
35100
35100
  return c_(t.store, e);
@@ -35197,7 +35197,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35197
35197
  toolCalls: [],
35198
35198
  attachments: [],
35199
35199
  chat: i || "",
35200
- role: ct.Assistant,
35200
+ role: st.Assistant,
35201
35201
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
35202
35202
  });
35203
35203
  try {
@@ -35213,7 +35213,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35213
35213
  Pe += be.reasoning, Ue = { ...Ue ?? {
35214
35214
  id: oe,
35215
35215
  chat: qe,
35216
- role: ct.Assistant,
35216
+ role: st.Assistant,
35217
35217
  content: "",
35218
35218
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
35219
35219
  }, reasoning: Pe }, f(ee.current, Ue);
@@ -35221,7 +35221,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35221
35221
  }
35222
35222
  if (be.type === Tn.Error && be.error)
35223
35223
  throw new Error(be.error);
35224
- if (be.message && be.message.role === ct.User) {
35224
+ if (be.message && be.message.role === st.User) {
35225
35225
  v(be.message.chat, [be.message]);
35226
35226
  return;
35227
35227
  }
@@ -35234,7 +35234,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35234
35234
  );
35235
35235
  if (ve) {
35236
35236
  const be = ve.messages.map(
35237
- (q) => q.id === Ue.id && q.role === ct.Assistant ? { ...q, reasoning: Pe } : q
35237
+ (q) => q.id === Ue.id && q.role === st.Assistant ? { ...q, reasoning: Pe } : q
35238
35238
  );
35239
35239
  v(ve.id, be);
35240
35240
  const we = n.store.getState();
@@ -35375,7 +35375,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35375
35375
  className: "mp-agent-composer-queue-button",
35376
35376
  onClick: () => t(r.id),
35377
35377
  "aria-label": "Send queued message",
35378
- children: /* @__PURE__ */ N.jsx(kp, { size: 12 })
35378
+ children: /* @__PURE__ */ N.jsx(vp, { size: 12 })
35379
35379
  }
35380
35380
  ),
35381
35381
  /* @__PURE__ */ N.jsx(
@@ -35394,7 +35394,7 @@ const cwe = gp(null), uwe = ({ children: e }) => {
35394
35394
  function mwe(e, t) {
35395
35395
  return e.size > t.maxFileSize ? {
35396
35396
  type: "size",
35397
- message: `File "${e.name}" exceeds maximum size of ${jp(t.maxFileSize)}`,
35397
+ message: `File "${e.name}" exceeds maximum size of ${Vp(t.maxFileSize)}`,
35398
35398
  fileName: e.name
35399
35399
  } : null;
35400
35400
  }
@@ -35417,10 +35417,10 @@ function fwe(e, t, n) {
35417
35417
  }, 0), i = e.reduce((s, l) => s + l.size, 0);
35418
35418
  return a + i > n.maxTotalAttachmentsSize ? {
35419
35419
  type: "totalSize",
35420
- message: `Total attachment size exceeds maximum of ${jp(n.maxTotalAttachmentsSize)}`
35420
+ message: `Total attachment size exceeds maximum of ${Vp(n.maxTotalAttachmentsSize)}`
35421
35421
  } : null;
35422
35422
  }
35423
- function jp(e) {
35423
+ function Vp(e) {
35424
35424
  if (e === 0)
35425
35425
  return "0 Bytes";
35426
35426
  const t = 1024, n = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
@@ -35446,12 +35446,12 @@ const cv = (e) => {
35446
35446
  case Tt.Context:
35447
35447
  switch (e?.metadata?.kind) {
35448
35448
  case "pageContext":
35449
- return /* @__PURE__ */ N.jsx(_p, { size: 12 });
35449
+ return /* @__PURE__ */ N.jsx(wp, { size: 12 });
35450
35450
  case "formSnapshot":
35451
35451
  case "formField":
35452
35452
  return /* @__PURE__ */ N.jsx(X5, { size: 12 });
35453
35453
  default:
35454
- return /* @__PURE__ */ N.jsx(wp, { size: 12 });
35454
+ return /* @__PURE__ */ N.jsx(xp, { size: 12 });
35455
35455
  }
35456
35456
  case Tt.File:
35457
35457
  default:
@@ -35477,7 +35477,7 @@ const cv = (e) => {
35477
35477
  }) }), bwe = ({ attachments: e, onRemove: t, uploadProgress: n, uploadErrors: r }) => {
35478
35478
  const a = Ln();
35479
35479
  return !e || e.length === 0 ? null : /* @__PURE__ */ N.jsx("div", { className: "mp-agent-composer-attachments", "aria-label": a.attachments, children: e.map((i) => {
35480
- const o = n?.get(i.id), s = r?.get(i.name), l = i.metadata?.size || i.size, u = l ? ` (${jp(l)})` : "";
35480
+ const o = n?.get(i.id), s = r?.get(i.name), l = i.metadata?.size || i.size, u = l ? ` (${Vp(l)})` : "";
35481
35481
  return /* @__PURE__ */ N.jsxs(
35482
35482
  "span",
35483
35483
  {
@@ -35534,9 +35534,9 @@ const cv = (e) => {
35534
35534
  } catch {
35535
35535
  return e;
35536
35536
  }
35537
- }, Bd = "mp-agent:locationchange", am = "__mp_agent_history_patched__", im = () => {
35537
+ }, Ud = "mp-agent:locationchange", am = "__mp_agent_history_patched__", im = () => {
35538
35538
  try {
35539
- window.dispatchEvent(new Event(Bd));
35539
+ window.dispatchEvent(new Event(Ud));
35540
35540
  } catch {
35541
35541
  }
35542
35542
  }, _we = () => {
@@ -35568,8 +35568,8 @@ const cv = (e) => {
35568
35568
  };
35569
35569
  _we();
35570
35570
  const t = () => e();
35571
- return window.addEventListener("popstate", t), window.addEventListener("hashchange", t), window.addEventListener(Bd, t), () => {
35572
- window.removeEventListener("popstate", t), window.removeEventListener("hashchange", t), window.removeEventListener(Bd, t);
35571
+ return window.addEventListener("popstate", t), window.addEventListener("hashchange", t), window.addEventListener(Ud, t), () => {
35572
+ window.removeEventListener("popstate", t), window.removeEventListener("hashchange", t), window.removeEventListener(Ud, t);
35573
35573
  };
35574
35574
  };
35575
35575
  async function xwe(e, t, n, r) {
@@ -35681,26 +35681,26 @@ const Nwe = ({
35681
35681
  searchPlaceholder: u = "Search...",
35682
35682
  searchFilter: d
35683
35683
  }) => {
35684
- const [p, m] = st(!1), [h, g] = st(null), [f, _] = st(""), v = tt([]), b = tt(null), { refs: w, floatingStyles: x, context: S, isPositioned: E } = Op({
35684
+ const [p, m] = lt(!1), [h, g] = lt(null), [f, _] = lt(""), v = tt([]), b = tt(null), { refs: w, floatingStyles: x, context: S, isPositioned: E } = Lp({
35685
35685
  open: p,
35686
35686
  onOpenChange: m,
35687
35687
  placement: s,
35688
35688
  strategy: "absolute",
35689
- whileElementsMounted: Np,
35689
+ whileElementsMounted: Ap,
35690
35690
  middleware: [
35691
- Ap(8),
35692
- Cp({
35691
+ Tp(8),
35692
+ Rp({
35693
35693
  fallbackPlacements: ["top-start", "bottom-start", "top-end", "bottom-end"]
35694
35694
  }),
35695
- Tp({ padding: 8 })
35695
+ Cp({ padding: 8 })
35696
35696
  ]
35697
- }), $ = I3(S, { enabled: !a }), B = Ip(S), C = Dp(S), G = F7e(S, {
35697
+ }), $ = I3(S, { enabled: !a }), B = Op(S), C = $p(S), G = F7e(S, {
35698
35698
  listRef: v,
35699
35699
  activeIndex: h,
35700
35700
  onNavigate: g,
35701
35701
  enabled: p && !l,
35702
35702
  virtual: !1
35703
- }), { getReferenceProps: Y, getFloatingProps: J, getItemProps: W } = Lp(
35703
+ }), { getReferenceProps: Y, getFloatingProps: J, getItemProps: W } = Dp(
35704
35704
  l ? [$, B, C] : [$, B, C, G]
35705
35705
  ), R = e.findIndex((Z) => Z.value === t), U = R >= 0 ? e[R] : void 0, z = yt(() => {
35706
35706
  const Z = f.trim().toLowerCase();
@@ -35741,7 +35741,7 @@ const Nwe = ({
35741
35741
  U.icon && /* @__PURE__ */ N.jsx("span", { className: "mp-agent-dropdown-trigger-icon", children: U.icon }),
35742
35742
  /* @__PURE__ */ N.jsx("span", { className: "mp-agent-dropdown-trigger-label", children: U.label })
35743
35743
  ] }) : /* @__PURE__ */ N.jsx("span", { className: "mp-agent-dropdown-trigger-placeholder", children: r }) }),
35744
- /* @__PURE__ */ N.jsx(vp, { size: 16, className: `mp-agent-dropdown-chevron ${p ? "open" : ""}` })
35744
+ /* @__PURE__ */ N.jsx(_p, { size: 16, className: `mp-agent-dropdown-chevron ${p ? "open" : ""}` })
35745
35745
  ]
35746
35746
  }
35747
35747
  ),
@@ -35877,9 +35877,9 @@ const Nwe = ({
35877
35877
  }
35878
35878
  );
35879
35879
  }, om = (e) => e.reduce((t, n) => (t[n.agentName] = { ...n.tools }, t), {}), Rwe = ({ preferences: e, disabled: t }) => {
35880
- const n = Ln(), { upsertSingle: r } = Y7e(), [a, i] = st(
35880
+ const n = Ln(), { upsertSingle: r } = Y7e(), [a, i] = lt(
35881
35881
  () => om(e)
35882
- ), [o, s] = st({});
35882
+ ), [o, s] = lt({});
35883
35883
  He(() => {
35884
35884
  i(om(e));
35885
35885
  }, [e]);
@@ -35965,20 +35965,20 @@ const Owe = () => {
35965
35965
  const e = Ln(), t = rt(), n = _e((l) => l.contextKey), { data: r, isLoading: a, isError: i } = V7e(n), o = yt(() => Iwe(r ?? []), [r]), s = !!t.transport.upsertAgentPreferences && !!t.transport.upsertAgentPreferencesBatch;
35966
35966
  return a ? /* @__PURE__ */ N.jsx(N.Fragment, { children: e.agentSettingsLoading }) : i ? /* @__PURE__ */ N.jsx(N.Fragment, { children: e.agentSettingsError }) : /* @__PURE__ */ N.jsx(Rwe, { preferences: o, disabled: !s });
35967
35967
  }, Lwe = () => {
35968
- const [e, t] = st(!1), n = Ln(), { refs: r, floatingStyles: a, context: i, isPositioned: o } = Op({
35968
+ const [e, t] = lt(!1), n = Ln(), { refs: r, floatingStyles: a, context: i, isPositioned: o } = Lp({
35969
35969
  open: e,
35970
35970
  onOpenChange: t,
35971
35971
  placement: "top-start",
35972
35972
  strategy: "absolute",
35973
- whileElementsMounted: Np,
35973
+ whileElementsMounted: Ap,
35974
35974
  middleware: [
35975
- Ap(8),
35976
- Cp({
35975
+ Tp(8),
35976
+ Rp({
35977
35977
  fallbackPlacements: ["bottom-start", "top-end", "bottom-end"]
35978
35978
  }),
35979
- Tp({ padding: 8 })
35979
+ Cp({ padding: 8 })
35980
35980
  ]
35981
- }), s = I3(i), l = Ip(i), u = Dp(i), { getReferenceProps: d, getFloatingProps: p } = Lp([s, l, u]);
35981
+ }), s = I3(i), l = Op(i), u = $p(i), { getReferenceProps: d, getFloatingProps: p } = Dp([s, l, u]);
35982
35982
  return /* @__PURE__ */ N.jsxs("div", { className: "mp-agent-tool-config-dropdown", children: [
35983
35983
  /* @__PURE__ */ N.jsx(nr, { content: n.agentSettingsTooltip, children: /* @__PURE__ */ N.jsx(
35984
35984
  "button",
@@ -36009,7 +36009,7 @@ const Owe = () => {
36009
36009
  ] });
36010
36010
  }, Dwe = So(
36011
36011
  ({ autoFocus: e, activeChatId: t, status: n, onStop: r, onSubmit: a }, i) => {
36012
- const o = Ln(), s = rt(), l = tt(null), u = tt(null), d = _e((ne) => ne.activeChatId ?? ne.draftChatKey), p = _e((ne) => We(ne, d).composerDraft), m = _e((ne) => We(ne, d).composerError), h = _e((ne) => We(ne, d).pageContextDismissed), g = _e((ne) => ne.setComposerValue), f = _e((ne) => ne.setComposerDraft), _ = _e((ne) => ne.clearComposerDraft), v = _e((ne) => ne.setComposerError), b = _e((ne) => ne.addComposerAttachments), w = _e((ne) => ne.removeComposerAttachment), x = _e((ne) => ne.setPageContextDismissed), S = p.value, E = p.attachments, [$, B] = st(/* @__PURE__ */ new Map()), [C, D] = st(/* @__PURE__ */ new Map()), G = tt(S), Y = tt(E), J = tt(h), W = s.config.features?.pageContextAttachments !== !1, R = (ne) => ne.type === Tt.Context && ne?.metadata?.kind === "pageContext", U = E.some(R), z = () => {
36012
+ const o = Ln(), s = rt(), l = tt(null), u = tt(null), d = _e((ne) => ne.activeChatId ?? ne.draftChatKey), p = _e((ne) => We(ne, d).composerDraft), m = _e((ne) => We(ne, d).composerError), h = _e((ne) => We(ne, d).pageContextDismissed), g = _e((ne) => ne.setComposerValue), f = _e((ne) => ne.setComposerDraft), _ = _e((ne) => ne.clearComposerDraft), v = _e((ne) => ne.setComposerError), b = _e((ne) => ne.addComposerAttachments), w = _e((ne) => ne.removeComposerAttachment), x = _e((ne) => ne.setPageContextDismissed), S = p.value, E = p.attachments, [$, B] = lt(/* @__PURE__ */ new Map()), [C, D] = lt(/* @__PURE__ */ new Map()), G = tt(S), Y = tt(E), J = tt(h), W = s.config.features?.pageContextAttachments !== !1, R = (ne) => ne.type === Tt.Context && ne?.metadata?.kind === "pageContext", U = E.some(R), z = () => {
36013
36013
  if (W)
36014
36014
  return s.buildPageContextAttachment();
36015
36015
  };
@@ -36132,7 +36132,7 @@ const Owe = () => {
36132
36132
  const ne = a_e(), Me = ne?.selectedText ?? window.getSelection?.()?.toString()?.trim() ?? "";
36133
36133
  if (!Me)
36134
36134
  return !1;
36135
- const Ke = window.location?.href, Ye = Me.slice(0, 20), Le = Me.length > 20 ? Ye + "..." : Me, Ce = zp({
36135
+ const Ke = window.location?.href, Ye = Me.slice(0, 20), Le = Me.length > 20 ? Ye + "..." : Me, Ce = Fp({
36136
36136
  kind: "webSnippet",
36137
36137
  url: Ke,
36138
36138
  title: Le,
@@ -36208,7 +36208,7 @@ const Owe = () => {
36208
36208
  O();
36209
36209
  },
36210
36210
  "aria-label": o.attachSelectionToContext,
36211
- children: /* @__PURE__ */ N.jsx(wp, { size: 16 })
36211
+ children: /* @__PURE__ */ N.jsx(xp, { size: 16 })
36212
36212
  }
36213
36213
  ) }),
36214
36214
  W && !U && /* @__PURE__ */ N.jsx(nr, { content: "Attach page context", children: /* @__PURE__ */ N.jsx(
@@ -36222,7 +36222,7 @@ const Owe = () => {
36222
36222
  ne && b(d, [ne]);
36223
36223
  },
36224
36224
  "aria-label": "Attach page context",
36225
- children: /* @__PURE__ */ N.jsx(_p, { size: 16 })
36225
+ children: /* @__PURE__ */ N.jsx(wp, { size: 16 })
36226
36226
  }
36227
36227
  ) })
36228
36228
  ] }),
@@ -36243,7 +36243,7 @@ const Owe = () => {
36243
36243
  disabled: !Xe,
36244
36244
  "aria-label": o.sendMessage,
36245
36245
  className: "mp-agent-composer-button mp-agent-composer-send-button",
36246
- children: /* @__PURE__ */ N.jsx(kp, { size: 16 })
36246
+ children: /* @__PURE__ */ N.jsx(vp, { size: 16 })
36247
36247
  }
36248
36248
  ) }) })
36249
36249
  ] })
@@ -36986,7 +36986,7 @@ const Ywe = (e, t) => {
36986
36986
  const d = a.tools.get(e.name)?.label ?? e.name, p = Ywe(e, d);
36987
36987
  return /* @__PURE__ */ N.jsxs("div", { className: "mp-agent-tool-header", children: [
36988
36988
  s && /* @__PURE__ */ N.jsx("div", { className: "mp-agent-tool-simple-message", children: p }),
36989
- t && /* @__PURE__ */ N.jsx("button", { className: "mp-agent-subagent-preview-toggle", type: "button", onClick: r, "aria-expanded": n, children: n ? /* @__PURE__ */ N.jsx(Y5, { size: 14 }) : /* @__PURE__ */ N.jsx(vp, { size: 14 }) })
36989
+ t && /* @__PURE__ */ N.jsx("button", { className: "mp-agent-subagent-preview-toggle", type: "button", onClick: r, "aria-expanded": n, children: n ? /* @__PURE__ */ N.jsx(Y5, { size: 14 }) : /* @__PURE__ */ N.jsx(_p, { size: 14 }) })
36990
36990
  ] });
36991
36991
  }, pv = ({ call: e }) => e.approved === void 0 ? null : /* @__PURE__ */ N.jsx("div", { className: "mp-agent-tool-approval-status-inline", children: e.approved ? /* @__PURE__ */ N.jsx("span", { className: "mp-agent-tool-approved", children: "✓ Approved" }) : /* @__PURE__ */ N.jsx("span", { className: "mp-agent-tool-denied", children: "✗ Denied" }) }), Zwe = (e) => {
36992
36992
  if (!e || typeof e != "object" || Array.isArray(e))
@@ -37007,7 +37007,7 @@ const Ywe = (e, t) => {
37007
37007
  allowFreeText: typeof a == "boolean" ? a : !1
37008
37008
  };
37009
37009
  }, Xwe = ({ callId: e, input: t, isSubmitting: n, onSubmit: r }) => {
37010
- const [a, i] = st([]), [o, s] = st(""), [l, u] = st(void 0), d = yt(() => Zwe(t), [t]);
37010
+ const [a, i] = lt([]), [o, s] = lt(""), [l, u] = lt(void 0), d = yt(() => Zwe(t), [t]);
37011
37011
  He(() => {
37012
37012
  i([]), s(""), u(void 0);
37013
37013
  }, [e, t]);
@@ -37077,7 +37077,7 @@ const Ywe = (e, t) => {
37077
37077
  /* @__PURE__ */ N.jsx("div", { className: "mp-agent-tool-approval-actions", children: /* @__PURE__ */ N.jsx("button", { className: "mp-agent-tool-approve-button", onClick: m, disabled: n, children: n ? "Submitting..." : "Submit response" }) })
37078
37078
  ] }) : /* @__PURE__ */ N.jsx("div", { className: "mp-agent-tool-user-action-form", children: /* @__PURE__ */ N.jsx("div", { className: "mp-agent-tool-input-error", children: "Invalid user action input schema in tool call." }) });
37079
37079
  }, Qwe = ({ call: e, messageId: t, chatId: n, onApprovalSent: r }) => {
37080
- const a = rt(), i = a.tools.get(e.name)?.label ?? e.name, o = _e(($) => $.appendMessagesToChat), [s, l] = st(!1), [u, d] = st(!1), [p, m] = st(!1), [h, g] = st(JSON.stringify(e.input ?? {}, null, 2)), [f, _] = st(void 0), v = a.config.user?.id ?? "guest", b = e.requiresUserAction;
37080
+ const a = rt(), i = a.tools.get(e.name)?.label ?? e.name, o = _e(($) => $.appendMessagesToChat), [s, l] = lt(!1), [u, d] = lt(!1), [p, m] = lt(!1), [h, g] = lt(JSON.stringify(e.input ?? {}, null, 2)), [f, _] = lt(void 0), v = a.config.user?.id ?? "guest", b = e.requiresUserAction;
37081
37081
  He(() => {
37082
37082
  u || (g(JSON.stringify(e.input ?? {}, null, 2)), _(void 0));
37083
37083
  }, [e.id, e.input, u]);
@@ -37225,16 +37225,19 @@ const Ywe = (e, t) => {
37225
37225
  l && /* @__PURE__ */ N.jsx(pv, { call: e })
37226
37226
  ] });
37227
37227
  }, fm = ({ chatId: e, isExpanded: t }) => {
37228
- const n = _e((s) => We(s, e).messages), r = _e((s) => We(s, e).pendingAssistant), a = _e((s) => s.chats[e]?.contextKey ?? s.contextKey), i = U3(e), o = yt(
37229
- () => [...n].sort((s, l) => s.createdAt.localeCompare(l.createdAt)),
37230
- [n]
37231
- );
37232
- return /* @__PURE__ */ N.jsx("div", { className: "mp-agent-subagent-preview", children: t && /* @__PURE__ */ N.jsx("div", { className: "mp-agent-subagent-preview-body", children: o.length === 0 && !r ? /* @__PURE__ */ N.jsx("div", { className: "mp-agent-subagent-preview-empty", children: i.isLoading ? "Loading subagent chat..." : "Subagent chat started." }) : /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
37233
- o.map((s) => /* @__PURE__ */ N.jsx(Mo, { message: s, contextKey: a }, s.id)),
37234
- r && /* @__PURE__ */ N.jsx(Mo, { message: r, contextKey: a, isStreaming: !0 })
37228
+ const n = rt(), r = _e((l) => We(l, e).messages), a = _e((l) => We(l, e).pendingAssistant), i = _e((l) => l.chats[e]?.contextKey ?? l.contextKey), o = U3(e), s = yt(() => {
37229
+ const l = [...r].sort((d, p) => d.createdAt.localeCompare(p.createdAt));
37230
+ if (n.config.debug)
37231
+ return l;
37232
+ const u = l.findIndex((d) => d.role === st.User);
37233
+ return u === -1 ? l : l.filter((d, p) => p !== u);
37234
+ }, [r, n.config.debug]);
37235
+ return /* @__PURE__ */ N.jsx("div", { className: "mp-agent-subagent-preview", children: t && /* @__PURE__ */ N.jsx("div", { className: "mp-agent-subagent-preview-body", children: s.length === 0 && !a ? /* @__PURE__ */ N.jsx("div", { className: "mp-agent-subagent-preview-empty", children: o.isLoading ? "Loading subagent chat..." : "Subagent chat started." }) : /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
37236
+ s.map((l) => /* @__PURE__ */ N.jsx(Mo, { message: l, contextKey: i }, l.id)),
37237
+ a && /* @__PURE__ */ N.jsx(Mo, { message: a, contextKey: i, isStreaming: !0 })
37235
37238
  ] }) }) });
37236
37239
  }, Jwe = ({ call: e, contextKey: t, messageId: n, chatId: r }) => {
37237
- const a = rt(), i = e.subagentChatId || (typeof e.input?.subagentChatId == "string" ? e.input.subagentChatId : void 0), [o, s] = st(!1), l = yt(() => a.getToolRenderer(e), [a, e]);
37240
+ const a = rt(), i = e.subagentChatId || (typeof e.input?.subagentChatId == "string" ? e.input.subagentChatId : void 0), [o, s] = lt(!1), l = yt(() => a.getToolRenderer(e), [a, e]);
37238
37241
  return l ? /* @__PURE__ */ N.jsxs("div", { className: "mp-agent-tool-panel", children: [
37239
37242
  i && /* @__PURE__ */ N.jsx(
37240
37243
  hm,
@@ -37266,14 +37269,14 @@ const Ywe = (e, t) => {
37266
37269
  }, exe = Bt(({ role: e, isGrouped: t }) => {
37267
37270
  if (t)
37268
37271
  return /* @__PURE__ */ N.jsx("div", { className: "mp-agent-message-avatar-spacer" });
37269
- const n = e === ct.User, r = n ? "You" : "AI";
37272
+ const n = e === st.User, r = n ? "You" : "AI";
37270
37273
  return /* @__PURE__ */ N.jsx("div", { className: `mp-agent-message-avatar ${n ? "mp-agent-message-avatar-user" : ""}`, children: /* @__PURE__ */ N.jsx("div", { className: "mp-agent-message-avatar-icon", children: r }) });
37271
37274
  });
37272
37275
  exe.displayName = "MessageAvatar";
37273
37276
  const txe = (e) => e ? new Date(e).toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" }) : "", nxe = Bt(({ role: e, createdAt: t, isGrouped: n }) => {
37274
37277
  if (n)
37275
37278
  return null;
37276
- const a = e === ct.User ? "You" : "Assistant";
37279
+ const a = e === st.User ? "You" : "Assistant";
37277
37280
  return /* @__PURE__ */ N.jsxs("div", { className: "mp-agent-message-header", children: [
37278
37281
  /* @__PURE__ */ N.jsx("span", { className: "mp-agent-message-role", children: a }),
37279
37282
  /* @__PURE__ */ N.jsx("span", { className: "mp-agent-message-time", children: txe(t) })
@@ -37360,24 +37363,24 @@ nn.prototype.property = "";
37360
37363
  nn.prototype.spaceSeparated = !1;
37361
37364
  nn.prototype.space = void 0;
37362
37365
  let cxe = 0;
37363
- const De = Ur(), Et = Ur(), Ud = Ur(), ce = Ur(), dt = Ur(), da = Ur(), sn = Ur();
37366
+ const De = Ur(), Et = Ur(), Hd = Ur(), ce = Ur(), dt = Ur(), da = Ur(), sn = Ur();
37364
37367
  function Ur() {
37365
37368
  return 2 ** ++cxe;
37366
37369
  }
37367
- const Hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
37370
+ const jd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
37368
37371
  __proto__: null,
37369
37372
  boolean: De,
37370
37373
  booleanish: Et,
37371
37374
  commaOrSpaceSeparated: sn,
37372
37375
  commaSeparated: da,
37373
37376
  number: ce,
37374
- overloadedBoolean: Ud,
37377
+ overloadedBoolean: Hd,
37375
37378
  spaceSeparated: dt
37376
37379
  }, Symbol.toStringTag, { value: "Module" })), Is = (
37377
37380
  /** @type {ReadonlyArray<keyof typeof types>} */
37378
- Object.keys(Hd)
37381
+ Object.keys(jd)
37379
37382
  );
37380
- let Vp = class extends nn {
37383
+ let Gp = class extends nn {
37381
37384
  /**
37382
37385
  * @constructor
37383
37386
  * @param {string} property
@@ -37396,18 +37399,18 @@ let Vp = class extends nn {
37396
37399
  if (super(t, n), km(this, "space", a), typeof r == "number")
37397
37400
  for (; ++i < Is.length; ) {
37398
37401
  const o = Is[i];
37399
- km(this, Is[i], (r & Hd[o]) === Hd[o]);
37402
+ km(this, Is[i], (r & jd[o]) === jd[o]);
37400
37403
  }
37401
37404
  }
37402
37405
  };
37403
- Vp.prototype.defined = !0;
37406
+ Gp.prototype.defined = !0;
37404
37407
  function km(e, t, n) {
37405
37408
  n && (e[t] = n);
37406
37409
  }
37407
37410
  function ka(e) {
37408
37411
  const t = {}, n = {};
37409
37412
  for (const [r, a] of Object.entries(e.properties)) {
37410
- const i = new Vp(
37413
+ const i = new Gp(
37411
37414
  r,
37412
37415
  e.transform(e.attributes || {}, r),
37413
37416
  a,
@@ -37527,7 +37530,7 @@ const uxe = ka({
37527
37530
  dir: null,
37528
37531
  dirName: null,
37529
37532
  disabled: De,
37530
- download: Ud,
37533
+ download: Hd,
37531
37534
  draggable: Et,
37532
37535
  encType: null,
37533
37536
  enterKeyHint: null,
@@ -37540,7 +37543,7 @@ const uxe = ka({
37540
37543
  formTarget: null,
37541
37544
  headers: dt,
37542
37545
  height: ce,
37543
- hidden: Ud,
37546
+ hidden: Hd,
37544
37547
  high: ce,
37545
37548
  href: null,
37546
37549
  hrefLang: null,
@@ -38459,7 +38462,7 @@ function vv(e, t) {
38459
38462
  o.charAt(0) !== "-" && (o = "-" + o), t = "data" + o;
38460
38463
  }
38461
38464
  }
38462
- a = Vp;
38465
+ a = Gp;
38463
38466
  }
38464
38467
  return new a(r, t);
38465
38468
  }
@@ -38477,7 +38480,7 @@ function _m(e) {
38477
38480
  function yxe(e) {
38478
38481
  return e.join(" ").trim();
38479
38482
  }
38480
- var Gp = {}, wm = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bxe = /\n/g, kxe = /^\s*/, vxe = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, _xe = /^:\s*/, wxe = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, xxe = /^[;\s]*/, Exe = /^\s+|\s+$/g, Mxe = `
38483
+ var Wp = {}, wm = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bxe = /\n/g, kxe = /^\s*/, vxe = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, _xe = /^:\s*/, wxe = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, xxe = /^[;\s]*/, Exe = /^\s+|\s+$/g, Mxe = `
38481
38484
  `, xm = "/", Em = "*", $r = "", Sxe = "comment", Nxe = "declaration";
38482
38485
  function Axe(e, t) {
38483
38486
  if (typeof e != "string")
@@ -38567,8 +38570,8 @@ function Mm(e) {
38567
38570
  var Txe = Axe, Cxe = _r && _r.__importDefault || function(e) {
38568
38571
  return e && e.__esModule ? e : { default: e };
38569
38572
  };
38570
- Object.defineProperty(Gp, "__esModule", { value: !0 });
38571
- Gp.default = Ixe;
38573
+ Object.defineProperty(Wp, "__esModule", { value: !0 });
38574
+ Wp.default = Ixe;
38572
38575
  const Rxe = Cxe(Txe);
38573
38576
  function Ixe(e, t) {
38574
38577
  let n = null;
@@ -38597,16 +38600,16 @@ var Oxe = /^--[a-zA-Z0-9_-]+$/, Lxe = /-([a-z])/g, Dxe = /^[^-]+$/, $xe = /^-(we
38597
38600
  Vo.camelCase = qxe;
38598
38601
  var Bxe = _r && _r.__importDefault || function(e) {
38599
38602
  return e && e.__esModule ? e : { default: e };
38600
- }, Uxe = Bxe(Gp), Hxe = Vo;
38601
- function jd(e, t) {
38603
+ }, Uxe = Bxe(Wp), Hxe = Vo;
38604
+ function Vd(e, t) {
38602
38605
  var n = {};
38603
38606
  return !e || typeof e != "string" || (0, Uxe.default)(e, function(r, a) {
38604
38607
  r && a && (n[(0, Hxe.camelCase)(r, t)] = a);
38605
38608
  }), n;
38606
38609
  }
38607
- jd.default = jd;
38608
- var jxe = jd;
38609
- const Vxe = /* @__PURE__ */ Ao(jxe), wv = xv("end"), Wp = xv("start");
38610
+ Vd.default = Vd;
38611
+ var jxe = Vd;
38612
+ const Vxe = /* @__PURE__ */ Ao(jxe), wv = xv("end"), Kp = xv("start");
38610
38613
  function xv(e) {
38611
38614
  return t;
38612
38615
  function t(n) {
@@ -38620,18 +38623,18 @@ function xv(e) {
38620
38623
  }
38621
38624
  }
38622
38625
  function Gxe(e) {
38623
- const t = Wp(e), n = wv(e);
38626
+ const t = Kp(e), n = wv(e);
38624
38627
  if (t && n)
38625
38628
  return { start: t, end: n };
38626
38629
  }
38627
38630
  function Fa(e) {
38628
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Nm(e.position) : "start" in e || "end" in e ? Nm(e) : "line" in e || "column" in e ? Vd(e) : "";
38631
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Nm(e.position) : "start" in e || "end" in e ? Nm(e) : "line" in e || "column" in e ? Gd(e) : "";
38629
38632
  }
38630
- function Vd(e) {
38633
+ function Gd(e) {
38631
38634
  return Am(e && e.line) + ":" + Am(e && e.column);
38632
38635
  }
38633
38636
  function Nm(e) {
38634
- return Vd(e && e.start) + "-" + Vd(e && e.end);
38637
+ return Gd(e && e.start) + "-" + Gd(e && e.end);
38635
38638
  }
38636
38639
  function Am(e) {
38637
38640
  return e && typeof e == "number" ? e : 1;
@@ -38723,7 +38726,7 @@ Ut.prototype.fatal = void 0;
38723
38726
  Ut.prototype.place = void 0;
38724
38727
  Ut.prototype.ruleId = void 0;
38725
38728
  Ut.prototype.source = void 0;
38726
- const Kp = {}.hasOwnProperty, Wxe = /* @__PURE__ */ new Map(), Kxe = /[A-Z]/g, Yxe = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Zxe = /* @__PURE__ */ new Set(["td", "th"]), Ev = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
38729
+ const Yp = {}.hasOwnProperty, Wxe = /* @__PURE__ */ new Map(), Kxe = /[A-Z]/g, Yxe = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Zxe = /* @__PURE__ */ new Set(["td", "th"]), Ev = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
38727
38730
  function Xxe(e, t) {
38728
38731
  if (!t || t.Fragment === void 0)
38729
38732
  throw new TypeError("Expected `Fragment` in options");
@@ -38783,10 +38786,10 @@ function Qxe(e, t, n) {
38783
38786
  let a = r;
38784
38787
  t.tagName.toLowerCase() === "svg" && r.space === "html" && (a = jo, e.schema = a), e.ancestors.push(t);
38785
38788
  const i = Nv(e, t.tagName, !1), o = o9e(e, t);
38786
- let s = Zp(e, t);
38789
+ let s = Xp(e, t);
38787
38790
  return Yxe.has(t.tagName) && (s = s.filter(function(l) {
38788
38791
  return typeof l == "string" ? !lxe(l) : !0;
38789
- })), Sv(e, o, i, t), Yp(o, s), e.ancestors.pop(), e.schema = r, e.create(t, i, o, n);
38792
+ })), Sv(e, o, i, t), Zp(o, s), e.ancestors.pop(), e.schema = r, e.create(t, i, o, n);
38790
38793
  }
38791
38794
  function Jxe(e, t) {
38792
38795
  if (t.data && t.data.estree && e.evaluater) {
@@ -38808,12 +38811,12 @@ function t9e(e, t, n) {
38808
38811
  const r = e.schema;
38809
38812
  let a = r;
38810
38813
  t.name === "svg" && r.space === "html" && (a = jo, e.schema = a), e.ancestors.push(t);
38811
- const i = t.name === null ? e.Fragment : Nv(e, t.name, !0), o = s9e(e, t), s = Zp(e, t);
38812
- return Sv(e, o, i, t), Yp(o, s), e.ancestors.pop(), e.schema = r, e.create(t, i, o, n);
38814
+ const i = t.name === null ? e.Fragment : Nv(e, t.name, !0), o = s9e(e, t), s = Xp(e, t);
38815
+ return Sv(e, o, i, t), Zp(o, s), e.ancestors.pop(), e.schema = r, e.create(t, i, o, n);
38813
38816
  }
38814
38817
  function n9e(e, t, n) {
38815
38818
  const r = {};
38816
- return Yp(r, Zp(e, t)), e.create(t, e.Fragment, r, n);
38819
+ return Zp(r, Xp(e, t)), e.create(t, e.Fragment, r, n);
38817
38820
  }
38818
38821
  function r9e(e, t) {
38819
38822
  return t.value;
@@ -38821,7 +38824,7 @@ function r9e(e, t) {
38821
38824
  function Sv(e, t, n, r) {
38822
38825
  typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
38823
38826
  }
38824
- function Yp(e, t) {
38827
+ function Zp(e, t) {
38825
38828
  if (t.length > 0) {
38826
38829
  const n = t.length > 1 ? t : t[0];
38827
38830
  n && (e.children = n);
@@ -38837,7 +38840,7 @@ function a9e(e, t, n) {
38837
38840
  function i9e(e, t) {
38838
38841
  return n;
38839
38842
  function n(r, a, i, o) {
38840
- const s = Array.isArray(i.children), l = Wp(r);
38843
+ const s = Array.isArray(i.children), l = Kp(r);
38841
38844
  return t(
38842
38845
  a,
38843
38846
  i,
@@ -38856,7 +38859,7 @@ function o9e(e, t) {
38856
38859
  const n = {};
38857
38860
  let r, a;
38858
38861
  for (a in t.properties)
38859
- if (a !== "children" && Kp.call(t.properties, a)) {
38862
+ if (a !== "children" && Yp.call(t.properties, a)) {
38860
38863
  const i = l9e(e, a, t.properties[a]);
38861
38864
  if (i) {
38862
38865
  const [o, s] = i;
@@ -38904,7 +38907,7 @@ function s9e(e, t) {
38904
38907
  }
38905
38908
  return n;
38906
38909
  }
38907
- function Zp(e, t) {
38910
+ function Xp(e, t) {
38908
38911
  const n = [];
38909
38912
  let r = -1;
38910
38913
  const a = e.passKeys ? /* @__PURE__ */ new Map() : Wxe;
@@ -38979,7 +38982,7 @@ function Nv(e, t, n) {
38979
38982
  /** @type {string | number} */
38980
38983
  r.value
38981
38984
  );
38982
- return Kp.call(e.components, a) ? e.components[a] : a;
38985
+ return Yp.call(e.components, a) ? e.components[a] : a;
38983
38986
  }
38984
38987
  if (e.evaluater)
38985
38988
  return e.evaluater.evaluateExpression(r);
@@ -39001,7 +39004,7 @@ function u9e(e) {
39001
39004
  const t = {};
39002
39005
  let n;
39003
39006
  for (n in e)
39004
- Kp.call(e, n) && (t[d9e(n)] = e[n]);
39007
+ Yp.call(e, n) && (t[d9e(n)] = e[n]);
39005
39008
  return t;
39006
39009
  }
39007
39010
  function d9e(e) {
@@ -39034,7 +39037,7 @@ const Os = {
39034
39037
  "video"
39035
39038
  ]
39036
39039
  }, h9e = {};
39037
- function Xp(e, t) {
39040
+ function Qp(e, t) {
39038
39041
  const n = h9e, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, a = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
39039
39042
  return Av(e, r, a);
39040
39043
  }
@@ -39138,7 +39141,7 @@ function uo(e) {
39138
39141
  e !== null && (e < 32 || e === 127)
39139
39142
  );
39140
39143
  }
39141
- const Gd = Nr(/\d/), b9e = Nr(/[\dA-Fa-f]/), k9e = Nr(/[!-/:-@[-`{-~]/);
39144
+ const Wd = Nr(/\d/), b9e = Nr(/[\dA-Fa-f]/), k9e = Nr(/[!-/:-@[-`{-~]/);
39142
39145
  function he(e) {
39143
39146
  return e !== null && e < -2;
39144
39147
  }
@@ -39352,7 +39355,7 @@ function Go(e, t, n) {
39352
39355
  }
39353
39356
  return t;
39354
39357
  }
39355
- const Wd = {
39358
+ const Kd = {
39356
39359
  name: "attention",
39357
39360
  resolveAll: M9e,
39358
39361
  tokenize: S9e
@@ -39546,7 +39549,7 @@ function L9e(e, t, n) {
39546
39549
  return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), i = 31, o = Pt, d(p));
39547
39550
  }
39548
39551
  function u(p) {
39549
- return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, o = b9e, d) : (e.enter("characterReferenceValue"), i = 7, o = Gd, d(p));
39552
+ return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, o = b9e, d) : (e.enter("characterReferenceValue"), i = 7, o = Wd, d(p));
39550
39553
  }
39551
39554
  function d(p) {
39552
39555
  if (p === 59 && a) {
@@ -40490,7 +40493,7 @@ function fEe(e, t, n) {
40490
40493
  return e.enter("htmlTextData"), o(A);
40491
40494
  }
40492
40495
  }
40493
- const Qp = {
40496
+ const Jp = {
40494
40497
  name: "labelEnd",
40495
40498
  resolveAll: kEe,
40496
40499
  resolveTo: vEe,
@@ -40634,7 +40637,7 @@ function EEe(e, t, n) {
40634
40637
  }
40635
40638
  const MEe = {
40636
40639
  name: "labelStartImage",
40637
- resolveAll: Qp.resolveAll,
40640
+ resolveAll: Jp.resolveAll,
40638
40641
  tokenize: SEe
40639
40642
  };
40640
40643
  function SEe(e, t, n) {
@@ -40652,7 +40655,7 @@ function SEe(e, t, n) {
40652
40655
  }
40653
40656
  const NEe = {
40654
40657
  name: "labelStartLink",
40655
- resolveAll: Qp.resolveAll,
40658
+ resolveAll: Jp.resolveAll,
40656
40659
  tokenize: AEe
40657
40660
  };
40658
40661
  function AEe(e, t, n) {
@@ -40715,7 +40718,7 @@ function OEe(e, t, n) {
40715
40718
  return s;
40716
40719
  function s(h) {
40717
40720
  const g = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
40718
- if (g === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Gd(h)) {
40721
+ if (g === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Wd(h)) {
40719
40722
  if (r.containerState.type || (r.containerState.type = g, e.enter(g, {
40720
40723
  _container: !0
40721
40724
  })), g === "listUnordered")
@@ -40726,7 +40729,7 @@ function OEe(e, t, n) {
40726
40729
  return n(h);
40727
40730
  }
40728
40731
  function l(h) {
40729
- return Gd(h) && ++o < 10 ? (e.consume(h), l) : (!r.interrupt || o < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), u(h)) : n(h);
40732
+ return Wd(h) && ++o < 10 ? (e.consume(h), l) : (!r.interrupt || o < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), u(h)) : n(h);
40730
40733
  }
40731
40734
  function u(h) {
40732
40735
  return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
@@ -40987,15 +40990,15 @@ const GEe = {
40987
40990
  [-3]: Ds,
40988
40991
  33: MEe,
40989
40992
  38: Ov,
40990
- 42: Wd,
40993
+ 42: Kd,
40991
40994
  60: [N9e, mEe],
40992
40995
  91: NEe,
40993
40996
  92: [tEe, Iv],
40994
- 93: Qp,
40995
- 95: Wd,
40997
+ 93: Jp,
40998
+ 95: Kd,
40996
40999
  96: q9e
40997
41000
  }, QEe = {
40998
- null: [Wd, UEe]
41001
+ null: [Kd, UEe]
40999
41002
  }, JEe = {
41000
41003
  null: [42, 95]
41001
41004
  }, eMe = {
@@ -41552,7 +41555,7 @@ function pMe(e) {
41552
41555
  le.position.end = hr(q.end);
41553
41556
  }
41554
41557
  function d() {
41555
- return Xp(this.stack.pop());
41558
+ return Qp(this.stack.pop());
41556
41559
  }
41557
41560
  function p() {
41558
41561
  this.data.expectingFirstListItemValue = !0;
@@ -42135,7 +42138,7 @@ function LMe(e, t) {
42135
42138
  tagName: "tbody",
42136
42139
  properties: {},
42137
42140
  children: e.wrap(n, !0)
42138
- }, s = Wp(t.children[1]), l = wv(t.children[t.children.length - 1]);
42141
+ }, s = Kp(t.children[1]), l = wv(t.children[t.children.length - 1]);
42139
42142
  s && l && (o.position = { start: s, end: l }), a.push(o);
42140
42143
  }
42141
42144
  const i = {
@@ -42245,7 +42248,7 @@ const qMe = {
42245
42248
  };
42246
42249
  function Ei() {
42247
42250
  }
42248
- const jv = -1, Wo = 0, Pa = 1, po = 2, Jp = 3, eh = 4, th = 5, nh = 6, Vv = 7, Gv = 8, Hm = typeof self == "object" ? self : globalThis, BMe = (e, t) => {
42251
+ const jv = -1, Wo = 0, Pa = 1, po = 2, eh = 3, th = 4, nh = 5, rh = 6, Vv = 7, Gv = 8, Hm = typeof self == "object" ? self : globalThis, BMe = (e, t) => {
42249
42252
  const n = (a, i) => (e.set(i, a), a), r = (a) => {
42250
42253
  if (e.has(a))
42251
42254
  return e.get(a);
@@ -42266,19 +42269,19 @@ const jv = -1, Wo = 0, Pa = 1, po = 2, Jp = 3, eh = 4, th = 5, nh = 6, Vv = 7, G
42266
42269
  s[r(l)] = r(u);
42267
42270
  return s;
42268
42271
  }
42269
- case Jp:
42272
+ case eh:
42270
42273
  return n(new Date(o), a);
42271
- case eh: {
42274
+ case th: {
42272
42275
  const { source: s, flags: l } = o;
42273
42276
  return n(new RegExp(s, l), a);
42274
42277
  }
42275
- case th: {
42278
+ case nh: {
42276
42279
  const s = n(/* @__PURE__ */ new Map(), a);
42277
42280
  for (const [l, u] of o)
42278
42281
  s.set(r(l), r(u));
42279
42282
  return s;
42280
42283
  }
42281
- case nh: {
42284
+ case rh: {
42282
42285
  const s = n(/* @__PURE__ */ new Set(), a);
42283
42286
  for (const l of o)
42284
42287
  s.add(r(l));
@@ -42313,13 +42316,13 @@ const jv = -1, Wo = 0, Pa = 1, po = 2, Jp = 3, eh = 4, th = 5, nh = 6, Vv = 7, G
42313
42316
  case "Object":
42314
42317
  return [po, Xr];
42315
42318
  case "Date":
42316
- return [Jp, Xr];
42317
- case "RegExp":
42318
42319
  return [eh, Xr];
42319
- case "Map":
42320
+ case "RegExp":
42320
42321
  return [th, Xr];
42321
- case "Set":
42322
+ case "Map":
42322
42323
  return [nh, Xr];
42324
+ case "Set":
42325
+ return [rh, Xr];
42323
42326
  case "DataView":
42324
42327
  return [Pa, n];
42325
42328
  }
@@ -42377,19 +42380,19 @@ const jv = -1, Wo = 0, Pa = 1, po = 2, Jp = 3, eh = 4, th = 5, nh = 6, Vv = 7, G
42377
42380
  (e || !Mi(Aa(o[m]))) && d.push([i(m), i(o[m])]);
42378
42381
  return p;
42379
42382
  }
42380
- case Jp:
42383
+ case eh:
42381
42384
  return a([s, o.toISOString()], o);
42382
- case eh: {
42385
+ case th: {
42383
42386
  const { source: d, flags: p } = o;
42384
42387
  return a([s, { source: d, flags: p }], o);
42385
42388
  }
42386
- case th: {
42389
+ case nh: {
42387
42390
  const d = [], p = a([s, d], o);
42388
42391
  for (const [m, h] of o)
42389
42392
  (e || !(Mi(Aa(m)) || Mi(Aa(h)))) && d.push([i(m), i(h)]);
42390
42393
  return p;
42391
42394
  }
42392
- case nh: {
42395
+ case rh: {
42393
42396
  const d = [], p = a([s, d], o);
42394
42397
  for (const m of o)
42395
42398
  (e || !Mi(Aa(m))) && d.push(i(m));
@@ -42580,7 +42583,7 @@ function XMe() {
42580
42583
  function QMe(e) {
42581
42584
  return e !== null && typeof e == "object" && "type" in e;
42582
42585
  }
42583
- const Wv = [], JMe = !0, Kd = !1, Kv = "skip";
42586
+ const Wv = [], JMe = !0, Yd = !1, Kv = "skip";
42584
42587
  function Yo(e, t, n, r) {
42585
42588
  let a;
42586
42589
  typeof t == "function" && typeof n != "function" ? (r = n, n = t) : a = t;
@@ -42606,7 +42609,7 @@ function Yo(e, t, n, r) {
42606
42609
  return m;
42607
42610
  function m() {
42608
42611
  let h = Wv, g, f, _;
42609
- if ((!t || i(l, u, d[d.length - 1] || void 0)) && (h = eSe(n(l, d)), h[0] === Kd))
42612
+ if ((!t || i(l, u, d[d.length - 1] || void 0)) && (h = eSe(n(l, d)), h[0] === Yd))
42610
42613
  return h;
42611
42614
  if ("children" in l && l.children) {
42612
42615
  const v = (
@@ -42616,7 +42619,7 @@ function Yo(e, t, n, r) {
42616
42619
  if (v.children && h[0] !== Kv)
42617
42620
  for (f = (r ? v.children.length : -1) + o, _ = d.concat(v); f > -1 && f < v.children.length; ) {
42618
42621
  const b = v.children[f];
42619
- if (g = s(b, f, _)(), g[0] === Kd)
42622
+ if (g = s(b, f, _)(), g[0] === Yd)
42620
42623
  return g;
42621
42624
  f = typeof g[1] == "number" ? g[1] : f + o;
42622
42625
  }
@@ -42636,7 +42639,7 @@ function Zo(e, t, n, r) {
42636
42639
  return o(l, p, d);
42637
42640
  }
42638
42641
  }
42639
- const Yd = {}.hasOwnProperty, tSe = {};
42642
+ const Zd = {}.hasOwnProperty, tSe = {};
42640
42643
  function nSe(e, t) {
42641
42644
  const n = t || tSe, r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = { ...qMe, ...n.handlers }, s = {
42642
42645
  all: u,
@@ -42659,7 +42662,7 @@ function nSe(e, t) {
42659
42662
  }), s;
42660
42663
  function l(d, p) {
42661
42664
  const m = d.type, h = s.handlers[m];
42662
- if (Yd.call(s.handlers, m) && h)
42665
+ if (Zd.call(s.handlers, m) && h)
42663
42666
  return h(s, d, p);
42664
42667
  if (s.options.passThrough && s.options.passThrough.includes(m)) {
42665
42668
  if ("children" in d) {
@@ -42708,7 +42711,7 @@ function aSe(e, t) {
42708
42711
  return n;
42709
42712
  }
42710
42713
  function iSe(e, t) {
42711
- const n = t.data || {}, r = "value" in t && !(Yd.call(n, "hProperties") || Yd.call(n, "hChildren")) ? { type: "text", value: t.value } : {
42714
+ const n = t.data || {}, r = "value" in t && !(Zd.call(n, "hProperties") || Zd.call(n, "hChildren")) ? { type: "text", value: t.value } : {
42712
42715
  type: "element",
42713
42716
  tagName: "div",
42714
42717
  properties: {},
@@ -42791,7 +42794,7 @@ var Ji = Object.prototype.hasOwnProperty, Yv = Object.prototype.toString, Ym = O
42791
42794
  return s;
42792
42795
  };
42793
42796
  const $s = /* @__PURE__ */ Ao(lSe);
42794
- function Zd(e) {
42797
+ function Xd(e) {
42795
42798
  if (typeof e != "object" || e === null)
42796
42799
  return !1;
42797
42800
  const t = Object.getPrototypeOf(e);
@@ -42970,14 +42973,14 @@ const ySe = { cwd: bSe };
42970
42973
  function bSe() {
42971
42974
  return "/";
42972
42975
  }
42973
- function Xd(e) {
42976
+ function Qd(e) {
42974
42977
  return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
42975
42978
  e.auth === void 0);
42976
42979
  }
42977
42980
  function kSe(e) {
42978
42981
  if (typeof e == "string")
42979
42982
  e = new URL(e);
42980
- else if (!Xd(e)) {
42983
+ else if (!Qd(e)) {
42981
42984
  const t = new TypeError(
42982
42985
  'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
42983
42986
  );
@@ -43046,7 +43049,7 @@ class Zv {
43046
43049
  */
43047
43050
  constructor(t) {
43048
43051
  let n;
43049
- t ? Xd(t) ? n = { path: t } : typeof t == "string" || _Se(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : ySe.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
43052
+ t ? Qd(t) ? n = { path: t } : typeof t == "string" || _Se(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : ySe.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
43050
43053
  let r = -1;
43051
43054
  for (; ++r < zs.length; ) {
43052
43055
  const i = zs[r];
@@ -43154,7 +43157,7 @@ class Zv {
43154
43157
  * Nothing.
43155
43158
  */
43156
43159
  set path(t) {
43157
- Xd(t) && (t = kSe(t)), Ps(t, "path"), this.path !== t && this.history.push(t);
43160
+ Qd(t) && (t = kSe(t)), Ps(t, "path"), this.path !== t && this.history.push(t);
43158
43161
  }
43159
43162
  /**
43160
43163
  * Get the stem (basename w/o extname) (example: `'index.min'`).
@@ -43430,7 +43433,7 @@ const wSe = (
43430
43433
  return Object.setPrototypeOf(i, r), i;
43431
43434
  }
43432
43435
  ), xSe = {}.hasOwnProperty;
43433
- class rh extends wSe {
43436
+ class ah extends wSe {
43434
43437
  /**
43435
43438
  * Create a processor.
43436
43439
  */
@@ -43451,7 +43454,7 @@ class rh extends wSe {
43451
43454
  copy() {
43452
43455
  const t = (
43453
43456
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
43454
- new rh()
43457
+ new ah()
43455
43458
  );
43456
43459
  let n = -1;
43457
43460
  for (; ++n < this.attachers.length; ) {
@@ -43908,12 +43911,12 @@ class rh extends wSe {
43908
43911
  else if (d.length > 0) {
43909
43912
  let [h, ...g] = d;
43910
43913
  const f = r[m][1];
43911
- Zd(f) && Zd(h) && (h = $s(!0, f, h)), r[m] = [u, h, ...g];
43914
+ Xd(f) && Xd(h) && (h = $s(!0, f, h)), r[m] = [u, h, ...g];
43912
43915
  }
43913
43916
  }
43914
43917
  }
43915
43918
  }
43916
- const ESe = new rh().freeze();
43919
+ const ESe = new ah().freeze();
43917
43920
  function qs(e, t) {
43918
43921
  if (typeof t != "function")
43919
43922
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -43929,7 +43932,7 @@ function Us(e, t) {
43929
43932
  );
43930
43933
  }
43931
43934
  function nf(e) {
43932
- if (!Zd(e) || typeof e.type != "string")
43935
+ if (!Xd(e) || typeof e.type != "string")
43933
43936
  throw new TypeError("Expected node, got `" + e + "`");
43934
43937
  }
43935
43938
  function rf(e, t, n) {
@@ -44537,7 +44540,7 @@ function _Ne(e, t, n, r) {
44537
44540
  function wNe(e, t, n) {
44538
44541
  return (n ? "" : " ") + e;
44539
44542
  }
44540
- function ah(e) {
44543
+ function ih(e) {
44541
44544
  const t = e.options.quote || '"';
44542
44545
  if (t !== '"' && t !== "'")
44543
44546
  throw new Error(
@@ -44546,7 +44549,7 @@ function ah(e) {
44546
44549
  return t;
44547
44550
  }
44548
44551
  function xNe(e, t, n, r) {
44549
- const a = ah(n), i = a === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
44552
+ const a = ih(n), i = a === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
44550
44553
  let s = n.enter("label");
44551
44554
  const l = n.createTracker(r);
44552
44555
  let u = l.move("[");
@@ -44650,8 +44653,8 @@ function SNe(e, t) {
44650
44653
  let n = !1;
44651
44654
  return Zo(e, function(r) {
44652
44655
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
44653
- return n = !0, Kd;
44654
- }), !!((!e.depth || e.depth < 3) && Xp(e) && (t.options.setext || n));
44656
+ return n = !0, Yd;
44657
+ }), !!((!e.depth || e.depth < 3) && Qp(e) && (t.options.setext || n));
44655
44658
  }
44656
44659
  function NNe(e, t, n, r) {
44657
44660
  const a = Math.max(Math.min(6, e.depth || 1), 1), i = n.createTracker(r);
@@ -44691,7 +44694,7 @@ function ANe() {
44691
44694
  }
44692
44695
  i6.peek = TNe;
44693
44696
  function i6(e, t, n, r) {
44694
- const a = ah(n), i = a === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
44697
+ const a = ih(n), i = a === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
44695
44698
  let s = n.enter("label");
44696
44699
  const l = n.createTracker(r);
44697
44700
  let u = l.move("![");
@@ -44762,7 +44765,7 @@ function RNe() {
44762
44765
  return "`";
44763
44766
  }
44764
44767
  function l6(e, t) {
44765
- const n = Xp(e);
44768
+ const n = Qp(e);
44766
44769
  return !!(!t.options.resourceLink && // If there’s a url…
44767
44770
  e.url && // And there’s a no title…
44768
44771
  !e.title && // And the content of `node` is a single text node…
@@ -44774,7 +44777,7 @@ function l6(e, t) {
44774
44777
  }
44775
44778
  c6.peek = INe;
44776
44779
  function c6(e, t, n, r) {
44777
- const a = ah(n), i = a === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
44780
+ const a = ih(n), i = a === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
44778
44781
  let s, l;
44779
44782
  if (l6(e, n)) {
44780
44783
  const d = n.stack;
@@ -44841,7 +44844,7 @@ function u6(e, t, n, r) {
44841
44844
  function ONe() {
44842
44845
  return "[";
44843
44846
  }
44844
- function ih(e) {
44847
+ function oh(e) {
44845
44848
  const t = e.options.bullet || "*";
44846
44849
  if (t !== "*" && t !== "+" && t !== "-")
44847
44850
  throw new Error(
@@ -44850,7 +44853,7 @@ function ih(e) {
44850
44853
  return t;
44851
44854
  }
44852
44855
  function LNe(e) {
44853
- const t = ih(e), n = e.options.bulletOther;
44856
+ const t = oh(e), n = e.options.bulletOther;
44854
44857
  if (!n)
44855
44858
  return t === "*" ? "-" : "*";
44856
44859
  if (n !== "*" && n !== "+" && n !== "-")
@@ -44881,7 +44884,7 @@ function d6(e) {
44881
44884
  }
44882
44885
  function $Ne(e, t, n, r) {
44883
44886
  const a = n.enter("list"), i = n.bulletCurrent;
44884
- let o = e.ordered ? DNe(n) : ih(n);
44887
+ let o = e.ordered ? DNe(n) : oh(n);
44885
44888
  const s = e.ordered ? o === "." ? ")" : "." : LNe(n);
44886
44889
  let l = t && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
44887
44890
  if (!e.ordered) {
@@ -44917,7 +44920,7 @@ function zNe(e) {
44917
44920
  }
44918
44921
  function FNe(e, t, n, r) {
44919
44922
  const a = zNe(n);
44920
- let i = n.bulletCurrent || ih(n);
44923
+ let i = n.bulletCurrent || oh(n);
44921
44924
  t && t.type === "list" && t.ordered && (i = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + i);
44922
44925
  let o = i.length + 1;
44923
44926
  (a === "tab" || a === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (o = Math.ceil(o / 4) * 4);
@@ -45288,10 +45291,10 @@ function cAe(e, t, n) {
45288
45291
  let a, i;
45289
45292
  return o;
45290
45293
  function o(p) {
45291
- return !Qd(p) || !_6.call(r, r.previous) || oh(r.events) ? n(p) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(p));
45294
+ return !Jd(p) || !_6.call(r, r.previous) || sh(r.events) ? n(p) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(p));
45292
45295
  }
45293
45296
  function s(p) {
45294
- return Qd(p) ? (e.consume(p), s) : p === 64 ? (e.consume(p), l) : n(p);
45297
+ return Jd(p) ? (e.consume(p), s) : p === 64 ? (e.consume(p), l) : n(p);
45295
45298
  }
45296
45299
  function l(p) {
45297
45300
  return p === 46 ? e.check(sAe, d, u)(p) : p === 45 || p === 95 || Pt(p) ? (i = !0, e.consume(p), l) : d(p);
@@ -45307,7 +45310,7 @@ function uAe(e, t, n) {
45307
45310
  const r = this;
45308
45311
  return a;
45309
45312
  function a(o) {
45310
- return o !== 87 && o !== 119 || !k6.call(r, r.previous) || oh(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(oAe, e.attempt(m6, e.attempt(f6, i), n), n)(o));
45313
+ return o !== 87 && o !== 119 || !k6.call(r, r.previous) || sh(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(oAe, e.attempt(m6, e.attempt(f6, i), n), n)(o));
45311
45314
  }
45312
45315
  function i(o) {
45313
45316
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(o);
@@ -45318,7 +45321,7 @@ function dAe(e, t, n) {
45318
45321
  let a = "", i = !1;
45319
45322
  return o;
45320
45323
  function o(p) {
45321
- return (p === 72 || p === 104) && v6.call(r, r.previous) && !oh(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), a += String.fromCodePoint(p), e.consume(p), s) : n(p);
45324
+ return (p === 72 || p === 104) && v6.call(r, r.previous) && !sh(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), a += String.fromCodePoint(p), e.consume(p), s) : n(p);
45322
45325
  }
45323
45326
  function s(p) {
45324
45327
  if (Wt(p) && a.length < 5)
@@ -45408,12 +45411,12 @@ function v6(e) {
45408
45411
  return !Wt(e);
45409
45412
  }
45410
45413
  function _6(e) {
45411
- return !(e === 47 || Qd(e));
45414
+ return !(e === 47 || Jd(e));
45412
45415
  }
45413
- function Qd(e) {
45416
+ function Jd(e) {
45414
45417
  return e === 43 || e === 45 || e === 46 || e === 95 || Pt(e);
45415
45418
  }
45416
- function oh(e) {
45419
+ function sh(e) {
45417
45420
  let t = e.length, n = !1;
45418
45421
  for (; t--; ) {
45419
45422
  const r = e[t][1];
@@ -46419,7 +46422,7 @@ function aTe(e) {
46419
46422
  return {};
46420
46423
  }
46421
46424
  }
46422
- class sh {
46425
+ class lh {
46423
46426
  constructor(t) {
46424
46427
  this.displayMode = void 0, this.output = void 0, this.leqno = void 0, this.fleqn = void 0, this.throwOnError = void 0, this.errorColor = void 0, this.macros = void 0, this.minRuleThickness = void 0, this.colorIsTextColor = void 0, this.strict = void 0, this.trust = void 0, this.maxSize = void 0, this.maxExpand = void 0, this.globalGroup = void 0, t = t || {};
46425
46428
  for (var n in eo)
@@ -46527,12 +46530,12 @@ class mr {
46527
46530
  return this.size >= 2;
46528
46531
  }
46529
46532
  }
46530
- var lh = 0, go = 1, pa = 2, ir = 3, Xa = 4, _n = 5, ma = 6, Kt = 7, Pn = [new mr(lh, 0, !1), new mr(go, 0, !0), new mr(pa, 1, !1), new mr(ir, 1, !0), new mr(Xa, 2, !1), new mr(_n, 2, !0), new mr(ma, 3, !1), new mr(Kt, 3, !0)], iTe = [Xa, _n, Xa, _n, ma, Kt, ma, Kt], oTe = [_n, _n, _n, _n, Kt, Kt, Kt, Kt], sTe = [pa, ir, Xa, _n, ma, Kt, ma, Kt], lTe = [ir, ir, _n, _n, Kt, Kt, Kt, Kt], cTe = [go, go, ir, ir, _n, _n, Kt, Kt], uTe = [lh, go, pa, ir, pa, ir, pa, ir], Ae = {
46531
- DISPLAY: Pn[lh],
46533
+ var ch = 0, go = 1, pa = 2, ir = 3, Xa = 4, _n = 5, ma = 6, Kt = 7, Pn = [new mr(ch, 0, !1), new mr(go, 0, !0), new mr(pa, 1, !1), new mr(ir, 1, !0), new mr(Xa, 2, !1), new mr(_n, 2, !0), new mr(ma, 3, !1), new mr(Kt, 3, !0)], iTe = [Xa, _n, Xa, _n, ma, Kt, ma, Kt], oTe = [_n, _n, _n, _n, Kt, Kt, Kt, Kt], sTe = [pa, ir, Xa, _n, ma, Kt, ma, Kt], lTe = [ir, ir, _n, _n, Kt, Kt, Kt, Kt], cTe = [go, go, ir, ir, _n, _n, Kt, Kt], uTe = [ch, go, pa, ir, pa, ir, pa, ir], Ae = {
46534
+ DISPLAY: Pn[ch],
46532
46535
  TEXT: Pn[pa],
46533
46536
  SCRIPT: Pn[Xa],
46534
46537
  SCRIPTSCRIPT: Pn[ma]
46535
- }, Jd = [{
46538
+ }, ep = [{
46536
46539
  // Latin characters beyond the Latin-1 characters we have metrics for.
46537
46540
  // Needed for Czech, Hungarian and Turkish text, for example.
46538
46541
  name: "latin",
@@ -46592,8 +46595,8 @@ var lh = 0, go = 1, pa = 2, ir = 3, Xa = 4, _n = 5, ma = 6, Kt = 7, Pn = [new mr
46592
46595
  blocks: [[44032, 55215]]
46593
46596
  }];
46594
46597
  function dTe(e) {
46595
- for (var t = 0; t < Jd.length; t++)
46596
- for (var n = Jd[t], r = 0; r < n.blocks.length; r++) {
46598
+ for (var t = 0; t < ep.length; t++)
46599
+ for (var n = ep[t], r = 0; r < n.blocks.length; r++) {
46597
46600
  var a = n.blocks[r];
46598
46601
  if (e >= a[0] && e <= a[1])
46599
46602
  return n.name;
@@ -46601,7 +46604,7 @@ function dTe(e) {
46601
46604
  return null;
46602
46605
  }
46603
46606
  var to = [];
46604
- Jd.forEach((e) => e.blocks.forEach((t) => to.push(...t)));
46607
+ ep.forEach((e) => e.blocks.forEach((t) => to.push(...t)));
46605
46608
  function E6(e) {
46606
46609
  for (var t = 0; t < to.length; t += 2)
46607
46610
  if (e >= to[t] && e <= to[t + 1])
@@ -49290,7 +49293,7 @@ var Un = {
49290
49293
  function wTe(e, t) {
49291
49294
  Un[e] = t;
49292
49295
  }
49293
- function ch(e, t, n) {
49296
+ function uh(e, t, n) {
49294
49297
  if (!Un[t])
49295
49298
  throw new Error("Font metrics not found for font: " + t + ".");
49296
49299
  var r = e.charCodeAt(0), a = Un[t][r];
@@ -49533,7 +49536,7 @@ class er {
49533
49536
  }
49534
49537
  }
49535
49538
  er.BASESIZE = 6;
49536
- var ep = {
49539
+ var tp = {
49537
49540
  // https://en.wikibooks.org/wiki/LaTeX/Lengths and
49538
49541
  // https://tex.stackexchange.com/a/8263
49539
49542
  pt: 1,
@@ -49566,11 +49569,11 @@ var ep = {
49566
49569
  em: !0,
49567
49570
  mu: !0
49568
49571
  }, M6 = function(t) {
49569
- return typeof t != "string" && (t = t.unit), t in ep || t in MTe || t === "ex";
49572
+ return typeof t != "string" && (t = t.unit), t in tp || t in MTe || t === "ex";
49570
49573
  }, bt = function(t, n) {
49571
49574
  var r;
49572
- if (t.unit in ep)
49573
- r = ep[t.unit] / n.fontMetrics().ptPerEm / n.sizeMultiplier;
49575
+ if (t.unit in tp)
49576
+ r = tp[t.unit] / n.fontMetrics().ptPerEm / n.sizeMultiplier;
49574
49577
  else if (t.unit === "mu")
49575
49578
  r = n.fontMetrics().cssEmPerMu;
49576
49579
  else {
@@ -49640,7 +49643,7 @@ class hi {
49640
49643
  return A6.call(this, "span");
49641
49644
  }
49642
49645
  }
49643
- class uh {
49646
+ class dh {
49644
49647
  constructor(t, n, r, a) {
49645
49648
  this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, S6.call(this, n, a), this.children = r || [], this.setAttribute("href", t);
49646
49649
  }
@@ -49754,7 +49757,7 @@ class Er {
49754
49757
  return this.alternate ? '<path d="' + Ee.escape(this.alternate) + '"/>' : '<path d="' + Ee.escape(mf[this.pathName]) + '"/>';
49755
49758
  }
49756
49759
  }
49757
- class tp {
49760
+ class np {
49758
49761
  constructor(t) {
49759
49762
  this.attributes = void 0, this.attributes = t || {};
49760
49763
  }
@@ -50446,9 +50449,9 @@ for (var Ir = 0; Ir < 10; Ir++) {
50446
50449
  var fr = Ir.toString();
50447
50450
  Te = String.fromCharCode(55349, 57294 + Ir), y(k, M, Ne, fr, Te), y(re, M, V, fr, Te), Te = String.fromCharCode(55349, 57314 + Ir), y(k, M, Ne, fr, Te), y(re, M, V, fr, Te), Te = String.fromCharCode(55349, 57324 + Ir), y(k, M, Ne, fr, Te), y(re, M, V, fr, Te), Te = String.fromCharCode(55349, 57334 + Ir), y(k, M, Ne, fr, Te), y(re, M, V, fr, Te);
50448
50451
  }
50449
- var np = "ÐÞþ";
50450
- for (var Xs = 0; Xs < np.length; Xs++) {
50451
- var Ci = np.charAt(Xs);
50452
+ var rp = "ÐÞþ";
50453
+ for (var Xs = 0; Xs < rp.length; Xs++) {
50454
+ var Ci = rp.charAt(Xs);
50452
50455
  y(k, M, Ne, Ci, Ci), y(re, M, V, Ci, Ci);
50453
50456
  }
50454
50457
  var Ri = [
@@ -50536,7 +50539,7 @@ var Ri = [
50536
50539
  }, Qo = function(t, n, r) {
50537
50540
  return ht[r][t] && ht[r][t].replace && (t = ht[r][t].replace), {
50538
50541
  value: t,
50539
- metrics: ch(t, n, r)
50542
+ metrics: uh(t, n, r)
50540
50543
  };
50541
50544
  }, An = function(t, n, r, a, i) {
50542
50545
  var o = Qo(t, n, r), s = o.metrics;
@@ -50619,7 +50622,7 @@ var Ri = [
50619
50622
  n instanceof En && r instanceof En && DTe(n, r) && (n.text += r.text, n.height = Math.max(n.height, r.height), n.depth = Math.max(n.depth, r.depth), n.italic = r.italic, e.splice(t + 1, 1), t--);
50620
50623
  }
50621
50624
  return e;
50622
- }, dh = function(t) {
50625
+ }, ph = function(t) {
50623
50626
  for (var n = 0, r = 0, a = 0, i = 0; i < t.children.length; i++) {
50624
50627
  var o = t.children[i];
50625
50628
  o.height > n && (n = o.height), o.depth > r && (r = o.depth), o.maxFontSize > a && (a = o.maxFontSize);
@@ -50627,16 +50630,16 @@ var Ri = [
50627
50630
  t.height = n, t.depth = r, t.maxFontSize = a;
50628
50631
  }, en = function(t, n, r, a) {
50629
50632
  var i = new hi(t, n, r, a);
50630
- return dh(i), i;
50633
+ return ph(i), i;
50631
50634
  }, C6 = (e, t, n, r) => new hi(e, t, n, r), zTe = function(t, n, r) {
50632
50635
  var a = en([t], [], n);
50633
50636
  return a.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), a.style.borderBottomWidth = ue(a.height), a.maxFontSize = 1, a;
50634
50637
  }, FTe = function(t, n, r, a) {
50635
- var i = new uh(t, n, r, a);
50636
- return dh(i), i;
50638
+ var i = new dh(t, n, r, a);
50639
+ return ph(i), i;
50637
50640
  }, R6 = function(t) {
50638
50641
  var n = new pi(t);
50639
- return dh(n), n;
50642
+ return ph(n), n;
50640
50643
  }, PTe = function(t, n) {
50641
50644
  return t instanceof pi ? en([], [t], n) : t;
50642
50645
  }, qTe = function(t) {
@@ -50983,7 +50986,7 @@ var vo = function(t) {
50983
50986
  }, {
50984
50987
  node: p
50985
50988
  }, m, h), Ef(i, (g, f) => {
50986
- var _ = rp(f), v = rp(g), b = _ && v ? g.hasClass("mtight") ? VTe[_][v] : jTe[_][v] : null;
50989
+ var _ = ap(f), v = ap(g), b = _ && v ? g.hasClass("mtight") ? VTe[_][v] : jTe[_][v] : null;
50987
50990
  if (b)
50988
50991
  return Q.makeGlue(b, u);
50989
50992
  }, {
@@ -51008,7 +51011,7 @@ var vo = function(t) {
51008
51011
  }
51009
51012
  a && t.pop();
51010
51013
  }, D6 = function(t) {
51011
- return t instanceof pi || t instanceof uh || t instanceof hi && t.hasClass("enclosing") ? t : null;
51014
+ return t instanceof pi || t instanceof dh || t instanceof hi && t.hasClass("enclosing") ? t : null;
51012
51015
  }, ZTe = function e(t, n) {
51013
51016
  var r = D6(t);
51014
51017
  if (r) {
@@ -51021,7 +51024,7 @@ var vo = function(t) {
51021
51024
  }
51022
51025
  }
51023
51026
  return t;
51024
- }, rp = function(t, n) {
51027
+ }, ap = function(t, n) {
51025
51028
  return t ? (n && (t = ZTe(t, n)), YTe[t.classes[0]] || null) : null;
51026
51029
  }, Qa = function(t, n) {
51027
51030
  var r = ["nulldelimiter"].concat(t.baseSizingClasses());
@@ -51044,7 +51047,7 @@ function Oi(e, t) {
51044
51047
  var n = cr(["base"], e, t), r = cr(["strut"]);
51045
51048
  return r.style.height = ue(n.height + n.depth), n.depth && (r.style.verticalAlign = ue(-n.depth)), n.children.unshift(r), n;
51046
51049
  }
51047
- function ap(e, t) {
51050
+ function ip(e, t) {
51048
51051
  var n = null;
51049
51052
  e.length === 1 && e[0].type === "tag" && (n = e[0].tag, e = e[0].body);
51050
51053
  var r = Ct(e, t, "root"), a;
@@ -51178,9 +51181,9 @@ var ae = {
51178
51181
  newDocumentFragment: $6
51179
51182
  }, Mn = function(t, n, r) {
51180
51183
  return ht[n][t] && ht[n][t].replace && t.charCodeAt(0) !== 55349 && !(T6.hasOwnProperty(t) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (t = ht[n][t].replace), new ae.TextNode(t);
51181
- }, ph = function(t) {
51184
+ }, hh = function(t) {
51182
51185
  return t.length === 1 ? t[0] : new ae.MathNode("mrow", t);
51183
- }, hh = function(t, n) {
51186
+ }, mh = function(t, n) {
51184
51187
  if (n.fontFamily === "texttt")
51185
51188
  return "monospace";
51186
51189
  if (n.fontFamily === "textsf")
@@ -51216,7 +51219,7 @@ var ae = {
51216
51219
  return null;
51217
51220
  ht[a][i] && ht[a][i].replace && (i = ht[a][i].replace);
51218
51221
  var o = Q.fontMap[r].fontName;
51219
- return ch(i, o, a) ? Q.fontMap[r].variant : null;
51222
+ return uh(i, o, a) ? Q.fontMap[r].variant : null;
51220
51223
  }, rn = function(t, n, r) {
51221
51224
  if (t.length === 1) {
51222
51225
  var a = ut(t[0], n);
@@ -51249,7 +51252,7 @@ var ae = {
51249
51252
  }
51250
51253
  return i;
51251
51254
  }, Mr = function(t, n, r) {
51252
- return ph(rn(t, n, r));
51255
+ return hh(rn(t, n, r));
51253
51256
  }, ut = function(t, n) {
51254
51257
  if (!t)
51255
51258
  return new ae.MathNode("mrow");
@@ -51286,15 +51289,15 @@ var z6 = function(t) {
51286
51289
  if (r.output === "mathml")
51287
51290
  return Mf(t, n, a, r.displayMode, !0);
51288
51291
  if (r.output === "html") {
51289
- var o = ap(t, a);
51292
+ var o = ip(t, a);
51290
51293
  i = Q.makeSpan(["katex"], [o]);
51291
51294
  } else {
51292
- var s = Mf(t, n, a, r.displayMode, !1), l = ap(t, a);
51295
+ var s = Mf(t, n, a, r.displayMode, !1), l = ip(t, a);
51293
51296
  i = Q.makeSpan(["katex"], [s, l]);
51294
51297
  }
51295
51298
  return F6(i, r);
51296
51299
  }, JTe = function(t, n, r) {
51297
- var a = z6(r), i = ap(t, a), o = Q.makeSpan(["katex"], [i]);
51300
+ var a = z6(r), i = ip(t, a), o = Q.makeSpan(["katex"], [i]);
51298
51301
  return F6(o, r);
51299
51302
  }, eCe = {
51300
51303
  widehat: "^",
@@ -51464,13 +51467,13 @@ var z6 = function(t) {
51464
51467
  }
51465
51468
  } else {
51466
51469
  var u = [];
51467
- /^[bx]cancel$/.test(n) && u.push(new tp({
51470
+ /^[bx]cancel$/.test(n) && u.push(new np({
51468
51471
  x1: "0",
51469
51472
  y1: "0",
51470
51473
  x2: "100%",
51471
51474
  y2: "100%",
51472
51475
  "stroke-width": "0.046em"
51473
- })), /^x?cancel$/.test(n) && u.push(new tp({
51476
+ })), /^x?cancel$/.test(n) && u.push(new np({
51474
51477
  x1: "0",
51475
51478
  y1: "100%",
51476
51479
  x2: "100%",
@@ -51494,7 +51497,7 @@ function $e(e, t) {
51494
51497
  throw new Error("Expected node of type " + t + ", but got " + (e ? "node of type " + e.type : String(e)));
51495
51498
  return e;
51496
51499
  }
51497
- function mh(e) {
51500
+ function fh(e) {
51498
51501
  var t = Jo(e);
51499
51502
  if (!t)
51500
51503
  throw new Error("Expected node of symbol group type, but got " + (e ? "node of type " + e.type : String(e)));
@@ -51503,7 +51506,7 @@ function mh(e) {
51503
51506
  function Jo(e) {
51504
51507
  return e && (e.type === "atom" || CTe.hasOwnProperty(e.type)) ? e : null;
51505
51508
  }
51506
- var fh = (e, t) => {
51509
+ var gh = (e, t) => {
51507
51510
  var n, r, a;
51508
51511
  e && e.type === "supsub" ? (r = $e(e.base, "accent"), n = r.base, e.base = n, a = ATe(nt(e, t)), e.base = r) : (r = $e(e, "accent"), n = r.base);
51509
51512
  var i = nt(n, t.havingCrampedStyle()), o = r.isShifty && Ee.isCharacterBox(n), s = 0;
@@ -51574,7 +51577,7 @@ me({
51574
51577
  base: n
51575
51578
  };
51576
51579
  },
51577
- htmlBuilder: fh,
51580
+ htmlBuilder: gh,
51578
51581
  mathmlBuilder: P6
51579
51582
  });
51580
51583
  me({
@@ -51598,7 +51601,7 @@ me({
51598
51601
  base: n
51599
51602
  };
51600
51603
  },
51601
- htmlBuilder: fh,
51604
+ htmlBuilder: gh,
51602
51605
  mathmlBuilder: P6
51603
51606
  });
51604
51607
  me({
@@ -51950,7 +51953,7 @@ function dCe(e) {
51950
51953
  s.body.push(o[l]);
51951
51954
  else {
51952
51955
  r.push(s), l += 1;
51953
- var u = mh(o[l]).text, d = new Array(2);
51956
+ var u = fh(o[l]).text, d = new Array(2);
51954
51957
  if (d[0] = {
51955
51958
  type: "ordgroup",
51956
51959
  mode: "math",
@@ -52169,7 +52172,7 @@ me({
52169
52172
  return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", ue(bt(e.size, t)))), n;
52170
52173
  }
52171
52174
  });
52172
- var ip = {
52175
+ var op = {
52173
52176
  "\\global": "\\global",
52174
52177
  "\\long": "\\\\globallong",
52175
52178
  "\\\\globallong": "\\\\globallong",
@@ -52215,8 +52218,8 @@ me({
52215
52218
  } = e;
52216
52219
  t.consumeSpaces();
52217
52220
  var r = t.fetch();
52218
- if (ip[r.text])
52219
- return (n === "\\global" || n === "\\\\globallong") && (r.text = ip[r.text]), $e(t.parseFunction(), "internal");
52221
+ if (op[r.text])
52222
+ return (n === "\\global" || n === "\\\\globallong") && (r.text = op[r.text]), $e(t.parseFunction(), "internal");
52220
52223
  throw new se("Invalid token after macro prefix", r);
52221
52224
  }
52222
52225
  });
@@ -52258,7 +52261,7 @@ me({
52258
52261
  tokens: l,
52259
52262
  numArgs: i,
52260
52263
  delimiters: s
52261
- }, n === ip[n]), {
52264
+ }, n === op[n]), {
52262
52265
  type: "internal",
52263
52266
  mode: t.mode
52264
52267
  };
@@ -52313,23 +52316,23 @@ me({
52313
52316
  }
52314
52317
  });
52315
52318
  var Oa = function(t, n, r) {
52316
- var a = ht.math[t] && ht.math[t].replace, i = ch(a || t, n, r);
52319
+ var a = ht.math[t] && ht.math[t].replace, i = uh(a || t, n, r);
52317
52320
  if (!i)
52318
52321
  throw new Error("Unsupported symbol " + t + " and font size " + n + ".");
52319
52322
  return i;
52320
- }, gh = function(t, n, r, a) {
52323
+ }, yh = function(t, n, r, a) {
52321
52324
  var i = r.havingBaseStyle(n), o = Q.makeSpan(a.concat(i.sizingClasses(r)), [t], r), s = i.sizeMultiplier / r.sizeMultiplier;
52322
52325
  return o.height *= s, o.depth *= s, o.maxFontSize = i.sizeMultiplier, o;
52323
52326
  }, G6 = function(t, n, r) {
52324
52327
  var a = n.havingBaseStyle(r), i = (1 - n.sizeMultiplier / a.sizeMultiplier) * n.fontMetrics().axisHeight;
52325
52328
  t.classes.push("delimcenter"), t.style.top = ue(i), t.height -= i, t.depth += i;
52326
52329
  }, hCe = function(t, n, r, a, i, o) {
52327
- var s = Q.makeSymbol(t, "Main-Regular", i, a), l = gh(s, n, a, o);
52330
+ var s = Q.makeSymbol(t, "Main-Regular", i, a), l = yh(s, n, a, o);
52328
52331
  return r && G6(l, a, n), l;
52329
52332
  }, mCe = function(t, n, r, a) {
52330
52333
  return Q.makeSymbol(t, "Size" + n + "-Regular", r, a);
52331
52334
  }, W6 = function(t, n, r, a, i, o) {
52332
- var s = mCe(t, n, i, a), l = gh(Q.makeSpan(["delimsizing", "size" + n], [s], a), Ae.TEXT, a, o);
52335
+ var s = mCe(t, n, i, a), l = yh(Q.makeSpan(["delimsizing", "size" + n], [s], a), Ae.TEXT, a, o);
52333
52336
  return r && G6(l, a, Ae.TEXT), l;
52334
52337
  }, Qs = function(t, n, r) {
52335
52338
  var a;
@@ -52352,9 +52355,9 @@ var Oa = function(t, n, r) {
52352
52355
  type: "elem",
52353
52356
  elem: s
52354
52357
  };
52355
- }, op = 8e-3, Di = {
52358
+ }, sp = 8e-3, Di = {
52356
52359
  type: "kern",
52357
- size: -1 * op
52360
+ size: -1 * sp
52358
52361
  }, fCe = ["|", "\\lvert", "\\rvert", "\\vert"], gCe = ["\\|", "\\lVert", "\\rVert", "\\Vert"], K6 = function(t, n, r, a, i, o) {
52359
52362
  var s, l, u, d, p = "", m = 0;
52360
52363
  s = u = d = t, l = null;
@@ -52380,10 +52383,10 @@ var Oa = function(t, n, r) {
52380
52383
  });
52381
52384
  } else {
52382
52385
  if (Y.push(Qs(d, h, i)), Y.push(Di), l === null) {
52383
- var Z = C - f - w + 2 * op;
52386
+ var Z = C - f - w + 2 * sp;
52384
52387
  Y.push(Js(u, Z, a));
52385
52388
  } else {
52386
- var ee = (C - f - w - x) / 2 + 2 * op;
52389
+ var ee = (C - f - w - x) / 2 + 2 * sp;
52387
52390
  Y.push(Js(u, ee, a)), Y.push(Di), Y.push(Qs(l, h, i)), Y.push(Di), Y.push(Js(u, ee, a));
52388
52391
  }
52389
52392
  Y.push(Di), Y.push(Qs(s, h, i));
@@ -52393,7 +52396,7 @@ var Oa = function(t, n, r) {
52393
52396
  positionData: G,
52394
52397
  children: Y
52395
52398
  }, O);
52396
- return gh(Q.makeSpan(["delimsizing", "mult"], [de], O), Ae.TEXT, a, o);
52399
+ return yh(Q.makeSpan(["delimsizing", "mult"], [de], O), Ae.TEXT, a, o);
52397
52400
  }, el = 80, tl = 0.08, nl = function(t, n, r, a, i) {
52398
52401
  var o = kTe(t, a, r), s = new Er(t, o), l = new lr([s], {
52399
52402
  // Note: 1000:1 ratio of viewBox to document em width.
@@ -52697,7 +52700,7 @@ me({
52697
52700
  var a = new ae.MathNode("mo", [Mn(e.right, e.mode)]);
52698
52701
  a.setAttribute("fence", "true"), e.rightColor && a.setAttribute("mathcolor", e.rightColor), n.push(a);
52699
52702
  }
52700
- return ph(n);
52703
+ return hh(n);
52701
52704
  }
52702
52705
  });
52703
52706
  me({
@@ -52736,7 +52739,7 @@ me({
52736
52739
  return r.setAttribute("fence", "true"), r.setAttribute("lspace", "0.05em"), r.setAttribute("rspace", "0.05em"), r;
52737
52740
  }
52738
52741
  });
52739
- var yh = (e, t) => {
52742
+ var bh = (e, t) => {
52740
52743
  var n = Q.wrapFragment(nt(e.body, t), t), r = e.label.slice(1), a = t.sizeMultiplier, i, o = 0, s = Ee.isCharacterBox(e.body);
52741
52744
  if (r === "sout")
52742
52745
  i = Q.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / a, o = -0.5 * t.fontMetrics().xHeight;
@@ -52807,7 +52810,7 @@ var yh = (e, t) => {
52807
52810
  }, t);
52808
52811
  }
52809
52812
  return /cancel/.test(r) && (b.height = n.height, b.depth = n.depth), /cancel/.test(r) && !s ? Q.makeSpan(["mord", "cancel-lap"], [b], t) : Q.makeSpan(["mord"], [b], t);
52810
- }, bh = (e, t) => {
52813
+ }, kh = (e, t) => {
52811
52814
  var n = 0, r = new ae.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [ut(e.body, t)]);
52812
52815
  switch (e.label) {
52813
52816
  case "\\cancel":
@@ -52867,8 +52870,8 @@ me({
52867
52870
  body: o
52868
52871
  };
52869
52872
  },
52870
- htmlBuilder: yh,
52871
- mathmlBuilder: bh
52873
+ htmlBuilder: bh,
52874
+ mathmlBuilder: kh
52872
52875
  });
52873
52876
  me({
52874
52877
  type: "enclose",
@@ -52892,8 +52895,8 @@ me({
52892
52895
  body: s
52893
52896
  };
52894
52897
  },
52895
- htmlBuilder: yh,
52896
- mathmlBuilder: bh
52898
+ htmlBuilder: bh,
52899
+ mathmlBuilder: kh
52897
52900
  });
52898
52901
  me({
52899
52902
  type: "enclose",
@@ -52933,8 +52936,8 @@ me({
52933
52936
  body: a
52934
52937
  };
52935
52938
  },
52936
- htmlBuilder: yh,
52937
- mathmlBuilder: bh
52939
+ htmlBuilder: bh,
52940
+ mathmlBuilder: kh
52938
52941
  });
52939
52942
  me({
52940
52943
  type: "enclose",
@@ -52992,7 +52995,7 @@ var ns = (e) => {
52992
52995
  if (!t.displayMode)
52993
52996
  throw new se("{" + e.envName + "} can be used only in display mode.");
52994
52997
  };
52995
- function kh(e) {
52998
+ function vh(e) {
52996
52999
  if (e.indexOf("ed") === -1)
52997
53000
  return e.indexOf("*") === -1;
52998
53001
  }
@@ -53069,7 +53072,7 @@ function Ar(e, t, n) {
53069
53072
  leqno: m
53070
53073
  };
53071
53074
  }
53072
- function vh(e) {
53075
+ function _h(e) {
53073
53076
  return e.slice(0, 1) === "d" ? "display" : "text";
53074
53077
  }
53075
53078
  var Yn = function(t, n) {
@@ -53218,7 +53221,7 @@ var Yn = function(t, n) {
53218
53221
  var r = [], a = t.envName.indexOf("at") > -1 ? "alignat" : "align", i = t.envName === "split", o = Ar(t.parser, {
53219
53222
  cols: r,
53220
53223
  addJot: !0,
53221
- autoTag: i ? void 0 : kh(t.envName),
53224
+ autoTag: i ? void 0 : vh(t.envName),
53222
53225
  emptySingleRow: !0,
53223
53226
  colSeparationType: a,
53224
53227
  maxNumCols: i ? 2 : void 0,
@@ -53268,7 +53271,7 @@ Kn({
53268
53271
  },
53269
53272
  handler(e, t) {
53270
53273
  var n = Jo(t[0]), r = n ? [t[0]] : $e(t[0], "ordgroup").body, a = r.map(function(o) {
53271
- var s = mh(o), l = s.text;
53274
+ var s = fh(o), l = s.text;
53272
53275
  if ("lcr".indexOf(l) !== -1)
53273
53276
  return {
53274
53277
  type: "align",
@@ -53291,7 +53294,7 @@ Kn({
53291
53294
  // \@preamble in lttab.dtx
53292
53295
  maxNumCols: a.length
53293
53296
  };
53294
- return Ar(e.parser, i, vh(e.envName));
53297
+ return Ar(e.parser, i, _h(e.envName));
53295
53298
  },
53296
53299
  htmlBuilder: Yn,
53297
53300
  mathmlBuilder: Zn
@@ -53328,7 +53331,7 @@ Kn({
53328
53331
  }];
53329
53332
  }
53330
53333
  }
53331
- var i = Ar(e.parser, r, vh(e.envName)), o = Math.max(0, ...i.body.map((s) => s.length));
53334
+ var i = Ar(e.parser, r, _h(e.envName)), o = Math.max(0, ...i.body.map((s) => s.length));
53332
53335
  return i.cols = new Array(o).fill({
53333
53336
  type: "align",
53334
53337
  align: n
@@ -53368,7 +53371,7 @@ Kn({
53368
53371
  },
53369
53372
  handler(e, t) {
53370
53373
  var n = Jo(t[0]), r = n ? [t[0]] : $e(t[0], "ordgroup").body, a = r.map(function(o) {
53371
- var s = mh(o), l = s.text;
53374
+ var s = fh(o), l = s.text;
53372
53375
  if ("lc".indexOf(l) !== -1)
53373
53376
  return {
53374
53377
  type: "align",
@@ -53415,7 +53418,7 @@ Kn({
53415
53418
  pregap: 0,
53416
53419
  postgap: 0
53417
53420
  }]
53418
- }, n = Ar(e.parser, t, vh(e.envName));
53421
+ }, n = Ar(e.parser, t, _h(e.envName));
53419
53422
  return {
53420
53423
  type: "leftright",
53421
53424
  mode: e.mode,
@@ -53453,7 +53456,7 @@ Kn({
53453
53456
  }],
53454
53457
  addJot: !0,
53455
53458
  colSeparationType: "gather",
53456
- autoTag: kh(e.envName),
53459
+ autoTag: vh(e.envName),
53457
53460
  emptySingleRow: !0,
53458
53461
  leqno: e.parser.settings.leqno
53459
53462
  };
@@ -53481,7 +53484,7 @@ Kn({
53481
53484
  handler(e) {
53482
53485
  ns(e);
53483
53486
  var t = {
53484
- autoTag: kh(e.envName),
53487
+ autoTag: vh(e.envName),
53485
53488
  emptySingleRow: !0,
53486
53489
  singleRow: !0,
53487
53490
  maxNumCols: 1,
@@ -53668,7 +53671,7 @@ me({
53668
53671
  var i8 = (e, t) => {
53669
53672
  var n = t;
53670
53673
  return e === "display" ? n = n.id >= Ae.SCRIPT.id ? n.text() : Ae.DISPLAY : e === "text" && n.size === Ae.DISPLAY.size ? n = Ae.TEXT : e === "script" ? n = Ae.SCRIPT : e === "scriptscript" && (n = Ae.SCRIPTSCRIPT), n;
53671
- }, _h = (e, t) => {
53674
+ }, wh = (e, t) => {
53672
53675
  var n = i8(e.size, t.style), r = n.fracNum(), a = n.fracDen(), i;
53673
53676
  i = t.havingStyle(r);
53674
53677
  var o = nt(e.numer, i, t);
@@ -53722,7 +53725,7 @@ var i8 = (e, t) => {
53722
53725
  n.size === Ae.DISPLAY.size ? x = t.fontMetrics().delim1 : n.size === Ae.SCRIPTSCRIPT.size ? x = t.havingStyle(Ae.SCRIPT).fontMetrics().delim2 : x = t.fontMetrics().delim2;
53723
53726
  var S, E;
53724
53727
  return e.leftDelim == null ? S = Qa(t, ["mopen"]) : S = or.customSizedDelim(e.leftDelim, x, !0, t.havingStyle(n), e.mode, ["mopen"]), e.continued ? E = Q.makeSpan([]) : e.rightDelim == null ? E = Qa(t, ["mclose"]) : E = or.customSizedDelim(e.rightDelim, x, !0, t.havingStyle(n), e.mode, ["mclose"]), Q.makeSpan(["mord"].concat(i.sizingClasses(t)), [S, Q.makeSpan(["mfrac"], [_]), E], t);
53725
- }, wh = (e, t) => {
53728
+ }, xh = (e, t) => {
53726
53729
  var n = new ae.MathNode("mfrac", [ut(e.numer, t), ut(e.denom, t)]);
53727
53730
  if (!e.hasBarLine)
53728
53731
  n.setAttribute("linethickness", "0px");
@@ -53746,7 +53749,7 @@ var i8 = (e, t) => {
53746
53749
  var l = new ae.MathNode("mo", [new ae.TextNode(e.rightDelim.replace("\\", ""))]);
53747
53750
  l.setAttribute("fence", "true"), o.push(l);
53748
53751
  }
53749
- return ph(o);
53752
+ return hh(o);
53750
53753
  }
53751
53754
  return n;
53752
53755
  };
@@ -53820,8 +53823,8 @@ me({
53820
53823
  barSize: null
53821
53824
  };
53822
53825
  },
53823
- htmlBuilder: _h,
53824
- mathmlBuilder: wh
53826
+ htmlBuilder: wh,
53827
+ mathmlBuilder: xh
53825
53828
  });
53826
53829
  me({
53827
53830
  type: "genfrac",
@@ -53926,8 +53929,8 @@ me({
53926
53929
  size: m
53927
53930
  };
53928
53931
  },
53929
- htmlBuilder: _h,
53930
- mathmlBuilder: wh
53932
+ htmlBuilder: wh,
53933
+ mathmlBuilder: xh
53931
53934
  });
53932
53935
  me({
53933
53936
  type: "infix",
@@ -53977,8 +53980,8 @@ me({
53977
53980
  size: "auto"
53978
53981
  };
53979
53982
  },
53980
- htmlBuilder: _h,
53981
- mathmlBuilder: wh
53983
+ htmlBuilder: wh,
53984
+ mathmlBuilder: xh
53982
53985
  });
53983
53986
  var o8 = (e, t) => {
53984
53987
  var n = t.style, r, a;
@@ -55294,7 +55297,7 @@ var RCe = function(t, n) {
55294
55297
  return i ? c8 : null;
55295
55298
  } else {
55296
55299
  if (r.type === "accent")
55297
- return Ee.isCharacterBox(r.base) ? fh : null;
55300
+ return Ee.isCharacterBox(r.base) ? gh : null;
55298
55301
  if (r.type === "horizBrace") {
55299
55302
  var o = !t.sub;
55300
55303
  return o === r.isOver ? o8 : null;
@@ -55380,7 +55383,7 @@ Hr({
55380
55383
  }, t);
55381
55384
  else
55382
55385
  throw new Error("supsub must have either sup or sub.");
55383
- var D = rp(o, "right") || "mord";
55386
+ var D = ap(o, "right") || "mord";
55384
55387
  return Q.makeSpan([D], [o, Q.makeSpan(["msupsub"], [x])], t);
55385
55388
  },
55386
55389
  mathmlBuilder(e, t) {
@@ -55414,7 +55417,7 @@ Hr({
55414
55417
  mathmlBuilder(e, t) {
55415
55418
  var n = new ae.MathNode("mo", [Mn(e.text, e.mode)]);
55416
55419
  if (e.family === "bin") {
55417
- var r = hh(e, t);
55420
+ var r = mh(e, t);
55418
55421
  r === "bold-italic" && n.setAttribute("mathvariant", r);
55419
55422
  } else
55420
55423
  e.family === "punct" ? n.setAttribute("separator", "true") : (e.family === "open" || e.family === "close") && n.setAttribute("stretchy", "false");
@@ -55432,7 +55435,7 @@ Hr({
55432
55435
  return Q.makeOrd(e, t, "mathord");
55433
55436
  },
55434
55437
  mathmlBuilder(e, t) {
55435
- var n = new ae.MathNode("mi", [Mn(e.text, e.mode, t)]), r = hh(e, t) || "italic";
55438
+ var n = new ae.MathNode("mi", [Mn(e.text, e.mode, t)]), r = mh(e, t) || "italic";
55436
55439
  return r !== d8[n.type] && n.setAttribute("mathvariant", r), n;
55437
55440
  }
55438
55441
  });
@@ -55442,7 +55445,7 @@ Hr({
55442
55445
  return Q.makeOrd(e, t, "textord");
55443
55446
  },
55444
55447
  mathmlBuilder(e, t) {
55445
- var n = Mn(e.text, e.mode, t), r = hh(e, t) || "normal", a;
55448
+ var n = Mn(e.text, e.mode, t), r = mh(e, t) || "normal", a;
55446
55449
  return e.mode === "text" ? a = new ae.MathNode("mtext", [n]) : /[0-9]/.test(e.text) ? a = new ae.MathNode("mn", [n]) : e.text === "\\prime" ? a = new ae.MathNode("mo", [n]) : a = new ae.MathNode("mi", [n]), r !== d8[a.type] && a.setAttribute("mathvariant", r), a;
55447
55450
  }
55448
55451
  });
@@ -55671,12 +55674,12 @@ me({
55671
55674
  var Uf = (e) => e.body.replace(/ /g, e.star ? "␣" : " "), yr = L6, p8 = `[ \r
55672
55675
  ]`, OCe = "\\\\[a-zA-Z@]+", LCe = "\\\\[^\uD800-\uDFFF]", DCe = "(" + OCe + ")" + p8 + "*", $Ce = `\\\\(
55673
55676
  |[ \r ]+
55674
- ?)[ \r ]*`, sp = "[̀-ͯ]", zCe = new RegExp(sp + "+$"), FCe = "(" + p8 + "+)|" + // whitespace
55677
+ ?)[ \r ]*`, lp = "[̀-ͯ]", zCe = new RegExp(lp + "+$"), FCe = "(" + p8 + "+)|" + // whitespace
55675
55678
  ($Ce + "|") + // \whitespace
55676
55679
  "([!-\\[\\]-‧‪-퟿豈-￿]" + // single codepoint
55677
- (sp + "*") + // ...plus accents
55680
+ (lp + "*") + // ...plus accents
55678
55681
  "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
55679
- (sp + "*") + // ...plus accents
55682
+ (lp + "*") + // ...plus accents
55680
55683
  "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
55681
55684
  ("|" + DCe) + // \macroName + spaces
55682
55685
  ("|" + LCe + ")");
@@ -55884,7 +55887,7 @@ T("\\char", function(e) {
55884
55887
  }
55885
55888
  return "\\@char{" + r + "}";
55886
55889
  });
55887
- var xh = (e, t, n) => {
55890
+ var Eh = (e, t, n) => {
55888
55891
  var r = e.consumeArg().tokens;
55889
55892
  if (r.length !== 1)
55890
55893
  throw new se("\\newcommand's first argument must be a macro name");
@@ -55906,9 +55909,9 @@ var xh = (e, t, n) => {
55906
55909
  numArgs: o
55907
55910
  }), "";
55908
55911
  };
55909
- T("\\newcommand", (e) => xh(e, !1, !0));
55910
- T("\\renewcommand", (e) => xh(e, !0, !1));
55911
- T("\\providecommand", (e) => xh(e, !0, !0));
55912
+ T("\\newcommand", (e) => Eh(e, !1, !0));
55913
+ T("\\renewcommand", (e) => Eh(e, !0, !1));
55914
+ T("\\providecommand", (e) => Eh(e, !0, !0));
55912
55915
  T("\\message", (e) => {
55913
55916
  var t = e.consumeArgs(1)[0];
55914
55917
  return console.log(t.reverse().map((n) => n.text).join("")), "";
@@ -56054,7 +56057,7 @@ T("\\dots", function(e) {
56054
56057
  var t = "\\dotso", n = e.expandAfterFuture().text;
56055
56058
  return n in Vf ? t = Vf[n] : (n.slice(0, 4) === "\\not" || n in ht.math && Ee.contains(["bin", "rel"], ht.math[n].group)) && (t = "\\dotsb"), t;
56056
56059
  });
56057
- var Eh = {
56060
+ var Mh = {
56058
56061
  // \rightdelim@ checks for the following:
56059
56062
  ")": !0,
56060
56063
  "]": !0,
@@ -56080,15 +56083,15 @@ var Eh = {
56080
56083
  };
56081
56084
  T("\\dotso", function(e) {
56082
56085
  var t = e.future().text;
56083
- return t in Eh ? "\\ldots\\," : "\\ldots";
56086
+ return t in Mh ? "\\ldots\\," : "\\ldots";
56084
56087
  });
56085
56088
  T("\\dotsc", function(e) {
56086
56089
  var t = e.future().text;
56087
- return t in Eh && t !== "," ? "\\ldots\\," : "\\ldots";
56090
+ return t in Mh && t !== "," ? "\\ldots\\," : "\\ldots";
56088
56091
  });
56089
56092
  T("\\cdots", function(e) {
56090
56093
  var t = e.future().text;
56091
- return t in Eh ? "\\@cdots\\," : "\\@cdots";
56094
+ return t in Mh ? "\\@cdots\\," : "\\@cdots";
56092
56095
  });
56093
56096
  T("\\dotsb", "\\cdots");
56094
56097
  T("\\dotsm", "\\cdots");
@@ -57680,7 +57683,7 @@ class rs {
57680
57683
  i && (n = n.substring(0, i.index), n === "i" ? n = "ı" : n === "j" && (n = "ȷ"));
57681
57684
  var o;
57682
57685
  if (ht[this.mode][n]) {
57683
- this.settings.strict && this.mode === "math" && np.indexOf(n) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + n[0] + '" used in math mode', t);
57686
+ this.settings.strict && this.mode === "math" && rp.indexOf(n) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + n[0] + '" used in math mode', t);
57684
57687
  var s = ht[this.mode][n].group, l = cn.range(t), u;
57685
57688
  if (TTe.hasOwnProperty(s)) {
57686
57689
  var d = s;
@@ -57731,7 +57734,7 @@ class rs {
57731
57734
  }
57732
57735
  }
57733
57736
  rs.endOfExpression = ["}", "\\endgroup", "\\end", "\\right", "&"];
57734
- var Mh = function(t, n) {
57737
+ var Sh = function(t, n) {
57735
57738
  if (!(typeof t == "string" || t instanceof String))
57736
57739
  throw new TypeError("KaTeX can only parse string typed expression");
57737
57740
  var r = new rs(t, n);
@@ -57750,35 +57753,35 @@ var Mh = function(t, n) {
57750
57753
  return a;
57751
57754
  }, g8 = function(t, n, r) {
57752
57755
  n.textContent = "";
57753
- var a = Sh(t, r).toNode();
57756
+ var a = Nh(t, r).toNode();
57754
57757
  n.appendChild(a);
57755
57758
  };
57756
57759
  typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), g8 = function() {
57757
57760
  throw new se("KaTeX doesn't work in quirks mode.");
57758
57761
  });
57759
57762
  var UCe = function(t, n) {
57760
- var r = Sh(t, n).toMarkup();
57763
+ var r = Nh(t, n).toMarkup();
57761
57764
  return r;
57762
57765
  }, HCe = function(t, n) {
57763
- var r = new sh(n);
57764
- return Mh(t, r);
57766
+ var r = new lh(n);
57767
+ return Sh(t, r);
57765
57768
  }, y8 = function(t, n, r) {
57766
57769
  if (r.throwOnError || !(t instanceof se))
57767
57770
  throw t;
57768
57771
  var a = Q.makeSpan(["katex-error"], [new En(n)]);
57769
57772
  return a.setAttribute("title", t.toString()), a.setAttribute("style", "color:" + r.errorColor), a;
57770
- }, Sh = function(t, n) {
57771
- var r = new sh(n);
57773
+ }, Nh = function(t, n) {
57774
+ var r = new lh(n);
57772
57775
  try {
57773
- var a = Mh(t, r);
57776
+ var a = Sh(t, r);
57774
57777
  return QTe(a, t, r);
57775
57778
  } catch (i) {
57776
57779
  return y8(i, t, r);
57777
57780
  }
57778
57781
  }, jCe = function(t, n) {
57779
- var r = new sh(n);
57782
+ var r = new lh(n);
57780
57783
  try {
57781
- var a = Mh(t, r);
57784
+ var a = Sh(t, r);
57782
57785
  return JTe(a, t, r);
57783
57786
  } catch (i) {
57784
57787
  return y8(i, t, r);
@@ -57823,7 +57826,7 @@ var UCe = function(t, n) {
57823
57826
  * The internal tree representation is unstable and is very likely
57824
57827
  * to change. Use at your own risk.
57825
57828
  */
57826
- __renderToDomTree: Sh,
57829
+ __renderToDomTree: Nh,
57827
57830
  /**
57828
57831
  * Renders the given LaTeX into an HTML internal DOM tree representation,
57829
57832
  * without MathML and without flattening that representation to a string.
@@ -57861,11 +57864,11 @@ var UCe = function(t, n) {
57861
57864
  */
57862
57865
  __domTree: {
57863
57866
  Span: hi,
57864
- Anchor: uh,
57867
+ Anchor: dh,
57865
57868
  SymbolNode: En,
57866
57869
  SvgNode: lr,
57867
57870
  PathNode: Er,
57868
- LineNode: tp
57871
+ LineNode: np
57869
57872
  }
57870
57873
  };
57871
57874
  const VCe = {};
@@ -58233,7 +58236,7 @@ const rRe = [
58233
58236
  /* 7: Prohibited (numeric) */
58234
58237
  "Numeric character references cannot be outside the permissible Unicode range"
58235
58238
  ];
58236
- function Nh(e, t) {
58239
+ function Ah(e, t) {
58237
58240
  const n = t || {}, r = typeof n.additional == "string" ? n.additional.charCodeAt(0) : n.additional, a = [];
58238
58241
  let i = 0, o = -1, s = "", l, u;
58239
58242
  n.position && ("start" in n.position || "indent" in n.position ? (u = n.position.indent, l = n.position.start) : l = n.position);
@@ -58513,15 +58516,15 @@ function kRe(e) {
58513
58516
  }
58514
58517
  }
58515
58518
  function vRe(e) {
58516
- Ah.call(this, "containerDirective", e);
58519
+ Th.call(this, "containerDirective", e);
58517
58520
  }
58518
58521
  function _Re(e) {
58519
- Ah.call(this, "leafDirective", e);
58522
+ Th.call(this, "leafDirective", e);
58520
58523
  }
58521
58524
  function wRe(e) {
58522
- Ah.call(this, "textDirective", e);
58525
+ Th.call(this, "textDirective", e);
58523
58526
  }
58524
- function Ah(e, t) {
58527
+ function Th(e, t) {
58525
58528
  this.enter({ type: e, name: "", attributes: {}, children: [] }, t);
58526
58529
  }
58527
58530
  function sl(e) {
@@ -58543,18 +58546,18 @@ function ll() {
58543
58546
  function cl(e) {
58544
58547
  this.data.directiveAttributes.push([
58545
58548
  "id",
58546
- Nh(this.sliceSerialize(e), { attribute: !0 })
58549
+ Ah(this.sliceSerialize(e), { attribute: !0 })
58547
58550
  ]);
58548
58551
  }
58549
58552
  function ul(e) {
58550
58553
  this.data.directiveAttributes.push([
58551
58554
  "class",
58552
- Nh(this.sliceSerialize(e), { attribute: !0 })
58555
+ Ah(this.sliceSerialize(e), { attribute: !0 })
58553
58556
  ]);
58554
58557
  }
58555
58558
  function dl(e) {
58556
58559
  const t = this.data.directiveAttributes;
58557
- t[t.length - 1][1] = Nh(this.sliceSerialize(e), {
58560
+ t[t.length - 1][1] = Ah(this.sliceSerialize(e), {
58558
58561
  attribute: !0
58559
58562
  });
58560
58563
  }
@@ -58592,7 +58595,7 @@ function SRe(e) {
58592
58595
  }
58593
58596
  }), t += 3) : e.type === "leafDirective" ? t = 2 : t = 1, ":".repeat(t);
58594
58597
  }
58595
- function Th(e, t, n, r, a, i, o, s, l, u, d, p, m, h, g) {
58598
+ function Ch(e, t, n, r, a, i, o, s, l, u, d, p, m, h, g) {
58596
58599
  let f, _;
58597
58600
  return v;
58598
58601
  function v(R) {
@@ -58657,7 +58660,7 @@ function Th(e, t, n, r, a, i, o, s, l, u, d, p, m, h, g) {
58657
58660
  return R === 125 ? (e.enter(a), e.consume(R), e.exit(a), e.exit(r), t) : n(R);
58658
58661
  }
58659
58662
  }
58660
- function Ch(e, t, n, r, a, i, o) {
58663
+ function Rh(e, t, n, r, a, i, o) {
58661
58664
  let s = 0, l = 0, u;
58662
58665
  return d;
58663
58666
  function d(_) {
@@ -58686,7 +58689,7 @@ function Ch(e, t, n, r, a, i, o) {
58686
58689
  return e.exit(i), e.enter(a), e.consume(_), e.exit(a), e.exit(r), t;
58687
58690
  }
58688
58691
  }
58689
- function Rh(e, t, n, r) {
58692
+ function Ih(e, t, n, r) {
58690
58693
  const a = this;
58691
58694
  return i;
58692
58695
  function i(s) {
@@ -58717,7 +58720,7 @@ function CRe(e, t, n) {
58717
58720
  return e.enter("directiveContainer"), e.enter("directiveContainerFence"), e.enter("directiveContainerSequence"), u(C);
58718
58721
  }
58719
58722
  function u(C) {
58720
- return C === 58 ? (e.consume(C), o++, u) : o < 3 ? n(C) : (e.exit("directiveContainerSequence"), Rh.call(r, e, d, n, "directiveContainerName")(C));
58723
+ return C === 58 ? (e.consume(C), o++, u) : o < 3 ? n(C) : (e.exit("directiveContainerSequence"), Ih.call(r, e, d, n, "directiveContainerName")(C));
58721
58724
  }
58722
58725
  function d(C) {
58723
58726
  return C === 91 ? e.attempt(ARe, p, p)(C) : p(C);
@@ -58790,10 +58793,10 @@ function CRe(e, t, n) {
58790
58793
  }
58791
58794
  }
58792
58795
  function RRe(e, t, n) {
58793
- return Ch(e, t, n, "directiveContainerLabel", "directiveContainerLabelMarker", "directiveContainerLabelString", !0);
58796
+ return Rh(e, t, n, "directiveContainerLabel", "directiveContainerLabelMarker", "directiveContainerLabelString", !0);
58794
58797
  }
58795
58798
  function IRe(e, t, n) {
58796
- return Th(e, t, n, "directiveContainerAttributes", "directiveContainerAttributesMarker", "directiveContainerAttribute", "directiveContainerAttributeId", "directiveContainerAttributeClass", "directiveContainerAttributeName", "directiveContainerAttributeInitializerMarker", "directiveContainerAttributeValueLiteral", "directiveContainerAttributeValue", "directiveContainerAttributeValueMarker", "directiveContainerAttributeValueData", !0);
58799
+ return Ch(e, t, n, "directiveContainerAttributes", "directiveContainerAttributesMarker", "directiveContainerAttribute", "directiveContainerAttributeId", "directiveContainerAttributeClass", "directiveContainerAttributeName", "directiveContainerAttributeInitializerMarker", "directiveContainerAttributeValueLiteral", "directiveContainerAttributeValue", "directiveContainerAttributeValueMarker", "directiveContainerAttributeValueData", !0);
58797
58800
  }
58798
58801
  function ORe(e, t, n) {
58799
58802
  const r = this;
@@ -58821,7 +58824,7 @@ function zRe(e, t, n) {
58821
58824
  return e.enter("directiveLeaf"), e.enter("directiveLeafSequence"), e.consume(d), i;
58822
58825
  }
58823
58826
  function i(d) {
58824
- return d === 58 ? (e.consume(d), e.exit("directiveLeafSequence"), Rh.call(r, e, o, n, "directiveLeafName")) : n(d);
58827
+ return d === 58 ? (e.consume(d), e.exit("directiveLeafSequence"), Ih.call(r, e, o, n, "directiveLeafName")) : n(d);
58825
58828
  }
58826
58829
  function o(d) {
58827
58830
  return d === 91 ? e.attempt(DRe, s, s)(d) : s(d);
@@ -58837,10 +58840,10 @@ function zRe(e, t, n) {
58837
58840
  }
58838
58841
  }
58839
58842
  function FRe(e, t, n) {
58840
- return Ch(e, t, n, "directiveLeafLabel", "directiveLeafLabelMarker", "directiveLeafLabelString", !0);
58843
+ return Rh(e, t, n, "directiveLeafLabel", "directiveLeafLabelMarker", "directiveLeafLabelString", !0);
58841
58844
  }
58842
58845
  function PRe(e, t, n) {
58843
- return Th(e, t, n, "directiveLeafAttributes", "directiveLeafAttributesMarker", "directiveLeafAttribute", "directiveLeafAttributeId", "directiveLeafAttributeClass", "directiveLeafAttributeName", "directiveLeafAttributeInitializerMarker", "directiveLeafAttributeValueLiteral", "directiveLeafAttributeValue", "directiveLeafAttributeValueMarker", "directiveLeafAttributeValueData", !0);
58846
+ return Ch(e, t, n, "directiveLeafAttributes", "directiveLeafAttributesMarker", "directiveLeafAttribute", "directiveLeafAttributeId", "directiveLeafAttributeClass", "directiveLeafAttributeName", "directiveLeafAttributeInitializerMarker", "directiveLeafAttributeValueLiteral", "directiveLeafAttributeValue", "directiveLeafAttributeValueMarker", "directiveLeafAttributeValueData", !0);
58844
58847
  }
58845
58848
  const qRe = {
58846
58849
  tokenize: jRe,
@@ -58859,7 +58862,7 @@ function jRe(e, t, n) {
58859
58862
  const r = this;
58860
58863
  return a;
58861
58864
  function a(l) {
58862
- return e.enter("directiveText"), e.enter("directiveTextMarker"), e.consume(l), e.exit("directiveTextMarker"), Rh.call(r, e, i, n, "directiveTextName");
58865
+ return e.enter("directiveText"), e.enter("directiveTextMarker"), e.consume(l), e.exit("directiveTextMarker"), Ih.call(r, e, i, n, "directiveTextName");
58863
58866
  }
58864
58867
  function i(l) {
58865
58868
  return l === 58 ? n(l) : l === 91 ? e.attempt(BRe, o, o)(l) : o(l);
@@ -58872,10 +58875,10 @@ function jRe(e, t, n) {
58872
58875
  }
58873
58876
  }
58874
58877
  function VRe(e, t, n) {
58875
- return Ch(e, t, n, "directiveTextLabel", "directiveTextLabelMarker", "directiveTextLabelString");
58878
+ return Rh(e, t, n, "directiveTextLabel", "directiveTextLabelMarker", "directiveTextLabelString");
58876
58879
  }
58877
58880
  function GRe(e, t, n) {
58878
- return Th(e, t, n, "directiveTextAttributes", "directiveTextAttributesMarker", "directiveTextAttribute", "directiveTextAttributeId", "directiveTextAttributeClass", "directiveTextAttributeName", "directiveTextAttributeInitializerMarker", "directiveTextAttributeValueLiteral", "directiveTextAttributeValue", "directiveTextAttributeValueMarker", "directiveTextAttributeValueData");
58881
+ return Ch(e, t, n, "directiveTextAttributes", "directiveTextAttributesMarker", "directiveTextAttribute", "directiveTextAttributeId", "directiveTextAttributeClass", "directiveTextAttributeName", "directiveTextAttributeInitializerMarker", "directiveTextAttributeValueLiteral", "directiveTextAttributeValue", "directiveTextAttributeValueMarker", "directiveTextAttributeValueData");
58879
58882
  }
58880
58883
  function WRe() {
58881
58884
  return {
@@ -58929,7 +58932,7 @@ function x8(e, t, n) {
58929
58932
  ZRe(e, l.properties, p, m);
58930
58933
  }
58931
58934
  for (const u of s)
58932
- lp(l.children, u);
58935
+ cp(l.children, u);
58933
58936
  return l.type === "element" && l.tagName === "template" && (l.content = { type: "root", children: l.children }, l.children = []), l;
58934
58937
  }
58935
58938
  return a;
@@ -58984,15 +58987,15 @@ function ZRe(e, t, n, r) {
58984
58987
  )), t[a.property] = i;
58985
58988
  }
58986
58989
  }
58987
- function lp(e, t) {
58990
+ function cp(e, t) {
58988
58991
  if (t != null)
58989
58992
  if (typeof t == "number" || typeof t == "string")
58990
58993
  e.push({ type: "text", value: String(t) });
58991
58994
  else if (Array.isArray(t))
58992
58995
  for (const n of t)
58993
- lp(e, n);
58996
+ cp(e, n);
58994
58997
  else if (typeof t == "object" && "type" in t)
58995
- t.type === "root" ? lp(e, t.children) : e.push(t);
58998
+ t.type === "root" ? cp(e, t.children) : e.push(t);
58996
58999
  else
58997
59000
  throw new Error("Expected node, nodes, or string, got `" + t + "`");
58998
59001
  }
@@ -59196,7 +59199,7 @@ const ig = (
59196
59199
  if (typeof e == "object")
59197
59200
  return uIe(e);
59198
59201
  if (typeof e == "function")
59199
- return Ih(e);
59202
+ return Oh(e);
59200
59203
  throw new Error("Expected function, string, or array as `test`");
59201
59204
  }
59202
59205
  );
@@ -59205,7 +59208,7 @@ function uIe(e) {
59205
59208
  let n = -1;
59206
59209
  for (; ++n < e.length; )
59207
59210
  t[n] = jr(e[n]);
59208
- return Ih(r);
59211
+ return Oh(r);
59209
59212
  function r(...a) {
59210
59213
  let i = -1;
59211
59214
  for (; ++i < t.length; )
@@ -59215,12 +59218,12 @@ function uIe(e) {
59215
59218
  }
59216
59219
  }
59217
59220
  function dIe(e) {
59218
- return Ih(t);
59221
+ return Oh(t);
59219
59222
  function t(n) {
59220
59223
  return n.tagName === e;
59221
59224
  }
59222
59225
  }
59223
- function Ih(e) {
59226
+ function Oh(e) {
59224
59227
  return t;
59225
59228
  function t(n, r, a) {
59226
59229
  return !!(hIe(n) && e.call(
@@ -59237,7 +59240,7 @@ function pIe(e) {
59237
59240
  function hIe(e) {
59238
59241
  return e !== null && typeof e == "object" && "type" in e && "tagName" in e;
59239
59242
  }
59240
- const og = /\n/g, sg = /[\t ]+/g, cp = jr("br"), lg = jr(vIe), mIe = jr("p"), cg = jr("tr"), fIe = jr([
59243
+ const og = /\n/g, sg = /[\t ]+/g, up = jr("br"), lg = jr(vIe), mIe = jr("p"), cg = jr("tr"), fIe = jr([
59241
59244
  // List from: <https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements>
59242
59245
  "datalist",
59243
59246
  "head",
@@ -59356,7 +59359,7 @@ function N8(e, t) {
59356
59359
  {
59357
59360
  whitespace: i,
59358
59361
  breakBefore: s ? void 0 : a,
59359
- breakAfter: s < r.length - 1 ? cp(r[s + 1]) : a
59362
+ breakAfter: s < r.length - 1 ? up(r[s + 1]) : a
59360
59363
  }
59361
59364
  )
59362
59365
  );
@@ -59378,14 +59381,14 @@ function gIe(e, t, n) {
59378
59381
  if (fIe(e))
59379
59382
  return o;
59380
59383
  let s, l;
59381
- for (cp(e) || cg(e) && // @ts-expect-error: something up with types of parents.
59384
+ for (up(e) || cg(e) && // @ts-expect-error: something up with types of parents.
59382
59385
  ig(t, e, cg) ? l = `
59383
59386
  ` : mIe(e) ? (s = 2, l = 2) : S8(e) && (s = 1, l = 1); ++i < a.length; )
59384
59387
  o = o.concat(
59385
59388
  A8(a[i], e, {
59386
59389
  whitespace: r,
59387
59390
  breakBefore: i ? void 0 : s,
59388
- breakAfter: i < a.length - 1 ? cp(a[i + 1]) : l
59391
+ breakAfter: i < a.length - 1 ? up(a[i + 1]) : l
59389
59392
  })
59390
59393
  );
59391
59394
  return lg(e) && // @ts-expect-error: something up with types of parents.
@@ -69918,7 +69921,7 @@ function COe(e) {
69918
69921
  function Gt(...e) {
69919
69922
  return "(" + (COe(e).capture ? "" : "?:") + e.map((r) => F8(r)).join("|") + ")";
69920
69923
  }
69921
- const Oh = (e) => ot(
69924
+ const Lh = (e) => ot(
69922
69925
  /\b/,
69923
69926
  e,
69924
69927
  /\w$/.test(e) ? /\b/ : /\B/
@@ -69927,10 +69930,10 @@ const Oh = (e) => ot(
69927
69930
  // contextual
69928
69931
  "Type"
69929
69932
  // contextual
69930
- ].map(Oh), pg = [
69933
+ ].map(Lh), pg = [
69931
69934
  "init",
69932
69935
  "self"
69933
- ].map(Oh), IOe = [
69936
+ ].map(Lh), IOe = [
69934
69937
  "Any",
69935
69938
  "Self"
69936
69939
  ], gl = [
@@ -70255,7 +70258,7 @@ function zOe(e) {
70255
70258
  // Consume .keyword to prevent highlighting properties and methods as keywords.
70256
70259
  match: ot(/\./, Gt(...gl)),
70257
70260
  relevance: 0
70258
- }, o = gl.filter((xe) => typeof xe == "string").concat(["_|0"]), s = gl.filter((xe) => typeof xe != "string").concat(IOe).map(Oh), l = { variants: [
70261
+ }, o = gl.filter((xe) => typeof xe == "string").concat(["_|0"]), s = gl.filter((xe) => typeof xe != "string").concat(IOe).map(Lh), l = { variants: [
70259
70262
  {
70260
70263
  className: "keyword",
70261
70264
  match: Gt(...s, ...pg)
@@ -72215,7 +72218,7 @@ const yg = (e = {}) => {
72215
72218
  const t = { children: [] };
72216
72219
  return Object.assign(t, e), t;
72217
72220
  };
72218
- class Lh {
72221
+ class Dh {
72219
72222
  constructor() {
72220
72223
  this.rootNode = yg(), this.stack = [this.rootNode];
72221
72224
  }
@@ -72264,11 +72267,11 @@ class Lh {
72264
72267
  */
72265
72268
  static _collapse(t) {
72266
72269
  typeof t != "string" && t.children && (t.children.every((n) => typeof n == "string") ? t.children = [t.children.join("")] : t.children.forEach((n) => {
72267
- Lh._collapse(n);
72270
+ Dh._collapse(n);
72268
72271
  }));
72269
72272
  }
72270
72273
  }
72271
- class KOe extends Lh {
72274
+ class KOe extends Dh {
72272
72275
  /**
72273
72276
  * @param {*} options
72274
72277
  */
@@ -72322,7 +72325,7 @@ function XOe(e) {
72322
72325
  const t = e[e.length - 1];
72323
72326
  return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
72324
72327
  }
72325
- function Dh(...e) {
72328
+ function $h(...e) {
72326
72329
  return "(" + (XOe(e).capture ? "" : "?:") + e.map((r) => Ja(r)).join("|") + ")";
72327
72330
  }
72328
72331
  function Q8(e) {
@@ -72333,7 +72336,7 @@ function QOe(e, t) {
72333
72336
  return n && n.index === 0;
72334
72337
  }
72335
72338
  const JOe = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
72336
- function $h(e, { joinWith: t }) {
72339
+ function zh(e, { joinWith: t }) {
72337
72340
  let n = 0;
72338
72341
  return e.map((r) => {
72339
72342
  n += 1;
@@ -72350,7 +72353,7 @@ function $h(e, { joinWith: t }) {
72350
72353
  return o;
72351
72354
  }).map((r) => `(${r})`).join(t);
72352
72355
  }
72353
- const eLe = /\b\B/, J8 = "[a-zA-Z]\\w*", zh = "[a-zA-Z_]\\w*", e7 = "\\b\\d+(\\.\\d+)?", t7 = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", n7 = "\\b(0b[01]+)", tLe = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", nLe = (e = {}) => {
72356
+ const eLe = /\b\B/, J8 = "[a-zA-Z]\\w*", Fh = "[a-zA-Z_]\\w*", e7 = "\\b\\d+(\\.\\d+)?", t7 = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", n7 = "\\b(0b[01]+)", tLe = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", nLe = (e = {}) => {
72354
72357
  const t = /^#![ ]*\//;
72355
72358
  return e.binary && (e.begin = Vr(
72356
72359
  t,
@@ -72403,7 +72406,7 @@ const eLe = /\b\B/, J8 = "[a-zA-Z]\\w*", zh = "[a-zA-Z_]\\w*", e7 = "\\b\\d+(\\.
72403
72406
  excludeBegin: !0,
72404
72407
  relevance: 0
72405
72408
  });
72406
- const a = Dh(
72409
+ const a = $h(
72407
72410
  // list of common 1 and 2 letter words in English
72408
72411
  "I",
72409
72412
  "a",
@@ -72481,11 +72484,11 @@ const eLe = /\b\B/, J8 = "[a-zA-Z]\\w*", zh = "[a-zA-Z_]\\w*", e7 = "\\b\\d+(\\.
72481
72484
  relevance: 0
72482
72485
  }, mLe = {
72483
72486
  scope: "title",
72484
- begin: zh,
72487
+ begin: Fh,
72485
72488
  relevance: 0
72486
72489
  }, fLe = {
72487
72490
  // excludes method names from keyword processing
72488
- begin: "\\.\\s*" + zh,
72491
+ begin: "\\.\\s*" + Fh,
72489
72492
  relevance: 0
72490
72493
  }, gLe = function(e) {
72491
72494
  return Object.assign(
@@ -72526,7 +72529,7 @@ var Hi = /* @__PURE__ */ Object.freeze({
72526
72529
  RE_STARTERS_RE: tLe,
72527
72530
  SHEBANG: nLe,
72528
72531
  TITLE_MODE: hLe,
72529
- UNDERSCORE_IDENT_RE: zh,
72532
+ UNDERSCORE_IDENT_RE: Fh,
72530
72533
  UNDERSCORE_TITLE_MODE: mLe
72531
72534
  });
72532
72535
  function yLe(e, t) {
@@ -72539,7 +72542,7 @@ function kLe(e, t) {
72539
72542
  t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = yLe, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
72540
72543
  }
72541
72544
  function vLe(e, t) {
72542
- Array.isArray(e.illegal) && (e.illegal = Dh(...e.illegal));
72545
+ Array.isArray(e.illegal) && (e.illegal = $h(...e.illegal));
72543
72546
  }
72544
72547
  function _Le(e, t) {
72545
72548
  if (e.match) {
@@ -72622,7 +72625,7 @@ function ALe(e) {
72622
72625
  throw Fr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), xo;
72623
72626
  if (typeof e.beginScope != "object" || e.beginScope === null)
72624
72627
  throw Fr("beginScope must be object"), xo;
72625
- a7(e, e.begin, { key: "beginScope" }), e.begin = $h(e.begin, { joinWith: "" });
72628
+ a7(e, e.begin, { key: "beginScope" }), e.begin = zh(e.begin, { joinWith: "" });
72626
72629
  }
72627
72630
  }
72628
72631
  function TLe(e) {
@@ -72631,7 +72634,7 @@ function TLe(e) {
72631
72634
  throw Fr("skip, excludeEnd, returnEnd not compatible with endScope: {}"), xo;
72632
72635
  if (typeof e.endScope != "object" || e.endScope === null)
72633
72636
  throw Fr("endScope must be object"), xo;
72634
- a7(e, e.end, { key: "endScope" }), e.end = $h(e.end, { joinWith: "" });
72637
+ a7(e, e.end, { key: "endScope" }), e.end = zh(e.end, { joinWith: "" });
72635
72638
  }
72636
72639
  }
72637
72640
  function CLe(e) {
@@ -72658,7 +72661,7 @@ function ILe(e) {
72658
72661
  compile() {
72659
72662
  this.regexes.length === 0 && (this.exec = () => null);
72660
72663
  const s = this.regexes.map((l) => l[1]);
72661
- this.matcherRe = t($h(s, { joinWith: "|" }), !0), this.lastIndex = 0;
72664
+ this.matcherRe = t(zh(s, { joinWith: "|" }), !0), this.lastIndex = 0;
72662
72665
  }
72663
72666
  /** @param {string} s */
72664
72667
  exec(s) {
@@ -73170,7 +73173,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = U, K = z), L ===
73170
73173
  }, e.versionString = LLe, e.regex = {
73171
73174
  concat: Vr,
73172
73175
  lookahead: X8,
73173
- either: Dh,
73176
+ either: $h,
73174
73177
  optional: ZOe,
73175
73178
  anyNumberOfTimes: YOe
73176
73179
  };
@@ -73449,7 +73452,7 @@ function VLe(e, t) {
73449
73452
  }
73450
73453
  return a;
73451
73454
  }
73452
- function up(e, t) {
73455
+ function dp(e, t) {
73453
73456
  (t == null || t > e.length) && (t = e.length);
73454
73457
  for (var n = 0, r = Array(t); n < t; n++)
73455
73458
  r[n] = e[n];
@@ -73457,7 +73460,7 @@ function up(e, t) {
73457
73460
  }
73458
73461
  function GLe(e) {
73459
73462
  if (Array.isArray(e))
73460
- return up(e);
73463
+ return dp(e);
73461
73464
  }
73462
73465
  function WLe(e) {
73463
73466
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
@@ -73466,9 +73469,9 @@ function WLe(e) {
73466
73469
  function KLe(e, t) {
73467
73470
  if (e) {
73468
73471
  if (typeof e == "string")
73469
- return up(e, t);
73472
+ return dp(e, t);
73470
73473
  var n = {}.toString.call(e).slice(8, -1);
73471
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? up(e, t) : void 0;
73474
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? dp(e, t) : void 0;
73472
73475
  }
73473
73476
  }
73474
73477
  function YLe() {
@@ -73510,15 +73513,15 @@ function l7(e, t, n) {
73510
73513
  writable: !0
73511
73514
  }) : e[t] = n, e;
73512
73515
  }
73513
- function dp() {
73514
- return dp = Object.assign ? Object.assign.bind() : function(e) {
73516
+ function pp() {
73517
+ return pp = Object.assign ? Object.assign.bind() : function(e) {
73515
73518
  for (var t = 1; t < arguments.length; t++) {
73516
73519
  var n = arguments[t];
73517
73520
  for (var r in n)
73518
73521
  ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
73519
73522
  }
73520
73523
  return e;
73521
- }, dp.apply(null, arguments);
73524
+ }, pp.apply(null, arguments);
73522
73525
  }
73523
73526
  function xg(e, t) {
73524
73527
  var n = Object.keys(e);
@@ -73607,7 +73610,7 @@ function c7(e) {
73607
73610
  });
73608
73611
  }
73609
73612
  var _ = p(t.children);
73610
- return /* @__PURE__ */ Bn.createElement(u, dp({
73613
+ return /* @__PURE__ */ Bn.createElement(u, pp({
73611
73614
  key: o
73612
73615
  }, m), _);
73613
73616
  }
@@ -73896,10 +73899,10 @@ function yDe() {
73896
73899
  }
73897
73900
  return e;
73898
73901
  }
73899
- var m7 = f7, Fh = f7.prototype;
73900
- Fh.space = null;
73901
- Fh.normal = {};
73902
- Fh.property = {};
73902
+ var m7 = f7, Ph = f7.prototype;
73903
+ Ph.space = null;
73904
+ Ph.normal = {};
73905
+ Ph.property = {};
73903
73906
  function f7(e, t, n) {
73904
73907
  this.property = e, this.normal = t, n && (this.space = n);
73905
73908
  }
@@ -73913,7 +73916,7 @@ function vDe(e) {
73913
73916
  o
73914
73917
  );
73915
73918
  }
73916
- var Ph = _De;
73919
+ var qh = _De;
73917
73920
  function _De(e) {
73918
73921
  return e.toLowerCase();
73919
73922
  }
@@ -73944,9 +73947,9 @@ Xn.commaOrSpaceSeparated = Gr();
73944
73947
  function Gr() {
73945
73948
  return Math.pow(2, ++wDe);
73946
73949
  }
73947
- var b7 = g7, Ng = Xn, k7 = qh;
73948
- qh.prototype = new b7();
73949
- qh.prototype.defined = !0;
73950
+ var b7 = g7, Ng = Xn, k7 = Bh;
73951
+ Bh.prototype = new b7();
73952
+ Bh.prototype.defined = !0;
73950
73953
  var v7 = [
73951
73954
  "boolean",
73952
73955
  "booleanish",
@@ -73956,7 +73959,7 @@ var v7 = [
73956
73959
  "spaceSeparated",
73957
73960
  "commaOrSpaceSeparated"
73958
73961
  ], xDe = v7.length;
73959
- function qh(e, t, n, r) {
73962
+ function Bh(e, t, n, r) {
73960
73963
  var a = -1, i;
73961
73964
  for (Ag(this, "space", r), b7.call(this, e, t); ++a < xDe; )
73962
73965
  i = v7[a], Ag(this, i, (n & Ng[i]) === Ng[i]);
@@ -73964,7 +73967,7 @@ function qh(e, t, n, r) {
73964
73967
  function Ag(e, t, n) {
73965
73968
  n && (e[t] = n);
73966
73969
  }
73967
- var Tg = Ph, EDe = m7, MDe = k7, fi = SDe;
73970
+ var Tg = qh, EDe = m7, MDe = k7, fi = SDe;
73968
73971
  function SDe(e) {
73969
73972
  var t = e.space, n = e.mustUseProperty || [], r = e.attributes || {}, a = e.properties, i = e.transform, o = {}, s = {}, l, u;
73970
73973
  for (l in a)
@@ -74022,7 +74025,7 @@ var zDe = fi, FDe = _7, PDe = zDe({
74022
74025
  xmlns: null,
74023
74026
  xmlnsXLink: null
74024
74027
  }
74025
- }), Bh = Xn, qDe = fi, Qt = Bh.booleanish, mn = Bh.number, Lr = Bh.spaceSeparated, BDe = qDe({
74028
+ }), Uh = Xn, qDe = fi, Qt = Uh.booleanish, mn = Uh.number, Lr = Uh.spaceSeparated, BDe = qDe({
74026
74029
  transform: UDe,
74027
74030
  properties: {
74028
74031
  ariaActiveDescendant: null,
@@ -74425,18 +74428,18 @@ var xa = Xn, HDe = fi, jDe = _7, Be = xa.boolean, VDe = xa.overloadedBoolean, Ca
74425
74428
  security: null,
74426
74429
  unselectable: null
74427
74430
  }
74428
- }), WDe = kDe, KDe = ADe, YDe = RDe, ZDe = PDe, XDe = BDe, QDe = GDe, JDe = WDe([YDe, KDe, ZDe, XDe, QDe]), e$e = Ph, t$e = k7, n$e = g7, Uh = "data", r$e = o$e, a$e = /^data[-\w.:]+$/i, w7 = /-[a-z]/g, i$e = /[A-Z]/g;
74431
+ }), WDe = kDe, KDe = ADe, YDe = RDe, ZDe = PDe, XDe = BDe, QDe = GDe, JDe = WDe([YDe, KDe, ZDe, XDe, QDe]), e$e = qh, t$e = k7, n$e = g7, Hh = "data", r$e = o$e, a$e = /^data[-\w.:]+$/i, w7 = /-[a-z]/g, i$e = /[A-Z]/g;
74429
74432
  function o$e(e, t) {
74430
74433
  var n = e$e(t), r = t, a = n$e;
74431
- return n in e.normal ? e.property[e.normal[n]] : (n.length > 4 && n.slice(0, 4) === Uh && a$e.test(t) && (t.charAt(4) === "-" ? r = s$e(t) : t = l$e(t), a = t$e), new a(r, t));
74434
+ return n in e.normal ? e.property[e.normal[n]] : (n.length > 4 && n.slice(0, 4) === Hh && a$e.test(t) && (t.charAt(4) === "-" ? r = s$e(t) : t = l$e(t), a = t$e), new a(r, t));
74432
74435
  }
74433
74436
  function s$e(e) {
74434
74437
  var t = e.slice(5).replace(w7, u$e);
74435
- return Uh + t.charAt(0).toUpperCase() + t.slice(1);
74438
+ return Hh + t.charAt(0).toUpperCase() + t.slice(1);
74436
74439
  }
74437
74440
  function l$e(e) {
74438
74441
  var t = e.slice(4);
74439
- return w7.test(t) ? e : (t = t.replace(i$e, c$e), t.charAt(0) !== "-" && (t = "-" + t), Uh + t);
74442
+ return w7.test(t) ? e : (t = t.replace(i$e, c$e), t.charAt(0) !== "-" && (t = "-" + t), Hh + t);
74440
74443
  }
74441
74444
  function c$e(e) {
74442
74445
  return "-" + e.toLowerCase();
@@ -74450,9 +74453,9 @@ function p$e(e, t) {
74450
74453
  Cg.lastIndex = i, l = Cg.exec(n), o = n.slice(i, l ? l.index : n.length), o && (s ? s === "#" ? a.id = o : a.className ? a.className.push(o) : a.className = [o] : r = o, i += o.length), l && (s = l[0], i++);
74451
74454
  return { type: "element", tagName: r, properties: a, children: [] };
74452
74455
  }
74453
- var Hh = {};
74454
- Hh.parse = f$e;
74455
- Hh.stringify = g$e;
74456
+ var jh = {};
74457
+ jh.parse = f$e;
74458
+ jh.stringify = g$e;
74456
74459
  var Rg = "", h$e = " ", m$e = /[ \t\n\r\f]+/g;
74457
74460
  function f$e(e) {
74458
74461
  var t = String(e || Rg).trim();
@@ -74461,20 +74464,20 @@ function f$e(e) {
74461
74464
  function g$e(e) {
74462
74465
  return e.join(h$e).trim();
74463
74466
  }
74464
- var jh = {};
74465
- jh.parse = y$e;
74466
- jh.stringify = b$e;
74467
- var pp = ",", Ig = " ", La = "";
74467
+ var Vh = {};
74468
+ Vh.parse = y$e;
74469
+ Vh.stringify = b$e;
74470
+ var hp = ",", Ig = " ", La = "";
74468
74471
  function y$e(e) {
74469
- for (var t = [], n = String(e || La), r = n.indexOf(pp), a = 0, i = !1, o; !i; )
74470
- r === -1 && (r = n.length, i = !0), o = n.slice(a, r).trim(), (o || !i) && t.push(o), a = r + 1, r = n.indexOf(pp, a);
74472
+ for (var t = [], n = String(e || La), r = n.indexOf(hp), a = 0, i = !1, o; !i; )
74473
+ r === -1 && (r = n.length, i = !0), o = n.slice(a, r).trim(), (o || !i) && t.push(o), a = r + 1, r = n.indexOf(hp, a);
74471
74474
  return t;
74472
74475
  }
74473
74476
  function b$e(e, t) {
74474
74477
  var n = t || {}, r = n.padLeft === !1 ? La : Ig, a = n.padRight ? Ig : La;
74475
- return e[e.length - 1] === La && (e = e.concat(La)), e.join(a + pp + r).trim();
74478
+ return e[e.length - 1] === La && (e = e.concat(La)), e.join(a + hp + r).trim();
74476
74479
  }
74477
- var k$e = r$e, Og = Ph, v$e = d$e, Lg = Hh.parse, Dg = jh.parse, _$e = x$e, w$e = {}.hasOwnProperty;
74480
+ var k$e = r$e, Og = qh, v$e = d$e, Lg = jh.parse, Dg = Vh.parse, _$e = x$e, w$e = {}.hasOwnProperty;
74478
74481
  function x$e(e, t, n) {
74479
74482
  var r = n ? A$e(n) : null;
74480
74483
  return a;
@@ -74710,20 +74713,20 @@ var zg = RFe, Fg = IFe, VFe = M7, GFe = LFe, S7 = qFe, WFe = HFe, KFe = sPe, YFe
74710
74713
  additional: null,
74711
74714
  attribute: !1,
74712
74715
  nonTerminated: !0
74713
- }, XFe = 9, qg = 10, QFe = 12, JFe = 32, Bg = 38, ePe = 59, tPe = 60, nPe = 61, rPe = 35, aPe = 88, iPe = 120, oPe = 65533, ia = "named", Vh = "hexadecimal", Gh = "decimal", Wh = {};
74714
- Wh[Vh] = 16;
74715
- Wh[Gh] = 10;
74716
+ }, XFe = 9, qg = 10, QFe = 12, JFe = 32, Bg = 38, ePe = 59, tPe = 60, nPe = 61, rPe = 35, aPe = 88, iPe = 120, oPe = 65533, ia = "named", Gh = "hexadecimal", Wh = "decimal", Kh = {};
74717
+ Kh[Gh] = 16;
74718
+ Kh[Wh] = 10;
74716
74719
  var os = {};
74717
74720
  os[ia] = S7;
74718
- os[Gh] = VFe;
74719
- os[Vh] = GFe;
74720
- var N7 = 1, A7 = 2, T7 = 3, C7 = 4, R7 = 5, hp = 6, I7 = 7, Tr = {};
74721
+ os[Wh] = VFe;
74722
+ os[Gh] = GFe;
74723
+ var N7 = 1, A7 = 2, T7 = 3, C7 = 4, R7 = 5, mp = 6, I7 = 7, Tr = {};
74721
74724
  Tr[N7] = "Named character references must be terminated by a semicolon";
74722
74725
  Tr[A7] = "Numeric character references must be terminated by a semicolon";
74723
74726
  Tr[T7] = "Named character references cannot be empty";
74724
74727
  Tr[C7] = "Numeric character references cannot be empty";
74725
74728
  Tr[R7] = "Named character references must be known";
74726
- Tr[hp] = "Numeric character references cannot be disallowed";
74729
+ Tr[mp] = "Numeric character references cannot be disallowed";
74727
74730
  Tr[I7] = "Numeric character references cannot be outside the permissible Unicode range";
74728
74731
  function sPe(e, t) {
74729
74732
  var n = {}, r, a;
@@ -74740,9 +74743,9 @@ function lPe(e, t) {
74740
74743
  v += ea($), f++;
74741
74744
  continue;
74742
74745
  }
74743
- for (R = h + 1, W = R, Z = R, C === rPe ? (Z = ++W, C = e.charCodeAt(Z), C === aPe || C === iPe ? (U = Vh, Z = ++W) : U = Gh) : U = ia, w = "", J = "", E = "", z = os[U], Z--; ++Z < m && (C = e.charCodeAt(Z), !!z(C)); )
74746
+ for (R = h + 1, W = R, Z = R, C === rPe ? (Z = ++W, C = e.charCodeAt(Z), C === aPe || C === iPe ? (U = Gh, Z = ++W) : U = Wh) : U = ia, w = "", J = "", E = "", z = os[U], Z--; ++Z < m && (C = e.charCodeAt(Z), !!z(C)); )
74744
74747
  E += ea(C), U === ia && YFe.call(zg, E) && (w = E, J = zg[E]);
74745
- S = e.charCodeAt(Z) === ePe, S && (Z++, x = U === ia ? WFe(E) : !1, x && (w = E, J = x)), A = 1 + Z - R, !S && !r || (E ? U === ia ? (S && !J ? D(R7, 1) : (w !== E && (Z = W + w.length, A = 1 + Z - W, S = !1), S || (G = w ? N7 : T7, t.attribute ? (C = e.charCodeAt(Z), C === nPe ? (D(G, A), J = null) : S7(C) ? J = null : D(G, A)) : D(G, A))), B = J) : (S || D(A7, A), B = parseInt(E, Wh[U]), cPe(B) ? (D(I7, A), B = ea(oPe)) : B in Fg ? (D(hp, A), B = Fg[B]) : (Y = "", uPe(B) && D(hp, A), B > 65535 && (B -= 65536, Y += ea(B >>> 10 | 55296), B = 56320 | B & 1023), B = Y + ea(B))) : U !== ia && D(C7, A)), B ? (de(), L = ee(), h = Z - 1, f += Z - R + 1, b.push(B), K = ee(), K.offset++, i && i.call(
74748
+ S = e.charCodeAt(Z) === ePe, S && (Z++, x = U === ia ? WFe(E) : !1, x && (w = E, J = x)), A = 1 + Z - R, !S && !r || (E ? U === ia ? (S && !J ? D(R7, 1) : (w !== E && (Z = W + w.length, A = 1 + Z - W, S = !1), S || (G = w ? N7 : T7, t.attribute ? (C = e.charCodeAt(Z), C === nPe ? (D(G, A), J = null) : S7(C) ? J = null : D(G, A)) : D(G, A))), B = J) : (S || D(A7, A), B = parseInt(E, Kh[U]), cPe(B) ? (D(I7, A), B = ea(oPe)) : B in Fg ? (D(mp, A), B = Fg[B]) : (Y = "", uPe(B) && D(mp, A), B > 65535 && (B -= 65536, Y += ea(B >>> 10 | 55296), B = 56320 | B & 1023), B = Y + ea(B))) : U !== ia && D(C7, A)), B ? (de(), L = ee(), h = Z - 1, f += Z - R + 1, b.push(B), K = ee(), K.offset++, i && i.call(
74746
74749
  l,
74747
74750
  B,
74748
74751
  { start: L, end: K },
@@ -75473,10 +75476,10 @@ var O7 = { exports: {} };
75473
75476
  }(t);
75474
75477
  e.exports && (e.exports = n), typeof _r < "u" && (_r.Prism = n);
75475
75478
  })(O7);
75476
- var dPe = O7.exports, pPe = Kh;
75477
- Kh.displayName = "markup";
75478
- Kh.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
75479
- function Kh(e) {
75479
+ var dPe = O7.exports, pPe = Yh;
75480
+ Yh.displayName = "markup";
75481
+ Yh.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
75482
+ function Yh(e) {
75480
75483
  e.languages.markup = {
75481
75484
  comment: {
75482
75485
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
@@ -75642,10 +75645,10 @@ function Kh(e) {
75642
75645
  }
75643
75646
  }), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml = e.languages.extend("markup", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.xml;
75644
75647
  }
75645
- var hPe = Yh;
75646
- Yh.displayName = "css";
75647
- Yh.aliases = [];
75648
- function Yh(e) {
75648
+ var hPe = Zh;
75649
+ Zh.displayName = "css";
75650
+ Zh.aliases = [];
75651
+ function Zh(e) {
75649
75652
  (function(t) {
75650
75653
  var n = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
75651
75654
  t.languages.css = {
@@ -75707,10 +75710,10 @@ function Yh(e) {
75707
75710
  r && (r.tag.addInlined("style", "css"), r.tag.addAttribute("style", "css"));
75708
75711
  })(e);
75709
75712
  }
75710
- var mPe = Zh;
75711
- Zh.displayName = "clike";
75712
- Zh.aliases = [];
75713
- function Zh(e) {
75713
+ var mPe = Xh;
75714
+ Xh.displayName = "clike";
75715
+ Xh.aliases = [];
75716
+ function Xh(e) {
75714
75717
  e.languages.clike = {
75715
75718
  comment: [
75716
75719
  {
@@ -75743,10 +75746,10 @@ function Zh(e) {
75743
75746
  punctuation: /[{}[\];(),.:]/
75744
75747
  };
75745
75748
  }
75746
- var fPe = Xh;
75747
- Xh.displayName = "javascript";
75748
- Xh.aliases = ["js"];
75749
- function Xh(e) {
75749
+ var fPe = Qh;
75750
+ Qh.displayName = "javascript";
75751
+ Qh.aliases = ["js"];
75752
+ function Qh(e) {
75750
75753
  e.languages.javascript = e.languages.extend("clike", {
75751
75754
  "class-name": [
75752
75755
  e.languages.clike["class-name"],
@@ -75874,7 +75877,7 @@ var Da = typeof globalThis == "object" ? globalThis : typeof self == "object" ?
75874
75877
  Da.Prism = { manual: !0, disableWorkerMessageHandler: !0 };
75875
75878
  var yPe = I$e, bPe = KFe, L7 = dPe, kPe = pPe, vPe = hPe, _Pe = mPe, wPe = fPe;
75876
75879
  gPe();
75877
- var Qh = {}.hasOwnProperty;
75880
+ var Jh = {}.hasOwnProperty;
75878
75881
  function D7() {
75879
75882
  }
75880
75883
  D7.prototype = L7;
@@ -75911,7 +75914,7 @@ function MPe(e, t) {
75911
75914
  else {
75912
75915
  if (typeof t != "string")
75913
75916
  throw new Error("Expected `string` for `name`, got `" + t + "`");
75914
- if (Qh.call(St.languages, t))
75917
+ if (Jh.call(St.languages, t))
75915
75918
  r = St.languages[t];
75916
75919
  else
75917
75920
  throw new Error("Unknown language: `" + t + "` is not registered");
@@ -75921,12 +75924,12 @@ function MPe(e, t) {
75921
75924
  function SPe(e) {
75922
75925
  if (typeof e != "string")
75923
75926
  throw new Error("Expected `string` for `language`, got `" + e + "`");
75924
- return Qh.call(St.languages, e);
75927
+ return Jh.call(St.languages, e);
75925
75928
  }
75926
75929
  function NPe() {
75927
75930
  var e = St.languages, t = [], n;
75928
75931
  for (n in e)
75929
- Qh.call(e, n) && typeof e[n] == "object" && t.push(n);
75932
+ Jh.call(e, n) && typeof e[n] == "object" && t.push(n);
75930
75933
  return t;
75931
75934
  }
75932
75935
  function APe(e, t, n) {
@@ -76523,7 +76526,7 @@ function BPe() {
76523
76526
  return Nl;
76524
76527
  }
76525
76528
  var Al, Zg;
76526
- function Jh() {
76529
+ function e2() {
76527
76530
  if (Zg)
76528
76531
  return Al;
76529
76532
  Zg = 1, Al = e, e.displayName = "sql", e.aliases = [];
@@ -76569,7 +76572,7 @@ function UPe() {
76569
76572
  if (Xg)
76570
76573
  return Tl;
76571
76574
  Xg = 1;
76572
- var e = Jh();
76575
+ var e = e2();
76573
76576
  Tl = t, t.displayName = "apex", t.aliases = [];
76574
76577
  function t(n) {
76575
76578
  n.register(e), function(r) {
@@ -76850,7 +76853,7 @@ function Wr() {
76850
76853
  return Ol;
76851
76854
  }
76852
76855
  var Ll, ny;
76853
- function e2() {
76856
+ function t2() {
76854
76857
  if (ny)
76855
76858
  return Ll;
76856
76859
  ny = 1;
@@ -76966,7 +76969,7 @@ function GPe() {
76966
76969
  if (ry)
76967
76970
  return Dl;
76968
76971
  ry = 1;
76969
- var e = e2();
76972
+ var e = t2();
76970
76973
  Dl = t, t.displayName = "arduino", t.aliases = ["ino"];
76971
76974
  function t(n) {
76972
76975
  n.register(e), n.languages.arduino = n.languages.extend("cpp", {
@@ -78861,7 +78864,7 @@ function hqe() {
78861
78864
  if (Ny)
78862
78865
  return ic;
78863
78866
  Ny = 1;
78864
- var e = e2();
78867
+ var e = t2();
78865
78868
  ic = t, t.displayName = "chaiscript", t.aliases = [];
78866
78869
  function t(n) {
78867
78870
  n.register(e), n.languages.chaiscript = n.languages.extend("clike", {
@@ -83255,7 +83258,7 @@ function mBe() {
83255
83258
  return c1;
83256
83259
  }
83257
83260
  var u1, I4;
83258
- function t2() {
83261
+ function n2() {
83259
83262
  if (I4)
83260
83263
  return u1;
83261
83264
  I4 = 1, u1 = e, e.displayName = "haskell", e.aliases = ["hs"];
@@ -83892,7 +83895,7 @@ function MBe() {
83892
83895
  if (H4)
83893
83896
  return _1;
83894
83897
  H4 = 1;
83895
- var e = t2();
83898
+ var e = n2();
83896
83899
  _1 = t, t.displayName = "idris", t.aliases = ["idr"];
83897
83900
  function t(n) {
83898
83901
  n.register(e), n.languages.idris = n.languages.extend("haskell", {
@@ -84165,7 +84168,7 @@ function RBe() {
84165
84168
  return N1;
84166
84169
  }
84167
84170
  var A1, Z4;
84168
- function n2() {
84171
+ function r2() {
84169
84172
  if (Z4)
84170
84173
  return A1;
84171
84174
  Z4 = 1, A1 = e, e.displayName = "java", e.aliases = [];
@@ -84322,7 +84325,7 @@ function IBe() {
84322
84325
  if (Q4)
84323
84326
  return C1;
84324
84327
  Q4 = 1;
84325
- var e = n2(), t = cs();
84328
+ var e = r2(), t = cs();
84326
84329
  C1 = n, n.displayName = "javadoc", n.aliases = [];
84327
84330
  function n(r) {
84328
84331
  r.register(e), r.register(t), function(a) {
@@ -84999,7 +85002,7 @@ function FBe() {
84999
85002
  return $1;
85000
85003
  }
85001
85004
  var z1, ib;
85002
- function r2() {
85005
+ function a2() {
85003
85006
  if (ib)
85004
85007
  return z1;
85005
85008
  ib = 1, z1 = e, e.displayName = "typescript", e.aliases = ["ts"];
@@ -85057,7 +85060,7 @@ function PBe() {
85057
85060
  if (ob)
85058
85061
  return F1;
85059
85062
  ob = 1;
85060
- var e = cs(), t = r2();
85063
+ var e = cs(), t = a2();
85061
85064
  F1 = n, n.displayName = "jsdoc", n.aliases = [];
85062
85065
  function n(r) {
85063
85066
  r.register(e), r.register(t), function(a) {
@@ -85143,7 +85146,7 @@ function PBe() {
85143
85146
  return F1;
85144
85147
  }
85145
85148
  var P1, sb;
85146
- function a2() {
85149
+ function i2() {
85147
85150
  if (sb)
85148
85151
  return P1;
85149
85152
  sb = 1, P1 = e, e.displayName = "json", e.aliases = ["webmanifest"];
@@ -85180,7 +85183,7 @@ function qBe() {
85180
85183
  if (lb)
85181
85184
  return q1;
85182
85185
  lb = 1;
85183
- var e = a2();
85186
+ var e = i2();
85184
85187
  q1 = t, t.displayName = "json5", t.aliases = [];
85185
85188
  function t(n) {
85186
85189
  n.register(e), function(r) {
@@ -85211,7 +85214,7 @@ function BBe() {
85211
85214
  if (cb)
85212
85215
  return B1;
85213
85216
  cb = 1;
85214
- var e = a2();
85217
+ var e = i2();
85215
85218
  B1 = t, t.displayName = "jsonp", t.aliases = [];
85216
85219
  function t(n) {
85217
85220
  n.register(e), n.languages.jsonp = n.languages.extend("json", {
@@ -86253,7 +86256,7 @@ function XBe() {
86253
86256
  return J1;
86254
86257
  }
86255
86258
  var e0, wb;
86256
- function i2() {
86259
+ function o2() {
86257
86260
  if (wb)
86258
86261
  return e0;
86259
86262
  wb = 1, e0 = e, e.displayName = "scheme", e.aliases = [];
@@ -86377,7 +86380,7 @@ function QBe() {
86377
86380
  if (xb)
86378
86381
  return t0;
86379
86382
  xb = 1;
86380
- var e = i2();
86383
+ var e = o2();
86381
86384
  t0 = t, t.displayName = "lilypond", t.aliases = [];
86382
86385
  function t(n) {
86383
86386
  n.register(e), function(r) {
@@ -89531,7 +89534,7 @@ function BUe() {
89531
89534
  if (pk)
89532
89535
  return j0;
89533
89536
  pk = 1;
89534
- var e = Jh();
89537
+ var e = e2();
89535
89538
  j0 = t, t.displayName = "plsql", t.aliases = [];
89536
89539
  function t(n) {
89537
89540
  n.register(e), n.languages.plsql = n.languages.extend("sql", {
@@ -90416,7 +90419,7 @@ function eHe() {
90416
90419
  if (Mk)
90417
90420
  return ru;
90418
90421
  Mk = 1;
90419
- var e = t2();
90422
+ var e = n2();
90420
90423
  ru = t, t.displayName = "purescript", t.aliases = ["purs"];
90421
90424
  function t(n) {
90422
90425
  n.register(e), n.languages.purescript = n.languages.extend("haskell", {
@@ -90825,7 +90828,7 @@ function sHe() {
90825
90828
  if (Ik)
90826
90829
  return uu;
90827
90830
  Ik = 1;
90828
- var e = i2();
90831
+ var e = o2();
90829
90832
  uu = t, t.displayName = "racket", t.aliases = ["rkt"];
90830
90833
  function t(n) {
90831
90834
  n.register(e), n.languages.racket = n.languages.extend("scheme", {
@@ -91955,7 +91958,7 @@ function kHe() {
91955
91958
  if (jk)
91956
91959
  return wu;
91957
91960
  jk = 1;
91958
- var e = n2();
91961
+ var e = r2();
91959
91962
  wu = t, t.displayName = "scala", t.aliases = [];
91960
91963
  function t(n) {
91961
91964
  n.register(e), n.languages.scala = n.languages.extend("java", {
@@ -93247,7 +93250,7 @@ function $He() {
93247
93250
  return qu;
93248
93251
  }
93249
93252
  var Bu, c5;
93250
- function o2() {
93253
+ function s2() {
93251
93254
  if (c5)
93252
93255
  return Bu;
93253
93256
  c5 = 1, Bu = e, e.displayName = "t4Templating", e.aliases = [];
@@ -93305,7 +93308,7 @@ function zHe() {
93305
93308
  if (u5)
93306
93309
  return Uu;
93307
93310
  u5 = 1;
93308
- var e = o2(), t = ss();
93311
+ var e = s2(), t = ss();
93309
93312
  Uu = n, n.displayName = "t4Cs", n.aliases = [];
93310
93313
  function n(r) {
93311
93314
  r.register(e), r.register(t), r.languages.t4 = r.languages["t4-cs"] = r.languages["t4-templating"].createT4("csharp");
@@ -93350,7 +93353,7 @@ function FHe() {
93350
93353
  if (p5)
93351
93354
  return ju;
93352
93355
  p5 = 1;
93353
- var e = o2(), t = B7();
93356
+ var e = s2(), t = B7();
93354
93357
  ju = n, n.displayName = "t4Vb", n.aliases = [];
93355
93358
  function n(r) {
93356
93359
  r.register(e), r.register(t), r.languages["t4-vb"] = r.languages["t4-templating"].createT4("vbnet");
@@ -93931,7 +93934,7 @@ function jHe() {
93931
93934
  if (k5)
93932
93935
  return Xu;
93933
93936
  k5 = 1;
93934
- var e = P7(), t = r2();
93937
+ var e = P7(), t = a2();
93935
93938
  Xu = n, n.displayName = "tsx", n.aliases = [];
93936
93939
  function n(r) {
93937
93940
  r.register(e), r.register(t), function(a) {
@@ -95518,7 +95521,7 @@ I.register(yqe());
95518
95521
  I.register(bqe());
95519
95522
  I.register(kqe());
95520
95523
  I.register(vqe());
95521
- I.register(e2());
95524
+ I.register(t2());
95522
95525
  I.register(_qe());
95523
95526
  I.register(ss());
95524
95527
  I.register(wqe());
@@ -95568,7 +95571,7 @@ I.register(dBe());
95568
95571
  I.register(pBe());
95569
95572
  I.register(hBe());
95570
95573
  I.register(mBe());
95571
- I.register(t2());
95574
+ I.register(n2());
95572
95575
  I.register(fBe());
95573
95576
  I.register(gBe());
95574
95577
  I.register(yBe());
@@ -95586,7 +95589,7 @@ I.register(ABe());
95586
95589
  I.register(TBe());
95587
95590
  I.register(CBe());
95588
95591
  I.register(RBe());
95589
- I.register(n2());
95592
+ I.register(r2());
95590
95593
  I.register(IBe());
95591
95594
  I.register(cs());
95592
95595
  I.register(OBe());
@@ -95596,7 +95599,7 @@ I.register($Be());
95596
95599
  I.register(zBe());
95597
95600
  I.register(FBe());
95598
95601
  I.register(PBe());
95599
- I.register(a2());
95602
+ I.register(i2());
95600
95603
  I.register(qBe());
95601
95604
  I.register(BBe());
95602
95605
  I.register(UBe());
@@ -95690,7 +95693,7 @@ I.register(gHe());
95690
95693
  I.register(yHe());
95691
95694
  I.register(bHe());
95692
95695
  I.register(kHe());
95693
- I.register(i2());
95696
+ I.register(o2());
95694
95697
  I.register(vHe());
95695
95698
  I.register(_He());
95696
95699
  I.register(wHe());
@@ -95703,14 +95706,14 @@ I.register(AHe());
95703
95706
  I.register(THe());
95704
95707
  I.register(CHe());
95705
95708
  I.register(RHe());
95706
- I.register(Jh());
95709
+ I.register(e2());
95707
95710
  I.register(IHe());
95708
95711
  I.register(OHe());
95709
95712
  I.register(LHe());
95710
95713
  I.register(DHe());
95711
95714
  I.register($He());
95712
95715
  I.register(zHe());
95713
- I.register(o2());
95716
+ I.register(s2());
95714
95717
  I.register(FHe());
95715
95718
  I.register(PHe());
95716
95719
  I.register(qHe());
@@ -95721,7 +95724,7 @@ I.register(jHe());
95721
95724
  I.register(VHe());
95722
95725
  I.register(q7());
95723
95726
  I.register(GHe());
95724
- I.register(r2());
95727
+ I.register(a2());
95725
95728
  I.register(WHe());
95726
95729
  I.register(KHe());
95727
95730
  I.register(YHe());
@@ -96738,7 +96741,7 @@ const bje = {
96738
96741
  ".prism-previewer-easing.prism-previewer-easing line": {
96739
96742
  stroke: "hsl(230, 8%, 24%)"
96740
96743
  }
96741
- }, vje = 1e4, _je = 1e3, Eo = 50, mp = 3e3, fp = (e) => e == null || e === !1 ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(fp).join("") : G5(e) ? fp(e.props?.children) : "", wje = (e) => /* @__PURE__ */ N.jsx("div", { ...e });
96744
+ }, vje = 1e4, _je = 1e3, Eo = 50, fp = 3e3, gp = (e) => e == null || e === !1 ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(gp).join("") : G5(e) ? gp(e.props?.children) : "", wje = (e) => /* @__PURE__ */ N.jsx("div", { ...e });
96742
96745
  function xje(e) {
96743
96746
  return e.length > vje ? !1 : (e.indexOf(`
96744
96747
  `) === -1 ? e.length : Math.max(
@@ -96754,8 +96757,8 @@ function Eje(e) {
96754
96757
  `),
96755
96758
  isTruncated: !0,
96756
96759
  totalLines: n
96757
- } : e.length > mp ? {
96758
- truncated: e.slice(0, mp),
96760
+ } : e.length > fp ? {
96761
+ truncated: e.slice(0, fp),
96759
96762
  isTruncated: !0,
96760
96763
  totalLines: n
96761
96764
  } : { truncated: e, isTruncated: !1, totalLines: n };
@@ -96786,14 +96789,14 @@ const Mje = {
96786
96789
  );
96787
96790
  j7.displayName = "CodeContent";
96788
96791
  const V7 = Bt(({ lang: e = "text", codeChildren: t, allowExecution: n = !1 }) => {
96789
- const { colorMode: r } = u_e(), a = fp(t).replace(/\n$/, ""), i = r === "light" ? kje : bje, { truncated: o, isTruncated: s, totalLines: l } = yt(() => Eje(a), [a]), [u, d] = st(!1), p = it(() => d((g) => !g), []), m = u ? a : o, h = yt(() => xje(m), [m]);
96792
+ const { colorMode: r } = u_e(), a = gp(t).replace(/\n$/, ""), i = r === "light" ? kje : bje, { truncated: o, isTruncated: s, totalLines: l } = yt(() => Eje(a), [a]), [u, d] = lt(!1), p = it(() => d((g) => !g), []), m = u ? a : o, h = yt(() => xje(m), [m]);
96790
96793
  return /* @__PURE__ */ N.jsxs("div", { className: "mp-agent-code-block-wrapper", children: [
96791
96794
  /* @__PURE__ */ N.jsxs("div", { className: "mp-agent-code-block-header", children: [
96792
96795
  /* @__PURE__ */ N.jsx("span", { className: "mp-agent-code-block-language", children: e }),
96793
- /* @__PURE__ */ N.jsx($p, { text: a })
96796
+ /* @__PURE__ */ N.jsx(zp, { text: a })
96794
96797
  ] }),
96795
96798
  /* @__PURE__ */ N.jsx("div", { className: "mp-agent-code-block-body", children: /* @__PURE__ */ N.jsx(j7, { code: m, lang: e, highlight: h, prismStyle: i }) }),
96796
- s && /* @__PURE__ */ N.jsx("button", { type: "button", className: "mp-agent-code-block-toggle", onClick: p, children: u ? "Show less" : `Show more (${l > Eo ? `${l - Eo} more lines` : `${a.length - mp} more chars`})` })
96799
+ s && /* @__PURE__ */ N.jsx("button", { type: "button", className: "mp-agent-code-block-toggle", onClick: p, children: u ? "Show less" : `Show more (${l > Eo ? `${l - Eo} more lines` : `${a.length - fp} more chars`})` })
96797
96800
  ] });
96798
96801
  });
96799
96802
  V7.displayName = "CodeBlock";
@@ -96879,10 +96882,10 @@ const Sje = (e) => G5(e) ? e.key?.startsWith("code-") ?? !1 : !1, Nje = Bt(({ cl
96879
96882
  children: e
96880
96883
  }
96881
96884
  )), Dje = ({ content: e, role: t }) => {
96882
- const n = t === ct.User, r = t === ct.Error, a = t === ct.Reasoning;
96885
+ const n = t === st.User, r = t === st.Error, a = t === st.Reasoning;
96883
96886
  return n ? /* @__PURE__ */ N.jsx("p", { style: { margin: 0, whiteSpace: "pre-wrap" }, children: e }) : r ? /* @__PURE__ */ N.jsx("p", { style: { margin: 0, whiteSpace: "pre-wrap" }, children: e }) : a ? /* @__PURE__ */ N.jsx("pre", { style: { margin: 0, fontSize: "13px", opacity: 0.8 }, children: e }) : /* @__PURE__ */ N.jsx(Lje, { text: e });
96884
- }, $je = ({ text: e, isReasoning: t }) => t ? null : /* @__PURE__ */ N.jsx("div", { className: "mp-agent-message-actions", children: /* @__PURE__ */ N.jsx($p, { text: e }) }), zje = ({ message: e }) => {
96885
- const t = e.role === ct.User, n = e.role === ct.Error, r = e.role === ct.Reasoning, a = !!e.content, i = (e.attachments?.length ?? 0) > 0;
96887
+ }, $je = ({ text: e, isReasoning: t }) => t ? null : /* @__PURE__ */ N.jsx("div", { className: "mp-agent-message-actions", children: /* @__PURE__ */ N.jsx(zp, { text: e }) }), zje = ({ message: e }) => {
96888
+ const t = e.role === st.User, n = e.role === st.Error, r = e.role === st.Reasoning, a = !!e.content, i = (e.attachments?.length ?? 0) > 0;
96886
96889
  return /* @__PURE__ */ N.jsx(
96887
96890
  "div",
96888
96891
  {
@@ -96903,7 +96906,7 @@ const Sje = (e) => G5(e) ? e.key?.startsWith("code-") ?? !1 : !1, Nje = Bt(({ cl
96903
96906
  }
96904
96907
  );
96905
96908
  }, Fje = [v8, w6, w8, [b8, { singleDollarTextMath: !1 }]], Pje = [R8, [s7, { detect: !0, ignoreMissing: !0 }]], W7 = Bt(({ reasoning: e, isStreaming: t }) => {
96906
- const [n, r] = st(!t), a = tt(null);
96909
+ const [n, r] = lt(!t), a = tt(null);
96907
96910
  if (He(() => {
96908
96911
  r(!t);
96909
96912
  }, [t]), He(() => {
@@ -96943,7 +96946,7 @@ const qje = () => /* @__PURE__ */ N.jsxs("span", { className: "mp-agent-message-
96943
96946
  contextKey: t,
96944
96947
  isStreaming: n
96945
96948
  }) => {
96946
- const i = rt().config.features?.reasoning !== !1 && e.role === ct.Assistant && !!e.reasoning, o = e.role === ct.Assistant && typeof e.content == "string" && e.content.trim().length > 0, s = !!(n && !i && !o), l = typeof e.content == "string" && e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, u = (() => {
96949
+ const i = rt().config.features?.reasoning !== !1 && e.role === st.Assistant && !!e.reasoning, o = e.role === st.Assistant && typeof e.content == "string" && e.content.trim().length > 0, s = !!(n && !i && !o), l = typeof e.content == "string" && e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, u = (() => {
96947
96950
  const d = e.toolCalls ?? [];
96948
96951
  if (d.length <= 1)
96949
96952
  return d;
@@ -97096,7 +97099,7 @@ const qje = () => /* @__PURE__ */ N.jsxs("span", { className: "mp-agent-message-
97096
97099
  itemRenderer: r
97097
97100
  } = {}) => {
97098
97101
  const a = Ln(), { deleteChat: i, isDeleting: o } = Q7e(), s = _e((h) => h.chats), l = _e((h) => h.activeChatId), u = _e((h) => h.setActiveChat), d = tt(null), p = tt(null), m = yt(
97099
- () => Object.values(s).sort((h, g) => h.updatedAt === g.updatedAt ? 0 : h.updatedAt < g.updatedAt ? 1 : -1),
97102
+ () => Object.values(s).filter((h) => h.sessionKind !== Nd.SUBAGENT).sort((h, g) => h.updatedAt === g.updatedAt ? 0 : h.updatedAt < g.updatedAt ? 1 : -1),
97100
97103
  [s]
97101
97104
  );
97102
97105
  return He(() => {
@@ -97194,7 +97197,7 @@ const qje = () => /* @__PURE__ */ N.jsxs("span", { className: "mp-agent-message-
97194
97197
  return;
97195
97198
  const d = (typeof e == "function" ? e() : e) ?? (() => {
97196
97199
  const p = typeof t == "function" ? t() : t;
97197
- return p ? zp(p) : void 0;
97200
+ return p ? Fp(p) : void 0;
97198
97201
  })();
97199
97202
  d && (o([d]), n?.(d));
97200
97203
  };
@@ -97203,19 +97206,19 @@ const qje = () => /* @__PURE__ */ N.jsxs("span", { className: "mp-agent-message-
97203
97206
  );
97204
97207
  Zje.displayName = "AttachContextButton";
97205
97208
  export {
97206
- k2 as ActivityOperationName,
97209
+ v2 as ActivityOperationName,
97207
97210
  M_ as AgentAttachmentSchema,
97208
97211
  Tt as AgentAttachmentType,
97209
97212
  Gje as AgentControls,
97210
97213
  Rwe as AgentPreferencesPanel,
97211
- y2 as AgentProcessStatus,
97214
+ b2 as AgentProcessStatus,
97212
97215
  yVe as AgentProvider,
97213
97216
  o_e as AgentRuntime,
97214
- v2 as AgentSessionKind,
97217
+ Nd as AgentSessionKind,
97215
97218
  ca as AgentStatus,
97216
97219
  c_e as AgentThemeProvider,
97217
97220
  $t as AgentToolCallStatus,
97218
- b2 as AgentToolType,
97221
+ k2 as AgentToolType,
97219
97222
  Zje as AttachContextButton,
97220
97223
  f_ as BuiltinContextAttachmentKinds,
97221
97224
  P3 as CHATS_PAGE_SIZE,
@@ -97234,11 +97237,11 @@ export {
97234
97237
  Dje as MessageContent,
97235
97238
  nxe as MessageHeader,
97236
97239
  jje as MessageList,
97237
- ct as MessageRole,
97240
+ st as MessageRole,
97238
97241
  qje as MessageTypingAnimation,
97239
97242
  W7 as ReasoningPanel,
97240
97243
  aVe as SendMessagePayloadSchema,
97241
- Nd as SocketIOConfig,
97244
+ Ad as SocketIOConfig,
97242
97245
  hs as SocketIOEvents,
97243
97246
  ro as SortOrder,
97244
97247
  Tn as StreamChunkType,
@@ -97246,12 +97249,12 @@ export {
97246
97249
  a_e as captureTextSelectionTarget,
97247
97250
  Dr as chatKeys,
97248
97251
  p_ as contextKeySchema,
97249
- zp as createContextAttachment,
97252
+ Fp as createContextAttachment,
97250
97253
  r_e as createPageContextAttachment,
97251
97254
  Ed as defaultTranslations,
97252
97255
  iVe as flattenInfiniteActivities,
97253
97256
  dVe as flattenInfiniteChats,
97254
- m2 as frontendConfigSchema,
97257
+ f2 as frontendConfigSchema,
97255
97258
  d_ as themeTokenSchema,
97256
97259
  rVe as translationsSchema,
97257
97260
  oVe as useActivitiesInfiniteList,