apiuikit 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ const fo = [
20
20
  ], po = (e, t) => {
21
21
  const n = t.length > 0 ? t : fo, r = (e % n.length + n.length) % n.length;
22
22
  return n[r];
23
- }, Bn = {
23
+ }, jn = {
24
24
  show: {
25
25
  sidebar: !0,
26
26
  info: !0,
@@ -93,7 +93,7 @@ function La(e, t) {
93
93
  }
94
94
  return n;
95
95
  }
96
- function jn(e) {
96
+ function Fn(e) {
97
97
  const t = /* @__PURE__ */ new Map();
98
98
  return (n) => {
99
99
  if (t.has(n)) return t.get(n);
@@ -113,7 +113,7 @@ const ws = (e) => typeof e == "object" && e !== null, Bu = (e) => e.replace(/^#\
113
113
  t.delete(e);
114
114
  }
115
115
  }, ju = (e) => e.replace(/~/g, "~0").replace(/\//g, "~1"), Ii = (e) => e.length ? `#/${e.map(ju).join("/")}` : "#";
116
- function Fn(e) {
116
+ function zn(e) {
117
117
  if (!Pa(e)) return e;
118
118
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), s = (o, i) => {
119
119
  if (Array.isArray(o)) {
@@ -196,14 +196,14 @@ class Da extends Ou {
196
196
  );
197
197
  }
198
198
  }
199
- const zr = Iu(null), zn = () => {
199
+ const zr = Iu(null), Un = () => {
200
200
  const e = Ra(zr);
201
201
  if (!e)
202
202
  throw new Error(
203
203
  "useDocumentContext must be used within a document provider (AsyncAPIDocumentProvider or OpenAPIDocumentProvider)"
204
204
  );
205
205
  return e;
206
- }, Qe = zn;
206
+ }, Qe = Un;
207
207
  var Cr = /* @__PURE__ */ ((e) => (e.SEND = "send", e.RECEIVE = "receive", e))(Cr || {});
208
208
  const Fu = "Contact", zu = "Email", Ri = "License", Mi = "External Documentation", Uu = "Tags", Hu = "Implicit", Wu = `The Implicit flow is a simplified OAuth flow previously recommended
209
209
  for native apps and JavaScript apps where the access token is returned
@@ -307,9 +307,9 @@ function sd(e) {
307
307
  }
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
- function Fa(e, t, n = Bn) {
310
+ function Fa(e, t, n = jn) {
311
311
  var j, C, N, v, x, F, Q, T;
312
- const [r, s] = Y(null), [o, i] = Y(null), a = ge(() => jn(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(() => {
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(() => {
313
313
  if (typeof S == "function") return S;
314
314
  if (typeof S == "string") return () => S;
315
315
  }, [S]), E = ge(
@@ -348,7 +348,7 @@ function Fa(e, t, n = Bn) {
348
348
  }
349
349
  function go({
350
350
  document: e,
351
- config: t = Bn,
351
+ config: t = jn,
352
352
  className: n = "",
353
353
  children: r
354
354
  }) {
@@ -415,7 +415,21 @@ function Dt({
415
415
  function sn(...e) {
416
416
  return e.filter(Boolean).join(" ");
417
417
  }
418
- function pn({
418
+ function pn({ className: e }) {
419
+ return /* @__PURE__ */ l(
420
+ "svg",
421
+ {
422
+ className: e,
423
+ id: "Layer_1",
424
+ version: "1.1",
425
+ viewBox: "0 0 50 50",
426
+ xmlns: "http://www.w3.org/2000/svg",
427
+ fill: "currentColor",
428
+ children: /* @__PURE__ */ l("polygon", { points: "47.25,15 45.164,12.914 25,33.078 4.836,12.914 2.75,15 25,37.25 " })
429
+ }
430
+ );
431
+ }
432
+ function hn({
419
433
  tabs: e,
420
434
  current: t,
421
435
  onChange: n = () => {
@@ -436,7 +450,7 @@ function pn({
436
450
  }
437
451
  };
438
452
  return e.length ? /* @__PURE__ */ b("div", { children: [
439
- /* @__PURE__ */ b("div", { className: "@sm:hidden", children: [
453
+ /* @__PURE__ */ b("div", { className: sn("@sm:hidden relative", u ? "mt-0" : "mt-4"), children: [
440
454
  /* @__PURE__ */ l("label", { htmlFor: i, className: "sr-only", children: s }),
441
455
  /* @__PURE__ */ b(
442
456
  "select",
@@ -445,16 +459,14 @@ function pn({
445
459
  name: "tabs",
446
460
  value: c,
447
461
  onChange: (h) => n(h.target.value),
448
- className: sn(
449
- "block w-full rounded-md border-neutral-300 bg-neutral-200 focus:border-secondary-500 focus:ring-secondary-500",
450
- u ? "mt-0" : "mt-4"
451
- ),
462
+ className: "block w-full appearance-none rounded-md border border-border bg-surface py-2 pl-3 pr-9 text-sm text-foreground-secondary focus:border-secondary-500 focus:outline-none focus:ring-1 focus:ring-secondary-500",
452
463
  children: [
453
464
  o && /* @__PURE__ */ l("option", { value: "", children: o }),
454
465
  e.map((h) => /* @__PURE__ */ l("option", { value: h.id, children: h.name }, h.id))
455
466
  ]
456
467
  }
457
- )
468
+ ),
469
+ /* @__PURE__ */ l(pn, { className: "pointer-events-none absolute right-3 top-1/2 h-3 w-3 -translate-y-1/2 text-foreground-muted" })
458
470
  ] }),
459
471
  /* @__PURE__ */ l("div", { className: sn("hidden @sm:block", u ? "" : "mt-6"), children: u ? /* @__PURE__ */ l(
460
472
  "div",
@@ -573,7 +585,7 @@ function Ha(e) {
573
585
  };
574
586
  }
575
587
  function Wa({ tabs: e, current: t, onChange: n }) {
576
- const { rootElement: r, topOffset: s = 0 } = zn();
588
+ const { rootElement: r, topOffset: s = 0 } = Un();
577
589
  if (!e.length)
578
590
  return null;
579
591
  const o = typeof document < "u" && bo(r) === document.documentElement ? s : 0;
@@ -583,7 +595,7 @@ function Wa({ tabs: e, current: t, onChange: n }) {
583
595
  className: "sticky z-10 flex w-full justify-center bg-background",
584
596
  style: { top: o },
585
597
  children: /* @__PURE__ */ l(Dt, { content: /* @__PURE__ */ l("div", { className: "w-full mt-10 @lg:mt-0", children: /* @__PURE__ */ l(
586
- pn,
598
+ hn,
587
599
  {
588
600
  tabs: e,
589
601
  current: t,
@@ -640,7 +652,7 @@ function Ga({
640
652
  children: t,
641
653
  forceVisible: n = !1
642
654
  }) {
643
- const { rootElement: r, topOffset: s = 0 } = zn(), o = id(r, n), i = o !== "docked", a = yo(r, i), c = typeof window > "u" ? 0 : window.innerWidth, u = a ? Math.max(a.left, 0) : 0, d = a ? Math.min(a.right, c) : c, f = {
655
+ const { rootElement: r, topOffset: s = 0 } = Un(), o = id(r, n), i = o !== "docked", a = yo(r, i), c = typeof window > "u" ? 0 : window.innerWidth, u = a ? Math.max(a.left, 0) : 0, d = a ? Math.min(a.right, c) : c, f = {
644
656
  left: i ? u + fr : fr,
645
657
  right: i ? Math.max(c - d, 0) + fr : fr,
646
658
  transform: `translateY(${o === "hidden" ? "-150%" : "0px"})`,
@@ -1266,7 +1278,7 @@ function Bi(e, t) {
1266
1278
  for (const r of (t == null ? void 0 : t.parameters) ?? []) n.set(`${r.in}:${r.name}`, r);
1267
1279
  return Array.from(n.values());
1268
1280
  }
1269
- function On(e) {
1281
+ function In(e) {
1270
1282
  return Object.keys(e).sort().flatMap((t) => {
1271
1283
  const n = e[t];
1272
1284
  return n ? Hr.filter((r) => n[r]).map((r) => ({
@@ -1330,7 +1342,7 @@ function vd({
1330
1342
  onSelectServer: c,
1331
1343
  selectedItem: u
1332
1344
  }) {
1333
- const d = ge(() => On(e), [e]), f = ge(() => On(t), [t]), p = ge(() => {
1345
+ const d = ge(() => In(e), [e]), f = ge(() => In(t), [t]), p = ge(() => {
1334
1346
  const m = r.map((h, y) => ({ key: `server-${y}`, url: h }));
1335
1347
  return [
1336
1348
  Va(s),
@@ -1615,20 +1627,6 @@ function qa({ className: e }) {
1615
1627
  function Wr({ className: e }) {
1616
1628
  return /* @__PURE__ */ l("svg", { className: e || "inline-block", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" }) });
1617
1629
  }
1618
- function Un({ className: e }) {
1619
- return /* @__PURE__ */ l(
1620
- "svg",
1621
- {
1622
- className: e,
1623
- id: "Layer_1",
1624
- version: "1.1",
1625
- viewBox: "0 0 50 50",
1626
- xmlns: "http://www.w3.org/2000/svg",
1627
- fill: "currentColor",
1628
- children: /* @__PURE__ */ l("polygon", { points: "47.25,15 45.164,12.914 25,33.078 4.836,12.914 2.75,15 25,37.25 " })
1629
- }
1630
- );
1631
- }
1632
1630
  const Ed = [
1633
1631
  "The following is API documentation in Markdown.",
1634
1632
  "Use it to answer questions about this API and help write client code.",
@@ -1674,7 +1672,7 @@ function el({
1674
1672
  s ? /* @__PURE__ */ l(qa, { className: "w-4 h-4 shrink-0 text-green-600" }) : /* @__PURE__ */ l(Qa, { className: "w-4 h-4 shrink-0" }),
1675
1673
  /* @__PURE__ */ l("span", { children: s ? "Copied!" : "Copy as Markdown" }),
1676
1674
  /* @__PURE__ */ l(
1677
- Un,
1675
+ pn,
1678
1676
  {
1679
1677
  className: `w-3 h-3 shrink-0 transition-transform duration-200 ${n ? "rotate-180" : ""}`
1680
1678
  }
@@ -2409,7 +2407,7 @@ const il = {
2409
2407
  Ŧ: "T",
2410
2408
  ı: "i",
2411
2409
  ß: "ss"
2412
- }, Zd = new RegExp("[" + Object.keys(il).join("") + "]", "g"), In = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(Zd, (t) => il[t]) : (e) => e;
2410
+ }, Zd = new RegExp("[" + Object.keys(il).join("") + "]", "g"), Rn = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(Zd, (t) => il[t]) : (e) => e;
2413
2411
  var Eo = class {
2414
2412
  constructor(e, { location: t = re.location, threshold: n = re.threshold, distance: r = re.distance, includeMatches: s = re.includeMatches, findAllMatches: o = re.findAllMatches, minMatchCharLength: i = re.minMatchCharLength, isCaseSensitive: a = re.isCaseSensitive, ignoreDiacritics: c = re.ignoreDiacritics, ignoreLocation: u = re.ignoreLocation } = {}) {
2415
2413
  if (this.options = {
@@ -2422,7 +2420,7 @@ var Eo = class {
2422
2420
  isCaseSensitive: a,
2423
2421
  ignoreDiacritics: c,
2424
2422
  ignoreLocation: u
2425
- }, e = a ? e : e.toLowerCase(), e = c ? In(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
2423
+ }, e = a ? e : e.toLowerCase(), e = c ? Rn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
2426
2424
  const d = (p, m) => {
2427
2425
  this.chunks.push({
2428
2426
  pattern: p,
@@ -2443,7 +2441,7 @@ var Eo = class {
2443
2441
  }
2444
2442
  searchIn(e) {
2445
2443
  const { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
2446
- if (e = t ? e : e.toLowerCase(), e = n ? In(e) : e, this.pattern === e) {
2444
+ if (e = t ? e : e.toLowerCase(), e = n ? Rn(e) : e, this.pattern === e) {
2447
2445
  if (e.length < this.options.minMatchCharLength) return {
2448
2446
  isMatch: !1,
2449
2447
  score: 1
@@ -2690,7 +2688,7 @@ var sf = class {
2690
2688
  location: a,
2691
2689
  threshold: c,
2692
2690
  distance: u
2693
- }, e = t ? e : e.toLowerCase(), e = n ? In(e) : e, this.pattern = e, this.query = rf(this.pattern, this.options);
2691
+ }, e = t ? e : e.toLowerCase(), e = n ? Rn(e) : e, this.pattern = e, this.query = rf(this.pattern, this.options);
2694
2692
  }
2695
2693
  static condition(e, t) {
2696
2694
  return t.useExtendedSearch;
@@ -2702,7 +2700,7 @@ var sf = class {
2702
2700
  score: 1
2703
2701
  };
2704
2702
  const { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: s } = this.options;
2705
- e = r ? e : e.toLowerCase(), e = s ? In(e) : e;
2703
+ e = r ? e : e.toLowerCase(), e = s ? Rn(e) : e;
2706
2704
  let o = 0;
2707
2705
  const i = [];
2708
2706
  let a = 0, c = !1;
@@ -2869,7 +2867,7 @@ function hf(e) {
2869
2867
  function Ws({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
2870
2868
  const r = hf(n);
2871
2869
  return { tokenize(s) {
2872
- return e || (s = s.toLowerCase()), t && (s = In(s)), r(s);
2870
+ return e || (s = s.toLowerCase()), t && (s = Rn(s)), r(s);
2873
2871
  } };
2874
2872
  }
2875
2873
  var mf = class {
@@ -3434,14 +3432,14 @@ const ie = (e) => typeof e == "object" && e !== null && !Array.isArray(e), vt =
3434
3432
  record: "object",
3435
3433
  uuid: "string"
3436
3434
  }, No = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? e : {};
3437
- function Rn(e) {
3435
+ function Mn(e) {
3438
3436
  const t = No(e);
3439
3437
  if (typeof t.name == "string")
3440
3438
  return typeof t.namespace == "string" ? `${t.namespace}.${t.name}` : t.name;
3441
3439
  }
3442
3440
  function Ks(e, t, n) {
3443
3441
  e.doc && (t.description = e.doc), e.default !== void 0 && (t.default = e.default);
3444
- const r = Rn(e);
3442
+ const r = Mn(e);
3445
3443
  r !== void 0 && n[r] && (t["x-parser-schema-id"] = r);
3446
3444
  }
3447
3445
  function Ji(e, t, n) {
@@ -3512,7 +3510,7 @@ function Js(e, t, n) {
3512
3510
  function To(e, t, n) {
3513
3511
  t !== void 0 && (e[t] = n);
3514
3512
  }
3515
- function Mn(e, t) {
3513
+ function Ln(e, t) {
3516
3514
  let n = {};
3517
3515
  if (Array.isArray(e))
3518
3516
  return If(n, e, t);
@@ -3535,14 +3533,14 @@ function Mn(e, t) {
3535
3533
  break;
3536
3534
  }
3537
3535
  case "map": {
3538
- n.additionalProperties = Mn(
3536
+ n.additionalProperties = Ln(
3539
3537
  r.values,
3540
3538
  t
3541
3539
  );
3542
3540
  break;
3543
3541
  }
3544
3542
  case "array": {
3545
- n.items = Mn(
3543
+ n.items = Ln(
3546
3544
  r.items,
3547
3545
  t
3548
3546
  );
@@ -3562,13 +3560,13 @@ function Mn(e, t) {
3562
3560
  const o = Of(r, t, n);
3563
3561
  To(
3564
3562
  t,
3565
- Rn(e),
3563
+ Mn(e),
3566
3564
  n
3567
3565
  ), n.properties = Object.fromEntries(o.entries());
3568
3566
  break;
3569
3567
  }
3570
3568
  default: {
3571
- const o = t[Rn(e)] ?? (typeof s == "string" ? t[s] : void 0);
3569
+ const o = t[Mn(e)] ?? (typeof s == "string" ? t[s] : void 0);
3572
3570
  o && (n = Vs(r) ? { ...o } : o);
3573
3571
  break;
3574
3572
  }
@@ -3583,8 +3581,8 @@ function Of(e, t, n) {
3583
3581
  const i = Vs(s) ? { ...o } : o;
3584
3582
  Ji(s, n, s.default !== void 0), Vs(s) && (Ks(s, i, t), Js(s.type, s, i)), r.set(s.name, i);
3585
3583
  } else {
3586
- const i = Mn(s.type, t);
3587
- Ji(s, n, s.default !== void 0), Ks(s, i, t), Js(s.type, s, i), r.set(s.name, i), To(t, Rn(s.type), i);
3584
+ const i = Ln(s.type, t);
3585
+ Ji(s, n, s.default !== void 0), Ks(s, i, t), Js(s.type, s, i), r.set(s.name, i), To(t, Mn(s.type), i);
3588
3586
  }
3589
3587
  }
3590
3588
  return r;
@@ -3593,13 +3591,13 @@ function If(e, t, n) {
3593
3591
  const r = [];
3594
3592
  let s = null;
3595
3593
  for (const o of t) {
3596
- const i = Mn(o, n);
3597
- (typeof o == "string" ? o : No(o).type) === "null" ? s = i : (r.push(i), To(n, Rn(o), i));
3594
+ const i = Ln(o, n);
3595
+ (typeof o == "string" ? o : No(o).type) === "null" ? s = i : (r.push(i), To(n, Mn(o), i));
3598
3596
  }
3599
3597
  return s && r.push(s), e.oneOf = r, e;
3600
3598
  }
3601
3599
  function Ys(e) {
3602
- return Mn(e, {});
3600
+ return Ln(e, {});
3603
3601
  }
3604
3602
  const Yi = /* @__PURE__ */ new Set([
3605
3603
  "null",
@@ -3680,7 +3678,7 @@ function on(e, t, n, r) {
3680
3678
  let Ir = null, Es = null;
3681
3679
  const Xs = /* @__PURE__ */ new Set();
3682
3680
  function Mf() {
3683
- return Es || (Es = import("./protoToJsonSchema-CuaV2JD7.js").then((e) => {
3681
+ return Es || (Es = import("./protoToJsonSchema-BCkpb0Z8.js").then((e) => {
3684
3682
  Ir = e.protoToJsonSchema, Xs.forEach((t) => t());
3685
3683
  })), Es;
3686
3684
  }
@@ -3750,7 +3748,7 @@ const zf = [
3750
3748
  function Hf(e) {
3751
3749
  return typeof e == "string" || Array.isArray(e) ? !0 : ie(e) ? typeof e.type == "string" && Uf.has(e.type) || Array.isArray(e.fields) || Array.isArray(e.symbols) ? !0 : !zf.some((t) => t in e) : !1;
3752
3750
  }
3753
- function Ln(e, t) {
3751
+ function Pn(e, t) {
3754
3752
  let n = e;
3755
3753
  if (t && ie(n) && typeof n.$ref == "string") {
3756
3754
  const i = t(n.$ref);
@@ -3833,22 +3831,22 @@ function Wf(e) {
3833
3831
  const o = vt(n);
3834
3832
  return o ? { schema: o, schemaFormat: t } : { schema: {}, schemaFormat: t, originalSchema: n };
3835
3833
  }
3836
- const Pe = (e, t) => `${"#".repeat(e)} ${t}`, z = (e) => typeof e == "string" ? e.replace(/`/g, "'") : String(e ?? ""), En = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Gf = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
3834
+ const Pe = (e, t) => `${"#".repeat(e)} ${t}`, z = (e) => typeof e == "string" ? e.replace(/`/g, "'") : String(e ?? ""), Sn = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Gf = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
3837
3835
  function Nr(e, t, n = Gf) {
3838
3836
  if (e === null || typeof e != "object") return e;
3839
- if (n.objects.has(e) || En(e) && typeof e.$ref == "string" && n.refs.has(e.$ref)) {
3840
- const o = En(e) ? e["x-parser-schema-id"] : void 0;
3837
+ if (n.objects.has(e) || Sn(e) && typeof e.$ref == "string" && n.refs.has(e.$ref)) {
3838
+ const o = Sn(e) ? e["x-parser-schema-id"] : void 0;
3841
3839
  return typeof o == "string" ? { $ref: `#/components/schemas/${o} (circular)` } : "[circular reference]";
3842
3840
  }
3843
3841
  const r = {
3844
3842
  objects: new Set(n.objects).add(e),
3845
- refs: En(e) && typeof e.$ref == "string" ? new Set(n.refs).add(e.$ref) : n.refs
3843
+ refs: Sn(e) && typeof e.$ref == "string" ? new Set(n.refs).add(e.$ref) : n.refs
3846
3844
  };
3847
3845
  if (Array.isArray(e))
3848
3846
  return e.map((o) => Nr(o, t, r));
3849
- if (En(e) && typeof e.$ref == "string") {
3847
+ if (Sn(e) && typeof e.$ref == "string") {
3850
3848
  const o = t == null ? void 0 : t(e.$ref);
3851
- return En(o) || Array.isArray(o) ? Nr(o, t, r) : { $ref: e.$ref };
3849
+ return Sn(o) || Array.isArray(o) ? Nr(o, t, r) : { $ref: e.$ref };
3852
3850
  }
3853
3851
  const s = {};
3854
3852
  for (const [o, i] of Object.entries(e))
@@ -3864,9 +3862,9 @@ function Rr(e, t, n) {
3864
3862
  ${JSON.stringify(r, null, 2)}
3865
3863
  \`\`\``;
3866
3864
  }
3867
- function _n(e, t, n) {
3865
+ function Cn(e, t, n) {
3868
3866
  if (!t || typeof t == "boolean") return "";
3869
- const { schema: r, description: s, conversionError: o, pendingConversion: i } = Ln(t, n);
3867
+ const { schema: r, description: s, conversionError: o, pendingConversion: i } = Pn(t, n);
3870
3868
  if (i) return `${Pe(4, `\`${z(e)}\``)}
3871
3869
 
3872
3870
  _(schema conversion still in progress)_`;
@@ -3948,7 +3946,7 @@ function gl(e) {
3948
3946
  }
3949
3947
  return t;
3950
3948
  }
3951
- function bl(e, t = jn(e)) {
3949
+ function bl(e, t = Fn(e)) {
3952
3950
  var o, i, a;
3953
3951
  const n = gl(e);
3954
3952
  if (e.operations && Object.keys(e.operations).length) {
@@ -3975,7 +3973,7 @@ function bl(e, t = jn(e)) {
3975
3973
  const f = [];
3976
3974
  d.summary && f.push(z(d.summary)), d.description && f.push(z(d.description)), d.contentType && f.push(`**Content-Type:** \`${z(d.contentType)}\``), c.push(f.join(`
3977
3975
 
3978
- `)), d.payload && c.push(_n("payload", d.payload, t)), d.headers && c.push(_n("headers", d.headers, t));
3976
+ `)), d.payload && c.push(Cn("payload", d.payload, t)), d.headers && c.push(Cn("headers", d.headers, t));
3979
3977
  }
3980
3978
  n.push(c.join(`
3981
3979
 
@@ -3985,7 +3983,7 @@ function bl(e, t = jn(e)) {
3985
3983
  if (s && Object.keys(s).length) {
3986
3984
  const c = [Pe(2, "Schemas")];
3987
3985
  for (const [u, d] of Object.entries(s))
3988
- c.push(_n(u, d, t));
3986
+ c.push(Cn(u, d, t));
3989
3987
  n.push(c.join(`
3990
3988
 
3991
3989
  `));
@@ -4007,13 +4005,13 @@ function Vf(e, t, n) {
4007
4005
 
4008
4006
  `)), s.push(u.join(`
4009
4007
 
4010
- `)), c.payload && s.push(_n("payload", c.payload, n)), c.headers && s.push(_n("headers", c.headers, n));
4008
+ `)), c.payload && s.push(Cn("payload", c.payload, n)), c.headers && s.push(Cn("headers", c.headers, n));
4011
4009
  }
4012
4010
  return s.filter(Boolean).join(`
4013
4011
 
4014
4012
  `);
4015
4013
  }
4016
- function Jf(e, t, n = jn(e)) {
4014
+ function Jf(e, t, n = Fn(e)) {
4017
4015
  var o;
4018
4016
  const r = (o = e.operations) == null ? void 0 : o[t];
4019
4017
  if (!r) return "";
@@ -4100,7 +4098,7 @@ function yl(e, t, n, r, s, o) {
4100
4098
 
4101
4099
  `);
4102
4100
  }
4103
- function xl(e, t = jn(e)) {
4101
+ function xl(e, t = Fn(e)) {
4104
4102
  var i, a, c, u, d;
4105
4103
  const n = [], { info: r } = e;
4106
4104
  if (n.push(Pe(1, z(r.title))), n.push(`**Version:** ${z(r.version)}`), r.description && n.push(z(r.description)), (i = e.servers) != null && i.length) {
@@ -4110,7 +4108,7 @@ function xl(e, t = jn(e)) {
4110
4108
  n.push(f.join(`
4111
4109
  `));
4112
4110
  }
4113
- const s = e.paths ? On(e.paths) : [];
4111
+ const s = e.paths ? In(e.paths) : [];
4114
4112
  if (s.length) {
4115
4113
  const f = [Pe(2, "Endpoints")];
4116
4114
  for (const { method: p, path: m } of s) {
@@ -4136,7 +4134,7 @@ function xl(e, t = jn(e)) {
4136
4134
 
4137
4135
  `);
4138
4136
  }
4139
- function Xf(e, t, n, r = jn(e)) {
4137
+ function Xf(e, t, n, r = Fn(e)) {
4140
4138
  var a, c, u, d;
4141
4139
  const s = (c = (a = e.paths) == null ? void 0 : a[n]) == null ? void 0 : c[t];
4142
4140
  if (!s) return "";
@@ -4166,7 +4164,7 @@ function wl(e) {
4166
4164
  const kl = {
4167
4165
  "x-x": () => import("./XExtension-GyRtdHLL.js"),
4168
4166
  "x-linkedin": () => import("./LinkedInExtension-BL-4T9tt.js")
4169
- }, Qf = () => import("./LogoExtension-DZ8VtlAH.js");
4167
+ }, Qf = () => import("./LogoExtension-fJtd4y3z.js");
4170
4168
  var P0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4171
4169
  function vl(e) {
4172
4170
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -4206,19 +4204,19 @@ function qi() {
4206
4204
  function n(O, R) {
4207
4205
  var J = O == null ? null : typeof Symbol < "u" && O[Symbol.iterator] || O["@@iterator"];
4208
4206
  if (J != null) {
4209
- var se, he, Se, Ue, mn = [], qe = !0, gn = !1;
4207
+ var se, he, Se, Ue, gn = [], qe = !0, bn = !1;
4210
4208
  try {
4211
- if (Se = (J = J.call(O)).next, R !== 0) for (; !(qe = (se = Se.call(J)).done) && (mn.push(se.value), mn.length !== R); qe = !0) ;
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) ;
4212
4210
  } catch (qr) {
4213
- gn = !0, he = qr;
4211
+ bn = !0, he = qr;
4214
4212
  } finally {
4215
4213
  try {
4216
4214
  if (!qe && J.return != null && (Ue = J.return(), Object(Ue) !== Ue)) return;
4217
4215
  } finally {
4218
- if (gn) throw he;
4216
+ if (bn) throw he;
4219
4217
  }
4220
4218
  }
4221
- return mn;
4219
+ return gn;
4222
4220
  }
4223
4221
  }
4224
4222
  function r() {
@@ -4413,36 +4411,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4413
4411
  let J = O.document;
4414
4412
  const se = J, he = se.currentScript;
4415
4413
  O.DocumentFragment;
4416
- const Se = O.HTMLTemplateElement, Ue = O.Node, mn = O.Element, qe = O.NodeFilter, gn = O.NamedNodeMap;
4417
- gn === void 0 && (O.NamedNodeMap || O.MozNamedAttrMap), O.HTMLFormElement;
4418
- const qr = O.DOMParser, rr = O.trustedTypes, zt = mn.prototype, Qc = I(zt, "cloneNode"), ei = I(zt, "remove"), qc = I(zt, "nextSibling"), bn = I(zt, "childNodes"), yn = 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;
4414
+ const Se = O.HTMLTemplateElement, Ue = O.Node, gn = O.Element, qe = O.NodeFilter, bn = O.NamedNodeMap;
4415
+ 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;
4419
4417
  if (typeof Se == "function") {
4420
4418
  const P = J.createElement("template");
4421
4419
  P.content && P.content.ownerDocument && (J = P.content.ownerDocument);
4422
4420
  }
4423
- let Je, Ut = "", ts, ni = !1, xn = 0;
4421
+ let Je, Ut = "", ts, ni = !1, wn = 0;
4424
4422
  const ri = function() {
4425
- if (xn > 0)
4423
+ if (wn > 0)
4426
4424
  throw ue('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
4427
4425
  }, Zt = function(g) {
4428
- ri(), xn++;
4426
+ ri(), wn++;
4429
4427
  try {
4430
4428
  return Je.createHTML(g);
4431
4429
  } finally {
4432
- xn--;
4430
+ wn--;
4433
4431
  }
4434
4432
  }, eu = function(g) {
4435
- ri(), xn++;
4433
+ ri(), wn++;
4436
4434
  try {
4437
4435
  return Je.createScriptURL(g);
4438
4436
  } finally {
4439
- xn--;
4437
+ wn--;
4440
4438
  }
4441
4439
  }, tu = function() {
4442
4440
  return ni || (ts = Xc(rr, he), ni = !0), ts;
4443
4441
  }, sr = J, ns = sr.implementation, si = sr.createNodeIterator, nu = sr.createDocumentFragment, ru = sr.getElementsByTagName, su = se.importNode;
4444
4442
  let Le = Qo();
4445
- R.isSupported = typeof i == "function" && typeof yn == "function" && ns && ns.createHTMLDocument !== void 0;
4443
+ R.isSupported = typeof i == "function" && typeof xn == "function" && ns && ns.createHTMLDocument !== void 0;
4446
4444
  const ou = Re, iu = xe, au = wt, lu = ot, cu = Ft, uu = B, oi = U, du = pe;
4447
4445
  let ii = it, _e = null;
4448
4446
  const ai = q({}, [...de, ...G, ...be, ...me, ...ke]);
@@ -4467,7 +4465,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4467
4465
  enumerable: !0,
4468
4466
  value: !1
4469
4467
  }
4470
- })), wn = null, ci = null;
4468
+ })), kn = null, ci = null;
4471
4469
  const $t = Object.seal(m(null, {
4472
4470
  tagCheck: {
4473
4471
  writable: !0,
@@ -4482,7 +4480,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4482
4480
  value: null
4483
4481
  }
4484
4482
  }));
4485
- let ui = !0, rs = !0, di = !1, fi = !0, Ot = !1, kn = !0, Ht = !1, ss = !1, os = null, is = null, as = !1, Qt = !1, or = !1, ir = !1, pi = !0, hi = !1;
4483
+ let ui = !0, rs = !0, di = !1, fi = !0, Ot = !1, vn = !0, Ht = !1, ss = !1, os = null, is = null, as = !1, Qt = !1, or = !1, ir = !1, pi = !0, hi = !1;
4486
4484
  const mi = "user-content-";
4487
4485
  let ls = !0, cs = !1, qt = {}, gt = null;
4488
4486
  const us = q({}, [
@@ -4532,7 +4530,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4532
4530
  const wi = f(["annotation-xml"]);
4533
4531
  let ms = q({}, wi);
4534
4532
  const pu = q({}, ["title", "style", "font", "a", "script"]);
4535
- let vn = null;
4533
+ let An = null;
4536
4534
  const hu = ["application/xhtml+xml", "text/html"], mu = "text/html";
4537
4535
  let Oe = null, tn = null;
4538
4536
  const gu = J.createElement("form"), ki = function(g) {
@@ -4541,8 +4539,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4541
4539
  let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4542
4540
  if (tn && tn === g)
4543
4541
  return;
4544
- (!g || typeof g != "object") && (g = {}), g = D(g), vn = // eslint-disable-next-line unicorn/prefer-includes
4545
- hu.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? mu : g.PARSER_MEDIA_TYPE, Oe = vn === "application/xhtml+xml" ? v : N, _e = _t(g, "ALLOWED_TAGS", ai, {
4542
+ (!g || typeof g != "object") && (g = {}), g = D(g), An = // eslint-disable-next-line unicorn/prefer-includes
4543
+ hu.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? mu : g.PARSER_MEDIA_TYPE, Oe = An === "application/xhtml+xml" ? v : N, _e = _t(g, "ALLOWED_TAGS", ai, {
4546
4544
  transform: Oe
4547
4545
  }), Ce = _t(g, "ALLOWED_ATTR", li, {
4548
4546
  transform: Oe
@@ -4556,13 +4554,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4556
4554
  base: bi
4557
4555
  }), gt = _t(g, "FORBID_CONTENTS", us, {
4558
4556
  transform: Oe
4559
- }), wn = _t(g, "FORBID_TAGS", D({}), {
4557
+ }), kn = _t(g, "FORBID_TAGS", D({}), {
4560
4558
  transform: Oe
4561
4559
  }), ci = _t(g, "FORBID_ATTR", D({}), {
4562
4560
  transform: Oe
4563
- }), qt = _(g, "USE_PROFILES") ? g.USE_PROFILES && typeof g.USE_PROFILES == "object" ? D(g.USE_PROFILES) : g.USE_PROFILES : !1, ui = g.ALLOW_ARIA_ATTR !== !1, rs = g.ALLOW_DATA_ATTR !== !1, di = g.ALLOW_UNKNOWN_PROTOCOLS || !1, fi = g.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ot = g.SAFE_FOR_TEMPLATES || !1, kn = g.SAFE_FOR_XML !== !1, Ht = g.WHOLE_DOCUMENT || !1, Qt = g.RETURN_DOM || !1, or = g.RETURN_DOM_FRAGMENT || !1, ir = g.RETURN_TRUSTED_TYPE || !1, as = g.FORCE_BODY || !1, pi = g.SANITIZE_DOM !== !1, hi = g.SANITIZE_NAMED_PROPS || !1, ls = g.KEEP_CONTENT !== !1, cs = g.IN_PLACE || !1, ii = ee(g.ALLOWED_URI_REGEXP) ? g.ALLOWED_URI_REGEXP : it, en = typeof g.NAMESPACE == "string" ? g.NAMESPACE : bt, hs = _(g, "MATHML_TEXT_INTEGRATION_POINTS") && g.MATHML_TEXT_INTEGRATION_POINTS && typeof g.MATHML_TEXT_INTEGRATION_POINTS == "object" ? D(g.MATHML_TEXT_INTEGRATION_POINTS) : q({}, xi), ms = _(g, "HTML_INTEGRATION_POINTS") && g.HTML_INTEGRATION_POINTS && typeof g.HTML_INTEGRATION_POINTS == "object" ? D(g.HTML_INTEGRATION_POINTS) : q({}, wi);
4561
+ }), qt = _(g, "USE_PROFILES") ? g.USE_PROFILES && typeof g.USE_PROFILES == "object" ? D(g.USE_PROFILES) : g.USE_PROFILES : !1, ui = g.ALLOW_ARIA_ATTR !== !1, rs = g.ALLOW_DATA_ATTR !== !1, di = g.ALLOW_UNKNOWN_PROTOCOLS || !1, fi = g.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ot = g.SAFE_FOR_TEMPLATES || !1, vn = g.SAFE_FOR_XML !== !1, Ht = g.WHOLE_DOCUMENT || !1, Qt = g.RETURN_DOM || !1, or = g.RETURN_DOM_FRAGMENT || !1, ir = g.RETURN_TRUSTED_TYPE || !1, as = g.FORCE_BODY || !1, pi = g.SANITIZE_DOM !== !1, hi = g.SANITIZE_NAMED_PROPS || !1, ls = g.KEEP_CONTENT !== !1, cs = g.IN_PLACE || !1, ii = ee(g.ALLOWED_URI_REGEXP) ? g.ALLOWED_URI_REGEXP : it, en = typeof g.NAMESPACE == "string" ? g.NAMESPACE : bt, hs = _(g, "MATHML_TEXT_INTEGRATION_POINTS") && g.MATHML_TEXT_INTEGRATION_POINTS && typeof g.MATHML_TEXT_INTEGRATION_POINTS == "object" ? D(g.MATHML_TEXT_INTEGRATION_POINTS) : q({}, xi), ms = _(g, "HTML_INTEGRATION_POINTS") && g.HTML_INTEGRATION_POINTS && typeof g.HTML_INTEGRATION_POINTS == "object" ? D(g.HTML_INTEGRATION_POINTS) : q({}, wi);
4564
4562
  const w = _(g, "CUSTOM_ELEMENT_HANDLING") && g.CUSTOM_ELEMENT_HANDLING && typeof g.CUSTOM_ELEMENT_HANDLING == "object" ? D(g.CUSTOM_ELEMENT_HANDLING) : m(null);
4565
- if ($e = m(null), _(w, "tagNameCheck") && ki(w.tagNameCheck) && ($e.tagNameCheck = w.tagNameCheck), _(w, "attributeNameCheck") && ki(w.attributeNameCheck) && ($e.attributeNameCheck = w.attributeNameCheck), _(w, "allowCustomizedBuiltInElements") && typeof w.allowCustomizedBuiltInElements == "boolean" && ($e.allowCustomizedBuiltInElements = w.allowCustomizedBuiltInElements), p($e), Ot && (rs = !1), or && (Qt = !0), qt && (_e = q({}, ke), Ce = m(null), qt.html === !0 && (q(_e, de), q(Ce, Ve)), qt.svg === !0 && (q(_e, G), q(Ce, ze), q(Ce, Te)), qt.svgFilters === !0 && (q(_e, be), q(Ce, ze), q(Ce, Te)), qt.mathMl === !0 && (q(_e, me), q(Ce, Z), q(Ce, Te))), $t.tagCheck = null, $t.attributeCheck = null, _(g, "ADD_TAGS") && (typeof g.ADD_TAGS == "function" ? $t.tagCheck = g.ADD_TAGS : C(g.ADD_TAGS) && (_e === ai && (_e = D(_e)), q(_e, g.ADD_TAGS, Oe))), _(g, "ADD_ATTR") && (typeof g.ADD_ATTR == "function" ? $t.attributeCheck = g.ADD_ATTR : C(g.ADD_ATTR) && (Ce === li && (Ce = D(Ce)), q(Ce, g.ADD_ATTR, Oe))), _(g, "ADD_URI_SAFE_ATTR") && C(g.ADD_URI_SAFE_ATTR) && q(ds, g.ADD_URI_SAFE_ATTR, Oe), _(g, "FORBID_CONTENTS") && C(g.FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.FORBID_CONTENTS, Oe)), _(g, "ADD_FORBID_CONTENTS") && C(g.ADD_FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.ADD_FORBID_CONTENTS, Oe)), ls && (_e["#text"] = !0), Ht && q(_e, ["html", "head", "body"]), _e.table && (q(_e, ["tbody"]), delete wn.tbody), g.TRUSTED_TYPES_POLICY) {
4563
+ if ($e = m(null), _(w, "tagNameCheck") && ki(w.tagNameCheck) && ($e.tagNameCheck = w.tagNameCheck), _(w, "attributeNameCheck") && ki(w.attributeNameCheck) && ($e.attributeNameCheck = w.attributeNameCheck), _(w, "allowCustomizedBuiltInElements") && typeof w.allowCustomizedBuiltInElements == "boolean" && ($e.allowCustomizedBuiltInElements = w.allowCustomizedBuiltInElements), p($e), Ot && (rs = !1), or && (Qt = !0), qt && (_e = q({}, ke), Ce = m(null), qt.html === !0 && (q(_e, de), q(Ce, Ve)), qt.svg === !0 && (q(_e, G), q(Ce, ze), q(Ce, Te)), qt.svgFilters === !0 && (q(_e, be), q(Ce, ze), q(Ce, Te)), qt.mathMl === !0 && (q(_e, me), q(Ce, Z), q(Ce, Te))), $t.tagCheck = null, $t.attributeCheck = null, _(g, "ADD_TAGS") && (typeof g.ADD_TAGS == "function" ? $t.tagCheck = g.ADD_TAGS : C(g.ADD_TAGS) && (_e === ai && (_e = D(_e)), q(_e, g.ADD_TAGS, Oe))), _(g, "ADD_ATTR") && (typeof g.ADD_ATTR == "function" ? $t.attributeCheck = g.ADD_ATTR : C(g.ADD_ATTR) && (Ce === li && (Ce = D(Ce)), q(Ce, g.ADD_ATTR, Oe))), _(g, "ADD_URI_SAFE_ATTR") && C(g.ADD_URI_SAFE_ATTR) && q(ds, g.ADD_URI_SAFE_ATTR, Oe), _(g, "FORBID_CONTENTS") && C(g.FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.FORBID_CONTENTS, Oe)), _(g, "ADD_FORBID_CONTENTS") && C(g.ADD_FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.ADD_FORBID_CONTENTS, Oe)), ls && (_e["#text"] = !0), Ht && q(_e, ["html", "head", "body"]), _e.table && (q(_e, ["tbody"]), delete kn.tbody), g.TRUSTED_TYPES_POLICY) {
4566
4564
  if (typeof g.TRUSTED_TYPES_POLICY.createHTML != "function")
4567
4565
  throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4568
4566
  if (typeof g.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -4583,25 +4581,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4583
4581
  }, xu = function(g, w, L) {
4584
4582
  return w.namespaceURI === lr && !ms[L] || w.namespaceURI === ar && !hs[L] ? !1 : !Ai[g] && (pu[g] || !vi[g]);
4585
4583
  }, wu = function(g) {
4586
- let w = yn(g);
4584
+ let w = xn(g);
4587
4585
  (!w || !w.tagName) && (w = {
4588
4586
  namespaceURI: en,
4589
4587
  tagName: "template"
4590
4588
  });
4591
4589
  const L = N(g.tagName), K = N(w.tagName);
4592
- 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) : !!(vn === "application/xhtml+xml" && ps[g.namespaceURI]) : !1;
4590
+ 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;
4593
4591
  }, It = function(g) {
4594
4592
  M(R.removed, {
4595
4593
  element: g
4596
4594
  });
4597
4595
  try {
4598
- yn(g).removeChild(g);
4596
+ xn(g).removeChild(g);
4599
4597
  } catch {
4600
- if (ei(g), !yn(g))
4598
+ if (ei(g), !xn(g))
4601
4599
  throw ue("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
4602
4600
  }
4603
4601
  }, Ei = function(g) {
4604
- const w = bn(g);
4602
+ const w = yn(g);
4605
4603
  if (w) {
4606
4604
  const K = [];
4607
4605
  S(w, (fe) => {
@@ -4662,7 +4660,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4662
4660
  for (; w.length > 0; ) {
4663
4661
  const L = w.pop();
4664
4662
  (et ? et(L) : L.nodeType) === mt.element && ku(L);
4665
- const fe = bn(L);
4663
+ const fe = yn(L);
4666
4664
  if (fe)
4667
4665
  for (let ye = fe.length - 1; ye >= 0; --ye)
4668
4666
  w.push(fe[ye]);
@@ -4675,11 +4673,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4675
4673
  const ye = x(g, /^[\r\n\t ]+/);
4676
4674
  L = ye && ye[0];
4677
4675
  }
4678
- vn === "application/xhtml+xml" && en === bt && (g = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + g + "</body></html>");
4676
+ An === "application/xhtml+xml" && en === bt && (g = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + g + "</body></html>");
4679
4677
  const K = Je ? Zt(g) : g;
4680
4678
  if (en === bt)
4681
4679
  try {
4682
- w = new qr().parseFromString(K, vn);
4680
+ w = new qr().parseFromString(K, An);
4683
4681
  } catch {
4684
4682
  }
4685
4683
  if (!w || !w.documentElement) {
@@ -4743,7 +4741,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4743
4741
  // select, etc.) regardless of whether the named child happens to
4744
4742
  // carry a numeric .length, which a typeof-based probe would miss
4745
4743
  // (e.g. HTMLSelectElement.length is a defined unsigned-long).
4746
- g.childNodes !== bn(g);
4744
+ g.childNodes !== yn(g);
4747
4745
  }, nn = function(g) {
4748
4746
  if (!et || typeof g != "object" || g === null)
4749
4747
  return !1;
@@ -4752,7 +4750,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4752
4750
  } catch {
4753
4751
  return !1;
4754
4752
  }
4755
- }, An = function(g) {
4753
+ }, En = function(g) {
4756
4754
  if (!et || typeof g != "object" || g === null)
4757
4755
  return !1;
4758
4756
  try {
@@ -4767,12 +4765,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4767
4765
  });
4768
4766
  }
4769
4767
  const Au = function(g, w) {
4770
- return !!(kn && g.hasChildNodes() && !An(g.firstElementChild) && V(Me, g.textContent) && V(Me, g.innerHTML) || kn && g.namespaceURI === bt && w === "style" && An(g.firstElementChild) || g.nodeType === mt.processingInstruction || kn && g.nodeType === mt.comment && V(lt, g.data));
4768
+ return !!(vn && g.hasChildNodes() && !En(g.firstElementChild) && V(Me, g.textContent) && V(Me, g.innerHTML) || vn && g.namespaceURI === bt && w === "style" && En(g.firstElementChild) || g.nodeType === mt.processingInstruction || vn && g.nodeType === mt.comment && V(lt, g.data));
4771
4769
  }, Eu = function(g, w) {
4772
- if (!wn[w] && Ci(w) && ($e.tagNameCheck instanceof RegExp && V($e.tagNameCheck, w) || $e.tagNameCheck instanceof Function && $e.tagNameCheck(w)))
4770
+ if (!kn[w] && Ci(w) && ($e.tagNameCheck instanceof RegExp && V($e.tagNameCheck, w) || $e.tagNameCheck instanceof Function && $e.tagNameCheck(w)))
4773
4771
  return !1;
4774
4772
  if (ls && !gt[w]) {
4775
- const L = yn(g), K = bn(g);
4773
+ const L = xn(g), K = yn(g);
4776
4774
  if (K && L) {
4777
4775
  const fe = K.length;
4778
4776
  for (let ye = fe - 1; ye >= 0; --ye) {
@@ -4791,7 +4789,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4791
4789
  allowedTags: _e
4792
4790
  }), Au(g, w))
4793
4791
  return It(g), !0;
4794
- if (wn[w] || !($t.tagCheck instanceof Function && $t.tagCheck(w)) && !_e[w])
4792
+ if (kn[w] || !($t.tagCheck instanceof Function && $t.tagCheck(w)) && !_e[w])
4795
4793
  return Eu(g, w);
4796
4794
  if ((et ? et(g) : g.nodeType) === mt.element && !wu(g) || (w === "noscript" || w === "noembed" || w === "noframes") && V(Zr, g.innerHTML))
4797
4795
  return It(g), !0;
@@ -4864,7 +4862,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4864
4862
  for (; K--; ) {
4865
4863
  const ye = w[K], je = ye.name, De = ye.namespaceURI, at = ye.value, ct = Oe(je), xs = at;
4866
4864
  let We = je === "value" ? xs : T(xs);
4867
- if (L.attrName = ct, L.attrValue = We, L.keepAttr = !0, L.forceKeepAttr = void 0, kt(Le.uponSanitizeAttribute, g, L), We = L.attrValue, hi && (ct === "id" || ct === "name") && Q(We, mi) !== 0 && (Wt(je, g), We = mi + We), kn && V(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, We)) {
4865
+ if (L.attrName = ct, L.attrValue = We, L.keepAttr = !0, L.forceKeepAttr = void 0, kt(Le.uponSanitizeAttribute, g, L), We = L.attrValue, hi && (ct === "id" || ct === "name") && Q(We, mi) !== 0 && (Wt(je, g), We = mi + We), vn && V(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, We)) {
4868
4866
  Wt(je, g);
4869
4867
  continue;
4870
4868
  }
@@ -4909,7 +4907,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4909
4907
  dr(L.shadow);
4910
4908
  continue;
4911
4909
  }
4912
- const K = L.node, ye = (et ? et(K) : K.nodeType) === mt.element, je = bn(K);
4910
+ const K = L.node, ye = (et ? et(K) : K.nodeType) === mt.element, je = yn(K);
4913
4911
  if (je)
4914
4912
  for (let De = je.length - 1; De >= 0; --De)
4915
4913
  w.push({
@@ -4940,17 +4938,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4940
4938
  };
4941
4939
  return R.sanitize = function(P) {
4942
4940
  let g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = null, L = null, K = null, fe = null;
4943
- if (fs = !P, fs && (P = "<!-->"), typeof P != "string" && !An(P) && (P = X(P), typeof P != "string"))
4941
+ if (fs = !P, fs && (P = "<!-->"), typeof P != "string" && !En(P) && (P = X(P), typeof P != "string"))
4944
4942
  throw ue("dirty is not a string, aborting");
4945
4943
  if (!R.isSupported)
4946
4944
  return P;
4947
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 = [];
4948
- const ye = cs && typeof P != "string" && An(P);
4946
+ const ye = cs && typeof P != "string" && En(P);
4949
4947
  if (ye) {
4950
4948
  const at = Ct ? Ct(P) : P.nodeName;
4951
4949
  if (typeof at == "string") {
4952
4950
  const ct = Oe(at);
4953
- if (!_e[ct] || wn[ct])
4951
+ if (!_e[ct] || kn[ct])
4954
4952
  throw ue("root node is forbidden and cannot be sanitized in-place");
4955
4953
  }
4956
4954
  if (ur(P))
@@ -4960,7 +4958,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4960
4958
  } catch (ct) {
4961
4959
  throw Ei(P), ct;
4962
4960
  }
4963
- } else if (An(P))
4961
+ } else if (En(P))
4964
4962
  w = Si("<!---->"), L = w.ownerDocument.importNode(P, !0), L.nodeType === mt.element && L.nodeName === "BODY" || L.nodeName === "HTML" ? w = L : w.appendChild(L), ys(L);
4965
4963
  else {
4966
4964
  if (!Qt && !Ot && !Ht && // eslint-disable-next-line unicorn/prefer-includes
@@ -5040,7 +5038,7 @@ var Yt = $o();
5040
5038
  function El(e) {
5041
5039
  Yt = e;
5042
5040
  }
5043
- var Cn = { exec: () => null };
5041
+ var $n = { exec: () => null };
5044
5042
  function we(e, t = "") {
5045
5043
  let n = typeof e == "string" ? e : e.source;
5046
5044
  const r = {
@@ -5124,7 +5122,7 @@ var Ke = {
5124
5122
  list: ap,
5125
5123
  newline: ep,
5126
5124
  paragraph: Tl,
5127
- table: Cn,
5125
+ table: $n,
5128
5126
  text: op
5129
5127
  }, ea = we(
5130
5128
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
@@ -5140,7 +5138,7 @@ var Ke = {
5140
5138
  ).replace("comment", Mo).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
5141
5139
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
5142
5140
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
5143
- fences: Cn,
5141
+ fences: $n,
5144
5142
  // fences not supported
5145
5143
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5146
5144
  paragraph: we(Io).replace("hr", Wn).replace("heading", ` *#{1,6} *[^
@@ -5151,14 +5149,14 @@ var Ke = {
5151
5149
  ).replace(/notPunctSpace/g, Cl).replace(/punctSpace/g, Po).replace(/punct/g, Vr).getRegex(), Ep = we(/\\(punct)/, "gu").replace(/punct/g, Vr).getRegex(), Sp = we(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Np = we(Mo).replace("(?:-->|$)", "-->").getRegex(), Tp = we(
5152
5150
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5153
5151
  ).replace("comment", Np).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Mr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _p = we(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Mr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Rl = we(/^!?\[(label)\]\[(ref)\]/).replace("label", Mr).replace("ref", Ro).getRegex(), Ml = we(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ro).getRegex(), Cp = we("reflink|nolink(?!\\()", "g").replace("reflink", Rl).replace("nolink", Ml).getRegex(), Do = {
5154
- _backpedal: Cn,
5152
+ _backpedal: $n,
5155
5153
  // only used for GFM url
5156
5154
  anyPunctuation: Ep,
5157
5155
  autolink: Sp,
5158
5156
  blockSkip: yp,
5159
5157
  br: _l,
5160
5158
  code: pp,
5161
- del: Cn,
5159
+ del: $n,
5162
5160
  emStrongLDelim: xp,
5163
5161
  emStrongRDelimAst: kp,
5164
5162
  emStrongRDelimUnd: Ap,
@@ -5170,7 +5168,7 @@ var Ke = {
5170
5168
  reflinkSearch: Cp,
5171
5169
  tag: Tp,
5172
5170
  text: hp,
5173
- url: Cn
5171
+ url: $n
5174
5172
  }, $p = {
5175
5173
  ...Do,
5176
5174
  link: we(/^!?\[(label)\]\((.*?)\)/).replace("label", Mr).getRegex(),
@@ -5191,7 +5189,7 @@ var Ke = {
5191
5189
  normal: Lo,
5192
5190
  gfm: up,
5193
5191
  pedantic: dp
5194
- }, Sn = {
5192
+ }, Nn = {
5195
5193
  normal: Do,
5196
5194
  gfm: Qs,
5197
5195
  breaks: Op,
@@ -5236,7 +5234,7 @@ function ra(e, t) {
5236
5234
  r[s] = r[s].trim().replace(Ke.slashPipe, "|");
5237
5235
  return r;
5238
5236
  }
5239
- function Nn(e, t, n) {
5237
+ function Tn(e, t, n) {
5240
5238
  const r = e.length;
5241
5239
  if (r === 0)
5242
5240
  return "";
@@ -5311,7 +5309,7 @@ var Lr = class {
5311
5309
  type: "code",
5312
5310
  raw: t[0],
5313
5311
  codeBlockStyle: "indented",
5314
- text: this.options.pedantic ? n : Nn(n, `
5312
+ text: this.options.pedantic ? n : Tn(n, `
5315
5313
  `)
5316
5314
  };
5317
5315
  }
@@ -5333,7 +5331,7 @@ var Lr = class {
5333
5331
  if (t) {
5334
5332
  let n = t[2].trim();
5335
5333
  if (this.rules.other.endingHash.test(n)) {
5336
- const r = Nn(n, "#");
5334
+ const r = Tn(n, "#");
5337
5335
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
5338
5336
  }
5339
5337
  return {
@@ -5350,14 +5348,14 @@ var Lr = class {
5350
5348
  if (t)
5351
5349
  return {
5352
5350
  type: "hr",
5353
- raw: Nn(t[0], `
5351
+ raw: Tn(t[0], `
5354
5352
  `)
5355
5353
  };
5356
5354
  }
5357
5355
  blockquote(e) {
5358
5356
  const t = this.rules.block.blockquote.exec(e);
5359
5357
  if (t) {
5360
- let n = Nn(t[0], `
5358
+ let n = Tn(t[0], `
5361
5359
  `).split(`
5362
5360
  `), r = "", s = "";
5363
5361
  const o = [];
@@ -5601,7 +5599,7 @@ ${d}` : d;
5601
5599
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
5602
5600
  if (!this.rules.other.endAngleBracket.test(n))
5603
5601
  return;
5604
- const o = Nn(n.slice(0, -1), "\\");
5602
+ const o = Tn(n.slice(0, -1), "\\");
5605
5603
  if ((n.length - o.length) % 2 === 0)
5606
5604
  return;
5607
5605
  } else {
@@ -5783,9 +5781,9 @@ ${d}` : d;
5783
5781
  const n = {
5784
5782
  other: Ke,
5785
5783
  block: mr.normal,
5786
- inline: Sn.normal
5784
+ inline: Nn.normal
5787
5785
  };
5788
- this.options.pedantic ? (n.block = mr.pedantic, n.inline = Sn.pedantic) : this.options.gfm && (n.block = mr.gfm, this.options.breaks ? n.inline = Sn.breaks : n.inline = Sn.gfm), this.tokenizer.rules = n;
5786
+ this.options.pedantic ? (n.block = mr.pedantic, n.inline = Nn.pedantic) : this.options.gfm && (n.block = mr.gfm, this.options.breaks ? n.inline = Nn.breaks : n.inline = Nn.gfm), this.tokenizer.rules = n;
5789
5787
  }
5790
5788
  /**
5791
5789
  * Expose Rules
@@ -5793,7 +5791,7 @@ ${d}` : d;
5793
5791
  static get rules() {
5794
5792
  return {
5795
5793
  block: mr,
5796
- inline: Sn
5794
+ inline: Nn
5797
5795
  };
5798
5796
  }
5799
5797
  /**
@@ -6822,7 +6820,7 @@ class Up extends jo {
6822
6820
  return this.closeAllNodes(), !0;
6823
6821
  }
6824
6822
  }
6825
- function Pn(e) {
6823
+ function Dn(e) {
6826
6824
  return e ? typeof e == "string" ? e : e.source : null;
6827
6825
  }
6828
6826
  function Fl(e) {
@@ -6835,14 +6833,14 @@ function Wp(e) {
6835
6833
  return Xt("(?:", e, ")?");
6836
6834
  }
6837
6835
  function Xt(...e) {
6838
- return e.map((n) => Pn(n)).join("");
6836
+ return e.map((n) => Dn(n)).join("");
6839
6837
  }
6840
6838
  function Gp(e) {
6841
6839
  const t = e[e.length - 1];
6842
6840
  return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
6843
6841
  }
6844
6842
  function Fo(...e) {
6845
- return "(" + (Gp(e).capture ? "" : "?:") + e.map((r) => Pn(r)).join("|") + ")";
6843
+ return "(" + (Gp(e).capture ? "" : "?:") + e.map((r) => Dn(r)).join("|") + ")";
6846
6844
  }
6847
6845
  function zl(e) {
6848
6846
  return new RegExp(e.toString() + "|").exec("").length - 1;
@@ -6857,7 +6855,7 @@ function zo(e, { joinWith: t }) {
6857
6855
  return e.map((r) => {
6858
6856
  n += 1;
6859
6857
  const s = n;
6860
- let o = Pn(r), i = "";
6858
+ let o = Dn(r), i = "";
6861
6859
  for (; o.length > 0; ) {
6862
6860
  const a = Vp.exec(o);
6863
6861
  if (!a) {
@@ -6886,7 +6884,7 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
6886
6884
  n.index !== 0 && r.ignoreMatch();
6887
6885
  }
6888
6886
  }, e);
6889
- }, Dn = {
6887
+ }, Bn = {
6890
6888
  begin: "\\\\[\\s\\S]",
6891
6889
  relevance: 0
6892
6890
  }, Zp = {
@@ -6894,13 +6892,13 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
6894
6892
  begin: "'",
6895
6893
  end: "'",
6896
6894
  illegal: "\\n",
6897
- contains: [Dn]
6895
+ contains: [Bn]
6898
6896
  }, Qp = {
6899
6897
  scope: "string",
6900
6898
  begin: '"',
6901
6899
  end: '"',
6902
6900
  illegal: "\\n",
6903
- contains: [Dn]
6901
+ contains: [Bn]
6904
6902
  }, qp = {
6905
6903
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
6906
6904
  }, Jr = function(e, t, n = {}) {
@@ -6986,12 +6984,12 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
6986
6984
  begin: /\/(?=[^/\n]*\/)/,
6987
6985
  end: /\/[gimuy]*/,
6988
6986
  contains: [
6989
- Dn,
6987
+ Bn,
6990
6988
  {
6991
6989
  begin: /\[/,
6992
6990
  end: /\]/,
6993
6991
  relevance: 0,
6994
- contains: [Dn]
6992
+ contains: [Bn]
6995
6993
  }
6996
6994
  ]
6997
6995
  }, ah = {
@@ -7024,7 +7022,7 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
7024
7022
  var gr = /* @__PURE__ */ Object.freeze({
7025
7023
  __proto__: null,
7026
7024
  APOS_STRING_MODE: Zp,
7027
- BACKSLASH_ESCAPE: Dn,
7025
+ BACKSLASH_ESCAPE: Bn,
7028
7026
  BINARY_NUMBER_MODE: oh,
7029
7027
  BINARY_NUMBER_RE: Gl,
7030
7028
  COMMENT: Jr,
@@ -7159,7 +7157,7 @@ function Sh(e) {
7159
7157
  function Nh(e) {
7160
7158
  function t(i, a) {
7161
7159
  return new RegExp(
7162
- Pn(i),
7160
+ Dn(i),
7163
7161
  "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (a ? "g" : "")
7164
7162
  );
7165
7163
  }
@@ -7244,7 +7242,7 @@ function Nh(e) {
7244
7242
  gh
7245
7243
  ].forEach((d) => d(i, a)), i.isCompiled = !0;
7246
7244
  let u = null;
7247
- return typeof i.keywords == "object" && i.keywords.$pattern && (i.keywords = Object.assign({}, i.keywords), u = i.keywords.$pattern, delete i.keywords.$pattern), u = u || /\w+/, i.keywords && (i.keywords = Kl(i.keywords, e.case_insensitive)), c.keywordPatternRe = t(u, !0), a && (i.begin || (i.begin = /\B|\b/), c.beginRe = t(c.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (c.endRe = t(c.end)), c.terminatorEnd = Pn(c.end) || "", i.endsWithParent && a.terminatorEnd && (c.terminatorEnd += (i.end ? "|" : "") + a.terminatorEnd)), i.illegal && (c.illegalRe = t(
7245
+ return typeof i.keywords == "object" && i.keywords.$pattern && (i.keywords = Object.assign({}, i.keywords), u = i.keywords.$pattern, delete i.keywords.$pattern), u = u || /\w+/, i.keywords && (i.keywords = Kl(i.keywords, e.case_insensitive)), c.keywordPatternRe = t(u, !0), a && (i.begin || (i.begin = /\B|\b/), c.beginRe = t(c.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (c.endRe = t(c.end)), c.terminatorEnd = Dn(c.end) || "", i.endsWithParent && a.terminatorEnd && (c.terminatorEnd += (i.end ? "|" : "") + a.terminatorEnd)), i.illegal && (c.illegalRe = t(
7248
7246
  /** @type {RegExp | string} */
7249
7247
  i.illegal
7250
7248
  )), i.contains || (i.contains = []), i.contains = [].concat(...i.contains.map(function(d) {
@@ -9404,7 +9402,7 @@ function Gh({ className: e, ...t }) {
9404
9402
  function Kh({ className: e }) {
9405
9403
  return /* @__PURE__ */ l("svg", { className: e || "inline-block", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" }) });
9406
9404
  }
9407
- function Tn({
9405
+ function _n({
9408
9406
  IconClass: e,
9409
9407
  term: t,
9410
9408
  visibleTerm: n = !0,
@@ -9459,7 +9457,7 @@ function Vh({
9459
9457
  s && /* @__PURE__ */ l("div", { className: "hidden @lg:block mb-3", children: s }),
9460
9458
  /* @__PURE__ */ b("dl", { className: "flex flex-wrap @lg:flex-unwrap gap-2 ", children: [
9461
9459
  o.licenseName && /* @__PURE__ */ l(
9462
- Tn,
9460
+ _n,
9463
9461
  {
9464
9462
  IconClass: Gh,
9465
9463
  text: `${o.licenseName} ${Ri}`,
@@ -9470,7 +9468,7 @@ function Vh({
9470
9468
  }
9471
9469
  ),
9472
9470
  o.externalDocsUrl && /* @__PURE__ */ l(
9473
- Tn,
9471
+ _n,
9474
9472
  {
9475
9473
  IconClass: Wr,
9476
9474
  text: Mi,
@@ -9481,7 +9479,7 @@ function Vh({
9481
9479
  }
9482
9480
  ),
9483
9481
  o.contactEmail && /* @__PURE__ */ l(
9484
- Tn,
9482
+ _n,
9485
9483
  {
9486
9484
  IconClass: Hh,
9487
9485
  text: `${o.contactEmail}`,
@@ -9492,7 +9490,7 @@ function Vh({
9492
9490
  }
9493
9491
  ),
9494
9492
  o.contactUrl && /* @__PURE__ */ l(
9495
- Tn,
9493
+ _n,
9496
9494
  {
9497
9495
  IconClass: Wh,
9498
9496
  text: `${o.contactName}`,
@@ -9504,7 +9502,7 @@ function Vh({
9504
9502
  )
9505
9503
  ] }),
9506
9504
  /* @__PURE__ */ l("dl", { className: "mt-[10px]", children: o.tags && /* @__PURE__ */ l(
9507
- Tn,
9505
+ _n,
9508
9506
  {
9509
9507
  IconClass: Kh,
9510
9508
  term: Uu,
@@ -9697,7 +9695,7 @@ function Ko({
9697
9695
  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",
9698
9696
  children: [
9699
9697
  a ? "Show less" : `Show all ${j} lines`,
9700
- /* @__PURE__ */ l(Un, { className: `w-3 h-3 transition-transform ${a ? "rotate-180" : ""}` })
9698
+ /* @__PURE__ */ l(pn, { className: `w-3 h-3 transition-transform ${a ? "rotate-180" : ""}` })
9701
9699
  ]
9702
9700
  }
9703
9701
  )
@@ -9737,7 +9735,7 @@ const rc = ({ schema: e }) => {
9737
9735
  return { schema: e, refLabel: s, circular: !0 };
9738
9736
  const o = vt(t(r));
9739
9737
  if (!o) return { schema: e, refLabel: s };
9740
- const { schema: i } = Ln(o);
9738
+ const { schema: i } = Pn(o);
9741
9739
  n.add(r);
9742
9740
  try {
9743
9741
  const a = At(i, t, n);
@@ -9848,7 +9846,7 @@ ${t}` : t;
9848
9846
  o && (s.items = Ge(o, t, n, r));
9849
9847
  const i = Vn(s);
9850
9848
  i !== null && ie(i) && (s.propertyNames = Ge(i, t, n, r));
9851
- const a = hn(s);
9849
+ const a = mn(s);
9852
9850
  a !== null && ie(a) && (s.additionalProperties = Ge(
9853
9851
  a,
9854
9852
  t,
@@ -9916,7 +9914,7 @@ ${t}` : t;
9916
9914
  return s;
9917
9915
  }, tt = (e) => e.if !== void 0, Ts = (e) => e === void 0 ? null : typeof e == "boolean" || ie(e) ? e : null, lc = (e) => Array.isArray(e._allOfConditionals) ? e._allOfConditionals.filter(
9918
9916
  (t) => ie(t)
9919
- ) : [], nt = (e) => Array.isArray(e._allOfConditionals) && e._allOfConditionals.length > 0, Vn = (e) => e.propertyNames === void 0 ? null : typeof e.propertyNames == "boolean" || ie(e.propertyNames) ? e.propertyNames : null, hn = (e) => e.additionalProperties === void 0 ? null : typeof e.additionalProperties == "boolean" || ie(e.additionalProperties) ? e.additionalProperties : null, Jo = (e) => {
9917
+ ) : [], nt = (e) => Array.isArray(e._allOfConditionals) && e._allOfConditionals.length > 0, Vn = (e) => e.propertyNames === void 0 ? null : typeof e.propertyNames == "boolean" || ie(e.propertyNames) ? e.propertyNames : null, mn = (e) => e.additionalProperties === void 0 ? null : typeof e.additionalProperties == "boolean" || ie(e.additionalProperties) ? e.additionalProperties : null, Jo = (e) => {
9920
9918
  const t = e.patternProperties;
9921
9919
  return ie(t) ? Object.entries(t).flatMap(
9922
9920
  ([n, r]) => ie(r) ? [[n, r]] : []
@@ -9924,11 +9922,11 @@ ${t}` : t;
9924
9922
  }, fm = (e, t) => `${e}.[pattern:${t}]`, Jn = (e) => e.properties !== void 0 && Object.keys(e.properties).length > 0, Yr = (e) => {
9925
9923
  const t = Vn(e);
9926
9924
  if (t !== null && ie(t)) return !0;
9927
- const n = hn(e);
9925
+ const n = mn(e);
9928
9926
  return n !== null && ie(n) ? !0 : Jo(e).length > 0;
9929
9927
  }, cc = (e) => !!(Gn(e) || Kn(e) || Jn(e) || Yr(e) || e.type === "array" || e.items || e.type !== void 0), dt = (e) => !(Xe(e) || tt(e) || nt(e) || Gn(e) || Kn(e) || Jn(e) || Yr(e) || e.items || oc(e) || e.type === "array" || e.type === "object");
9930
9928
  function pm(e) {
9931
- if (typeof hn(e) == "boolean") return !0;
9929
+ if (typeof mn(e) == "boolean") return !0;
9932
9930
  const n = Vn(e);
9933
9931
  return !!(typeof n == "boolean" || n !== null && ie(n) && dt(n) && typeof n.pattern == "string" && n.pattern.length > 0);
9934
9932
  }
@@ -10031,7 +10029,7 @@ function _r({ value: e, displayValue: t }) {
10031
10029
  );
10032
10030
  }
10033
10031
  function xm({ schema: e }) {
10034
- const t = hn(e);
10032
+ const t = mn(e);
10035
10033
  return typeof t != "boolean" ? null : /* @__PURE__ */ l(st, { children: t ? "additional properties allowed" : "additional properties not allowed" });
10036
10034
  }
10037
10035
  function wm({ schema: e }) {
@@ -10141,7 +10139,7 @@ const hc = (e, t) => {
10141
10139
  }
10142
10140
  const s = Array.isArray(e.type) ? e.type.join(" | ") : e.type;
10143
10141
  let o = s ? `${s}` : "type: unknown";
10144
- const i = hn(e);
10142
+ const i = mn(e);
10145
10143
  !Jn(e) && i !== null && ie(i) && (s === "object" || o === "type: unknown") && (o = s === "object" ? "object (map)" : "map");
10146
10144
  const a = typeof e.format == "string" ? e.format : void 0, c = t && (s === "object" || o.startsWith("object")) ? t : void 0;
10147
10145
  return { text: o, format: a, refHint: c };
@@ -10697,7 +10695,7 @@ function ut({
10697
10695
  }
10698
10696
  );
10699
10697
  }, Ne = (I) => {
10700
- const ee = W.properties ?? {}, de = new Set(W.required ?? []), G = Vn(W), be = hn(W), Ee = Jo(W);
10698
+ const ee = W.properties ?? {}, de = new Set(W.required ?? []), G = Vn(W), be = mn(W), Ee = Jo(W);
10701
10699
  return /* @__PURE__ */ b(oe, { children: [
10702
10700
  Object.entries(ee).map(([me, Fe]) => {
10703
10701
  if (!ie(Fe)) return null;
@@ -11157,14 +11155,14 @@ function yc({
11157
11155
  (s === "headers" || s === "payload") && i(s);
11158
11156
  }, [s]);
11159
11157
  const { deref: a } = Qe(), c = Co(), u = ge(
11160
- () => e.payload ? Ln(e.payload, a) : null,
11158
+ () => e.payload ? Pn(e.payload, a) : null,
11161
11159
  // protobufReady isn't read in the body, but resolveSchemaInput's result
11162
11160
  // silently depends on it via module-level state (lazyProtoToJsonSchema.ts)
11163
11161
  // — the memo must invalidate when it flips or a pending conversion never re-resolves.
11164
11162
  // eslint-disable-next-line react-hooks/exhaustive-deps
11165
11163
  [e.payload, a, c]
11166
11164
  ), d = ge(
11167
- () => e.headers ? Ln(e.headers, a) : null,
11165
+ () => e.headers ? Pn(e.headers, a) : null,
11168
11166
  // eslint-disable-next-line react-hooks/exhaustive-deps
11169
11167
  [e.headers, a, c]
11170
11168
  ), f = (m = e.examples) == null ? void 0 : m[0], p = e.description || e.payload || e.headers || e.deprecated || e.tags && e.tags.length > 0;
@@ -11177,7 +11175,7 @@ function yc({
11177
11175
  e.description && /* @__PURE__ */ l("p", { className: "text-sm text-foreground-secondary leading-relaxed", children: e.description }),
11178
11176
  (e.payload || e.headers) && /* @__PURE__ */ b("div", { children: [
11179
11177
  e.payload && e.headers && /* @__PURE__ */ l(
11180
- pn,
11178
+ hn,
11181
11179
  {
11182
11180
  tabs: [
11183
11181
  { id: "payload", name: "Payload" },
@@ -11228,7 +11226,7 @@ function yc({
11228
11226
  children: [
11229
11227
  /* @__PURE__ */ l("span", { children: t ? "Show less" : "Show more" }),
11230
11228
  /* @__PURE__ */ l(
11231
- Un,
11229
+ pn,
11232
11230
  {
11233
11231
  className: `w-3 h-3 transition-transform duration-200 ${t ? "rotate-180" : ""}`
11234
11232
  }
@@ -11288,14 +11286,14 @@ function Om({ messageKey: e, message: t, first: n, isSelected: r, focusSection:
11288
11286
  );
11289
11287
  }
11290
11288
  function xc({ messages: e, selectedKey: t, focusSection: n, layout: r }) {
11291
- const s = Object.entries(e), o = s.length ? /* @__PURE__ */ l("div", { className: "bg-surface rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ b("table", { className: "w-full", children: [
11289
+ const s = Object.entries(e), o = s.length ? /* @__PURE__ */ l("div", { className: "bg-surface rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ l("div", { className: "overflow-x-auto", children: /* @__PURE__ */ b("table", { className: "w-full", children: [
11292
11290
  /* @__PURE__ */ l("thead", { className: "bg-neutral-100", children: /* @__PURE__ */ b("tr", { children: [
11293
11291
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Message" }),
11294
11292
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Summary" }),
11295
11293
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Details" })
11296
11294
  ] }) }),
11297
11295
  s.map(([i, a], c) => /* @__PURE__ */ l(Om, { messageKey: i, message: a, first: c === 0, isSelected: t === i, focusSection: n }, i))
11298
- ] }) }) : /* @__PURE__ */ l("div", { className: "mt-10 rounded-xl border border-dashed border-neutral-300 bg-surface p-8 text-center text-sm text-foreground-muted", children: "No messages defined in this AsyncAPI document." });
11296
+ ] }) }) }) : /* @__PURE__ */ l("div", { className: "mt-10 rounded-xl border border-dashed border-neutral-300 bg-surface p-8 text-center text-sm text-foreground-muted", children: "No messages defined in this AsyncAPI document." });
11299
11297
  return /* @__PURE__ */ l("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ l(Dt, { content: o, stickySideContent: !1, layout: r }) });
11300
11298
  }
11301
11299
  function wc({ serverNames: e = [], current: t, setCurrent: n }) {
@@ -11371,7 +11369,7 @@ function Yn({
11371
11369
  className: "flex w-full items-center justify-between px-4 py-3 bg-neutral-50 text-left hover:bg-neutral-100 transition-colors",
11372
11370
  children: [
11373
11371
  e,
11374
- i ? /* @__PURE__ */ l(Un, { className: "w-4 h-4 text-foreground-muted shrink-0" }) : /* @__PURE__ */ l(Ac, { className: "w-4 h-4 text-foreground-muted shrink-0" })
11372
+ i ? /* @__PURE__ */ l(pn, { className: "w-4 h-4 text-foreground-muted shrink-0" }) : /* @__PURE__ */ l(Ac, { className: "w-4 h-4 text-foreground-muted shrink-0" })
11375
11373
  ]
11376
11374
  }
11377
11375
  ),
@@ -11444,7 +11442,7 @@ function Yo({ securities: e }) {
11444
11442
  const o = t.find((d) => d.id === r), i = o == null ? void 0 : o.kind, a = o == null ? void 0 : o.scheme, c = a == null ? void 0 : a.description;
11445
11443
  return /* @__PURE__ */ b("div", { children: [
11446
11444
  n && /* @__PURE__ */ l(
11447
- pn,
11445
+ hn,
11448
11446
  {
11449
11447
  tabs: t,
11450
11448
  current: r,
@@ -12043,12 +12041,12 @@ const qm = 10;
12043
12041
  function eg(e) {
12044
12042
  return typeof e == "object" && e !== null && typeof e.$ref == "string";
12045
12043
  }
12046
- function $n(e, t, n = 0) {
12044
+ function On(e, t, n = 0) {
12047
12045
  if (n >= qm || t === null || typeof t != "object") return t;
12048
- if (Array.isArray(t)) return t.map((s) => $n(e, s, n + 1));
12049
- if (eg(t)) return $n(e, Tt(e, t), n + 1);
12046
+ if (Array.isArray(t)) return t.map((s) => On(e, s, n + 1));
12047
+ if (eg(t)) return On(e, Tt(e, t), n + 1);
12050
12048
  const r = {};
12051
- for (const [s, o] of Object.entries(t)) r[s] = $n(e, o, n + 1);
12049
+ for (const [s, o] of Object.entries(t)) r[s] = On(e, o, n + 1);
12052
12050
  return r;
12053
12051
  }
12054
12052
  function $c(e, t, n) {
@@ -12173,7 +12171,7 @@ function ag(e, t, n) {
12173
12171
  if (C = ro(e, E.payload), C === void 0) throw new Na(t);
12174
12172
  c.push("message payload (no explicit example — generated from its schema)");
12175
12173
  } else throw new Na(t);
12176
- const N = (E == null ? void 0 : E.payload) !== void 0 ? $n(e, E.payload) : void 0, v = (E == null ? void 0 : E.headers) !== void 0 ? $n(e, E.headers) : void 0, x = r.action === "send" ? "send" : "receive";
12174
+ 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";
12177
12175
  let F;
12178
12176
  if (n === "kafka") {
12179
12177
  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;
@@ -12912,7 +12910,7 @@ async function Ig(e) {
12912
12910
  ft.registerLanguage(e, n.default);
12913
12911
  }
12914
12912
  function Rg({ operationId: e }) {
12915
- const { document: t, showCodeSamples: n } = zn(), r = fn(), s = ge(
12913
+ const { document: t, showCodeSamples: n } = Un(), r = fn(), s = ge(
12916
12914
  () => e ? Tg(t, e) : [],
12917
12915
  [t, e]
12918
12916
  ), o = ge(
@@ -13065,11 +13063,10 @@ function Lc({ operations: e, selectedKey: t = null, onSelectKey: n, focusSection
13065
13063
  onKeyDown: (E) => {
13066
13064
  E.key !== "Enter" && E.key !== " " || (E.preventDefault(), o(f));
13067
13065
  },
13068
- className: `group cursor-pointer ${S ? "bg-neutral-50" : ""}`,
13066
+ className: `cursor-pointer hover:bg-neutral-50 ${S ? "bg-neutral-50" : ""}`,
13069
13067
  children: [
13070
- /* @__PURE__ */ l("td", { className: "px-6 py-4 max-w-0 w-full group-hover:bg-neutral-50", children: h && /* @__PURE__ */ l(Lt, { address: h, parameters: y, truncate: !0 }) }),
13071
- /* @__PURE__ */ l("td", { className: "px-6 py-4 w-32 group-hover:bg-neutral-50", children: /* @__PURE__ */ l(Pt, { method: p.action, className: "w-24" }) }),
13072
- /* @__PURE__ */ l("td", { className: "group-hover:bg-neutral-50" })
13068
+ /* @__PURE__ */ l("td", { className: "px-6 py-4 max-w-0 w-full", children: h && /* @__PURE__ */ l(Lt, { address: h, parameters: y, truncate: !0 }) }),
13069
+ /* @__PURE__ */ l("td", { className: "px-6 py-4 w-32", children: /* @__PURE__ */ l(Pt, { method: p.action, className: "w-24" }) })
13073
13070
  ]
13074
13071
  },
13075
13072
  f
@@ -13092,8 +13089,7 @@ function Lc({ operations: e, selectedKey: t = null, onSelectKey: n, focusSection
13092
13089
  content: /* @__PURE__ */ l("div", { className: "bg-surface rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ b("table", { className: "w-full", children: [
13093
13090
  /* @__PURE__ */ l("thead", { className: "bg-neutral-100 w-full", children: /* @__PURE__ */ b("tr", { children: [
13094
13091
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Operation" }),
13095
- /* @__PURE__ */ l("th", { className: "px-6 py-3 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Method" }),
13096
- /* @__PURE__ */ l("th", { className: "px-6 py-3 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider" })
13092
+ /* @__PURE__ */ l("th", { className: "px-6 py-3 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Method" })
13097
13093
  ] }) }),
13098
13094
  /* @__PURE__ */ l("tbody", { className: "bg-surface divide-y divide-border", children: a })
13099
13095
  ] }) }),
@@ -13117,7 +13113,7 @@ function Xr({ schemas: e, selectedKey: t, focusTarget: n, layout: r }) {
13117
13113
  const { deref: s } = Qe(), o = Co(), i = ge(
13118
13114
  () => Object.entries(e).map(([c, u]) => [
13119
13115
  c,
13120
- Ln(u, s)
13116
+ Pn(u, s)
13121
13117
  ]),
13122
13118
  // protobufReady isn't read in the body, but resolveSchemaInput's result
13123
13119
  // silently depends on it via module-level state (lazyProtoToJsonSchema.ts)
@@ -13300,18 +13296,18 @@ const Pc = (e) => (
13300
13296
  // by it. Resolving here would put it outside its own boundary.
13301
13297
  /* @__PURE__ */ l(Da, { fallback: e.errorFallback, onError: e.onError, children: /* @__PURE__ */ l(Dg, { ...e }) })
13302
13298
  ), Dg = (e) => {
13303
- const t = e.asyncapi, n = ge(() => Fn(t), [t]), r = e.kind;
13299
+ const t = e.asyncapi, n = ge(() => zn(t), [t]), r = e.kind;
13304
13300
  ce(() => {
13305
13301
  r === "resolved" && n !== t && mo(t) && console.warn(
13306
13302
  '[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.'
13307
13303
  );
13308
13304
  }, [r, t, n]);
13309
- const s = e.config ?? Bn;
13305
+ const s = e.config ?? jn;
13310
13306
  return /* @__PURE__ */ l(Pg, { asyncapi: n, config: s });
13311
13307
  };
13312
13308
  function Xo({
13313
13309
  document: e,
13314
- config: t = Bn,
13310
+ config: t = jn,
13315
13311
  className: n = "",
13316
13312
  children: r
13317
13313
  }) {
@@ -13592,7 +13588,7 @@ function Vg({
13592
13588
  ] });
13593
13589
  }
13594
13590
  const Jg = uo(
13595
- () => import("./CodeSamples-DmiNojAj.js").then(({ CodeSamples: e }) => ({ default: e }))
13591
+ () => import("./CodeSamples-Xhkp4fLH.js").then(({ CodeSamples: e }) => ({ default: e }))
13596
13592
  );
13597
13593
  function Yg(e) {
13598
13594
  return e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
@@ -13655,7 +13651,7 @@ function Zg({
13655
13651
  (i == null ? void 0 : i.description) && /* @__PURE__ */ l("p", { className: "text-sm text-foreground-secondary mb-3", children: i.description }),
13656
13652
  j ? /* @__PURE__ */ b(oe, { children: [
13657
13653
  E && /* @__PURE__ */ l(
13658
- pn,
13654
+ hn,
13659
13655
  {
13660
13656
  tabs: $,
13661
13657
  current: M,
@@ -13719,7 +13715,7 @@ function e0({ parameters: e }) {
13719
13715
  const s = t.some((c) => c.location === n) ? n : t[0].location, o = t.find((c) => c.location === s), i = Qg(e.filter((c) => c.in === s));
13720
13716
  return /* @__PURE__ */ b("div", { children: [
13721
13717
  t.length > 1 && /* @__PURE__ */ l(
13722
- pn,
13718
+ hn,
13723
13719
  {
13724
13720
  tabs: t.map(({ location: c, label: u }) => ({ id: c, name: u.replace(/ Parameters$/, "") })),
13725
13721
  current: s,
@@ -13759,7 +13755,7 @@ function t0({
13759
13755
  ":"
13760
13756
  ] }),
13761
13757
  s && i && /* @__PURE__ */ l(
13762
- pn,
13758
+ hn,
13763
13759
  {
13764
13760
  tabs: [
13765
13761
  { id: "parameters", name: "Parameters" },
@@ -13990,7 +13986,7 @@ function jr({
13990
13986
  layout: a
13991
13987
  }) {
13992
13988
  var C;
13993
- const c = (N) => s == null ? void 0 : s(N), u = ge(() => On(e), [e]), d = ge(() => {
13989
+ const c = (N) => s == null ? void 0 : s(N), u = ge(() => In(e), [e]), d = ge(() => {
13994
13990
  var v, x, F;
13995
13991
  const N = /* @__PURE__ */ new Map();
13996
13992
  for (const Q of u) {
@@ -14067,7 +14063,7 @@ function jr({
14067
14063
  }),
14068
14064
  className: "group/header flex w-full items-center gap-3 px-6 py-3.5 text-left hover:bg-neutral-100/80 transition-colors",
14069
14065
  children: [
14070
- /* @__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(Un, { className: "h-2.5 w-2.5" }) : /* @__PURE__ */ l(Ac, { className: "h-2.5 w-2.5" }) }),
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" }) }),
14071
14067
  /* @__PURE__ */ l("span", { className: "min-w-0 flex-1 truncate text-sm font-semibold tracking-wide text-foreground-secondary", children: N }),
14072
14068
  /* @__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 })
14073
14069
  ]
@@ -14279,13 +14275,13 @@ const Wc = (e) => (
14279
14275
  // by it. Resolving here would put it outside its own boundary.
14280
14276
  /* @__PURE__ */ l(Da, { fallback: e.errorFallback, onError: e.onError, children: /* @__PURE__ */ l(l0, { ...e }) })
14281
14277
  ), l0 = (e) => {
14282
- const t = e.openapi, n = ge(() => Fn(t), [t]), r = e.kind;
14278
+ const t = e.openapi, n = ge(() => zn(t), [t]), r = e.kind;
14283
14279
  ce(() => {
14284
14280
  r === "resolved" && n !== t && mo(t) && console.warn(
14285
14281
  '[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.'
14286
14282
  );
14287
14283
  }, [r, t, n]);
14288
- const s = e.config ?? Bn;
14284
+ const s = e.config ?? jn;
14289
14285
  return /* @__PURE__ */ l(a0, { openapi: n, config: s });
14290
14286
  };
14291
14287
  function Gc(e) {
@@ -14313,7 +14309,7 @@ const ln = (e) => {
14313
14309
  var t;
14314
14310
  return ln((t = e.info) == null ? void 0 : t.description);
14315
14311
  },
14316
- targets: (e) => On(e.paths ?? {}).map(({ key: t, method: n, path: r }) => {
14312
+ targets: (e) => In(e.paths ?? {}).map(({ key: t, method: n, path: r }) => {
14317
14313
  var o, i;
14318
14314
  const s = (i = (o = e.paths) == null ? void 0 : o[r]) == null ? void 0 : i[n];
14319
14315
  return {
@@ -14442,7 +14438,7 @@ function y0(e) {
14442
14438
  }
14443
14439
  async function x0() {
14444
14440
  try {
14445
- const e = await import("./index-Mbbr0TR2.js").then((n) => n.i), t = e.default ?? e;
14441
+ const e = await import("./index-B5L7lFVZ.js").then((n) => n.i), t = e.default ?? e;
14446
14442
  if (typeof t != "function")
14447
14443
  throw new Error("Unexpected export shape from '@asyncapi/parser/browser'.");
14448
14444
  return t;
@@ -14456,7 +14452,7 @@ async function Kc(e) {
14456
14452
  try {
14457
14453
  const t = await x0(), n = new t();
14458
14454
  g0(n);
14459
- const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-bHp3BKik.js");
14455
+ const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-D77sHtPj.js");
14460
14456
  r(n);
14461
14457
  const { document: s, diagnostics: o } = await n.parse(e);
14462
14458
  return {
@@ -14509,7 +14505,7 @@ function U0({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s
14509
14505
  }
14510
14506
  async function k0() {
14511
14507
  try {
14512
- return await import("./index-DggFmM--.js");
14508
+ return await import("./index-DRKrn0hJ.js");
14513
14509
  } catch (e) {
14514
14510
  throw console.error("[apiuikit] Failed to load '@scalar/openapi-parser':", e), new Error(
14515
14511
  "[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."
@@ -14573,7 +14569,7 @@ function Jc(e, t, n) {
14573
14569
  children: i
14574
14570
  }) {
14575
14571
  const a = Ra(zr), c = ge(
14576
- () => s ? Fn(s) : null,
14572
+ () => s ? zn(s) : null,
14577
14573
  [s]
14578
14574
  ), u = !!a && a.specType !== n;
14579
14575
  if (ce(() => {
@@ -14595,7 +14591,7 @@ function G0({
14595
14591
  config: t,
14596
14592
  children: n
14597
14593
  }) {
14598
- const r = ge(() => Fn(e), [e]);
14594
+ const r = ge(() => zn(e), [e]);
14599
14595
  return /* @__PURE__ */ l(go, { document: r, config: t, children: n });
14600
14596
  }
14601
14597
  const qn = Jc(go, "AsyncAPI", "asyncapi");
@@ -14659,12 +14655,12 @@ function Z0({
14659
14655
  config: t,
14660
14656
  children: n
14661
14657
  }) {
14662
- const r = ge(() => Fn(e), [e]);
14658
+ const r = ge(() => zn(e), [e]);
14663
14659
  return /* @__PURE__ */ l(Xo, { document: r, config: t, children: n });
14664
14660
  }
14665
14661
  const tr = Jc(Xo, "OpenAPI", "openapi");
14666
14662
  function nr() {
14667
- const e = zn();
14663
+ const e = Un();
14668
14664
  return e.specType === "openapi", e.document;
14669
14665
  }
14670
14666
  function T0({ layout: e }) {
@@ -14737,7 +14733,7 @@ function nb({ layout: e, ...t }) {
14737
14733
  }
14738
14734
  export {
14739
14735
  Pc as A,
14740
- Bn as B,
14736
+ jn as B,
14741
14737
  Ko as C,
14742
14738
  F0 as D,
14743
14739
  Da as E,
@@ -14774,7 +14770,7 @@ export {
14774
14770
  p0 as r,
14775
14771
  eb as s,
14776
14772
  V0 as t,
14777
- zn as u,
14773
+ Un as u,
14778
14774
  bc as v,
14779
14775
  Y0 as w,
14780
14776
  K0 as x,