apiuikit 1.5.3 → 1.6.0

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.
@@ -2,7 +2,7 @@ var _u = Object.defineProperty;
2
2
  var Cu = (e, t, n) => t in e ? _u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ve = (e, t, n) => Cu(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsxs as b, jsx as l, Fragment as oe } from "react/jsx-runtime";
5
- import $u, { Component as Ou, useContext as Ra, createContext as Iu, useState as Y, useMemo as ge, useId as fn, useRef as Be, useEffect as ce, useLayoutEffect as Ru, useCallback as Oi, useSyncExternalStore as Mu, Suspense as co, lazy as uo, forwardRef as Lu, Fragment as Ma } from "react";
5
+ import $u, { Component as Ou, useContext as Ra, createContext as Iu, useState as Y, useMemo as ge, useId as fn, useRef as Be, useEffect as le, useLayoutEffect as Ru, useCallback as Oi, useSyncExternalStore as Mu, Suspense as co, lazy as uo, forwardRef as Lu, Fragment as Ma } from "react";
6
6
  import { createPortal as Fr } from "react-dom";
7
7
  const fo = [
8
8
  "#14b8a6",
@@ -308,8 +308,8 @@ function sd(e) {
308
308
  return e.colors && (ks(e.colors.primary, "primary", t), ks(e.colors.secondary, "secondary", t), ks(e.colors.neutral, "neutral", t)), t;
309
309
  }
310
310
  function Fa(e, t, n = jn) {
311
- var j, C, N, v, x, F, Q, T;
312
- const [r, s] = Y(null), [o, i] = Y(null), a = ge(() => Fn(t), [t]), c = ((j = n.expand) == null ? void 0 : j.schemas) === !0, u = (N = (C = n.theme) == null ? void 0 : C.depthColors) != null && N.length ? n.theme.depthColors : fo, d = ((v = n.show) == null ? void 0 : v.extensions) !== !1, f = ((x = n.show) == null ? void 0 : x.codeSamples) !== !1, p = n.topOffset, m = typeof p == "number" && Number.isFinite(p) ? Math.max(0, p) : 0, h = ((F = n.sidePanel) == null ? void 0 : F.containment) ?? "viewport", y = (Q = n.sidePanel) == null ? void 0 : Q.topOffset, k = typeof y == "number" && Number.isFinite(y) ? Math.max(0, y) : m, S = (T = n.markdown) == null ? void 0 : T.url, $ = ge(() => {
311
+ var F, C, N, v, x, j, Q, T;
312
+ const [r, s] = Y(null), [o, i] = Y(null), a = ge(() => Fn(t), [t]), c = ((F = n.expand) == null ? void 0 : F.schemas) === !0, u = (N = (C = n.theme) == null ? void 0 : C.depthColors) != null && N.length ? n.theme.depthColors : fo, d = ((v = n.show) == null ? void 0 : v.extensions) !== !1, f = ((x = n.show) == null ? void 0 : x.codeSamples) !== !1, p = n.topOffset, m = typeof p == "number" && Number.isFinite(p) ? Math.max(0, p) : 0, h = ((j = n.sidePanel) == null ? void 0 : j.containment) ?? "viewport", y = (Q = n.sidePanel) == null ? void 0 : Q.topOffset, k = typeof y == "number" && Number.isFinite(y) ? Math.max(0, y) : m, S = (T = n.markdown) == null ? void 0 : T.url, $ = ge(() => {
313
313
  if (typeof S == "function") return S;
314
314
  if (typeof S == "string") return () => S;
315
315
  }, [S]), E = ge(
@@ -343,8 +343,8 @@ function Fa(e, t, n = jn) {
343
343
  f,
344
344
  $
345
345
  ]
346
- ), M = n.theme ? sd(n.theme) : {};
347
- return { contextValue: E, themeVars: M, setPortalHost: s, setRootElement: i };
346
+ ), I = n.theme ? sd(n.theme) : {};
347
+ return { contextValue: E, themeVars: I, setPortalHost: s, setRootElement: i };
348
348
  }
349
349
  function go({
350
350
  document: e,
@@ -609,7 +609,7 @@ function Wa({ tabs: e, current: t, onChange: n }) {
609
609
  }
610
610
  function id(e, t) {
611
611
  const [n, r] = Y("docked"), s = Be(t);
612
- return s.current = t, ce(() => {
612
+ return s.current = t, le(() => {
613
613
  if (!e) return;
614
614
  let o = null, i = null;
615
615
  const a = () => {
@@ -622,7 +622,7 @@ function id(e, t) {
622
622
  return a(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), () => {
623
623
  i !== null && cancelAnimationFrame(i), window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
624
624
  };
625
- }, [e]), ce(() => {
625
+ }, [e]), le(() => {
626
626
  t && r((o) => o === "hidden" ? "pinned" : o);
627
627
  }, [t]), n;
628
628
  }
@@ -701,30 +701,30 @@ function Lt({ address: e, parameters: t, className: n = "text-xs", truncate: r =
701
701
  const { portalHost: o } = Qe(), [i, a] = Y(null), [c, u] = Y({ top: 0, left: 0, placement: "top" }), [d, f] = Y(!1), p = Be(null), m = cd(e);
702
702
  let h = 0;
703
703
  const y = 40;
704
- ce(() => {
704
+ le(() => {
705
705
  if (!r) return;
706
- const M = p.current;
707
- if (!M) return;
708
- const j = () => f(M.scrollWidth > M.clientWidth);
709
- j();
710
- const C = new ResizeObserver(j);
711
- return C.observe(M), () => C.disconnect();
706
+ const I = p.current;
707
+ if (!I) return;
708
+ const F = () => f(I.scrollWidth > I.clientWidth);
709
+ F();
710
+ const C = new ResizeObserver(F);
711
+ return C.observe(I), () => C.disconnect();
712
712
  }, [r, e]);
713
- const k = (M, j) => {
714
- const C = j.getBoundingClientRect(), N = C.top < y ? "bottom" : "top";
713
+ const k = (I, F) => {
714
+ const C = F.getBoundingClientRect(), N = C.top < y ? "bottom" : "top";
715
715
  u({
716
716
  top: N === "top" ? C.top - 8 : C.bottom + 8,
717
717
  left: C.left + C.width / 2,
718
718
  placement: N
719
- }), a(M);
720
- }, S = () => a(null), $ = m.map((M, j) => {
721
- if (M.type === "text") return /* @__PURE__ */ l("span", { children: M.value }, j);
722
- const C = t == null ? void 0 : t[M.value], N = Li[h++ % Li.length], v = i === j, x = !!C && (C.description || C.type || C.default || C.enum && C.enum.length > 0 || C.examples && C.examples.length > 0), F = `channel-address-tooltip-${j}`, Q = x && v ? F : void 0;
719
+ }), a(I);
720
+ }, S = () => a(null), $ = m.map((I, F) => {
721
+ if (I.type === "text") return /* @__PURE__ */ l("span", { children: I.value }, F);
722
+ const C = t == null ? void 0 : t[I.value], N = Li[h++ % Li.length], v = i === F, x = !!C && (C.description || C.type || C.default || C.enum && C.enum.length > 0 || C.examples && C.examples.length > 0), j = `channel-address-tooltip-${F}`, Q = x && v ? j : void 0;
723
723
  return /* @__PURE__ */ b(
724
724
  "span",
725
725
  {
726
726
  className: "inline-block",
727
- onMouseEnter: (T) => x && k(j, T.currentTarget),
727
+ onMouseEnter: (T) => x && k(F, T.currentTarget),
728
728
  onMouseLeave: S,
729
729
  children: [
730
730
  /* @__PURE__ */ l(
@@ -735,19 +735,19 @@ function Lt({ address: e, parameters: t, className: n = "text-xs", truncate: r =
735
735
  tabIndex: x ? 0 : void 0,
736
736
  "aria-expanded": x ? v : void 0,
737
737
  "aria-describedby": Q,
738
- onFocus: (T) => x && k(j, T.currentTarget),
738
+ onFocus: (T) => x && k(F, T.currentTarget),
739
739
  onBlur: S,
740
740
  onKeyDown: (T) => {
741
- x && ((T.key === "Enter" || T.key === " ") && (T.preventDefault(), k(j, T.currentTarget)), T.key === "Escape" && (T.preventDefault(), S(), T.currentTarget.blur()));
741
+ x && ((T.key === "Enter" || T.key === " ") && (T.preventDefault(), k(F, T.currentTarget)), T.key === "Escape" && (T.preventDefault(), S(), T.currentTarget.blur()));
742
742
  },
743
- children: `{${M.value}}`
743
+ children: `{${I.value}}`
744
744
  }
745
745
  ),
746
746
  x && v && o && Fr(
747
747
  /* @__PURE__ */ b(
748
748
  "div",
749
749
  {
750
- id: F,
750
+ id: j,
751
751
  className: `fixed -translate-x-1/2 max-w-xs px-2.5 py-1.5 bg-neutral-50 text-foreground-muted text-xs rounded pointer-events-none z-[60] shadow-lg text-left leading-snug ${c.placement === "top" ? "-translate-y-full" : ""}`,
752
752
  style: { top: c.top, left: c.left },
753
753
  children: [
@@ -771,7 +771,7 @@ function Lt({ address: e, parameters: t, className: n = "text-xs", truncate: r =
771
771
  )
772
772
  ]
773
773
  },
774
- j
774
+ F
775
775
  );
776
776
  }), E = s ? "px-2 py-1 " : "";
777
777
  return r ? /* @__PURE__ */ b("code", { className: `${E}rounded text-foreground-secondary flex items-center min-w-0 ${n}`, children: [
@@ -822,17 +822,17 @@ function gd({
822
822
  ), S = ge(
823
823
  () => y.filter((D) => D.showInPopover !== !1),
824
824
  [y]
825
- ), [$, E] = Y(null), M = Be(null), j = Be(null), C = Oi((D, X) => {
826
- E({ section: D, key: X }), M.current = { section: D, key: X }, j.current && clearTimeout(j.current), j.current = setTimeout(() => {
827
- M.current = null;
825
+ ), [$, E] = Y(null), I = Be(null), F = Be(null), C = Oi((D, X) => {
826
+ E({ section: D, key: X }), I.current = { section: D, key: X }, F.current && clearTimeout(F.current), F.current = setTimeout(() => {
827
+ I.current = null;
828
828
  }, 600);
829
829
  }, []);
830
- ce(
830
+ le(
831
831
  () => () => {
832
- j.current && clearTimeout(j.current);
832
+ F.current && clearTimeout(F.current);
833
833
  },
834
834
  []
835
- ), ce(() => {
835
+ ), le(() => {
836
836
  const X = e.filter((G) => G.items.length > 0).flatMap(
837
837
  (G) => G.items.map((be) => ({
838
838
  section: G.id,
@@ -841,7 +841,7 @@ function gd({
841
841
  }))
842
842
  ).map((G) => ({ ...G, el: document.getElementById(G.id) })).filter((G) => !!G.el);
843
843
  if (X.length === 0) return;
844
- const I = new Map(X.map((G) => [G.el, G])), ee = /* @__PURE__ */ new Map(), de = new IntersectionObserver(
844
+ const R = new Map(X.map((G) => [G.el, G])), ee = /* @__PURE__ */ new Map(), de = new IntersectionObserver(
845
845
  (G) => {
846
846
  for (const ke of G)
847
847
  ke.isIntersecting ? ee.set(ke.target, ke.boundingClientRect.top) : ee.delete(ke.target);
@@ -849,12 +849,12 @@ function gd({
849
849
  let be = null, Ee = -1 / 0;
850
850
  for (const [ke, Ve] of ee)
851
851
  Ve > Ee && (be = ke, Ee = Ve);
852
- const me = be && I.get(be);
852
+ const me = be && R.get(be);
853
853
  if (!me) return;
854
- const Fe = M.current;
854
+ const Fe = I.current;
855
855
  if (Fe) {
856
856
  if (me.section !== Fe.section || me.key !== Fe.key) return;
857
- M.current = null;
857
+ I.current = null;
858
858
  }
859
859
  E({ section: me.section, key: me.key });
860
860
  },
@@ -862,18 +862,18 @@ function gd({
862
862
  );
863
863
  return X.forEach((G) => de.observe(G.el)), () => de.disconnect();
864
864
  }, [e]);
865
- const N = ($ == null ? void 0 : $.section) ?? t, v = $ ?? s, x = yo(d, !0), F = typeof window > "u" ? 0 : window.innerWidth, Q = typeof window > "u" ? 0 : window.innerHeight, T = !!x && x.bottom > p && x.top < Q, W = Math.max(0, Q - p), le = p + W / 2, ae = !!x && x.width < 1024, A = {
865
+ const N = ($ == null ? void 0 : $.section) ?? t, v = $ ?? s, x = yo(d, !0), j = typeof window > "u" ? 0 : window.innerWidth, Q = typeof window > "u" ? 0 : window.innerHeight, T = !!x && x.bottom > p && x.top < Q, W = Math.max(0, Q - p), ce = p + W / 2, ae = !!x && x.width < 1024, A = {
866
866
  opacity: T ? 1 : 0,
867
867
  pointerEvents: T ? "auto" : "none",
868
868
  transition: "opacity 0.2s ease"
869
869
  }, _ = {
870
870
  position: "fixed",
871
- top: le,
871
+ top: ce,
872
872
  left: ((x == null ? void 0 : x.left) ?? 0) + Di,
873
873
  transform: "translateY(-50%)",
874
874
  zIndex: 51,
875
875
  ...A
876
- }, H = Math.min((x == null ? void 0 : x.right) ?? 0, F) - 60, V = {
876
+ }, H = Math.min((x == null ? void 0 : x.right) ?? 0, j) - 60, V = {
877
877
  position: "fixed",
878
878
  bottom: 16,
879
879
  left: H,
@@ -883,23 +883,23 @@ function gd({
883
883
  // Anchored just above the compact button, right edges aligned.
884
884
  position: "fixed",
885
885
  bottom: 68,
886
- right: F - (H + 44),
886
+ right: j - (H + 44),
887
887
  zIndex: 52
888
888
  } : {
889
889
  position: "fixed",
890
- top: le,
890
+ top: ce,
891
891
  left: ((x == null ? void 0 : x.left) ?? 0) + Di,
892
892
  transform: "translateY(-50%)",
893
893
  maxHeight: `calc(100vh - ${p + 32}px)`,
894
894
  zIndex: 52
895
895
  };
896
- ce(() => {
896
+ le(() => {
897
897
  if (!o) return;
898
- const D = (I) => {
899
- I.key === "Escape" && i(!1);
900
- }, X = (I) => {
898
+ const D = (R) => {
899
+ R.key === "Escape" && i(!1);
900
+ }, X = (R) => {
901
901
  var de, G;
902
- const ee = I.target;
902
+ const ee = R.target;
903
903
  (de = m.current) != null && de.contains(ee) || (G = h.current) != null && G.contains(ee) || i(!1);
904
904
  };
905
905
  return document.addEventListener("keydown", D), document.addEventListener("mousedown", X), () => {
@@ -909,13 +909,13 @@ function gd({
909
909
  const te = Oi(
910
910
  (D, X) => {
911
911
  D.isTab !== !1 && n(D.id), X && setTimeout(() => {
912
- var I;
913
- (I = document.getElementById(X)) == null || I.scrollIntoView({ behavior: "smooth", block: "start" });
912
+ var R;
913
+ (R = document.getElementById(X)) == null || R.scrollIntoView({ behavior: "smooth", block: "start" });
914
914
  }, 50);
915
915
  },
916
916
  [n]
917
917
  ), Ie = ge(() => S.map((D) => {
918
- const X = N === D.id, I = (v == null ? void 0 : v.section) === D.id, ee = D.icon;
918
+ const X = N === D.id, R = (v == null ? void 0 : v.section) === D.id, ee = D.icon;
919
919
  return /* @__PURE__ */ b("div", { className: "pb-1", children: [
920
920
  /* @__PURE__ */ b(
921
921
  "button",
@@ -949,7 +949,7 @@ function gd({
949
949
  }
950
950
  ),
951
951
  D.items.length > 0 && /* @__PURE__ */ l("ul", { className: "ml-4 mt-0.5 border-l border-border pl-3", children: D.items.map((de) => {
952
- const G = D.itemKey(de), be = I && (v == null ? void 0 : v.key) === G;
952
+ const G = D.itemKey(de), be = R && (v == null ? void 0 : v.key) === G;
953
953
  return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
954
954
  "button",
955
955
  {
@@ -967,8 +967,8 @@ function gd({
967
967
  k.map((X) => X.items.length),
968
968
  q
969
969
  );
970
- return k.map((X, I) => {
971
- const ee = N === X.id, de = X.items.length, G = D[I];
970
+ return k.map((X, R) => {
971
+ const ee = N === X.id, de = X.items.length, G = D[R];
972
972
  let be = -1;
973
973
  if ((v == null ? void 0 : v.section) === X.id) {
974
974
  const Ee = X.items.findIndex(
@@ -1421,66 +1421,69 @@ function Za({
1421
1421
  onSelectResult: r,
1422
1422
  onOpenChange: s
1423
1423
  }) {
1424
- const o = Be(null), i = Be(null), [a, c] = Y(!1), [u, d] = Y(-1), f = "asyncapi-search-results", { portalHost: p, rootElement: m, topOffset: h = 0 } = Qe(), y = () => {
1424
+ const o = Be(null), i = Be(null), [a, c] = Y(!1), [u, d] = Y(-1), f = "asyncapi-search-results", p = (v) => `asyncapi-search-result-${v}`, { portalHost: m, rootElement: h, topOffset: y = 0 } = Qe(), k = () => {
1425
1425
  c(!1), d(-1);
1426
1426
  };
1427
- ce(() => (s == null || s(a), () => s == null ? void 0 : s(!1)), [a, s]);
1428
- const k = Be(!1), S = Be(!1);
1429
- ce(() => {
1430
- if (!m) return;
1427
+ le(() => (s == null || s(a), () => s == null ? void 0 : s(!1)), [a, s]);
1428
+ const S = Be(!1), $ = Be(!1);
1429
+ le(() => {
1430
+ if (!h) return;
1431
1431
  const v = () => {
1432
- k.current = !0;
1432
+ S.current = !0;
1433
1433
  }, x = () => {
1434
- k.current = !1;
1434
+ S.current = !1;
1435
1435
  };
1436
- return m.addEventListener("mouseenter", v), m.addEventListener("mouseleave", x), () => {
1437
- m.removeEventListener("mouseenter", v), m.removeEventListener("mouseleave", x);
1436
+ return h.addEventListener("mouseenter", v), h.addEventListener("mouseleave", x), () => {
1437
+ h.removeEventListener("mouseenter", v), h.removeEventListener("mouseleave", x);
1438
1438
  };
1439
- }, [m]), ce(() => {
1440
- if (!m) return;
1439
+ }, [h]), le(() => {
1440
+ if (!h) return;
1441
1441
  const v = (x) => {
1442
- S.current = m.contains(x.target);
1442
+ $.current = h.contains(x.target);
1443
1443
  };
1444
1444
  return document.addEventListener("mousedown", v, !0), () => document.removeEventListener("mousedown", v, !0);
1445
- }, [m]), ce(() => {
1446
- if (!m) return;
1445
+ }, [h]), le(() => {
1446
+ if (!h) return;
1447
1447
  const v = (x) => {
1448
- !(x.metaKey || x.ctrlKey) || x.key.toLowerCase() !== "k" || !(m.contains(document.activeElement) || k.current || S.current) || (x.preventDefault(), c(!0));
1448
+ !(x.metaKey || x.ctrlKey) || x.key.toLowerCase() !== "k" || !(h.contains(document.activeElement) || S.current || $.current) || (x.preventDefault(), c(!0));
1449
1449
  };
1450
1450
  return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
1451
- }, [m]), ce(() => {
1451
+ }, [h]), le(() => {
1452
1452
  if (!a) return;
1453
1453
  const v = requestAnimationFrame(() => {
1454
1454
  var x;
1455
1455
  return (x = i.current) == null ? void 0 : x.focus();
1456
1456
  });
1457
1457
  return () => cancelAnimationFrame(v);
1458
- }, [a]), ce(() => {
1459
- if (!(!a || !p))
1460
- return Ha(bo(p));
1461
- }, [a, p]), ce(() => {
1458
+ }, [a]), le(() => {
1459
+ if (!(!a || !m))
1460
+ return Ha(bo(m));
1461
+ }, [a, m]), le(() => {
1462
1462
  if (!a) return;
1463
1463
  const v = (x) => {
1464
- x.key === "Escape" && y();
1464
+ x.key === "Escape" && k();
1465
1465
  };
1466
1466
  return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
1467
- }, [a]), ce(() => {
1467
+ }, [a]), le(() => {
1468
1468
  if (!a) return;
1469
1469
  const v = (x) => {
1470
- o.current && !o.current.contains(x.target) && y();
1470
+ o.current && !o.current.contains(x.target) && k();
1471
1471
  };
1472
1472
  return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
1473
- }, [a]), ce(() => {
1473
+ }, [a]), le(() => {
1474
1474
  u >= n.length && d(n.length - 1);
1475
- }, [u, n.length]);
1476
- const $ = a && e.trim().length > 0, E = (v) => {
1477
- y(), r(v);
1478
- }, M = (v) => {
1475
+ }, [u, n.length]), le(() => {
1476
+ var v;
1477
+ u < 0 || (v = document.getElementById(p(u))) == null || v.scrollIntoView({ block: "nearest" });
1478
+ }, [u]);
1479
+ const E = a && e.trim().length > 0, I = (v) => {
1480
+ k(), r(v);
1481
+ }, F = (v) => {
1479
1482
  if (v.key === "Escape") {
1480
- v.preventDefault(), y();
1483
+ v.preventDefault(), k();
1481
1484
  return;
1482
1485
  }
1483
- if ($) {
1486
+ if (E) {
1484
1487
  if (v.key === "ArrowDown") {
1485
1488
  v.preventDefault(), d(
1486
1489
  (x) => n.length === 0 ? -1 : Math.min(x + 1, n.length - 1)
@@ -1489,7 +1492,7 @@ function Za({
1489
1492
  }
1490
1493
  if (v.key === "ArrowUp") {
1491
1494
  v.preventDefault(), d(
1492
- (x) => n.length === 0 ? -1 : x <= 0 ? n.length - 1 : x - 1
1495
+ (x) => n.length === 0 ? -1 : Math.max(x - 1, 0)
1493
1496
  );
1494
1497
  return;
1495
1498
  }
@@ -1501,12 +1504,12 @@ function Za({
1501
1504
  v.preventDefault(), n.length > 0 && d(n.length - 1);
1502
1505
  return;
1503
1506
  }
1504
- if (v.key === "Enter" && u >= 0 && n[u]) {
1505
- v.preventDefault(), E(n[u]);
1507
+ if ((v.key === "Enter" || v.key === " ") && u >= 0 && n[u]) {
1508
+ v.preventDefault(), I(n[u]);
1506
1509
  return;
1507
1510
  }
1508
1511
  }
1509
- }, j = (v) => `asyncapi-search-result-${v}`, C = $ ? `${n.length} result${n.length === 1 ? "" : "s"} found` : "", N = typeof navigator < "u" && /Mac|iPod|iPhone|iPad/.test(navigator.userAgent);
1512
+ }, C = E ? `${n.length} result${n.length === 1 ? "" : "s"} found` : "", N = typeof navigator < "u" && /Mac|iPod|iPhone|iPad/.test(navigator.userAgent);
1510
1513
  return /* @__PURE__ */ b(oe, { children: [
1511
1514
  /* @__PURE__ */ l(
1512
1515
  "button",
@@ -1518,7 +1521,7 @@ function Za({
1518
1521
  children: /* @__PURE__ */ l(Ad, {})
1519
1522
  }
1520
1523
  ),
1521
- a && p && Fr(
1524
+ a && m && Fr(
1522
1525
  // z-[60] — above this search toggle, the nav spine (z-51), and the
1523
1526
  // nav popover (z-52), so the backdrop dims them along with the rest
1524
1527
  // of the page instead of leaving them floating on top of it.
@@ -1526,7 +1529,7 @@ function Za({
1526
1529
  "div",
1527
1530
  {
1528
1531
  className: "fixed inset-0 z-[60] flex justify-center px-4 pt-24",
1529
- style: { top: h },
1532
+ style: { top: y },
1530
1533
  children: [
1531
1534
  /* @__PURE__ */ l("div", { className: "absolute inset-0 bg-black/30" }),
1532
1535
  /* @__PURE__ */ b(
@@ -1543,20 +1546,20 @@ function Za({
1543
1546
  type: "search",
1544
1547
  value: e,
1545
1548
  onChange: (v) => t(v.target.value),
1546
- onKeyDown: M,
1549
+ onKeyDown: F,
1547
1550
  placeholder: "Search document...",
1548
1551
  "aria-label": "Search document",
1549
1552
  role: "combobox",
1550
1553
  "aria-haspopup": "listbox",
1551
- "aria-expanded": $,
1554
+ "aria-expanded": E,
1552
1555
  "aria-controls": f,
1553
1556
  "aria-autocomplete": "list",
1554
- "aria-activedescendant": u >= 0 ? j(u) : void 0,
1557
+ "aria-activedescendant": u >= 0 ? p(u) : void 0,
1555
1558
  className: "w-full rounded-md bg-surface px-4 py-3 text-sm text-foreground placeholder:text-foreground-muted focus:outline-none"
1556
1559
  }
1557
1560
  ) }),
1558
1561
  /* @__PURE__ */ l("div", { "aria-live": "polite", className: "sr-only", children: C }),
1559
- $ && /* @__PURE__ */ l(
1562
+ E && /* @__PURE__ */ l(
1560
1563
  "div",
1561
1564
  {
1562
1565
  id: f,
@@ -1565,11 +1568,11 @@ function Za({
1565
1568
  children: n.length > 0 ? /* @__PURE__ */ l("ul", { className: "divide-y divide-border", children: n.map((v, x) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ b(
1566
1569
  "button",
1567
1570
  {
1568
- id: j(x),
1571
+ id: p(x),
1569
1572
  type: "button",
1570
1573
  role: "option",
1571
1574
  "aria-selected": u === x,
1572
- onClick: () => E(v),
1575
+ onClick: () => I(v),
1573
1576
  className: "w-full text-left px-4 py-3 hover:bg-neutral-50 " + (u === x ? "bg-neutral-100" : ""),
1574
1577
  children: [
1575
1578
  /* @__PURE__ */ l("div", { className: "text-sm font-semibold text-foreground", children: v.name }),
@@ -1585,11 +1588,22 @@ function Za({
1585
1588
  ) }, v.id)) }) : /* @__PURE__ */ l("div", { className: "px-4 py-4 text-sm text-foreground-muted", children: "No results found." })
1586
1589
  }
1587
1590
  ),
1588
- /* @__PURE__ */ b("div", { className: "flex items-center justify-center gap-1 px-4 py-1.5 text-xs text-foreground-muted", children: [
1589
- "Press",
1590
- /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: N ? "⌘ Cmd" : "Ctrl" }),
1591
- /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "K" }),
1592
- "to search"
1591
+ /* @__PURE__ */ b("div", { className: "flex flex-wrap items-center justify-center gap-3 px-4 py-1.5 text-xs text-foreground-muted", children: [
1592
+ /* @__PURE__ */ b("span", { className: "flex items-center gap-1", children: [
1593
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "" }),
1594
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "" }),
1595
+ "to navigate"
1596
+ ] }),
1597
+ /* @__PURE__ */ b("span", { className: "flex items-center gap-1", children: [
1598
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "↵" }),
1599
+ "to select"
1600
+ ] }),
1601
+ /* @__PURE__ */ b("span", { className: "flex items-center gap-1", children: [
1602
+ "Press",
1603
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: N ? "⌘ Cmd" : "Ctrl" }),
1604
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "K" }),
1605
+ "to search"
1606
+ ] })
1593
1607
  ] })
1594
1608
  ]
1595
1609
  }
@@ -1597,7 +1611,7 @@ function Za({
1597
1611
  ]
1598
1612
  }
1599
1613
  ),
1600
- p
1614
+ m
1601
1615
  )
1602
1616
  ] });
1603
1617
  }
@@ -1643,15 +1657,15 @@ function el({
1643
1657
  onOpenChange: t
1644
1658
  }) {
1645
1659
  const [n, r] = Y(!1), [s, o] = Y(!1), i = Be(null), a = Be(void 0), { deref: c } = Qe(), u = () => Sd(e(c));
1646
- return ce(() => () => {
1660
+ return le(() => () => {
1647
1661
  a.current && clearTimeout(a.current);
1648
- }, []), ce(() => (t == null || t(n), () => t == null ? void 0 : t(!1)), [n, t]), ce(() => {
1662
+ }, []), le(() => (t == null || t(n), () => t == null ? void 0 : t(!1)), [n, t]), le(() => {
1649
1663
  if (!n) return;
1650
1664
  const p = (m) => {
1651
1665
  m.key === "Escape" && r(!1);
1652
1666
  };
1653
1667
  return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
1654
- }, [n]), ce(() => {
1668
+ }, [n]), le(() => {
1655
1669
  if (!n) return;
1656
1670
  const p = (m) => {
1657
1671
  i.current && !i.current.contains(m.target) && r(!1);
@@ -2326,49 +2340,49 @@ function Yd(e, t, n, { location: r = re.location, distance: s = re.distance, thr
2326
2340
  if (t.length > 32) throw new Error(Ld(32));
2327
2341
  const d = t.length, f = e.length, p = Math.max(0, Math.min(r, f));
2328
2342
  let m = o, h = p;
2329
- const y = (x, F) => {
2343
+ const y = (x, j) => {
2330
2344
  const Q = x / d;
2331
2345
  if (u) return Q;
2332
- const T = Math.abs(p - F);
2346
+ const T = Math.abs(p - j);
2333
2347
  return s ? Q + T / s : T ? 1 : Q;
2334
2348
  }, k = a > 1 || c, S = k ? Array(f) : [];
2335
2349
  let $;
2336
2350
  for (; ($ = e.indexOf(t, h)) > -1; ) {
2337
2351
  const x = y(0, $);
2338
2352
  if (m = Math.min(x, m), h = $ + d, k) {
2339
- let F = 0;
2340
- for (; F < d; )
2341
- S[$ + F] = 1, F += 1;
2353
+ let j = 0;
2354
+ for (; j < d; )
2355
+ S[$ + j] = 1, j += 1;
2342
2356
  }
2343
2357
  }
2344
2358
  h = -1;
2345
- let E = [], M = 1, j = 0, C = d + f;
2359
+ let E = [], I = 1, F = 0, C = d + f;
2346
2360
  const N = 1 << d - 1;
2347
2361
  for (let x = 0; x < d; x += 1) {
2348
- let F = 0, Q = C;
2349
- for (; F < Q; )
2350
- y(x, p + Q) <= m ? F = Q : C = Q, Q = Math.floor((C - F) / 2 + F);
2362
+ let j = 0, Q = C;
2363
+ for (; j < Q; )
2364
+ y(x, p + Q) <= m ? j = Q : C = Q, Q = Math.floor((C - j) / 2 + j);
2351
2365
  C = Q;
2352
2366
  let T = Math.max(1, p - Q + 1);
2353
- const W = i ? f : Math.min(p + Q, f) + d, le = Array(W + 2);
2354
- le[W + 1] = (1 << x) - 1;
2367
+ const W = i ? f : Math.min(p + Q, f) + d, ce = Array(W + 2);
2368
+ ce[W + 1] = (1 << x) - 1;
2355
2369
  for (let ae = W; ae >= T; ae -= 1) {
2356
2370
  const A = ae - 1, _ = n[e[A]];
2357
- if (le[ae] = (le[ae + 1] << 1 | 1) & _, x && (le[ae] |= (E[ae + 1] | E[ae]) << 1 | 1 | E[ae + 1]), le[ae] & N && (M = y(x, A), M <= m)) {
2358
- if (m = M, h = A, j = x, h <= p) break;
2371
+ if (ce[ae] = (ce[ae + 1] << 1 | 1) & _, x && (ce[ae] |= (E[ae + 1] | E[ae]) << 1 | 1 | E[ae + 1]), ce[ae] & N && (I = y(x, A), I <= m)) {
2372
+ if (m = I, h = A, F = x, h <= p) break;
2359
2373
  T = Math.max(1, 2 * p - h);
2360
2374
  }
2361
2375
  }
2362
2376
  if (y(x + 1, p) > m) break;
2363
- E = le;
2377
+ E = ce;
2364
2378
  }
2365
2379
  if (k && h >= 0) {
2366
- const x = Math.min(f - 1, h + d - 1 + j);
2367
- for (let F = h; F <= x; F += 1) n[e[F]] && (S[F] = 1);
2380
+ const x = Math.min(f - 1, h + d - 1 + F);
2381
+ for (let j = h; j <= x; j += 1) n[e[j]] && (S[j] = 1);
2368
2382
  }
2369
2383
  const v = {
2370
2384
  isMatch: h >= 0,
2371
- score: Math.max(1e-3, M)
2385
+ score: Math.max(1e-3, I)
2372
2386
  };
2373
2387
  if (k) {
2374
2388
  const x = Jd(S, a);
@@ -3247,7 +3261,7 @@ jt.use = function(...e) {
3247
3261
  var xf = jt;
3248
3262
  function cl(e, t, n = {}) {
3249
3263
  const [r, s] = Y(""), [o, i] = Y(""), a = n.debounceMs ?? 150;
3250
- ce(() => {
3264
+ le(() => {
3251
3265
  const f = setTimeout(() => i(r), a);
3252
3266
  return () => clearTimeout(f);
3253
3267
  }, [r, a]);
@@ -3320,7 +3334,7 @@ function As() {
3320
3334
  }
3321
3335
  function Af(e, t) {
3322
3336
  const n = Be(null);
3323
- ce(() => {
3337
+ le(() => {
3324
3338
  if (!e) return;
3325
3339
  const { targetId: r, query: s, highlight: o } = e;
3326
3340
  let i = !1;
@@ -3362,17 +3376,17 @@ function dl({
3362
3376
  }, [f, p] = Y({}), m = e.some((T) => T.id === i) ? i : o, h = {};
3363
3377
  for (const T of r)
3364
3378
  h[T.id] = T.visible ? f[T.id] ?? null : null;
3365
- const y = (T, W) => p((le) => ({ ...le, [T]: W })), [k, S] = Y(null), [$, E] = Y(null), [M, j] = Y(null), C = (T) => {
3379
+ const y = (T, W) => p((ce) => ({ ...ce, [T]: W })), [k, S] = Y(null), [$, E] = Y(null), [I, F] = Y(null), C = (T) => {
3366
3380
  n(T.tab) ? d(T.tab) : T.tab === "servers" && u("servers");
3367
3381
  const W = {};
3368
- for (const le of r)
3369
- W[le.id] = le.id === T.tab ? T.key : null;
3382
+ for (const ce of r)
3383
+ W[ce.id] = ce.id === T.tab ? T.key : null;
3370
3384
  p(W), S(T.focusSection ?? null), E(
3371
3385
  T.tab === "schemas" && T.schemaFocusTokens ? { tokens: T.schemaFocusTokens, id: T.targetId } : null
3372
- ), T.tab === "schemas" && As(), j({ targetId: T.targetId, query: s, highlight: T.tab !== "schemas" });
3386
+ ), T.tab === "schemas" && As(), F({ targetId: T.targetId, query: s, highlight: T.tab !== "schemas" });
3373
3387
  }, N = (T, W) => {
3374
- d(T), p((le) => {
3375
- const ae = { ...le };
3388
+ d(T), p((ce) => {
3389
+ const ae = { ...ce };
3376
3390
  for (const A of r)
3377
3391
  A.id !== "servers" && (ae[A.id] = A.id === T ? W : null);
3378
3392
  return ae;
@@ -3380,26 +3394,26 @@ function dl({
3380
3394
  }, v = (T) => {
3381
3395
  u("servers");
3382
3396
  const W = {};
3383
- for (const le of r)
3384
- W[le.id] = le.id === "servers" ? T : null;
3397
+ for (const ce of r)
3398
+ W[ce.id] = ce.id === "servers" ? T : null;
3385
3399
  p(W);
3386
3400
  }, x = (T) => {
3387
3401
  n(T) && d(T);
3388
- }, F = (() => {
3402
+ }, j = (() => {
3389
3403
  for (const T of r) {
3390
3404
  const W = h[T.id];
3391
3405
  if (W) return { tab: T.id, key: W };
3392
3406
  }
3393
3407
  return null;
3394
3408
  })();
3395
- return Af(M, [
3409
+ return Af(I, [
3396
3410
  m,
3397
3411
  k,
3398
3412
  $,
3399
3413
  ...r.map((T) => h[T.id])
3400
- ]), ce(() => {
3401
- s.trim() || (j(null), As());
3402
- }, [s]), ce(() => As, []), {
3414
+ ]), le(() => {
3415
+ s.trim() || (F(null), As());
3416
+ }, [s]), le(() => As, []), {
3403
3417
  effectiveTab: m,
3404
3418
  focusTab: d,
3405
3419
  /** What the sidebar nav should show as active: the focused section, falling back to the content tab. */
@@ -3407,7 +3421,7 @@ function dl({
3407
3421
  /** Per-section selections, clamped to visible sections. */
3408
3422
  selected: h,
3409
3423
  setSelectedKey: y,
3410
- selectedNavItem: F,
3424
+ selectedNavItem: j,
3411
3425
  handleSearchSelect: C,
3412
3426
  handleNavItemSelect: N,
3413
3427
  handleNavServerSelect: v,
@@ -3678,7 +3692,7 @@ function on(e, t, n, r) {
3678
3692
  let Ir = null, Es = null;
3679
3693
  const Xs = /* @__PURE__ */ new Set();
3680
3694
  function Mf() {
3681
- return Es || (Es = import("./protoToJsonSchema-BCkpb0Z8.js").then((e) => {
3695
+ return Es || (Es = import("./protoToJsonSchema-CUW6qxgm.js").then((e) => {
3682
3696
  Ir = e.protoToJsonSchema, Xs.forEach((t) => t());
3683
3697
  })), Es;
3684
3698
  }
@@ -4164,7 +4178,7 @@ function wl(e) {
4164
4178
  const kl = {
4165
4179
  "x-x": () => import("./XExtension-GyRtdHLL.js"),
4166
4180
  "x-linkedin": () => import("./LinkedInExtension-BL-4T9tt.js")
4167
- }, Qf = () => import("./LogoExtension-fJtd4y3z.js");
4181
+ }, Qf = () => import("./LogoExtension-BbOZyyI7.js");
4168
4182
  var P0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4169
4183
  function vl(e) {
4170
4184
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -4193,20 +4207,20 @@ var Ss, Qi;
4193
4207
  function qi() {
4194
4208
  if (Qi) return Ss;
4195
4209
  Qi = 1;
4196
- function e(O, R) {
4197
- (R == null || R > O.length) && (R = O.length);
4198
- for (var J = 0, se = Array(R); J < R; J++) se[J] = O[J];
4210
+ function e(O, M) {
4211
+ (M == null || M > O.length) && (M = O.length);
4212
+ for (var J = 0, se = Array(M); J < M; J++) se[J] = O[J];
4199
4213
  return se;
4200
4214
  }
4201
4215
  function t(O) {
4202
4216
  if (Array.isArray(O)) return O;
4203
4217
  }
4204
- function n(O, R) {
4218
+ function n(O, M) {
4205
4219
  var J = O == null ? null : typeof Symbol < "u" && O[Symbol.iterator] || O["@@iterator"];
4206
4220
  if (J != null) {
4207
4221
  var se, he, Se, Ue, gn = [], qe = !0, bn = !1;
4208
4222
  try {
4209
- if (Se = (J = J.call(O)).next, R !== 0) for (; !(qe = (se = Se.call(J)).done) && (gn.push(se.value), gn.length !== R); qe = !0) ;
4223
+ if (Se = (J = J.call(O)).next, M !== 0) for (; !(qe = (se = Se.call(J)).done) && (gn.push(se.value), gn.length !== M); qe = !0) ;
4210
4224
  } catch (qr) {
4211
4225
  bn = !0, he = qr;
4212
4226
  } finally {
@@ -4223,75 +4237,75 @@ function qi() {
4223
4237
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4224
4238
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4225
4239
  }
4226
- function s(O, R) {
4227
- return t(O) || n(O, R) || o(O, R) || r();
4240
+ function s(O, M) {
4241
+ return t(O) || n(O, M) || o(O, M) || r();
4228
4242
  }
4229
- function o(O, R) {
4243
+ function o(O, M) {
4230
4244
  if (O) {
4231
- if (typeof O == "string") return e(O, R);
4245
+ if (typeof O == "string") return e(O, M);
4232
4246
  var J = {}.toString.call(O).slice(8, -1);
4233
- return J === "Object" && O.constructor && (J = O.constructor.name), J === "Map" || J === "Set" ? Array.from(O) : J === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J) ? e(O, R) : void 0;
4247
+ return J === "Object" && O.constructor && (J = O.constructor.name), J === "Map" || J === "Set" ? Array.from(O) : J === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J) ? e(O, M) : void 0;
4234
4248
  }
4235
4249
  }
4236
4250
  const i = Object.entries, a = Object.setPrototypeOf, c = Object.isFrozen, u = Object.getPrototypeOf, d = Object.getOwnPropertyDescriptor;
4237
4251
  let f = Object.freeze, p = Object.seal, m = Object.create, h = typeof Reflect < "u" && Reflect, y = h.apply, k = h.construct;
4238
- f || (f = function(R) {
4239
- return R;
4240
- }), p || (p = function(R) {
4241
- return R;
4242
- }), y || (y = function(R, J) {
4252
+ f || (f = function(M) {
4253
+ return M;
4254
+ }), p || (p = function(M) {
4255
+ return M;
4256
+ }), y || (y = function(M, J) {
4243
4257
  for (var se = arguments.length, he = new Array(se > 2 ? se - 2 : 0), Se = 2; Se < se; Se++)
4244
4258
  he[Se - 2] = arguments[Se];
4245
- return R.apply(J, he);
4246
- }), k || (k = function(R) {
4259
+ return M.apply(J, he);
4260
+ }), k || (k = function(M) {
4247
4261
  for (var J = arguments.length, se = new Array(J > 1 ? J - 1 : 0), he = 1; he < J; he++)
4248
4262
  se[he - 1] = arguments[he];
4249
- return new R(...se);
4263
+ return new M(...se);
4250
4264
  });
4251
- const S = te(Array.prototype.forEach), $ = te(Array.prototype.lastIndexOf), E = te(Array.prototype.pop), M = te(Array.prototype.push), j = te(Array.prototype.splice), C = Array.isArray, N = te(String.prototype.toLowerCase), v = te(String.prototype.toString), x = te(String.prototype.match), F = te(String.prototype.replace), Q = te(String.prototype.indexOf), T = te(String.prototype.trim), W = te(Number.prototype.toString), le = te(Boolean.prototype.toString), ae = typeof BigInt > "u" ? null : te(BigInt.prototype.toString), A = typeof Symbol > "u" ? null : te(Symbol.prototype.toString), _ = te(Object.prototype.hasOwnProperty), H = te(Object.prototype.toString), V = te(RegExp.prototype.test), ue = Ie(TypeError);
4265
+ const S = te(Array.prototype.forEach), $ = te(Array.prototype.lastIndexOf), E = te(Array.prototype.pop), I = te(Array.prototype.push), F = te(Array.prototype.splice), C = Array.isArray, N = te(String.prototype.toLowerCase), v = te(String.prototype.toString), x = te(String.prototype.match), j = te(String.prototype.replace), Q = te(String.prototype.indexOf), T = te(String.prototype.trim), W = te(Number.prototype.toString), ce = te(Boolean.prototype.toString), ae = typeof BigInt > "u" ? null : te(BigInt.prototype.toString), A = typeof Symbol > "u" ? null : te(Symbol.prototype.toString), _ = te(Object.prototype.hasOwnProperty), H = te(Object.prototype.toString), V = te(RegExp.prototype.test), ue = Ie(TypeError);
4252
4266
  function te(O) {
4253
- return function(R) {
4254
- R instanceof RegExp && (R.lastIndex = 0);
4267
+ return function(M) {
4268
+ M instanceof RegExp && (M.lastIndex = 0);
4255
4269
  for (var J = arguments.length, se = new Array(J > 1 ? J - 1 : 0), he = 1; he < J; he++)
4256
4270
  se[he - 1] = arguments[he];
4257
- return y(O, R, se);
4271
+ return y(O, M, se);
4258
4272
  };
4259
4273
  }
4260
4274
  function Ie(O) {
4261
4275
  return function() {
4262
- for (var R = arguments.length, J = new Array(R), se = 0; se < R; se++)
4276
+ for (var M = arguments.length, J = new Array(M), se = 0; se < M; se++)
4263
4277
  J[se] = arguments[se];
4264
4278
  return k(O, J);
4265
4279
  };
4266
4280
  }
4267
- function q(O, R) {
4281
+ function q(O, M) {
4268
4282
  let J = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : N;
4269
- if (a && a(O, null), !C(R))
4283
+ if (a && a(O, null), !C(M))
4270
4284
  return O;
4271
- let se = R.length;
4285
+ let se = M.length;
4272
4286
  for (; se--; ) {
4273
- let he = R[se];
4287
+ let he = M[se];
4274
4288
  if (typeof he == "string") {
4275
4289
  const Se = J(he);
4276
- Se !== he && (c(R) || (R[se] = Se), he = Se);
4290
+ Se !== he && (c(M) || (M[se] = Se), he = Se);
4277
4291
  }
4278
4292
  O[he] = !0;
4279
4293
  }
4280
4294
  return O;
4281
4295
  }
4282
4296
  function Ne(O) {
4283
- for (let R = 0; R < O.length; R++)
4284
- _(O, R) || (O[R] = null);
4297
+ for (let M = 0; M < O.length; M++)
4298
+ _(O, M) || (O[M] = null);
4285
4299
  return O;
4286
4300
  }
4287
4301
  function D(O) {
4288
- const R = m(null);
4302
+ const M = m(null);
4289
4303
  for (const se of i(O)) {
4290
4304
  var J = s(se, 2);
4291
4305
  const he = J[0], Se = J[1];
4292
- _(O, he) && (C(Se) ? R[he] = Ne(Se) : Se && typeof Se == "object" && Se.constructor === Object ? R[he] = D(Se) : R[he] = Se);
4306
+ _(O, he) && (C(Se) ? M[he] = Ne(Se) : Se && typeof Se == "object" && Se.constructor === Object ? M[he] = D(Se) : M[he] = Se);
4293
4307
  }
4294
- return R;
4308
+ return M;
4295
4309
  }
4296
4310
  function X(O) {
4297
4311
  switch (typeof O) {
@@ -4300,7 +4314,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4300
4314
  case "number":
4301
4315
  return W(O);
4302
4316
  case "boolean":
4303
- return le(O);
4317
+ return ce(O);
4304
4318
  case "bigint":
4305
4319
  return ae ? ae(O) : "0";
4306
4320
  case "symbol":
@@ -4311,9 +4325,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4311
4325
  case "object": {
4312
4326
  if (O === null)
4313
4327
  return H(O);
4314
- const R = O, J = I(R, "toString");
4328
+ const M = O, J = R(M, "toString");
4315
4329
  if (typeof J == "function") {
4316
- const se = J(R);
4330
+ const se = J(M);
4317
4331
  return typeof se == "string" ? se : H(se);
4318
4332
  }
4319
4333
  return H(O);
@@ -4322,9 +4336,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4322
4336
  return H(O);
4323
4337
  }
4324
4338
  }
4325
- function I(O, R) {
4339
+ function R(O, M) {
4326
4340
  for (; O !== null; ) {
4327
- const se = d(O, R);
4341
+ const se = d(O, M);
4328
4342
  if (se) {
4329
4343
  if (se.get)
4330
4344
  return te(se.get);
@@ -4369,15 +4383,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4369
4383
  // Deprecated
4370
4384
  }, Yc = function() {
4371
4385
  return typeof window > "u" ? null : window;
4372
- }, Xc = function(R, J) {
4373
- if (typeof R != "object" || typeof R.createPolicy != "function")
4386
+ }, Xc = function(M, J) {
4387
+ if (typeof M != "object" || typeof M.createPolicy != "function")
4374
4388
  return null;
4375
4389
  let se = null;
4376
4390
  const he = "data-tt-policy-suffix";
4377
4391
  J && J.hasAttribute(he) && (se = J.getAttribute(he));
4378
4392
  const Se = "dompurify" + (se ? "#" + se : "");
4379
4393
  try {
4380
- return R.createPolicy(Se, {
4394
+ return M.createPolicy(Se, {
4381
4395
  createHTML(Ue) {
4382
4396
  return Ue;
4383
4397
  },
@@ -4400,20 +4414,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4400
4414
  uponSanitizeElement: [],
4401
4415
  uponSanitizeShadowNode: []
4402
4416
  };
4403
- }, _t = function(R, J, se, he) {
4404
- return _(R, J) && C(R[J]) ? q(he.base ? D(he.base) : {}, R[J], he.transform) : se;
4417
+ }, _t = function(M, J, se, he) {
4418
+ return _(M, J) && C(M[J]) ? q(he.base ? D(he.base) : {}, M[J], he.transform) : se;
4405
4419
  };
4406
4420
  function qo() {
4407
4421
  let O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Yc();
4408
- const R = (P) => qo(P);
4409
- if (R.version = "3.4.11", R.removed = [], !O || !O.document || O.document.nodeType !== mt.document || !O.Element)
4410
- return R.isSupported = !1, R;
4422
+ const M = (P) => qo(P);
4423
+ if (M.version = "3.4.11", M.removed = [], !O || !O.document || O.document.nodeType !== mt.document || !O.Element)
4424
+ return M.isSupported = !1, M;
4411
4425
  let J = O.document;
4412
4426
  const se = J, he = se.currentScript;
4413
4427
  O.DocumentFragment;
4414
4428
  const Se = O.HTMLTemplateElement, Ue = O.Node, gn = O.Element, qe = O.NodeFilter, bn = O.NamedNodeMap;
4415
4429
  bn === void 0 && (O.NamedNodeMap || O.MozNamedAttrMap), O.HTMLFormElement;
4416
- const qr = O.DOMParser, rr = O.trustedTypes, zt = gn.prototype, Qc = I(zt, "cloneNode"), ei = I(zt, "remove"), qc = I(zt, "nextSibling"), yn = I(zt, "childNodes"), xn = I(zt, "parentNode"), ti = I(zt, "shadowRoot"), es = I(zt, "attributes"), et = Ue && Ue.prototype ? I(Ue.prototype, "nodeType") : null, Ct = Ue && Ue.prototype ? I(Ue.prototype, "nodeName") : null;
4430
+ const qr = O.DOMParser, rr = O.trustedTypes, zt = gn.prototype, Qc = R(zt, "cloneNode"), ei = R(zt, "remove"), qc = R(zt, "nextSibling"), yn = R(zt, "childNodes"), xn = R(zt, "parentNode"), ti = R(zt, "shadowRoot"), es = R(zt, "attributes"), et = Ue && Ue.prototype ? R(Ue.prototype, "nodeType") : null, Ct = Ue && Ue.prototype ? R(Ue.prototype, "nodeName") : null;
4417
4431
  if (typeof Se == "function") {
4418
4432
  const P = J.createElement("template");
4419
4433
  P.content && P.content.ownerDocument && (J = P.content.ownerDocument);
@@ -4440,7 +4454,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4440
4454
  return ni || (ts = Xc(rr, he), ni = !0), ts;
4441
4455
  }, sr = J, ns = sr.implementation, si = sr.createNodeIterator, nu = sr.createDocumentFragment, ru = sr.getElementsByTagName, su = se.importNode;
4442
4456
  let Le = Qo();
4443
- R.isSupported = typeof i == "function" && typeof xn == "function" && ns && ns.createHTMLDocument !== void 0;
4457
+ M.isSupported = typeof i == "function" && typeof xn == "function" && ns && ns.createHTMLDocument !== void 0;
4444
4458
  const ou = Re, iu = xe, au = wt, lu = ot, cu = Ft, uu = B, oi = U, du = pe;
4445
4459
  let ii = it, _e = null;
4446
4460
  const ai = q({}, [...de, ...G, ...be, ...me, ...ke]);
@@ -4589,7 +4603,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4589
4603
  const L = N(g.tagName), K = N(w.tagName);
4590
4604
  return ps[g.namespaceURI] ? g.namespaceURI === lr ? bu(L, w, K) : g.namespaceURI === ar ? yu(L, w, K) : g.namespaceURI === bt ? xu(L, w, K) : !!(An === "application/xhtml+xml" && ps[g.namespaceURI]) : !1;
4591
4605
  }, It = function(g) {
4592
- M(R.removed, {
4606
+ I(M.removed, {
4593
4607
  element: g
4594
4608
  });
4595
4609
  try {
@@ -4603,7 +4617,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4603
4617
  if (w) {
4604
4618
  const K = [];
4605
4619
  S(w, (fe) => {
4606
- M(K, fe);
4620
+ I(K, fe);
4607
4621
  }), S(K, (fe) => {
4608
4622
  try {
4609
4623
  ei(fe);
@@ -4623,12 +4637,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4623
4637
  }
4624
4638
  }, Wt = function(g, w) {
4625
4639
  try {
4626
- M(R.removed, {
4640
+ I(M.removed, {
4627
4641
  attribute: w.getAttributeNode(g),
4628
4642
  from: w
4629
4643
  });
4630
4644
  } catch {
4631
- M(R.removed, {
4645
+ I(M.removed, {
4632
4646
  attribute: null,
4633
4647
  from: w
4634
4648
  });
@@ -4698,7 +4712,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4698
4712
  null
4699
4713
  );
4700
4714
  }, cr = function(g) {
4701
- return g = F(g, ou, " "), g = F(g, iu, " "), g = F(g, au, " "), g;
4715
+ return g = j(g, ou, " "), g = j(g, iu, " "), g = j(g, au, " "), g;
4702
4716
  }, bs = function(g) {
4703
4717
  var w;
4704
4718
  g.normalize();
@@ -4761,7 +4775,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4761
4775
  };
4762
4776
  function kt(P, g, w) {
4763
4777
  P.length !== 0 && S(P, (L) => {
4764
- L.call(R, g, w, tn);
4778
+ L.call(M, g, w, tn);
4765
4779
  });
4766
4780
  }
4767
4781
  const Au = function(g, w) {
@@ -4795,7 +4809,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4795
4809
  return It(g), !0;
4796
4810
  if (Ot && g.nodeType === mt.text) {
4797
4811
  const K = cr(g.textContent);
4798
- g.textContent !== K && (M(R.removed, {
4812
+ g.textContent !== K && (I(M.removed, {
4799
4813
  element: g.cloneNode()
4800
4814
  }), g.textContent = K);
4801
4815
  }
@@ -4808,9 +4822,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4808
4822
  if (!(ui && V(cu, w))) {
4809
4823
  if (K) {
4810
4824
  if (!ds[w]) {
4811
- if (!V(ii, F(L, oi, ""))) {
4825
+ if (!V(ii, j(L, oi, ""))) {
4812
4826
  if (!((w === "src" || w === "xlink:href" || w === "href") && g !== "script" && Q(L, "data:") === 0 && gi[g])) {
4813
- if (!(di && !V(uu, F(L, oi, "")))) {
4827
+ if (!(di && !V(uu, j(L, oi, "")))) {
4814
4828
  if (L)
4815
4829
  return !1;
4816
4830
  }
@@ -4841,7 +4855,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4841
4855
  return K;
4842
4856
  }, Tu = function(g, w, L, K) {
4843
4857
  try {
4844
- L ? g.setAttributeNS(L, w, K) : g.setAttribute(w, K), ur(g) ? It(g) : E(R.removed);
4858
+ L ? g.setAttributeNS(L, w, K) : g.setAttribute(w, K), ur(g) ? It(g) : E(M.removed);
4845
4859
  } catch {
4846
4860
  Wt(w, g);
4847
4861
  }
@@ -4936,13 +4950,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4936
4950
  }
4937
4951
  }
4938
4952
  };
4939
- return R.sanitize = function(P) {
4953
+ return M.sanitize = function(P) {
4940
4954
  let g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = null, L = null, K = null, fe = null;
4941
4955
  if (fs = !P, fs && (P = "<!-->"), typeof P != "string" && !En(P) && (P = X(P), typeof P != "string"))
4942
4956
  throw ue("dirty is not a string, aborting");
4943
- if (!R.isSupported)
4957
+ if (!M.isSupported)
4944
4958
  return P;
4945
- ss ? (_e = os, Ce = is) : gs(g), (Le.uponSanitizeElement.length > 0 || Le.uponSanitizeAttribute.length > 0) && (_e = D(_e)), Le.uponSanitizeAttribute.length > 0 && (Ce = D(Ce)), R.removed = [];
4959
+ ss ? (_e = os, Ce = is) : gs(g), (Le.uponSanitizeElement.length > 0 || Le.uponSanitizeAttribute.length > 0) && (_e = D(_e)), Le.uponSanitizeAttribute.length > 0 && (Ce = D(Ce)), M.removed = [];
4946
4960
  const ye = cs && typeof P != "string" && En(P);
4947
4961
  if (ye) {
4948
4962
  const at = Ct ? Ct(P) : P.nodeName;
@@ -4976,7 +4990,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4976
4990
  throw ye && Ei(P), at;
4977
4991
  }
4978
4992
  if (ye)
4979
- return S(R.removed, (at) => {
4993
+ return S(M.removed, (at) => {
4980
4994
  at.element && vu(at.element);
4981
4995
  }), Ot && bs(P), P;
4982
4996
  if (Qt) {
@@ -4990,30 +5004,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4990
5004
  let De = Ht ? w.outerHTML : w.innerHTML;
4991
5005
  return Ht && _e["!doctype"] && w.ownerDocument && w.ownerDocument.doctype && w.ownerDocument.doctype.name && V(ne, w.ownerDocument.doctype.name) && (De = "<!DOCTYPE " + w.ownerDocument.doctype.name + `>
4992
5006
  ` + De), Ot && (De = cr(De)), Je && ir ? Zt(De) : De;
4993
- }, R.setConfig = function() {
5007
+ }, M.setConfig = function() {
4994
5008
  let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4995
5009
  gs(P), ss = !0, os = _e, is = Ce;
4996
- }, R.clearConfig = function() {
5010
+ }, M.clearConfig = function() {
4997
5011
  tn = null, ss = !1, os = null, is = null, Je = ts, Ut = "";
4998
- }, R.isValidAttribute = function(P, g, w) {
5012
+ }, M.isValidAttribute = function(P, g, w) {
4999
5013
  tn || gs({});
5000
5014
  const L = Oe(P), K = Oe(g);
5001
5015
  return _i(L, K, w);
5002
- }, R.addHook = function(P, g) {
5003
- typeof g == "function" && _(Le, P) && M(Le[P], g);
5004
- }, R.removeHook = function(P, g) {
5016
+ }, M.addHook = function(P, g) {
5017
+ typeof g == "function" && _(Le, P) && I(Le[P], g);
5018
+ }, M.removeHook = function(P, g) {
5005
5019
  if (_(Le, P)) {
5006
5020
  if (g !== void 0) {
5007
5021
  const w = $(Le[P], g);
5008
- return w === -1 ? void 0 : j(Le[P], w, 1)[0];
5022
+ return w === -1 ? void 0 : F(Le[P], w, 1)[0];
5009
5023
  }
5010
5024
  return E(Le[P]);
5011
5025
  }
5012
- }, R.removeHooks = function(P) {
5026
+ }, M.removeHooks = function(P) {
5013
5027
  _(Le, P) && (Le[P] = []);
5014
- }, R.removeAllHooks = function() {
5028
+ }, M.removeAllHooks = function() {
5015
5029
  Le = Qo();
5016
- }, R;
5030
+ }, M;
5017
5031
  }
5018
5032
  var Zc = qo();
5019
5033
  return Ss = Zc, Ss;
@@ -5431,18 +5445,18 @@ ${d}` : d;
5431
5445
  `, 1)[0], m = !f.trim(), h = 0;
5432
5446
  if (this.options.pedantic ? (h = 2, d = f.trimStart()) : m ? h = t[1].length + 1 : (h = t[2].search(this.rules.other.nonSpaceChar), h = h > 4 ? 1 : h, d = f.slice(h), h += t[1].length), m && this.rules.other.blankLine.test(p) && (u += p + `
5433
5447
  `, e = e.substring(p.length + 1), c = !0), !c) {
5434
- const S = this.rules.other.nextBulletRegex(h), $ = this.rules.other.hrRegex(h), E = this.rules.other.fencesBeginRegex(h), M = this.rules.other.headingBeginRegex(h), j = this.rules.other.htmlBeginRegex(h);
5448
+ const S = this.rules.other.nextBulletRegex(h), $ = this.rules.other.hrRegex(h), E = this.rules.other.fencesBeginRegex(h), I = this.rules.other.headingBeginRegex(h), F = this.rules.other.htmlBeginRegex(h);
5435
5449
  for (; e; ) {
5436
5450
  const C = e.split(`
5437
5451
  `, 1)[0];
5438
5452
  let N;
5439
- if (p = C, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), N = p) : N = p.replace(this.rules.other.tabCharGlobal, " "), E.test(p) || M.test(p) || j.test(p) || S.test(p) || $.test(p))
5453
+ if (p = C, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), N = p) : N = p.replace(this.rules.other.tabCharGlobal, " "), E.test(p) || I.test(p) || F.test(p) || S.test(p) || $.test(p))
5440
5454
  break;
5441
5455
  if (N.search(this.rules.other.nonSpaceChar) >= h || !p.trim())
5442
5456
  d += `
5443
5457
  ` + N.slice(h);
5444
5458
  else {
5445
- if (m || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || E.test(f) || M.test(f) || $.test(f))
5459
+ if (m || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || E.test(f) || I.test(f) || $.test(f))
5446
5460
  break;
5447
5461
  d += `
5448
5462
  ` + p;
@@ -7313,9 +7327,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7313
7327
  code: V,
7314
7328
  language: ue
7315
7329
  };
7316
- le("before:highlight", te);
7330
+ ce("before:highlight", te);
7317
7331
  const Ie = te.result ? te.result : f(te.language, te.code, H);
7318
- return Ie.code = te.code, le("after:highlight", Ie), Ie;
7332
+ return Ie.code = te.code, ce("after:highlight", Ie), Ie;
7319
7333
  }
7320
7334
  function f(A, _, H, V) {
7321
7335
  const ue = /* @__PURE__ */ Object.create(null);
@@ -7379,7 +7393,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7379
7393
  Me ? D(lt, Me) : (xe = lt, Ie(), xe = ""), ne++;
7380
7394
  }
7381
7395
  }
7382
- function I(B, U) {
7396
+ function R(B, U) {
7383
7397
  return B.scope && typeof B.scope == "string" && Re.openNode(ke.classNameAliases[B.scope] || B.scope), B.beginScope && (B.beginScope._wrap ? (D(xe, ke.classNameAliases[B.beginScope._wrap] || B.beginScope._wrap), xe = "") : B.beginScope._multi && (X(B.beginScope, U), xe = "")), Z = Object.create(B, { parent: { value: Z } }), Z;
7384
7398
  }
7385
7399
  function ee(B, U, ne) {
@@ -7406,7 +7420,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7406
7420
  for (const lt of Me)
7407
7421
  if (lt && (lt(B, pe), pe.isMatchIgnored))
7408
7422
  return de(U);
7409
- return ne.skip ? xe += U : (ne.excludeBegin && (xe += U), Ne(), !ne.returnBegin && !ne.excludeBegin && (xe = U)), I(ne, B), ne.returnBegin ? 0 : U.length;
7423
+ return ne.skip ? xe += U : (ne.excludeBegin && (xe += U), Ne(), !ne.returnBegin && !ne.excludeBegin && (xe = U)), R(ne, B), ne.returnBegin ? 0 : U.length;
7410
7424
  }
7411
7425
  function be(B) {
7412
7426
  const U = B[0], ne = _.substring(B.index), pe = ee(Z, B, ne);
@@ -7417,7 +7431,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7417
7431
  do
7418
7432
  Z.scope && Re.closeNode(), !Z.skip && !Z.subLanguage && (wt += Z.relevance), Z = Z.parent;
7419
7433
  while (Z !== pe.parent);
7420
- return pe.starts && I(pe.starts, B), Me.returnEnd ? 0 : U.length;
7434
+ return pe.starts && R(pe.starts, B), Me.returnEnd ? 0 : U.length;
7421
7435
  }
7422
7436
  function Ee() {
7423
7437
  const B = [];
@@ -7524,7 +7538,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7524
7538
  }
7525
7539
  function m(A, _) {
7526
7540
  _ = _ || a.languages || Object.keys(t);
7527
- const H = p(A), V = _.filter(v).filter(F).map(
7541
+ const H = p(A), V = _.filter(v).filter(j).map(
7528
7542
  (Ne) => f(Ne, A, !1)
7529
7543
  );
7530
7544
  V.unshift(H);
@@ -7548,7 +7562,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7548
7562
  let _ = null;
7549
7563
  const H = u(A);
7550
7564
  if (c(H)) return;
7551
- if (le(
7565
+ if (ce(
7552
7566
  "before:highlightElement",
7553
7567
  { el: A, language: H }
7554
7568
  ), A.dataset.highlighted) {
@@ -7570,21 +7584,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7570
7584
  }, ue.secondBest && (A.secondBest = {
7571
7585
  language: ue.secondBest.language,
7572
7586
  relevance: ue.secondBest.relevance
7573
- }), le("after:highlightElement", { el: A, result: ue, text: V });
7587
+ }), ce("after:highlightElement", { el: A, result: ue, text: V });
7574
7588
  }
7575
7589
  function k(A) {
7576
7590
  a = ha(a, A);
7577
7591
  }
7578
7592
  const S = () => {
7579
- M(), rn("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
7593
+ I(), rn("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
7580
7594
  };
7581
7595
  function $() {
7582
- M(), rn("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
7596
+ I(), rn("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
7583
7597
  }
7584
7598
  let E = !1;
7585
- function M() {
7599
+ function I() {
7586
7600
  function A() {
7587
- M();
7601
+ I();
7588
7602
  }
7589
7603
  if (document.readyState === "loading") {
7590
7604
  E || window.addEventListener("DOMContentLoaded", A, !1), E = !0;
@@ -7592,7 +7606,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7592
7606
  }
7593
7607
  document.querySelectorAll(a.cssSelector).forEach(y);
7594
7608
  }
7595
- function j(A, _) {
7609
+ function F(A, _) {
7596
7610
  let H = null;
7597
7611
  try {
7598
7612
  H = _(e);
@@ -7621,7 +7635,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7621
7635
  n[H.toLowerCase()] = _;
7622
7636
  });
7623
7637
  }
7624
- function F(A) {
7638
+ function j(A) {
7625
7639
  const _ = v(A);
7626
7640
  return _ && !_.disableAutodetect;
7627
7641
  }
@@ -7643,7 +7657,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7643
7657
  const _ = r.indexOf(A);
7644
7658
  _ !== -1 && r.splice(_, 1);
7645
7659
  }
7646
- function le(A, _) {
7660
+ function ce(A, _) {
7647
7661
  const H = A;
7648
7662
  r.forEach(function(V) {
7649
7663
  V[H] && V[H](_);
@@ -7655,19 +7669,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7655
7669
  Object.assign(e, {
7656
7670
  highlight: d,
7657
7671
  highlightAuto: m,
7658
- highlightAll: M,
7672
+ highlightAll: I,
7659
7673
  highlightElement: y,
7660
7674
  // TODO: Remove with v12 API
7661
7675
  highlightBlock: ae,
7662
7676
  configure: k,
7663
7677
  initHighlighting: S,
7664
7678
  initHighlightingOnLoad: $,
7665
- registerLanguage: j,
7679
+ registerLanguage: F,
7666
7680
  unregisterLanguage: C,
7667
7681
  listLanguages: N,
7668
7682
  getLanguage: v,
7669
7683
  registerAliases: x,
7670
- autoDetection: F,
7684
+ autoDetection: j,
7671
7685
  inherit: ha,
7672
7686
  addPlugin: T,
7673
7687
  removePlugin: W
@@ -8068,7 +8082,7 @@ function Mh(e) {
8068
8082
  "typeset",
8069
8083
  "ulimit",
8070
8084
  "unalias"
8071
- ], M = [
8085
+ ], I = [
8072
8086
  "autoload",
8073
8087
  "bg",
8074
8088
  "bindkey",
@@ -8137,7 +8151,7 @@ function Mh(e) {
8137
8151
  "zsocket",
8138
8152
  "zstyle",
8139
8153
  "ztcp"
8140
- ], j = [
8154
+ ], F = [
8141
8155
  "chcon",
8142
8156
  "chgrp",
8143
8157
  "chown",
@@ -8258,8 +8272,8 @@ function Mh(e) {
8258
8272
  // Shell modifiers
8259
8273
  "set",
8260
8274
  "shopt",
8261
- ...M,
8262
- ...j
8275
+ ...I,
8276
+ ...F
8263
8277
  ]
8264
8278
  },
8265
8279
  contains: [
@@ -8608,13 +8622,13 @@ function jh(e) {
8608
8622
  "self"
8609
8623
  ].concat(E)
8610
8624
  });
8611
- const M = [].concat($, p.contains), j = M.concat([
8625
+ const I = [].concat($, p.contains), F = I.concat([
8612
8626
  // eat recursive parens in sub expressions
8613
8627
  {
8614
8628
  begin: /(\s*)\(/,
8615
8629
  end: /\)/,
8616
8630
  keywords: a,
8617
- contains: ["self"].concat(M)
8631
+ contains: ["self"].concat(I)
8618
8632
  }
8619
8633
  ]), C = {
8620
8634
  className: "params",
@@ -8625,7 +8639,7 @@ function jh(e) {
8625
8639
  excludeBegin: !0,
8626
8640
  excludeEnd: !0,
8627
8641
  keywords: a,
8628
- contains: j
8642
+ contains: F
8629
8643
  }, N = {
8630
8644
  variants: [
8631
8645
  // class Car extends vehicle
@@ -8688,7 +8702,7 @@ function jh(e) {
8688
8702
  className: "meta",
8689
8703
  relevance: 10,
8690
8704
  begin: /^\s*['"]use (strict|asm)['"]/
8691
- }, F = {
8705
+ }, j = {
8692
8706
  variants: [
8693
8707
  {
8694
8708
  match: [
@@ -8734,7 +8748,7 @@ function jh(e) {
8734
8748
  ),
8735
8749
  className: "title.function",
8736
8750
  relevance: 0
8737
- }, le = {
8751
+ }, ce = {
8738
8752
  begin: t.concat(/\./, t.lookahead(
8739
8753
  t.concat(r, /(?![0-9A-Za-z$_(])/)
8740
8754
  )),
@@ -8786,7 +8800,7 @@ function jh(e) {
8786
8800
  aliases: ["js", "jsx", "mjs", "cjs"],
8787
8801
  keywords: a,
8788
8802
  // this will be extended by TypeScript
8789
- exports: { PARAMS_CONTAINS: j, CLASS_REFERENCE: v },
8803
+ exports: { PARAMS_CONTAINS: F, CLASS_REFERENCE: v },
8790
8804
  illegal: /#(?![$_A-z])/,
8791
8805
  contains: [
8792
8806
  e.SHEBANG({
@@ -8847,7 +8861,7 @@ function jh(e) {
8847
8861
  excludeBegin: !0,
8848
8862
  excludeEnd: !0,
8849
8863
  keywords: a,
8850
- contains: j
8864
+ contains: F
8851
8865
  }
8852
8866
  ]
8853
8867
  }
@@ -8887,7 +8901,7 @@ function jh(e) {
8887
8901
  }
8888
8902
  ]
8889
8903
  },
8890
- F,
8904
+ j,
8891
8905
  {
8892
8906
  // prevent this from getting swallowed up by function
8893
8907
  // since they appear "function like"
@@ -8911,7 +8925,7 @@ function jh(e) {
8911
8925
  match: /\.\.\./,
8912
8926
  relevance: 0
8913
8927
  },
8914
- le,
8928
+ ce,
8915
8929
  // hack: prevents detection of keywords in some circumstances
8916
8930
  // .keyword()
8917
8931
  // $keyword = x
@@ -9628,7 +9642,7 @@ function Ko({
9628
9642
  collapsedMaxHeight: r = tm
9629
9643
  }) {
9630
9644
  const [s, o] = Y("idle"), i = Be(void 0), [a, c] = Y(!1), [u, d] = Y(!1), [f, p] = Y(0), m = Be(null), h = Be(null), y = fn();
9631
- ce(() => () => clearTimeout(i.current), []), ce(() => {
9645
+ le(() => () => clearTimeout(i.current), []), le(() => {
9632
9646
  const N = h.current;
9633
9647
  if (!N) return;
9634
9648
  const v = () => {
@@ -9642,7 +9656,7 @@ function Ko({
9642
9656
  om(e).then((N) => {
9643
9657
  o(N ? "copied" : "error"), clearTimeout(i.current), i.current = setTimeout(() => o("idle"), em);
9644
9658
  });
9645
- }, $ = ft.getLanguage(n) ? ft.highlight(e, { language: n }).value : null, E = s === "copied" ? "Copied" : s === "error" ? "Copy failed" : "Copy to clipboard", M = u && !a, j = e.replace(/\n+$/, "").split(`
9659
+ }, $ = ft.getLanguage(n) ? ft.highlight(e, { language: n }).value : null, E = s === "copied" ? "Copied" : s === "error" ? "Copy failed" : "Copy to clipboard", I = u && !a, F = e.replace(/\n+$/, "").split(`
9646
9660
  `).length, C = () => {
9647
9661
  var N, v;
9648
9662
  a && (((N = m.current) == null ? void 0 : N.getBoundingClientRect().top) ?? 0) < 0 && ((v = m.current) == null || v.scrollIntoView({ block: "nearest" })), c((x) => !x);
@@ -9680,7 +9694,7 @@ function Ko({
9680
9694
  "div",
9681
9695
  {
9682
9696
  "aria-hidden": "true",
9683
- className: `pointer-events-none absolute inset-x-0 bottom-0 h-16 rounded-b transition-opacity duration-300 ease-in-out ${M ? "opacity-100" : "opacity-0"}`,
9697
+ className: `pointer-events-none absolute inset-x-0 bottom-0 h-16 rounded-b transition-opacity duration-300 ease-in-out ${I ? "opacity-100" : "opacity-0"}`,
9684
9698
  style: { background: `linear-gradient(to bottom, transparent, ${rm})` }
9685
9699
  }
9686
9700
  )
@@ -9694,7 +9708,7 @@ function Ko({
9694
9708
  "aria-controls": y,
9695
9709
  className: "flex items-center gap-1 mt-1 px-1 py-0.5 rounded text-xs text-foreground-muted hover:text-foreground-secondary transition-colors",
9696
9710
  children: [
9697
- a ? "Show less" : `Show all ${j} lines`,
9711
+ a ? "Show less" : `Show all ${F} lines`,
9698
9712
  /* @__PURE__ */ l(pn, { className: `w-3 h-3 transition-transform ${a ? "rotate-180" : ""}` })
9699
9713
  ]
9700
9714
  }
@@ -10350,11 +10364,11 @@ function Ye({
10350
10364
  const { depthColors: m } = Qe(), h = po(n, m), y = r && km(r, s), k = u ? Nm : "";
10351
10365
  let S = "", $ = t;
10352
10366
  if (t.endsWith("[]")) {
10353
- const E = t.slice(0, -2), M = E.lastIndexOf(".");
10354
- M >= 0 ? (S = E.slice(0, M + 1), $ = `${E.slice(M + 1)}[]`) : $ = t;
10367
+ const E = t.slice(0, -2), I = E.lastIndexOf(".");
10368
+ I >= 0 ? (S = E.slice(0, I + 1), $ = `${E.slice(I + 1)}[]`) : $ = t;
10355
10369
  } else {
10356
- const E = t.lastIndexOf("."), M = t.lastIndexOf("[]"), j = Math.max(E, M);
10357
- j >= 0 && (S = t.slice(0, j + (t[j] === "." ? 1 : 2)), $ = t.slice(j + (t[j] === "." ? 1 : 2)));
10370
+ const E = t.lastIndexOf("."), I = t.lastIndexOf("[]"), F = Math.max(E, I);
10371
+ F >= 0 && (S = t.slice(0, F + (t[F] === "." ? 1 : 2)), $ = t.slice(F + (t[F] === "." ? 1 : 2)));
10358
10372
  }
10359
10373
  return p = p && !d, /* @__PURE__ */ b(
10360
10374
  "div",
@@ -10393,13 +10407,13 @@ function Ye({
10393
10407
  ),
10394
10408
  c && c.split(`
10395
10409
 
10396
- `).map((E, M) => /* @__PURE__ */ l(
10410
+ `).map((E, I) => /* @__PURE__ */ l(
10397
10411
  "p",
10398
10412
  {
10399
10413
  className: `text-xs text-foreground-muted mt-1 ${k} leading-relaxed`,
10400
10414
  children: E
10401
10415
  },
10402
- M
10416
+ I
10403
10417
  )),
10404
10418
  u && /* @__PURE__ */ l(Sm, { depth: n, expanded: d, onToggle: f })
10405
10419
  ]
@@ -10461,24 +10475,24 @@ function ut({
10461
10475
  }) {
10462
10476
  var X;
10463
10477
  const p = _m(a), m = d != null, y = m && d.length === 0 ? f ?? void 0 : void 0, [k, S] = Y(c || m), [$, E] = Y(c);
10464
- $ !== c && (E(c), S(c || m)), ce(() => {
10478
+ $ !== c && (E(c), S(c || m)), le(() => {
10465
10479
  m && S(!0);
10466
10480
  }, [m]);
10467
- const [M, j] = Y(0), C = (X = d == null ? void 0 : d[0]) == null ? void 0 : X.match(/^(?:oneOf|anyOf)\[(\d+)\]$/), N = C ? Number(C[1]) : -1;
10468
- ce(() => {
10469
- N >= 0 && j(N);
10481
+ const [I, F] = Y(0), C = (X = d == null ? void 0 : d[0]) == null ? void 0 : X.match(/^(?:oneOf|anyOf)\[(\d+)\]$/), N = C ? Number(C[1]) : -1;
10482
+ le(() => {
10483
+ N >= 0 && F(N);
10470
10484
  }, [N]);
10471
- const v = Co(), { schema: x, refLabel: F, circular: Q } = ge(() => {
10485
+ const v = Co(), { schema: x, refLabel: j, circular: Q } = ge(() => {
10472
10486
  if (u.objects.has(e) || typeof e.$ref == "string" && u.refs.has(e.$ref))
10473
10487
  return {
10474
10488
  schema: e,
10475
10489
  refLabel: no(e),
10476
10490
  circular: !0
10477
10491
  };
10478
- const I = At(e, o, s);
10479
- return I.circular ? I : {
10480
- ...I,
10481
- schema: Ge(I.schema, o, s)
10492
+ const R = At(e, o, s);
10493
+ return R.circular ? R : {
10494
+ ...R,
10495
+ schema: Ge(R.schema, o, s)
10482
10496
  };
10483
10497
  }, [e, o, s, u, v]), T = ge(
10484
10498
  () => ({
@@ -10486,19 +10500,19 @@ function ut({
10486
10500
  refs: typeof e.$ref == "string" ? new Set(u.refs).add(e.$ref) : u.refs
10487
10501
  }),
10488
10502
  [u, e]
10489
- ), W = ac(dm(x)), le = !cc(W) && (Xe(x) || tt(x) || nt(x)), ae = () => {
10490
- const I = ic(x);
10491
- if (I === null) return null;
10492
- if (typeof I == "boolean")
10493
- return /* @__PURE__ */ l(_s, { children: /* @__PURE__ */ l(vm, { value: I }) });
10494
- const ee = At(I, o, s);
10503
+ ), W = ac(dm(x)), ce = !cc(W) && (Xe(x) || tt(x) || nt(x)), ae = () => {
10504
+ const R = ic(x);
10505
+ if (R === null) return null;
10506
+ if (typeof R == "boolean")
10507
+ return /* @__PURE__ */ l(_s, { children: /* @__PURE__ */ l(vm, { value: R }) });
10508
+ const ee = At(R, o, s);
10495
10509
  if (ee.circular)
10496
10510
  return /* @__PURE__ */ l(_s, { children: /* @__PURE__ */ l(
10497
10511
  Ye,
10498
10512
  {
10499
10513
  path: t,
10500
10514
  depth: n + 1,
10501
- typeLabelOverride: `↩ ${I.$ref}`,
10515
+ typeLabelOverride: `↩ ${R.$ref}`,
10502
10516
  expandable: !1,
10503
10517
  expanded: !1,
10504
10518
  onToggle: () => {
@@ -10510,7 +10524,7 @@ function ut({
10510
10524
  return /* @__PURE__ */ l(_s, { children: G ? /* @__PURE__ */ l(yr, { schema: de, showBorder: !1 }) : /* @__PURE__ */ l(
10511
10525
  ut,
10512
10526
  {
10513
- schema: I,
10527
+ schema: R,
10514
10528
  path: t,
10515
10529
  depth: n + 1,
10516
10530
  refStack: s,
@@ -10521,17 +10535,17 @@ function ut({
10521
10535
  defaultExpanded: c
10522
10536
  }
10523
10537
  ) });
10524
- }, A = (I, ee) => {
10525
- if (typeof I == "boolean")
10526
- return /* @__PURE__ */ l("span", { className: "inline-flex items-center rounded-md bg-neutral-100 px-2 py-1 text-xs font-medium text-foreground-secondary", children: I ? "any value" : "false schema" });
10527
- const de = At(I, o, s);
10538
+ }, A = (R, ee) => {
10539
+ if (typeof R == "boolean")
10540
+ return /* @__PURE__ */ l("span", { className: "inline-flex items-center rounded-md bg-neutral-100 px-2 py-1 text-xs font-medium text-foreground-secondary", children: R ? "any value" : "false schema" });
10541
+ const de = At(R, o, s);
10528
10542
  if (de.circular)
10529
10543
  return /* @__PURE__ */ l(
10530
10544
  Ye,
10531
10545
  {
10532
10546
  path: ee,
10533
10547
  depth: n + 1,
10534
- typeLabelOverride: `↩ ${I.$ref}`,
10548
+ typeLabelOverride: `↩ ${R.$ref}`,
10535
10549
  expandable: !1,
10536
10550
  expanded: !1,
10537
10551
  onToggle: () => {
@@ -10543,7 +10557,7 @@ function ut({
10543
10557
  return dt(G) ? /* @__PURE__ */ l(yr, { schema: G, showBorder: !1 }) : /* @__PURE__ */ l(
10544
10558
  ut,
10545
10559
  {
10546
- schema: I,
10560
+ schema: R,
10547
10561
  path: ee,
10548
10562
  depth: n + 1,
10549
10563
  refStack: s,
@@ -10554,10 +10568,10 @@ function ut({
10554
10568
  defaultExpanded: c
10555
10569
  }
10556
10570
  );
10557
- }, _ = (I) => {
10558
- const ee = Ts(I.if);
10571
+ }, _ = (R) => {
10572
+ const ee = Ts(R.if);
10559
10573
  if (ee === null) return null;
10560
- const de = Ts(I.then), G = Ts(I.else);
10574
+ const de = Ts(R.then), G = Ts(R.else);
10561
10575
  return /* @__PURE__ */ l(
10562
10576
  Tm,
10563
10577
  {
@@ -10567,8 +10581,8 @@ function ut({
10567
10581
  }
10568
10582
  );
10569
10583
  }, H = () => {
10570
- const I = lc(x);
10571
- return I.length === 0 ? null : /* @__PURE__ */ l(oe, { children: I.map((ee, de) => /* @__PURE__ */ l("div", { children: _(ee) }, de)) });
10584
+ const R = lc(x);
10585
+ return R.length === 0 ? null : /* @__PURE__ */ l(oe, { children: R.map((ee, de) => /* @__PURE__ */ l("div", { children: _(ee) }, de)) });
10572
10586
  };
10573
10587
  if (Q)
10574
10588
  return /* @__PURE__ */ l(
@@ -10577,20 +10591,20 @@ function ut({
10577
10591
  id: y,
10578
10592
  path: t,
10579
10593
  depth: n,
10580
- typeLabelOverride: `↩ ${e.$ref ?? F ?? "circular"}`,
10594
+ typeLabelOverride: `↩ ${e.$ref ?? j ?? "circular"}`,
10581
10595
  expandable: !1,
10582
10596
  expanded: !1,
10583
10597
  onToggle: () => {
10584
10598
  }
10585
10599
  }
10586
10600
  );
10587
- if (le) {
10588
- const I = /* @__PURE__ */ b(oe, { children: [
10601
+ if (ce) {
10602
+ const R = /* @__PURE__ */ b(oe, { children: [
10589
10603
  Xe(x) && ae(),
10590
10604
  tt(x) && _(x),
10591
10605
  nt(x) && H()
10592
10606
  ] });
10593
- return i ? I : /* @__PURE__ */ b(oe, { children: [
10607
+ return i ? R : /* @__PURE__ */ b(oe, { children: [
10594
10608
  /* @__PURE__ */ l(
10595
10609
  Ye,
10596
10610
  {
@@ -10598,7 +10612,7 @@ function ut({
10598
10612
  path: t,
10599
10613
  depth: n,
10600
10614
  schema: x,
10601
- refLabel: F,
10615
+ refLabel: j,
10602
10616
  required: r,
10603
10617
  description: x.description,
10604
10618
  expandable: !0,
@@ -10606,14 +10620,14 @@ function ut({
10606
10620
  onToggle: () => S((ee) => !ee)
10607
10621
  }
10608
10622
  ),
10609
- k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: I })
10623
+ k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: R })
10610
10624
  ] });
10611
10625
  }
10612
10626
  const V = Gn(W), ue = Kn(W), te = V ?? ue, Ie = V ? "oneOf" : "anyOf";
10613
10627
  if (te) {
10614
- const I = te.map(
10628
+ const R = te.map(
10615
10629
  (ze, Z) => typeof ze.title == "string" ? ze.title : `case ${Z + 1}`
10616
- ), ee = i ? 1 : n + 1, de = te[M], G = At(de, o, s), be = G.circular ? G.schema : Ge(G.schema, o, s), Ee = !G.circular && dt(be), me = d && N === M ? d.slice(1) : null, Fe = Ee ? /* @__PURE__ */ l(yr, { schema: be, showBorder: !1 }) : /* @__PURE__ */ l(
10630
+ ), ee = i ? 1 : n + 1, de = te[I], G = At(de, o, s), be = G.circular ? G.schema : Ge(G.schema, o, s), Ee = !G.circular && dt(be), me = d && N === I ? d.slice(1) : null, Fe = Ee ? /* @__PURE__ */ l(yr, { schema: be, showBorder: !1 }) : /* @__PURE__ */ l(
10617
10631
  ut,
10618
10632
  {
10619
10633
  schema: de,
@@ -10628,15 +10642,15 @@ function ut({
10628
10642
  focusTokens: me,
10629
10643
  focusId: f
10630
10644
  },
10631
- M
10645
+ I
10632
10646
  ), ke = /* @__PURE__ */ l(
10633
10647
  Am,
10634
10648
  {
10635
10649
  variant: Ie,
10636
10650
  caseCount: te.length,
10637
- caseLabels: I,
10638
- selectedCase: M,
10639
- onSelectCase: j,
10651
+ caseLabels: R,
10652
+ selectedCase: I,
10653
+ onSelectCase: F,
10640
10654
  children: Fe
10641
10655
  }
10642
10656
  ), Ve = /* @__PURE__ */ b(oe, { children: [
@@ -10653,7 +10667,7 @@ function ut({
10653
10667
  path: t,
10654
10668
  depth: n,
10655
10669
  schema: x,
10656
- refLabel: F,
10670
+ refLabel: j,
10657
10671
  required: r,
10658
10672
  description: x.description,
10659
10673
  expandable: !0,
@@ -10664,15 +10678,15 @@ function ut({
10664
10678
  k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: Ve })
10665
10679
  ] });
10666
10680
  }
10667
- const q = (I, ee, de) => {
10668
- const G = At(I, o, s);
10681
+ const q = (R, ee, de) => {
10682
+ const G = At(R, o, s);
10669
10683
  if (G.circular)
10670
10684
  return /* @__PURE__ */ l(
10671
10685
  Ye,
10672
10686
  {
10673
10687
  path: ee,
10674
10688
  depth: de,
10675
- typeLabelOverride: `↩ ${I.$ref}`,
10689
+ typeLabelOverride: `↩ ${R.$ref}`,
10676
10690
  expandable: !1,
10677
10691
  expanded: !1,
10678
10692
  onToggle: () => {
@@ -10684,7 +10698,7 @@ function ut({
10684
10698
  return dt(be) ? /* @__PURE__ */ l(yr, { schema: be, showBorder: !1 }) : /* @__PURE__ */ l(
10685
10699
  ut,
10686
10700
  {
10687
- schema: I,
10701
+ schema: R,
10688
10702
  path: ee,
10689
10703
  depth: de,
10690
10704
  refStack: s,
@@ -10694,7 +10708,7 @@ function ut({
10694
10708
  defaultExpanded: c
10695
10709
  }
10696
10710
  );
10697
- }, Ne = (I) => {
10711
+ }, Ne = (R) => {
10698
10712
  const ee = W.properties ?? {}, de = new Set(W.required ?? []), G = Vn(W), be = mn(W), Ee = Jo(W);
10699
10713
  return /* @__PURE__ */ b(oe, { children: [
10700
10714
  Object.entries(ee).map(([me, Fe]) => {
@@ -10705,7 +10719,7 @@ function ut({
10705
10719
  {
10706
10720
  schema: Fe,
10707
10721
  path: `${t}.${me}`,
10708
- depth: I,
10722
+ depth: R,
10709
10723
  required: de.has(me),
10710
10724
  refStack: s,
10711
10725
  deref: o,
@@ -10721,14 +10735,14 @@ function ut({
10721
10735
  G !== null && ie(G) && /* @__PURE__ */ l(xr, { label: "Property names must adhere to:", children: q(
10722
10736
  G,
10723
10737
  `${t}.[propertyName]`,
10724
- I
10738
+ R
10725
10739
  ) }),
10726
10740
  Ee.map(([me, Fe]) => /* @__PURE__ */ l(
10727
10741
  ut,
10728
10742
  {
10729
10743
  schema: Fe,
10730
10744
  path: fm(t, me),
10731
- depth: I,
10745
+ depth: R,
10732
10746
  refStack: s,
10733
10747
  deref: o,
10734
10748
  ancestors: T,
@@ -10740,7 +10754,7 @@ function ut({
10740
10754
  be !== null && ie(be) && /* @__PURE__ */ l(xr, { label: "Additional properties must adhere to:", children: q(
10741
10755
  be,
10742
10756
  `${t}.[additionalProperty]`,
10743
- I
10757
+ R
10744
10758
  ) }),
10745
10759
  Xe(x) && ae(),
10746
10760
  tt(x) && _(x),
@@ -10756,18 +10770,18 @@ function ut({
10756
10770
  path: t,
10757
10771
  depth: n,
10758
10772
  schema: x,
10759
- refLabel: F,
10773
+ refLabel: j,
10760
10774
  required: r,
10761
10775
  description: x.description,
10762
10776
  expandable: !0,
10763
10777
  expanded: k,
10764
- onToggle: () => S((I) => !I)
10778
+ onToggle: () => S((R) => !R)
10765
10779
  }
10766
10780
  ),
10767
10781
  k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: Ne(n + 1) })
10768
10782
  ] });
10769
10783
  if (W.type === "array" || W.items) {
10770
- const I = sc(W), ee = I !== null, de = ee ? lm(W) : null, G = cm(W), be = G !== null, Ee = ee ? null : Jt(W), me = Ee !== null, Fe = ee || me || be || Xe(x) || tt(x) || nt(x), ke = `${t}[]`, Ve = i ? t : ke, ze = me ? At(Ee, o, s) : null, Z = (ze == null ? void 0 : ze.schema) ?? null, Te = Z ? Ge(Z, o, s) : null, Re = Z !== null && (T.objects.has(Z) || typeof (Ee == null ? void 0 : Ee.$ref) == "string" && T.refs.has(Ee.$ref)), xe = Z !== null ? {
10784
+ const R = sc(W), ee = R !== null, de = ee ? lm(W) : null, G = cm(W), be = G !== null, Ee = ee ? null : Jt(W), me = Ee !== null, Fe = ee || me || be || Xe(x) || tt(x) || nt(x), ke = `${t}[]`, Ve = i ? t : ke, ze = me ? At(Ee, o, s) : null, Z = (ze == null ? void 0 : ze.schema) ?? null, Te = Z ? Ge(Z, o, s) : null, Re = Z !== null && (T.objects.has(Z) || typeof (Ee == null ? void 0 : Ee.$ref) == "string" && T.refs.has(Ee.$ref)), xe = Z !== null ? {
10771
10785
  objects: new Set(T.objects).add(Z),
10772
10786
  refs: typeof (Ee == null ? void 0 : Ee.$ref) == "string" ? new Set(T.refs).add(Ee.$ref) : T.refs
10773
10787
  } : T, wt = !ee && !be && Te !== null && dt(Te), ot = Te != null && Te.properties ? Object.entries(Te.properties).filter(
@@ -10776,7 +10790,7 @@ function ut({
10776
10790
  Te && Array.isArray(Te.required) ? Te.required : []
10777
10791
  ), it = !ee && d && d[0] === "items" ? d.slice(1) : null, B = (U) => /* @__PURE__ */ b(oe, { children: [
10778
10792
  ee ? /* @__PURE__ */ b(oe, { children: [
10779
- I.map((ne, pe) => /* @__PURE__ */ l(
10793
+ R.map((ne, pe) => /* @__PURE__ */ l(
10780
10794
  ut,
10781
10795
  {
10782
10796
  schema: ne,
@@ -10855,7 +10869,7 @@ function ut({
10855
10869
  depth: n,
10856
10870
  schema: x,
10857
10871
  itemSchema: Te,
10858
- refLabel: F,
10872
+ refLabel: j,
10859
10873
  required: r,
10860
10874
  description: Br(
10861
10875
  x.description,
@@ -10875,7 +10889,7 @@ function ut({
10875
10889
  depth: n,
10876
10890
  schema: x,
10877
10891
  itemSchema: Te,
10878
- refLabel: F,
10892
+ refLabel: j,
10879
10893
  required: r,
10880
10894
  description: Br(
10881
10895
  x.description,
@@ -10900,7 +10914,7 @@ function ut({
10900
10914
  depth: n,
10901
10915
  schema: x,
10902
10916
  itemSchema: Te,
10903
- refLabel: F,
10917
+ refLabel: j,
10904
10918
  required: r,
10905
10919
  description: x.description,
10906
10920
  expandable: ee || me || be || Xe(x) || tt(x) || nt(x),
@@ -10912,12 +10926,12 @@ function ut({
10912
10926
  ] });
10913
10927
  }
10914
10928
  if (Xe(x) || tt(x) || nt(x)) {
10915
- const I = /* @__PURE__ */ b(oe, { children: [
10929
+ const R = /* @__PURE__ */ b(oe, { children: [
10916
10930
  Xe(x) && ae(),
10917
10931
  tt(x) && _(x),
10918
10932
  nt(x) && H()
10919
10933
  ] });
10920
- return i ? I : /* @__PURE__ */ b(oe, { children: [
10934
+ return i ? R : /* @__PURE__ */ b(oe, { children: [
10921
10935
  /* @__PURE__ */ l(
10922
10936
  Ye,
10923
10937
  {
@@ -10925,7 +10939,7 @@ function ut({
10925
10939
  path: t,
10926
10940
  depth: n,
10927
10941
  schema: x,
10928
- refLabel: F,
10942
+ refLabel: j,
10929
10943
  required: r,
10930
10944
  description: x.description,
10931
10945
  expandable: !0,
@@ -10933,7 +10947,7 @@ function ut({
10933
10947
  onToggle: () => S((ee) => !ee)
10934
10948
  }
10935
10949
  ),
10936
- k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: I })
10950
+ k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: R })
10937
10951
  ] });
10938
10952
  }
10939
10953
  return i ? null : /* @__PURE__ */ l(
@@ -10943,7 +10957,7 @@ function ut({
10943
10957
  path: t,
10944
10958
  depth: n,
10945
10959
  schema: x,
10946
- refLabel: F,
10960
+ refLabel: j,
10947
10961
  required: r,
10948
10962
  description: x.description,
10949
10963
  expandable: !1,
@@ -11060,7 +11074,7 @@ function an(e, t = () => {
11060
11074
  }
11061
11075
  function $m({ schema: e, providedExample: t }) {
11062
11076
  const n = t !== void 0, [r, s] = Y(n ? t : null), { deref: o } = Qe();
11063
- if (ce(() => {
11077
+ if (le(() => {
11064
11078
  if (n) {
11065
11079
  s(t);
11066
11080
  return;
@@ -11097,7 +11111,7 @@ function un({
11097
11111
  const d = pl(s), f = !a && Ff(s, i), [p, m] = Y(
11098
11112
  f && u === "example" ? "example" : "schema"
11099
11113
  );
11100
- return ce(() => {
11114
+ return le(() => {
11101
11115
  !f && p === "example" && m("schema");
11102
11116
  }, [f, p]), /* @__PURE__ */ b("div", { children: [
11103
11117
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-2", children: [
@@ -11151,7 +11165,7 @@ function yc({
11151
11165
  }) {
11152
11166
  var m;
11153
11167
  const [o, i] = Y("payload");
11154
- ce(() => {
11168
+ le(() => {
11155
11169
  (s === "headers" || s === "payload") && i(s);
11156
11170
  }, [s]);
11157
11171
  const { deref: a } = Qe(), c = Co(), u = ge(
@@ -11238,7 +11252,7 @@ function yc({
11238
11252
  }
11239
11253
  function Om({ messageKey: e, message: t, first: n, isSelected: r, focusSection: s }) {
11240
11254
  const [o, i] = Y(!1);
11241
- return ce(() => {
11255
+ return le(() => {
11242
11256
  r && i(!0);
11243
11257
  }, [r]), /* @__PURE__ */ b(
11244
11258
  "tbody",
@@ -11355,7 +11369,7 @@ function Yn({
11355
11369
  className: o = ""
11356
11370
  }) {
11357
11371
  const [i, a] = Y(n), c = fn();
11358
- return ce(() => {
11372
+ return le(() => {
11359
11373
  r && a(!0);
11360
11374
  }, [r]), /* @__PURE__ */ b("div", { className: `rounded-lg border border-border overflow-hidden ${o}`, children: [
11361
11375
  /* @__PURE__ */ b(
@@ -11426,7 +11440,7 @@ function Yo({ securities: e }) {
11426
11440
  const t = ge(() => Mm(e), [e]), n = t.length > 1, [r, s] = Y(
11427
11441
  n ? null : ((u = t[0]) == null ? void 0 : u.id) ?? null
11428
11442
  );
11429
- ce(() => {
11443
+ le(() => {
11430
11444
  if (t.length === 0) {
11431
11445
  s(null);
11432
11446
  return;
@@ -11752,7 +11766,7 @@ function Tc({ servers: e, selectedServer: t, onSelectServer: n, focusSection: r
11752
11766
  ) });
11753
11767
  }
11754
11768
  const _c = Lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions: o, children: i, width: a = "w-[50rem]" }, c) {
11755
- ce(() => {
11769
+ le(() => {
11756
11770
  const $ = (E) => {
11757
11771
  E.key === "Escape" && r();
11758
11772
  };
@@ -11764,7 +11778,7 @@ const _c = Lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions
11764
11778
  sidePanelContainment: m,
11765
11779
  sidePanelTopOffset: h = 0
11766
11780
  } = Qe(), y = m === "component";
11767
- ce(() => {
11781
+ le(() => {
11768
11782
  if (!t || !f) return;
11769
11783
  const $ = y ? od(f, p) : bo(f);
11770
11784
  if ($)
@@ -11773,13 +11787,13 @@ const _c = Lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions
11773
11787
  const k = yo(p, y), S = (() => {
11774
11788
  if (!y) return { position: "fixed", inset: 0 };
11775
11789
  if (!k) return { position: "fixed", inset: 0 };
11776
- const $ = Math.max(h, k.top), E = Math.max(0, k.left), M = Math.min(window.innerHeight, k.bottom), j = Math.min(window.innerWidth, k.right);
11790
+ const $ = Math.max(h, k.top), E = Math.max(0, k.left), I = Math.min(window.innerHeight, k.bottom), F = Math.min(window.innerWidth, k.right);
11777
11791
  return {
11778
11792
  position: "fixed",
11779
11793
  top: $,
11780
11794
  left: E,
11781
- width: Math.max(0, j - E),
11782
- height: Math.max(0, M - $)
11795
+ width: Math.max(0, F - E),
11796
+ height: Math.max(0, I - $)
11783
11797
  };
11784
11798
  })();
11785
11799
  return f ? Fr(
@@ -12139,20 +12153,20 @@ function ig(e, t, n) {
12139
12153
  }
12140
12154
  }
12141
12155
  function ag(e, t, n) {
12142
- var Q, T, W, le, ae, A, _, H, V, ue, te, Ie, q, Ne;
12156
+ var Q, T, W, ce, ae, A, _, H, V, ue, te, Ie, q, Ne;
12143
12157
  const { operation: r, channel: s } = Oc(e, t), { servers: o, matchedServer: i, eligible: a } = Ic(e, s, r, n);
12144
12158
  if (!a) throw new Vm(t, n);
12145
12159
  const c = [];
12146
12160
  let u = {}, d = {}, f;
12147
12161
  if (n === "ws") {
12148
- const D = _a((T = (Q = s.bindings) == null ? void 0 : Q.ws) == null ? void 0 : T.query), X = _a((le = (W = s.bindings) == null ? void 0 : W.ws) == null ? void 0 : le.headers);
12149
- u = D.values, d = X.values, c.push(...D.placeholders.map((I) => `query param "${I}"`)), c.push(...X.placeholders.map((I) => `header "${I}"`));
12162
+ const D = _a((T = (Q = s.bindings) == null ? void 0 : Q.ws) == null ? void 0 : T.query), X = _a((ce = (W = s.bindings) == null ? void 0 : W.ws) == null ? void 0 : ce.headers);
12163
+ u = D.values, d = X.values, c.push(...D.placeholders.map((R) => `query param "${R}"`)), c.push(...X.placeholders.map((R) => `header "${R}"`));
12150
12164
  } else n === "kafka" && (f = (A = (ae = s.bindings) == null ? void 0 : ae.kafka) == null ? void 0 : A.topic);
12151
12165
  const p = s.address ?? "";
12152
12166
  let m = p;
12153
12167
  for (const [D, X] of Object.entries(s.parameters ?? {})) {
12154
- const I = vr(X, D);
12155
- m = m.replace(`{${D}}`, I.value), I.isPlaceholder && c.push(`channel parameter "${D}"`);
12168
+ const R = vr(X, D);
12169
+ m = m.replace(`{${D}}`, R.value), R.isPlaceholder && c.push(`channel parameter "${D}"`);
12156
12170
  }
12157
12171
  n === "kafka" && f && (m = f);
12158
12172
  const h = (_ = i ?? o[0]) == null ? void 0 : _.server, y = h ? `${h.protocol}://${h.host}${h.pathname ?? ""}` : "", k = (h == null ? void 0 : h.host) ?? "", S = Ca(e, h == null ? void 0 : h.security), $ = o.map(({ name: D, server: X }) => ({
@@ -12163,26 +12177,26 @@ function ag(e, t, n) {
12163
12177
  url: `${X.protocol}://${X.host}${X.pathname ?? ""}`,
12164
12178
  description: X.description,
12165
12179
  security: Ca(e, X.security)
12166
- })), E = r.messages !== void 0 ? Tt(e, r.messages[0]) : Tt(e, Object.values(s.messages ?? {})[0]), M = (H = E == null ? void 0 : E.examples) == null ? void 0 : H[0];
12167
- let j, C;
12168
- if (M)
12169
- j = M.name, C = M.payload;
12180
+ })), E = r.messages !== void 0 ? Tt(e, r.messages[0]) : Tt(e, Object.values(s.messages ?? {})[0]), I = (H = E == null ? void 0 : E.examples) == null ? void 0 : H[0];
12181
+ let F, C;
12182
+ if (I)
12183
+ F = I.name, C = I.payload;
12170
12184
  else if ((E == null ? void 0 : E.payload) !== void 0) {
12171
12185
  if (C = ro(e, E.payload), C === void 0) throw new Na(t);
12172
12186
  c.push("message payload (no explicit example — generated from its schema)");
12173
12187
  } else throw new Na(t);
12174
12188
  const N = (E == null ? void 0 : E.payload) !== void 0 ? On(e, E.payload) : void 0, v = (E == null ? void 0 : E.headers) !== void 0 ? On(e, E.headers) : void 0, x = r.action === "send" ? "send" : "receive";
12175
- let F;
12189
+ let j;
12176
12190
  if (n === "kafka") {
12177
12191
  const D = (ue = (V = E == null ? void 0 : E.bindings) == null ? void 0 : V.kafka) == null ? void 0 : ue.key, X = D ? vr(D, "kafka message key") : void 0;
12178
12192
  X != null && X.isPlaceholder && c.push("kafka message key");
12179
- const I = vr((Ie = (te = r.bindings) == null ? void 0 : te.kafka) == null ? void 0 : Ie.clientId, "kafka clientId");
12180
- I.isPlaceholder && c.push("kafka clientId");
12193
+ const R = vr((Ie = (te = r.bindings) == null ? void 0 : te.kafka) == null ? void 0 : Ie.clientId, "kafka clientId");
12194
+ R.isPlaceholder && c.push("kafka clientId");
12181
12195
  let ee;
12182
- x === "receive" && (ee = vr((Ne = (q = r.bindings) == null ? void 0 : q.kafka) == null ? void 0 : Ne.groupId, "kafka consumer group id"), ee.isPlaceholder && c.push("kafka consumer group id")), F = {
12196
+ x === "receive" && (ee = vr((Ne = (q = r.bindings) == null ? void 0 : q.kafka) == null ? void 0 : Ne.groupId, "kafka consumer group id"), ee.isPlaceholder && c.push("kafka consumer group id")), j = {
12183
12197
  key: X == null ? void 0 : X.value,
12184
12198
  groupId: ee == null ? void 0 : ee.value,
12185
- clientId: I.value
12199
+ clientId: R.value
12186
12200
  };
12187
12201
  }
12188
12202
  return {
@@ -12199,7 +12213,7 @@ function ag(e, t, n) {
12199
12213
  operationSummary: r.summary,
12200
12214
  operationDescription: r.description,
12201
12215
  message: {
12202
- name: j,
12216
+ name: F,
12203
12217
  payload: C,
12204
12218
  title: (E == null ? void 0 : E.title) ?? (E == null ? void 0 : E.name),
12205
12219
  summary: E == null ? void 0 : E.summary,
@@ -12211,7 +12225,7 @@ function ag(e, t, n) {
12211
12225
  placeholders: c,
12212
12226
  info: e.info,
12213
12227
  security: S,
12214
- ...F ? { kafka: F } : {}
12228
+ ...j ? { kafka: j } : {}
12215
12229
  };
12216
12230
  }
12217
12231
  function lg(e) {
@@ -12917,7 +12931,7 @@ function Rg({ operationId: e }) {
12917
12931
  () => _g(t, e, s),
12918
12932
  [t, e, s]
12919
12933
  ), [i, a] = Y(null), c = (i == null ? void 0 : i.document) === t && i.operationId === e ? i.selection : o, [u, d] = c.split(":"), f = $g(u), [, p] = Y(() => lo(f));
12920
- ce(() => {
12934
+ le(() => {
12921
12935
  p(lo(f));
12922
12936
  let h = !1;
12923
12937
  return Ig(f).then(() => {
@@ -13180,7 +13194,7 @@ function Xr({ schemas: e, selectedKey: t, focusTarget: n, layout: r }) {
13180
13194
  }
13181
13195
  const Lg = (e) => e === "operations" || e === "messages" || e === "schemas";
13182
13196
  function Pg({ asyncapi: e, config: t }) {
13183
- var T, W, le, ae;
13197
+ var T, W, ce, ae;
13184
13198
  const n = t.show ?? {}, [r, s] = Y(!1), [o, i] = Y(!1), a = n.search !== !1 || n.copyMarkdown !== !1, c = n.info !== !1 && ec(e.info), u = a || c, d = [
13185
13199
  ...n.operations !== !1 ? [{ id: "operations", name: "Operations", icon: Ur }] : [],
13186
13200
  ...n.messages !== !1 ? [{ id: "messages", name: "Messages", icon: Xa }] : [],
@@ -13192,8 +13206,8 @@ function Pg({ asyncapi: e, config: t }) {
13192
13206
  selected: S,
13193
13207
  setSelectedKey: $,
13194
13208
  selectedNavItem: E,
13195
- handleSearchSelect: M,
13196
- handleNavItemSelect: j,
13209
+ handleSearchSelect: I,
13210
+ handleNavItemSelect: F,
13197
13211
  handleNavServerSelect: C,
13198
13212
  handleContentTabChange: N,
13199
13213
  focusSection: v,
@@ -13209,7 +13223,7 @@ function Pg({ asyncapi: e, config: t }) {
13209
13223
  { id: "servers", visible: n.servers !== !1 }
13210
13224
  ],
13211
13225
  searchQuery: f
13212
- }), F = e.servers ? Object.keys(e.servers) : [], Q = h === "operations" ? /* @__PURE__ */ l(
13226
+ }), j = e.servers ? Object.keys(e.servers) : [], Q = h === "operations" ? /* @__PURE__ */ l(
13213
13227
  Lc,
13214
13228
  {
13215
13229
  operations: e.operations ?? {},
@@ -13245,7 +13259,7 @@ function Pg({ asyncapi: e, config: t }) {
13245
13259
  query: f,
13246
13260
  onQueryChange: p,
13247
13261
  results: m,
13248
- onSelectResult: M,
13262
+ onSelectResult: I,
13249
13263
  onOpenChange: s
13250
13264
  }
13251
13265
  ),
@@ -13260,7 +13274,7 @@ function Pg({ asyncapi: e, config: t }) {
13260
13274
  }
13261
13275
  ),
13262
13276
  n.info !== !1 && /* @__PURE__ */ l("div", { id: "info-panel", children: /* @__PURE__ */ l(nc, { ...e.info, showLogo: !1 }) }),
13263
- n.servers !== !1 && F.length > 0 && /* @__PURE__ */ l("div", { id: `server-${S.servers ?? F[0]}`, children: /* @__PURE__ */ l(
13277
+ n.servers !== !1 && j.length > 0 && /* @__PURE__ */ l("div", { id: `server-${S.servers ?? j[0]}`, children: /* @__PURE__ */ l(
13264
13278
  Tc,
13265
13279
  {
13266
13280
  servers: e.servers,
@@ -13273,14 +13287,14 @@ function Pg({ asyncapi: e, config: t }) {
13273
13287
  yd,
13274
13288
  {
13275
13289
  operations: n.operations !== !1 ? e.operations : void 0,
13276
- messages: n.messages !== !1 ? (le = e.components) == null ? void 0 : le.messages : void 0,
13290
+ messages: n.messages !== !1 ? (ce = e.components) == null ? void 0 : ce.messages : void 0,
13277
13291
  schemas: n.schemas !== !1 ? (ae = e.components) == null ? void 0 : ae.schemas : void 0,
13278
13292
  servers: n.servers !== !1 ? e.servers : void 0,
13279
13293
  hasInfo: n.info !== !1,
13280
13294
  sidebarConfig: t.sidebar,
13281
13295
  activeTab: k,
13282
13296
  onTabChange: y,
13283
- onItemSelect: j,
13297
+ onItemSelect: F,
13284
13298
  onSelectServer: C,
13285
13299
  selectedItem: E
13286
13300
  }
@@ -13297,7 +13311,7 @@ const Pc = (e) => (
13297
13311
  /* @__PURE__ */ l(Da, { fallback: e.errorFallback, onError: e.onError, children: /* @__PURE__ */ l(Dg, { ...e }) })
13298
13312
  ), Dg = (e) => {
13299
13313
  const t = e.asyncapi, n = ge(() => zn(t), [t]), r = e.kind;
13300
- ce(() => {
13314
+ le(() => {
13301
13315
  r === "resolved" && n !== t && mo(t) && console.warn(
13302
13316
  '[apiuikit] <AsyncAPI kind="resolved"> received a document that still contains $ref nodes. They were resolved anyway; fix the upstream resolution or drop the kind prop.'
13303
13317
  );
@@ -13588,7 +13602,7 @@ function Vg({
13588
13602
  ] });
13589
13603
  }
13590
13604
  const Jg = uo(
13591
- () => import("./CodeSamples-Xhkp4fLH.js").then(({ CodeSamples: e }) => ({ default: e }))
13605
+ () => import("./CodeSamples-C5u3VGKi.js").then(({ CodeSamples: e }) => ({ default: e }))
13592
13606
  );
13593
13607
  function Yg(e) {
13594
13608
  return e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
@@ -13633,8 +13647,8 @@ function Zg({
13633
13647
  const r = Object.keys(e), [s, o] = Y(r[0]), i = e[s], a = Object.keys((i == null ? void 0 : i.content) ?? {}), [c, u] = Y(a[0]), d = c ? (C = i == null ? void 0 : i.content) == null ? void 0 : C[c] : void 0, f = (i == null ? void 0 : i.headers) ?? {}, p = (i == null ? void 0 : i.links) ?? {}, [m, h] = Y("body"), y = a.length > 0 && !!d, k = Object.keys(f).length > 0, S = Object.keys(p).length > 0, $ = [
13634
13648
  ...y ? [{ id: "body", name: "Body" }] : [],
13635
13649
  ...k ? [{ id: "headers", name: "Headers" }] : []
13636
- ], E = $.length > 1, M = $.some((v) => v.id === m) ? m : (N = $[0]) == null ? void 0 : N.id, j = $.length > 0;
13637
- return ce(() => {
13650
+ ], E = $.length > 1, I = $.some((v) => v.id === m) ? m : (N = $[0]) == null ? void 0 : N.id, F = $.length > 0;
13651
+ return le(() => {
13638
13652
  u(Object.keys((i == null ? void 0 : i.content) ?? {})[0]), h("body");
13639
13653
  }, [s]), /* @__PURE__ */ b("div", { children: [
13640
13654
  /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5 flex-wrap mb-3", role: "tablist", "aria-label": "Response status", children: r.map((v) => /* @__PURE__ */ l(
@@ -13649,16 +13663,16 @@ function Zg({
13649
13663
  v
13650
13664
  )) }),
13651
13665
  (i == null ? void 0 : i.description) && /* @__PURE__ */ l("p", { className: "text-sm text-foreground-secondary mb-3", children: i.description }),
13652
- j ? /* @__PURE__ */ b(oe, { children: [
13666
+ F ? /* @__PURE__ */ b(oe, { children: [
13653
13667
  E && /* @__PURE__ */ l(
13654
13668
  hn,
13655
13669
  {
13656
13670
  tabs: $,
13657
- current: M,
13671
+ current: I,
13658
13672
  onChange: (v) => h(v)
13659
13673
  }
13660
13674
  ),
13661
- /* @__PURE__ */ l("div", { className: E ? "mt-4" : void 0, children: M === "headers" ? /* @__PURE__ */ l(
13675
+ /* @__PURE__ */ l("div", { className: E ? "mt-4" : void 0, children: I === "headers" ? /* @__PURE__ */ l(
13662
13676
  un,
13663
13677
  {
13664
13678
  schema: qg(f),
@@ -13872,20 +13886,20 @@ function Hc({
13872
13886
  isOperationKnown: c,
13873
13887
  depth: u = 0
13874
13888
  }) {
13875
- var $, E, M;
13876
- const d = (n.parameters ?? []).filter((j) => j.in !== "query" && j.in !== "path"), f = n.security ?? o ?? [], p = n.responses ?? {}, m = (($ = n.requestBody) == null ? void 0 : $.content) ?? {}, h = n.operationId ? Yg(n.operationId) : `${e.toUpperCase()} ${t}`, y = /* @__PURE__ */ new Map();
13877
- for (const j of f)
13878
- for (const [C, N] of Object.entries(j)) {
13889
+ var $, E, I;
13890
+ const d = (n.parameters ?? []).filter((F) => F.in !== "query" && F.in !== "path"), f = n.security ?? o ?? [], p = n.responses ?? {}, m = (($ = n.requestBody) == null ? void 0 : $.content) ?? {}, h = n.operationId ? Yg(n.operationId) : `${e.toUpperCase()} ${t}`, y = /* @__PURE__ */ new Map();
13891
+ for (const F of f)
13892
+ for (const [C, N] of Object.entries(F)) {
13879
13893
  if (N.length === 0) continue;
13880
13894
  const v = y.get(C) ?? [];
13881
13895
  y.set(C, Array.from(/* @__PURE__ */ new Set([...v, ...N])));
13882
13896
  }
13883
- const k = Array.from(new Set(f.flatMap((j) => Object.keys(j)))).map((j) => {
13884
- const C = i == null ? void 0 : i[j];
13897
+ const k = Array.from(new Set(f.flatMap((F) => Object.keys(F)))).map((F) => {
13898
+ const C = i == null ? void 0 : i[F];
13885
13899
  if (!C) return null;
13886
- const N = y.get(j);
13900
+ const N = y.get(F);
13887
13901
  return N ? { ...C, requiredScopes: N } : C;
13888
- }).filter((j) => !!j), S = u === 0;
13902
+ }).filter((F) => !!F), S = u === 0;
13889
13903
  return /* @__PURE__ */ b(
13890
13904
  "div",
13891
13905
  {
@@ -13942,7 +13956,7 @@ function Hc({
13942
13956
  label: h,
13943
13957
  parameters: d,
13944
13958
  requestBodyContent: m,
13945
- requestBodyDescription: (M = n.requestBody) == null ? void 0 : M.description,
13959
+ requestBodyDescription: (I = n.requestBody) == null ? void 0 : I.description,
13946
13960
  responses: p,
13947
13961
  callbacks: n.callbacks,
13948
13962
  id: r,
@@ -13987,15 +14001,15 @@ function jr({
13987
14001
  }) {
13988
14002
  var C;
13989
14003
  const c = (N) => s == null ? void 0 : s(N), u = ge(() => In(e), [e]), d = ge(() => {
13990
- var v, x, F;
14004
+ var v, x, j;
13991
14005
  const N = /* @__PURE__ */ new Map();
13992
14006
  for (const Q of u) {
13993
- const T = ((F = (x = (v = e[Q.path]) == null ? void 0 : v[Q.method]) == null ? void 0 : x.tags) == null ? void 0 : F[0]) || "Other", W = N.get(T) ?? [];
14007
+ const T = ((j = (x = (v = e[Q.path]) == null ? void 0 : v[Q.method]) == null ? void 0 : x.tags) == null ? void 0 : j[0]) || "Other", W = N.get(T) ?? [];
13994
14008
  W.push(Q), N.set(T, W);
13995
14009
  }
13996
14010
  return Array.from(N, ([Q, T]) => ({ label: Q, items: T }));
13997
14011
  }, [u, e]), [f, p] = Y(() => /* @__PURE__ */ new Set()), m = f.size === 0;
13998
- ce(() => {
14012
+ le(() => {
13999
14013
  if (!r) return;
14000
14014
  const N = d.find(({ items: v }) => v.some(({ key: x }) => x === r));
14001
14015
  N && p((v) => {
@@ -14007,15 +14021,15 @@ function jr({
14007
14021
  const h = ge(() => {
14008
14022
  var v, x;
14009
14023
  const N = /* @__PURE__ */ new Map();
14010
- for (const { key: F, method: Q, path: T } of u) {
14024
+ for (const { key: j, method: Q, path: T } of u) {
14011
14025
  const W = (x = (v = e[T]) == null ? void 0 : v[Q]) == null ? void 0 : x.operationId;
14012
- W && N.set(W, F);
14026
+ W && N.set(W, j);
14013
14027
  }
14014
14028
  return N;
14015
14029
  }, [u, e]);
14016
14030
  if (u.length === 0)
14017
14031
  return null;
14018
- const y = r ? u.find((N) => N.key === r) : null, k = y ? (C = e[y.path]) == null ? void 0 : C[y.method] : null, S = ({ key: N, method: v, path: x }, F) => {
14032
+ const y = r ? u.find((N) => N.key === r) : null, k = y ? (C = e[y.path]) == null ? void 0 : C[y.method] : null, S = ({ key: N, method: v, path: x }, j) => {
14019
14033
  var W;
14020
14034
  const Q = r === N, T = Bi(e[x], (W = e[x]) == null ? void 0 : W[v]);
14021
14035
  return /* @__PURE__ */ b(
@@ -14024,16 +14038,16 @@ function jr({
14024
14038
  id: `${i}-${N}`,
14025
14039
  onClick: () => c(N),
14026
14040
  role: "button",
14027
- tabIndex: F ? 0 : -1,
14028
- "aria-hidden": !F,
14041
+ tabIndex: j ? 0 : -1,
14042
+ "aria-hidden": !j,
14029
14043
  "aria-label": `${v.toUpperCase()} ${x}`,
14030
14044
  "aria-current": Q ? "true" : void 0,
14031
- onKeyDown: (le) => {
14032
- le.key !== "Enter" && le.key !== " " || (le.preventDefault(), c(N));
14045
+ onKeyDown: (ce) => {
14046
+ ce.key !== "Enter" && ce.key !== " " || (ce.preventDefault(), c(N));
14033
14047
  },
14034
- className: `group transition-[opacity,visibility] duration-300 ease-in-out ${F ? `cursor-pointer opacity-100 visible ${Q ? "bg-neutral-50" : ""}` : "pointer-events-none invisible opacity-0"}`,
14048
+ className: `group transition-[opacity,visibility] duration-300 ease-in-out ${j ? `cursor-pointer opacity-100 visible ${Q ? "bg-neutral-50" : ""}` : "pointer-events-none invisible opacity-0"}`,
14035
14049
  children: [
14036
- /* @__PURE__ */ l("td", { className: `px-6 max-w-0 w-full group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${F ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${F ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(
14050
+ /* @__PURE__ */ l("td", { className: `px-6 max-w-0 w-full group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${j ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${j ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(
14037
14051
  Lt,
14038
14052
  {
14039
14053
  address: x,
@@ -14042,28 +14056,28 @@ function jr({
14042
14056
  className: "text-xs"
14043
14057
  }
14044
14058
  ) }) }),
14045
- /* @__PURE__ */ l("td", { className: `px-6 w-28 group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${F ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${F ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(Pt, { method: v, className: "w-20" }) }) })
14059
+ /* @__PURE__ */ l("td", { className: `px-6 w-28 group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${j ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${j ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(Pt, { method: v, className: "w-20" }) }) })
14046
14060
  ]
14047
14061
  },
14048
14062
  N
14049
14063
  );
14050
14064
  }, $ = d.map(({ label: N, items: v }, x) => {
14051
- const F = !f.has(N), Q = `${i}-group-${x}-${N.toLowerCase().replace(/[^a-z0-9]+/g, "-")}`;
14065
+ const j = !f.has(N), Q = `${i}-group-${x}-${N.toLowerCase().replace(/[^a-z0-9]+/g, "-")}`;
14052
14066
  return /* @__PURE__ */ b(Ma, { children: [
14053
14067
  /* @__PURE__ */ l("tbody", { className: "border-y border-border first:border-t-0", children: /* @__PURE__ */ l("tr", { className: "bg-neutral-50/70", children: /* @__PURE__ */ l("th", { colSpan: 2, scope: "rowgroup", className: "p-0 text-left", children: /* @__PURE__ */ b(
14054
14068
  "button",
14055
14069
  {
14056
14070
  type: "button",
14057
14071
  "aria-label": `${N} endpoints (${v.length})`,
14058
- "aria-expanded": F,
14072
+ "aria-expanded": j,
14059
14073
  "aria-controls": Q,
14060
14074
  onClick: () => p((T) => {
14061
14075
  const W = new Set(T);
14062
- return F ? W.add(N) : W.delete(N), W;
14076
+ return j ? W.add(N) : W.delete(N), W;
14063
14077
  }),
14064
14078
  className: "group/header flex w-full items-center gap-3 px-6 py-3.5 text-left hover:bg-neutral-100/80 transition-colors",
14065
14079
  children: [
14066
- /* @__PURE__ */ l("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-surface text-foreground-muted shadow-sm transition-colors group-hover/header:border-neutral-300 group-hover/header:text-foreground-secondary", children: F ? /* @__PURE__ */ l(pn, { className: "h-2.5 w-2.5" }) : /* @__PURE__ */ l(Ac, { className: "h-2.5 w-2.5" }) }),
14080
+ /* @__PURE__ */ l("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-surface text-foreground-muted shadow-sm transition-colors group-hover/header:border-neutral-300 group-hover/header:text-foreground-secondary", children: j ? /* @__PURE__ */ l(pn, { className: "h-2.5 w-2.5" }) : /* @__PURE__ */ l(Ac, { className: "h-2.5 w-2.5" }) }),
14067
14081
  /* @__PURE__ */ l("span", { className: "min-w-0 flex-1 truncate text-sm font-semibold tracking-wide text-foreground-secondary", children: N }),
14068
14082
  /* @__PURE__ */ l("span", { className: "inline-flex min-w-6 items-center justify-center rounded-full bg-neutral-200/70 px-2 py-0.5 text-xs font-medium tabular-nums text-foreground-muted", children: v.length })
14069
14083
  ]
@@ -14073,13 +14087,13 @@ function jr({
14073
14087
  "tbody",
14074
14088
  {
14075
14089
  id: Q,
14076
- "aria-hidden": !F,
14077
- className: `bg-surface ${F ? "divide-y divide-border" : ""}`,
14078
- children: v.map((T) => S(T, F))
14090
+ "aria-hidden": !j,
14091
+ className: `bg-surface ${j ? "divide-y divide-border" : ""}`,
14092
+ children: v.map((T) => S(T, j))
14079
14093
  }
14080
14094
  )
14081
14095
  ] }, N);
14082
- }), E = Bi(y ? e[y.path] : void 0, k), M = y ? /* @__PURE__ */ b("div", { className: "flex items-center gap-2 min-w-0", children: [
14096
+ }), E = Bi(y ? e[y.path] : void 0, k), I = y ? /* @__PURE__ */ b("div", { className: "flex items-center gap-2 min-w-0", children: [
14083
14097
  /* @__PURE__ */ l(Pt, { method: y.method }),
14084
14098
  /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ l(
14085
14099
  Lt,
@@ -14125,7 +14139,7 @@ function jr({
14125
14139
  isOpen: !!y,
14126
14140
  side: "right",
14127
14141
  onClose: () => c(null),
14128
- title: M,
14142
+ title: I,
14129
14143
  children: y && k && /* @__PURE__ */ l(
14130
14144
  Hc,
14131
14145
  {
@@ -14149,7 +14163,7 @@ function jr({
14149
14163
  }
14150
14164
  const i0 = (e) => e === "endpoints" || e === "webhooks" || e === "schemas";
14151
14165
  function a0({ openapi: e, config: t }) {
14152
- var W, le, ae, A;
14166
+ var W, ce, ae, A;
14153
14167
  const n = t.show ?? {}, [r, s] = Y(!1), [o, i] = Y(!1), a = n.search !== !1 || n.copyMarkdown !== !1, c = n.info !== !1 && ec(e.info), u = a || c, d = e.webhooks ?? {}, f = Object.keys(d).length > 0, p = [
14154
14168
  ...n.endpoints !== !1 ? [{ id: "endpoints", name: "Endpoints", icon: Ur }] : [],
14155
14169
  ...f && n.webhooks !== !1 ? [{ id: "webhooks", name: "Webhooks", icon: ko }] : [],
@@ -14159,13 +14173,13 @@ function a0({ openapi: e, config: t }) {
14159
14173
  focusTab: S,
14160
14174
  navActiveSection: $,
14161
14175
  selected: E,
14162
- setSelectedKey: M,
14163
- selectedNavItem: j,
14176
+ setSelectedKey: I,
14177
+ selectedNavItem: F,
14164
14178
  handleSearchSelect: C,
14165
14179
  handleNavItemSelect: N,
14166
14180
  handleNavServerSelect: v,
14167
14181
  handleContentTabChange: x,
14168
- schemaFocusTarget: F
14182
+ schemaFocusTarget: j
14169
14183
  } = dl({
14170
14184
  tabs: p,
14171
14185
  defaultTab: "endpoints",
@@ -14184,16 +14198,16 @@ function a0({ openapi: e, config: t }) {
14184
14198
  security: e.security,
14185
14199
  securitySchemes: (W = e.components) == null ? void 0 : W.securitySchemes,
14186
14200
  selectedKey: E.endpoints,
14187
- onSelectKey: (_) => M("endpoints", _)
14201
+ onSelectKey: (_) => I("endpoints", _)
14188
14202
  }
14189
14203
  ) : k === "webhooks" ? /* @__PURE__ */ l(
14190
14204
  jr,
14191
14205
  {
14192
14206
  paths: d,
14193
14207
  security: e.security,
14194
- securitySchemes: (le = e.components) == null ? void 0 : le.securitySchemes,
14208
+ securitySchemes: (ce = e.components) == null ? void 0 : ce.securitySchemes,
14195
14209
  selectedKey: E.webhooks,
14196
- onSelectKey: (_) => M("webhooks", _),
14210
+ onSelectKey: (_) => I("webhooks", _),
14197
14211
  columnLabel: "Webhook",
14198
14212
  idPrefix: "webhook"
14199
14213
  }
@@ -14202,7 +14216,7 @@ function a0({ openapi: e, config: t }) {
14202
14216
  {
14203
14217
  schemas: ((ae = e.components) == null ? void 0 : ae.schemas) ?? {},
14204
14218
  selectedKey: E.schemas,
14205
- focusTarget: F
14219
+ focusTarget: j
14206
14220
  }
14207
14221
  ) : null;
14208
14222
  return /* @__PURE__ */ l(Xo, { document: e, config: t, children: /* @__PURE__ */ b("div", { className: `px-4 ${u && p.length > 0 ? "pt-14" : ""}`, children: [
@@ -14246,7 +14260,7 @@ function a0({ openapi: e, config: t }) {
14246
14260
  {
14247
14261
  servers: e.servers,
14248
14262
  selectedServer: E.servers,
14249
- onSelectServer: (_) => M("servers", _)
14263
+ onSelectServer: (_) => I("servers", _)
14250
14264
  }
14251
14265
  ) }),
14252
14266
  n.sidebar !== !1 && /* @__PURE__ */ l(
@@ -14261,7 +14275,7 @@ function a0({ openapi: e, config: t }) {
14261
14275
  onTabChange: S,
14262
14276
  onItemSelect: N,
14263
14277
  onSelectServer: v,
14264
- selectedItem: j
14278
+ selectedItem: F
14265
14279
  }
14266
14280
  ),
14267
14281
  /* @__PURE__ */ l(Wa, { tabs: p, current: k, onChange: x }),
@@ -14276,7 +14290,7 @@ const Wc = (e) => (
14276
14290
  /* @__PURE__ */ l(Da, { fallback: e.errorFallback, onError: e.onError, children: /* @__PURE__ */ l(l0, { ...e }) })
14277
14291
  ), l0 = (e) => {
14278
14292
  const t = e.openapi, n = ge(() => zn(t), [t]), r = e.kind;
14279
- ce(() => {
14293
+ le(() => {
14280
14294
  r === "resolved" && n !== t && mo(t) && console.warn(
14281
14295
  '[apiuikit] <OpenAPI kind="resolved"> received a document that still contains $ref nodes. They were resolved anyway; fix the upstream resolution or drop the kind prop.'
14282
14296
  );
@@ -14438,7 +14452,7 @@ function y0(e) {
14438
14452
  }
14439
14453
  async function x0() {
14440
14454
  try {
14441
- const e = await import("./index-B5L7lFVZ.js").then((n) => n.i), t = e.default ?? e;
14455
+ const e = await import("./index-DKGx9erP.js").then((n) => n.i), t = e.default ?? e;
14442
14456
  if (typeof t != "function")
14443
14457
  throw new Error("Unexpected export shape from '@asyncapi/parser/browser'.");
14444
14458
  return t;
@@ -14452,7 +14466,7 @@ async function Kc(e) {
14452
14466
  try {
14453
14467
  const t = await x0(), n = new t();
14454
14468
  g0(n);
14455
- const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-D77sHtPj.js");
14469
+ const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-5O-3561f.js");
14456
14470
  r(n);
14457
14471
  const { document: s, diagnostics: o } = await n.parse(e);
14458
14472
  return {
@@ -14484,7 +14498,7 @@ function w0(e) {
14484
14498
  }
14485
14499
  function U0({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s }) {
14486
14500
  const [o, i] = Y(null), a = Be(n);
14487
- return a.current = n, ce(() => {
14501
+ return a.current = n, le(() => {
14488
14502
  let c = !0;
14489
14503
  return Kc(e).then(({ document: u, diagnostics: d }) => {
14490
14504
  var f;
@@ -14505,7 +14519,7 @@ function U0({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s
14505
14519
  }
14506
14520
  async function k0() {
14507
14521
  try {
14508
- return await import("./index-DRKrn0hJ.js");
14522
+ return await import("./index-C65x4n-2.js");
14509
14523
  } catch (e) {
14510
14524
  throw console.error("[apiuikit] Failed to load '@scalar/openapi-parser':", e), new Error(
14511
14525
  "[apiuikit] The parsed entry requires '@scalar/openapi-parser'. Install it (`npm i @scalar/openapi-parser`), or use the `OpenAPI` component with a pre-resolved document instead."
@@ -14543,7 +14557,7 @@ async function H0(e, t) {
14543
14557
  }
14544
14558
  function W0({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s }) {
14545
14559
  const [o, i] = Y(null), a = Be(n);
14546
- return a.current = n, ce(() => {
14560
+ return a.current = n, le(() => {
14547
14561
  let c = !0;
14548
14562
  return Vc(e).then(({ document: u, diagnostics: d }) => {
14549
14563
  var f;
@@ -14572,7 +14586,7 @@ function Jc(e, t, n) {
14572
14586
  () => s ? zn(s) : null,
14573
14587
  [s]
14574
14588
  ), u = !!a && a.specType !== n;
14575
- if (ce(() => {
14589
+ if (le(() => {
14576
14590
  u && console.warn(
14577
14591
  `[apiuikit] A ${t} section is rendered inside a ${a.specType} document provider, which cannot supply the document it needs. ` + (c ? "Using the section's own `document` prop instead." : `Wrap it in <${t}Provider> or pass it a \`document\` prop.`)
14578
14592
  );
@@ -14733,18 +14747,18 @@ function nb({ layout: e, ...t }) {
14733
14747
  }
14734
14748
  export {
14735
14749
  Pc as A,
14736
- jn as B,
14750
+ Jf as B,
14737
14751
  Ko as C,
14738
- F0 as D,
14752
+ bl as D,
14739
14753
  Da as E,
14740
- j0 as F,
14741
- B0 as G,
14742
- Sd as H,
14743
- X0 as I,
14744
- xl as J,
14745
- z0 as K,
14746
- H0 as L,
14747
- J0 as M,
14754
+ jn as F,
14755
+ F0 as G,
14756
+ j0 as H,
14757
+ B0 as I,
14758
+ Sd as J,
14759
+ xl as K,
14760
+ z0 as L,
14761
+ H0 as M,
14748
14762
  f0 as N,
14749
14763
  Wc as O,
14750
14764
  Qe as P,
@@ -14755,25 +14769,25 @@ export {
14755
14769
  P0 as c,
14756
14770
  wl as d,
14757
14771
  Ig as e,
14758
- G0 as f,
14772
+ X0 as f,
14759
14773
  vl as g,
14760
14774
  $g as h,
14761
14775
  Gr as i,
14762
- U0 as j,
14763
- q0 as k,
14764
- nb as l,
14765
- Z0 as m,
14766
- W0 as n,
14776
+ J0 as j,
14777
+ V0 as k,
14778
+ G0 as l,
14779
+ U0 as m,
14780
+ Y0 as n,
14767
14781
  Xf as o,
14768
- tb as p,
14769
- Q0 as q,
14782
+ K0 as p,
14783
+ q0 as q,
14770
14784
  p0 as r,
14771
- eb as s,
14772
- V0 as t,
14785
+ nb as s,
14786
+ Z0 as t,
14773
14787
  Un as u,
14774
- bc as v,
14775
- Y0 as w,
14776
- K0 as x,
14777
- Jf as y,
14778
- bl as z
14788
+ W0 as v,
14789
+ tb as w,
14790
+ Q0 as x,
14791
+ eb as y,
14792
+ bc as z
14779
14793
  };