zudoku 0.54.1 → 0.54.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/app/main.d.ts +1 -1
  2. package/dist/app/main.js +1 -3
  3. package/dist/app/main.js.map +1 -1
  4. package/dist/config/validators/NavigationSchema.js +4 -2
  5. package/dist/config/validators/NavigationSchema.js.map +1 -1
  6. package/dist/flat-config.d.ts +1 -1
  7. package/dist/lib/components/BuildCheck.d.ts +2 -1
  8. package/dist/lib/components/BuildCheck.js +2 -3
  9. package/dist/lib/components/BuildCheck.js.map +1 -1
  10. package/dist/lib/components/index.d.ts +2 -1
  11. package/dist/lib/shiki.d.ts +4 -0
  12. package/dist/lib/shiki.js +2 -0
  13. package/dist/lib/shiki.js.map +1 -1
  14. package/dist/lib/ui/CodeBlock.js +30 -4
  15. package/dist/lib/ui/CodeBlock.js.map +1 -1
  16. package/dist/vite/config.js +6 -1
  17. package/dist/vite/config.js.map +1 -1
  18. package/dist/vite/plugin-config.d.ts +1 -1
  19. package/dist/vite/plugin-config.js +2 -1
  20. package/dist/vite/plugin-config.js.map +1 -1
  21. package/dist/vite/plugin-docs.js +9 -11
  22. package/dist/vite/plugin-docs.js.map +1 -1
  23. package/lib/CodeBlock-NFCmSWOK.js +98 -0
  24. package/lib/CodeBlock-NFCmSWOK.js.map +1 -0
  25. package/lib/{MdxPage-Bsko6_kb.js → MdxPage-C6Ru5mfp.js} +5 -5
  26. package/lib/{MdxPage-Bsko6_kb.js.map → MdxPage-C6Ru5mfp.js.map} +1 -1
  27. package/lib/{OAuthErrorPage-DJzGiIBt.js → OAuthErrorPage-Dd0fl6Lh.js} +4 -4
  28. package/lib/{OAuthErrorPage-DJzGiIBt.js.map → OAuthErrorPage-Dd0fl6Lh.js.map} +1 -1
  29. package/lib/{OasProvider-DQQRt3oS.js → OasProvider-DNmLItHj.js} +2 -2
  30. package/lib/{OasProvider-DQQRt3oS.js.map → OasProvider-DNmLItHj.js.map} +1 -1
  31. package/lib/{OperationList-DpmkHf26.js → OperationList-BE_BNejn.js} +8 -8
  32. package/lib/{OperationList-DpmkHf26.js.map → OperationList-BE_BNejn.js.map} +1 -1
  33. package/lib/{Pagination-kqFNgtnI.js → Pagination-29CJ3c2k.js} +2 -2
  34. package/lib/{Pagination-kqFNgtnI.js.map → Pagination-29CJ3c2k.js.map} +1 -1
  35. package/lib/{SchemaList-DS-pMd6B.js → SchemaList-BTkZiol0.js} +6 -6
  36. package/lib/{SchemaList-DS-pMd6B.js.map → SchemaList-BTkZiol0.js.map} +1 -1
  37. package/lib/{SchemaView-BnN6WHjw.js → SchemaView-Bc5_uIbh.js} +4 -4
  38. package/lib/{SchemaView-BnN6WHjw.js.map → SchemaView-Bc5_uIbh.js.map} +1 -1
  39. package/lib/{Select-BmTTKNPp.js → Select-DVKfV8Vb.js} +2 -2
  40. package/lib/{Select-BmTTKNPp.js.map → Select-DVKfV8Vb.js.map} +1 -1
  41. package/lib/{SignUp-BwOSCD-6.js → SignUp-DUmbxjcy.js} +2 -2
  42. package/lib/{SignUp-BwOSCD-6.js.map → SignUp-DUmbxjcy.js.map} +1 -1
  43. package/lib/{Slot-DAyXieeZ.js → Slot-BahfuM5e.js} +137 -124
  44. package/lib/{Slot-DAyXieeZ.js.map → Slot-BahfuM5e.js.map} +1 -1
  45. package/lib/{SyntaxHighlight-BMKR4pl6.js → SyntaxHighlight-BaPoOBLD.js} +112 -110
  46. package/lib/{SyntaxHighlight-BMKR4pl6.js.map → SyntaxHighlight-BaPoOBLD.js.map} +1 -1
  47. package/lib/{Toc-BKDRCQzU.js → Toc-MF9YxB9B.js} +2 -2
  48. package/lib/{Toc-BKDRCQzU.js.map → Toc-MF9YxB9B.js.map} +1 -1
  49. package/lib/{circular-8GWQDvCW.js → circular-Bv1c2Yd3.js} +2 -2
  50. package/lib/{circular-8GWQDvCW.js.map → circular-Bv1c2Yd3.js.map} +1 -1
  51. package/lib/{createServer-BsezSzvV.js → createServer-B4o75XI3.js} +4 -4
  52. package/lib/{createServer-BsezSzvV.js.map → createServer-B4o75XI3.js.map} +1 -1
  53. package/lib/{errors-Cs7hKmdL.js → errors-7Pb4eZXa.js} +2 -2
  54. package/lib/{errors-Cs7hKmdL.js.map → errors-7Pb4eZXa.js.map} +1 -1
  55. package/lib/hook-DbUCLQNg.js.map +1 -1
  56. package/lib/{index-A5Qdwj1B.js → index-BqrVgyZ3.js} +15 -14
  57. package/lib/{index-A5Qdwj1B.js.map → index-BqrVgyZ3.js.map} +1 -1
  58. package/lib/{index-Bg7Js3jB.js → index-D_weJvKR.js} +11 -11
  59. package/lib/{index-Bg7Js3jB.js.map → index-D_weJvKR.js.map} +1 -1
  60. package/lib/{index-BkW9tJ6j.js → index-fHJ5WmM5.js} +2 -2
  61. package/lib/{index-BkW9tJ6j.js.map → index-fHJ5WmM5.js.map} +1 -1
  62. package/lib/ui/CodeBlock.js +1 -1
  63. package/lib/ui/SyntaxHighlight.js +2 -2
  64. package/lib/zudoku.auth-azureb2c.js +3 -3
  65. package/lib/zudoku.auth-clerk.js +1 -1
  66. package/lib/zudoku.auth-openid.js +3 -3
  67. package/lib/zudoku.auth-supabase.js +1 -1
  68. package/lib/zudoku.components.js +2 -2
  69. package/lib/zudoku.plugin-api-catalog.js +3 -3
  70. package/lib/zudoku.plugin-api-keys.js +3 -3
  71. package/lib/zudoku.plugin-markdown.js +1 -1
  72. package/lib/zudoku.plugin-openapi.js +1 -1
  73. package/package.json +8 -8
  74. package/src/app/main.css +3 -7
  75. package/src/app/main.tsx +3 -6
  76. package/src/lib/components/BuildCheck.tsx +3 -3
  77. package/src/lib/shiki.ts +2 -0
  78. package/src/lib/ui/CodeBlock.tsx +38 -13
  79. package/lib/CodeBlock-B-G0eKtw.js +0 -85
  80. package/lib/CodeBlock-B-G0eKtw.js.map +0 -1
@@ -6,9 +6,9 @@ import { a as Ps, c as si } from "./index-DI5SPFK9.js";
6
6
  import { Callout as Ue } from "./ui/Callout.js";
7
7
  import * as ws from "react";
8
8
  import { useRef as je, createContext as oi, use as li, useEffect as et, useCallback as ci, useState as sn, useMemo as Ft, memo as cr, Fragment as Ms } from "react";
9
- import { s as tn, p as Ve, a as fr, v as gn, b as Bs, V as Fs, u as Hs, t as Us, c as qr, d as jr, o as Me, z as fi, e as vs, f as zs, g as Ys, i as hi, j as qs, k as Vr, E as js, S as Vs, l as Ws, h as Qs } from "./SyntaxHighlight-BMKR4pl6.js";
9
+ import { s as tn, p as Ve, a as fr, v as gn, b as Bs, V as Fs, u as Hs, t as Us, c as qr, d as jr, o as Me, z as fi, e as vs, f as zs, g as Ys, i as hi, j as qs, k as Vr, E as js, S as Vs, l as Ws, h as Qs } from "./SyntaxHighlight-BaPoOBLD.js";
10
10
  import { c as ie } from "./cn-dYga0KKN.js";
11
- import { u as Gs, C as Xs } from "./CodeBlock-B-G0eKtw.js";
11
+ import { u as Gs, C as Xs } from "./CodeBlock-NFCmSWOK.js";
12
12
  import * as pt from "@radix-ui/react-tooltip";
13
13
  import { a as Ks, d as $s, e as Js } from "./hook-DbUCLQNg.js";
14
14
  import * as yn from "@radix-ui/react-collapsible";
@@ -19,7 +19,7 @@ import { Stepper as no } from "./ui/Stepper.js";
19
19
  import { g as ro, i as uo, Z as Wr } from "./invariant-Bm-FVUQE.js";
20
20
  import { EmbeddedCodeBlock as io } from "./ui/EmbeddedCodeBlock.js";
21
21
  import { u as ao } from "./useExposedProps-KcgXHKeE.js";
22
- var ME = class extends Es {
22
+ var FE = class extends Es {
23
23
  #t;
24
24
  #e;
25
25
  #r;
@@ -14672,17 +14672,41 @@ function fp(e) {
14672
14672
  ), n = e || cp, r = t.data(), u = r.micromarkExtensions || (r.micromarkExtensions = []), a = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), i = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
14673
14673
  u.push(lp(n)), a.push(x1()), i.push(N1(n));
14674
14674
  }
14675
- const hp = ({
14675
+ const hp = {
14676
+ typescript: /(tsx?|typescript)/,
14677
+ javascript: /(jsx?|javascript)/,
14678
+ markdown: /(md|markdown)/,
14679
+ mdx: /(mdx)/,
14680
+ json: /(json)/,
14681
+ yaml: /(yaml)/,
14682
+ toml: /(toml)/,
14683
+ bash: /(shell|bash|sh|zsh)/,
14684
+ python: /(py|python)/,
14685
+ dotnet: /(cs|csharp|vb)/,
14686
+ rust: /(rs|rust)/,
14687
+ ruby: /(rb|ruby)/,
14688
+ php: /php/,
14689
+ html: /html?/,
14690
+ css: /css/
14691
+ }, dp = (e) => {
14692
+ if (!e) return;
14693
+ const t = Object.entries(hp).find(
14694
+ ([n, r]) => r.test(e)
14695
+ );
14696
+ return t ? `https://cdn.simpleicons.org/${t[0]}/000/fff?viewbox=auto` : void 0;
14697
+ }, mp = ({
14676
14698
  children: e,
14677
14699
  title: t = "Code",
14678
14700
  language: n,
14679
14701
  showCopy: r = "hover",
14680
- showLanguageIndicator: u = !1,
14702
+ showLanguageIndicator: u,
14681
14703
  showLineNumbers: a,
14682
14704
  ...i
14683
14705
  }) => {
14684
14706
  const [o, l] = Gs(), c = je(null);
14685
- return e ? /* @__PURE__ */ k.jsxs(
14707
+ if (!e) return null;
14708
+ const h = u ? dp(n) : void 0;
14709
+ return /* @__PURE__ */ k.jsxs(
14686
14710
  "div",
14687
14711
  {
14688
14712
  className: ie(
@@ -14691,13 +14715,9 @@ const hp = ({
14691
14715
  ),
14692
14716
  children: [
14693
14717
  /* @__PURE__ */ k.jsxs("div", { className: "border-b flex items-center h-10 font-sans bg-black/2", children: [
14694
- /* @__PURE__ */ k.jsxs("div", { className: "flex-1 text-sm w-full px-4", children: [
14695
- t,
14696
- u && n && /* @__PURE__ */ k.jsxs("span", { className: "text-muted-foreground ml-2", children: [
14697
- "(",
14698
- n,
14699
- ")"
14700
- ] })
14718
+ /* @__PURE__ */ k.jsxs("div", { className: "flex items-center gap-2 flex-1 text-sm w-full px-3", children: [
14719
+ h && /* @__PURE__ */ k.jsx("img", { src: h, className: "h-3 max-w-4" }),
14720
+ t
14701
14721
  ] }),
14702
14722
  " ",
14703
14723
  r !== "never" && /* @__PURE__ */ k.jsx(
@@ -14707,21 +14727,14 @@ const hp = ({
14707
14727
  "aria-label": "Copy code",
14708
14728
  title: "Copy code",
14709
14729
  className: ie(
14710
- "cursor:pointer h-full hover:border-l-border active:shadow-none active:inset-shadow-xs hover:inset-shadow-xs flex items-center gap-2 px-4 outline-border text-sm hover:bg-black/5 transition-all"
14730
+ "transition px-2 py-2 mx-1 rounded-sm",
14731
+ !o && "hover:bg-accent hover:brightness-95"
14711
14732
  ),
14712
14733
  disabled: o,
14713
14734
  onClick: () => {
14714
14735
  c.current?.textContent && l(c.current.textContent);
14715
14736
  },
14716
- children: o ? /* @__PURE__ */ k.jsx(
14717
- ks,
14718
- {
14719
- className: "text-emerald-600",
14720
- size: 14,
14721
- strokeWidth: 2.5,
14722
- absoluteStrokeWidth: !0
14723
- }
14724
- ) : /* @__PURE__ */ k.jsx(Os, { size: 14 })
14737
+ children: o ? /* @__PURE__ */ k.jsx(ks, { className: "text-emerald-600", size: 14 }) : /* @__PURE__ */ k.jsx(Os, { size: 14 })
14725
14738
  }
14726
14739
  )
14727
14740
  ] }),
@@ -14729,7 +14742,7 @@ const hp = ({
14729
14742
  "div",
14730
14743
  {
14731
14744
  className: ie(
14732
- "code-block text-sm not-prose scrollbar overflow-x-auto scrollbar [&>code]:p-4",
14745
+ "code-block text-sm not-prose scrollbar overflow-x-auto scrollbar [&>code]:p-3 [&>code]:py-2",
14733
14746
  i.className
14734
14747
  ),
14735
14748
  ref: c,
@@ -14738,7 +14751,7 @@ const hp = ({
14738
14751
  )
14739
14752
  ]
14740
14753
  }
14741
- ) : null;
14754
+ );
14742
14755
  }, Ka = oi({
14743
14756
  activeAnchor: "",
14744
14757
  setActiveAnchor: () => {
@@ -14747,7 +14760,7 @@ const hp = ({
14747
14760
  },
14748
14761
  unobserve: () => {
14749
14762
  }
14750
- }), Br = () => li(Ka), dp = () => {
14763
+ }), Br = () => li(Ka), pp = () => {
14751
14764
  const e = je(null), { observe: t, unobserve: n } = Br();
14752
14765
  return et(() => {
14753
14766
  const u = e.current;
@@ -14756,7 +14769,7 @@ const hp = ({
14756
14769
  }, [t, n]), { ref: ci((u) => {
14757
14770
  u && (e.current = u);
14758
14771
  }, []) };
14759
- }, BE = ({ children: e }) => {
14772
+ }, HE = ({ children: e }) => {
14760
14773
  const [t, n] = sn(""), r = je(null), u = je(/* @__PURE__ */ new Set()), a = je(/* @__PURE__ */ new Set());
14761
14774
  et(() => (r.current = new IntersectionObserver(
14762
14775
  (l) => {
@@ -14801,7 +14814,7 @@ const hp = ({
14801
14814
  [t, n, i]
14802
14815
  );
14803
14816
  return /* @__PURE__ */ k.jsx(Ka, { value: o, children: e });
14804
- }, mp = pt.Provider, pp = pt.Root, Ep = pt.Trigger, Tp = (e) => /* @__PURE__ */ k.jsx(
14817
+ }, Ep = pt.Provider, Tp = pt.Root, gp = pt.Trigger, bp = (e) => /* @__PURE__ */ k.jsx(
14805
14818
  pt.Arrow,
14806
14819
  {
14807
14820
  ...e,
@@ -14820,7 +14833,7 @@ const hp = ({
14820
14833
  }
14821
14834
  ));
14822
14835
  $a.displayName = pt.Content.displayName;
14823
- const gp = {
14836
+ const Ap = {
14824
14837
  green: "bg-green-400 dark:bg-green-800",
14825
14838
  blue: "bg-sky-400 dark:bg-sky-800",
14826
14839
  yellow: "bg-yellow-400 dark:bg-yellow-800",
@@ -14829,7 +14842,7 @@ const gp = {
14829
14842
  indigo: "bg-indigo-400 dark:bg-indigo-600",
14830
14843
  gray: "bg-gray-400 dark:bg-gray-600",
14831
14844
  outline: "border border-border rounded-md text-foreground"
14832
- }, bp = {
14845
+ }, _p = {
14833
14846
  green: "text-green-500 dark:text-green-600",
14834
14847
  blue: "text-sky-400 dark:text-sky-600",
14835
14848
  yellow: "text-yellow-400 dark:text-yellow-600",
@@ -14849,13 +14862,13 @@ const gp = {
14849
14862
  className: ie(
14850
14863
  "flex items-center duration-200 transition-opacity text-center uppercase text-[0.65rem] leading-5 font-bold rounded-sm text-background dark:text-zinc-50 h-full",
14851
14864
  e === "outline" ? "px-3" : "mt-0.5 px-1",
14852
- r ? bp[e] : gp[e],
14865
+ r ? _p[e] : Ap[e],
14853
14866
  n
14854
14867
  ),
14855
14868
  children: t
14856
14869
  }
14857
14870
  );
14858
- var Ap = Object.getOwnPropertyNames, _p = Object.getOwnPropertySymbols, Cp = Object.prototype.hasOwnProperty;
14871
+ var Cp = Object.getOwnPropertyNames, Ip = Object.getOwnPropertySymbols, xp = Object.prototype.hasOwnProperty;
14859
14872
  function Ku(e, t) {
14860
14873
  return function(r, u, a) {
14861
14874
  return e(r, u, a) && t(r, u, a);
@@ -14874,16 +14887,16 @@ function Zt(e) {
14874
14887
  };
14875
14888
  }
14876
14889
  function $u(e) {
14877
- return Ap(e).concat(_p(e));
14890
+ return Cp(e).concat(Ip(e));
14878
14891
  }
14879
- var Ip = Object.hasOwn || function(e, t) {
14880
- return Cp.call(e, t);
14892
+ var Np = Object.hasOwn || function(e, t) {
14893
+ return xp.call(e, t);
14881
14894
  };
14882
14895
  function ut(e, t) {
14883
14896
  return e === t || !e && !t && e !== e && t !== t;
14884
14897
  }
14885
- var xp = "__v", Np = "__o", Sp = "_owner", Ju = Object.getOwnPropertyDescriptor, Zu = Object.keys;
14886
- function kp(e, t, n) {
14898
+ var Sp = "__v", kp = "__o", Op = "_owner", Ju = Object.getOwnPropertyDescriptor, Zu = Object.keys;
14899
+ function yp(e, t, n) {
14887
14900
  var r = e.length;
14888
14901
  if (t.length !== r)
14889
14902
  return !1;
@@ -14892,13 +14905,13 @@ function kp(e, t, n) {
14892
14905
  return !1;
14893
14906
  return !0;
14894
14907
  }
14895
- function Op(e, t) {
14908
+ function Lp(e, t) {
14896
14909
  return ut(e.getTime(), t.getTime());
14897
14910
  }
14898
- function yp(e, t) {
14911
+ function Rp(e, t) {
14899
14912
  return e.name === t.name && e.message === t.message && e.cause === t.cause && e.stack === t.stack;
14900
14913
  }
14901
- function Lp(e, t) {
14914
+ function Dp(e, t) {
14902
14915
  return e === t;
14903
14916
  }
14904
14917
  function ei(e, t, n) {
@@ -14926,8 +14939,8 @@ function ei(e, t, n) {
14926
14939
  }
14927
14940
  return !0;
14928
14941
  }
14929
- var Rp = ut;
14930
- function Dp(e, t, n) {
14942
+ var Pp = ut;
14943
+ function wp(e, t, n) {
14931
14944
  var r = Zu(e), u = r.length;
14932
14945
  if (Zu(t).length !== u)
14933
14946
  return !1;
@@ -14945,10 +14958,10 @@ function Ot(e, t, n) {
14945
14958
  return !1;
14946
14959
  return !0;
14947
14960
  }
14948
- function Pp(e, t) {
14961
+ function Mp(e, t) {
14949
14962
  return ut(e.valueOf(), t.valueOf());
14950
14963
  }
14951
- function wp(e, t) {
14964
+ function Bp(e, t) {
14952
14965
  return e.source === t.source && e.flags === t.flags;
14953
14966
  }
14954
14967
  function ti(e, t, n) {
@@ -14970,7 +14983,7 @@ function ti(e, t, n) {
14970
14983
  }
14971
14984
  return !0;
14972
14985
  }
14973
- function Mp(e, t) {
14986
+ function Fp(e, t) {
14974
14987
  var n = e.length;
14975
14988
  if (t.length !== n)
14976
14989
  return !1;
@@ -14979,14 +14992,14 @@ function Mp(e, t) {
14979
14992
  return !1;
14980
14993
  return !0;
14981
14994
  }
14982
- function Bp(e, t) {
14995
+ function Hp(e, t) {
14983
14996
  return e.hostname === t.hostname && e.pathname === t.pathname && e.protocol === t.protocol && e.port === t.port && e.hash === t.hash && e.username === t.username && e.password === t.password;
14984
14997
  }
14985
14998
  function Ja(e, t, n, r) {
14986
- return (r === Sp || r === Np || r === xp) && (e.$$typeof || t.$$typeof) ? !0 : Ip(t, r) && n.equals(e[r], t[r], r, r, e, t, n);
14999
+ return (r === Op || r === kp || r === Sp) && (e.$$typeof || t.$$typeof) ? !0 : Np(t, r) && n.equals(e[r], t[r], r, r, e, t, n);
14987
15000
  }
14988
- var Fp = "[object Arguments]", Hp = "[object Boolean]", Up = "[object Date]", vp = "[object Error]", zp = "[object Map]", Yp = "[object Number]", qp = "[object Object]", jp = "[object RegExp]", Vp = "[object Set]", Wp = "[object String]", Qp = "[object URL]", Gp = Array.isArray, ni = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, ri = Object.assign, Xp = Object.prototype.toString.call.bind(Object.prototype.toString);
14989
- function Kp(e) {
15001
+ var Up = "[object Arguments]", vp = "[object Boolean]", zp = "[object Date]", Yp = "[object Error]", qp = "[object Map]", jp = "[object Number]", Vp = "[object Object]", Wp = "[object RegExp]", Qp = "[object Set]", Gp = "[object String]", Xp = "[object URL]", Kp = Array.isArray, ni = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, ri = Object.assign, $p = Object.prototype.toString.call.bind(Object.prototype.toString);
15002
+ function Jp(e) {
14990
15003
  var t = e.areArraysEqual, n = e.areDatesEqual, r = e.areErrorsEqual, u = e.areFunctionsEqual, a = e.areMapsEqual, i = e.areNumbersEqual, o = e.areObjectsEqual, l = e.arePrimitiveWrappersEqual, c = e.areRegExpsEqual, h = e.areSetsEqual, f = e.areTypedArraysEqual, p = e.areUrlsEqual;
14991
15004
  return function(A, I, L) {
14992
15005
  if (A === I)
@@ -15003,7 +15016,7 @@ function Kp(e) {
15003
15016
  return !1;
15004
15017
  if (w === Object)
15005
15018
  return o(A, I, L);
15006
- if (Gp(A))
15019
+ if (Kp(A))
15007
15020
  return t(A, I, L);
15008
15021
  if (ni != null && ni(A))
15009
15022
  return f(A, I, L);
@@ -15015,24 +15028,24 @@ function Kp(e) {
15015
15028
  return a(A, I, L);
15016
15029
  if (w === Set)
15017
15030
  return h(A, I, L);
15018
- var D = Xp(A);
15019
- return D === Up ? n(A, I, L) : D === jp ? c(A, I, L) : D === zp ? a(A, I, L) : D === Vp ? h(A, I, L) : D === qp ? typeof A.then != "function" && typeof I.then != "function" && o(A, I, L) : D === Qp ? p(A, I, L) : D === vp ? r(A, I, L) : D === Fp ? o(A, I, L) : D === Hp || D === Yp || D === Wp ? l(A, I, L) : !1;
15031
+ var D = $p(A);
15032
+ return D === zp ? n(A, I, L) : D === Wp ? c(A, I, L) : D === qp ? a(A, I, L) : D === Qp ? h(A, I, L) : D === Vp ? typeof A.then != "function" && typeof I.then != "function" && o(A, I, L) : D === Xp ? p(A, I, L) : D === Yp ? r(A, I, L) : D === Up ? o(A, I, L) : D === vp || D === jp || D === Gp ? l(A, I, L) : !1;
15020
15033
  };
15021
15034
  }
15022
- function $p(e) {
15035
+ function Zp(e) {
15023
15036
  var t = e.circular, n = e.createCustomConfig, r = e.strict, u = {
15024
- areArraysEqual: r ? Ot : kp,
15025
- areDatesEqual: Op,
15026
- areErrorsEqual: yp,
15027
- areFunctionsEqual: Lp,
15037
+ areArraysEqual: r ? Ot : yp,
15038
+ areDatesEqual: Lp,
15039
+ areErrorsEqual: Rp,
15040
+ areFunctionsEqual: Dp,
15028
15041
  areMapsEqual: r ? Ku(ei, Ot) : ei,
15029
- areNumbersEqual: Rp,
15030
- areObjectsEqual: r ? Ot : Dp,
15031
- arePrimitiveWrappersEqual: Pp,
15032
- areRegExpsEqual: wp,
15042
+ areNumbersEqual: Pp,
15043
+ areObjectsEqual: r ? Ot : wp,
15044
+ arePrimitiveWrappersEqual: Mp,
15045
+ areRegExpsEqual: Bp,
15033
15046
  areSetsEqual: r ? Ku(ti, Ot) : ti,
15034
- areTypedArraysEqual: r ? Ot : Mp,
15035
- areUrlsEqual: Bp
15047
+ areTypedArraysEqual: r ? Ot : Fp,
15048
+ areUrlsEqual: Hp
15036
15049
  };
15037
15050
  if (n && (u = ri({}, u, n(u))), t) {
15038
15051
  var a = Zt(u.areArraysEqual), i = Zt(u.areMapsEqual), o = Zt(u.areObjectsEqual), l = Zt(u.areSetsEqual);
@@ -15045,12 +15058,12 @@ function $p(e) {
15045
15058
  }
15046
15059
  return u;
15047
15060
  }
15048
- function Jp(e) {
15061
+ function eE(e) {
15049
15062
  return function(t, n, r, u, a, i, o) {
15050
15063
  return e(t, n, o);
15051
15064
  };
15052
15065
  }
15053
- function Zp(e) {
15066
+ function tE(e) {
15054
15067
  var t = e.circular, n = e.comparator, r = e.createState, u = e.equals, a = e.strict;
15055
15068
  if (r)
15056
15069
  return function(l, c) {
@@ -15081,7 +15094,7 @@ function Zp(e) {
15081
15094
  return n(l, c, i);
15082
15095
  };
15083
15096
  }
15084
- var eE = Qe();
15097
+ var nE = Qe();
15085
15098
  Qe({ strict: !0 });
15086
15099
  Qe({ circular: !0 });
15087
15100
  Qe({
@@ -15114,10 +15127,10 @@ Qe({
15114
15127
  });
15115
15128
  function Qe(e) {
15116
15129
  e === void 0 && (e = {});
15117
- var t = e.circular, n = t === void 0 ? !1 : t, r = e.createInternalComparator, u = e.createState, a = e.strict, i = a === void 0 ? !1 : a, o = $p(e), l = Kp(o), c = r ? r(l) : Jp(l);
15118
- return Zp({ circular: n, comparator: l, createState: u, equals: c, strict: i });
15130
+ var t = e.circular, n = t === void 0 ? !1 : t, r = e.createInternalComparator, u = e.createState, a = e.strict, i = a === void 0 ? !1 : a, o = Zp(e), l = Jp(o), c = r ? r(l) : eE(l);
15131
+ return tE({ circular: n, comparator: l, createState: u, equals: c, strict: i });
15119
15132
  }
15120
- const tE = ({
15133
+ const rE = ({
15121
15134
  category: e,
15122
15135
  onRequestClose: t
15123
15136
  }) => {
@@ -15201,7 +15214,7 @@ const tE = ({
15201
15214
  "ms-6 my-1"
15202
15215
  ),
15203
15216
  children: /* @__PURE__ */ k.jsx("ul", { className: "relative after:absolute after:-start-(--padding-nav-item) after:translate-x-[1.5px] after:top-0 after:bottom-0 after:w-px after:bg-border", children: e.items.map((I) => /* @__PURE__ */ k.jsx(
15204
- nE,
15217
+ uE,
15205
15218
  {
15206
15219
  onRequestClose: t,
15207
15220
  item: I
@@ -15213,7 +15226,7 @@ const tE = ({
15213
15226
  ]
15214
15227
  }
15215
15228
  );
15216
- }, Za = cr(tE, eE);
15229
+ }, Za = cr(rE, nE);
15217
15230
  Za.displayName = "NavigationCategory";
15218
15231
  const ui = ({
15219
15232
  label: e,
@@ -15232,8 +15245,8 @@ const ui = ({
15232
15245
  children: e
15233
15246
  }
15234
15247
  ),
15235
- r && /* @__PURE__ */ k.jsx(mp, { delayDuration: 500, children: /* @__PURE__ */ k.jsxs(pp, { disableHoverableContent: !0, children: [
15236
- /* @__PURE__ */ k.jsx(Ep, { className: "absolute inset-0 z-10" }),
15248
+ r && /* @__PURE__ */ k.jsx(Ep, { delayDuration: 500, children: /* @__PURE__ */ k.jsxs(Tp, { disableHoverableContent: !0, children: [
15249
+ /* @__PURE__ */ k.jsx(gp, { className: "absolute inset-0 z-10" }),
15237
15250
  /* @__PURE__ */ k.jsxs(
15238
15251
  $a,
15239
15252
  {
@@ -15241,14 +15254,14 @@ const ui = ({
15241
15254
  side: "bottom",
15242
15255
  align: "center",
15243
15256
  children: [
15244
- /* @__PURE__ */ k.jsx(Tp, {}),
15257
+ /* @__PURE__ */ k.jsx(bp, {}),
15245
15258
  e
15246
15259
  ]
15247
15260
  }
15248
15261
  )
15249
15262
  ] }) })
15250
15263
  ] });
15251
- }, es = "data-anchor", nE = ({
15264
+ }, es = "data-anchor", uE = ({
15252
15265
  item: e,
15253
15266
  onRequestClose: t
15254
15267
  }) => {
@@ -15317,7 +15330,7 @@ const ui = ({
15317
15330
  );
15318
15331
  }
15319
15332
  }
15320
- }, rE = (e, t = { block: "center" }) => {
15333
+ }, iE = (e, t = { block: "center" }) => {
15321
15334
  if (!e) return;
15322
15335
  const n = e.getBoundingClientRect();
15323
15336
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
@@ -15328,11 +15341,11 @@ const ui = ({
15328
15341
  const r = n.replace(/^#/, ""), u = r.split("/").at(0), a = document.getElementById(decodeURIComponent(r)), i = document.querySelector(
15329
15342
  `[${es}="${u}"]`
15330
15343
  );
15331
- return a ? (a.scrollIntoView(), rE(i), requestIdleCallback(() => e(u)), !0) : !1;
15344
+ return a ? (a.scrollIntoView(), iE(i), requestIdleCallback(() => e(u)), !0) : !1;
15332
15345
  },
15333
15346
  [e]
15334
15347
  );
15335
- }, FE = () => {
15348
+ }, UE = () => {
15336
15349
  const e = Tn(), t = ts(), n = je(!1);
15337
15350
  et(() => {
15338
15351
  !e.hash || !n.current || t(e.hash);
@@ -15351,7 +15364,7 @@ const ui = ({
15351
15364
  e.onClick?.(o), !(a !== t.hash.slice(1) || u !== t.pathname) && (o.preventDefault(), n(a));
15352
15365
  };
15353
15366
  return /* @__PURE__ */ k.jsx(lr, { ...e, onClick: i });
15354
- }, uE = si("", {
15367
+ }, aE = si("", {
15355
15368
  variants: {
15356
15369
  size: {
15357
15370
  sm: "max-w-sm",
@@ -15371,16 +15384,16 @@ const ui = ({
15371
15384
  size: "xl",
15372
15385
  align: "center"
15373
15386
  }
15374
- }), iE = ({
15387
+ }), sE = ({
15375
15388
  caption: e,
15376
15389
  className: t,
15377
15390
  size: n = "xl",
15378
15391
  align: r = "center",
15379
15392
  children: u
15380
- }) => /* @__PURE__ */ k.jsxs("figure", { className: ie(uE({ size: n, align: r }), t), children: [
15393
+ }) => /* @__PURE__ */ k.jsxs("figure", { className: ie(aE({ size: n, align: r }), t), children: [
15381
15394
  /* @__PURE__ */ k.jsx("div", { className: "relative overflow-hidden rounded-lg border border-border bg-muted/50 p-1 shadow-sm", children: /* @__PURE__ */ k.jsx("div", { className: "not-prose rounded-md [&_img]:rounded-md! relative overflow-hidden bg-background", children: u }) }),
15382
15395
  e && /* @__PURE__ */ k.jsx("figcaption", { className: "mt-3 text-center text-sm text-muted-foreground", children: e })
15383
- ] }), aE = si("group relative", {
15396
+ ] }), oE = si("group relative", {
15384
15397
  variants: {
15385
15398
  level: {
15386
15399
  6: "text-md",
@@ -15394,7 +15407,7 @@ const ui = ({
15394
15407
  defaultVariants: {
15395
15408
  level: 1
15396
15409
  }
15397
- }), sE = (e) => {
15410
+ }), lE = (e) => {
15398
15411
  switch (e) {
15399
15412
  case 1:
15400
15413
  return "h1";
@@ -15418,11 +15431,11 @@ const ui = ({
15418
15431
  className: r,
15419
15432
  registerNavigationAnchor: u
15420
15433
  }) => {
15421
- const a = sE(e ?? 1), { ref: i } = dp();
15434
+ const a = lE(e ?? 1), { ref: i } = pp();
15422
15435
  return /* @__PURE__ */ k.jsxs(
15423
15436
  a,
15424
15437
  {
15425
- className: aE({
15438
+ className: oE({
15426
15439
  className: ie("flex items-center gap-[0.33em]", r),
15427
15440
  level: e
15428
15441
  }),
@@ -15442,7 +15455,7 @@ const ui = ({
15442
15455
  ]
15443
15456
  }
15444
15457
  );
15445
- }, oE = ({
15458
+ }, cE = ({
15446
15459
  asChild: e,
15447
15460
  onClick: t,
15448
15461
  enabled: n = !0,
@@ -15464,12 +15477,12 @@ const ui = ({
15464
15477
  ...r
15465
15478
  }
15466
15479
  );
15467
- }, lE = ({
15480
+ }, fE = ({
15468
15481
  className: e,
15469
15482
  children: t,
15470
15483
  selectOnClick: n,
15471
15484
  onClick: r
15472
- }) => /* @__PURE__ */ k.jsx(oE, { asChild: !0, enabled: n, onClick: r, children: /* @__PURE__ */ k.jsx(
15485
+ }) => /* @__PURE__ */ k.jsx(cE, { asChild: !0, enabled: n, onClick: r, children: /* @__PURE__ */ k.jsx(
15473
15486
  "code",
15474
15487
  {
15475
15488
  className: ie(
@@ -15478,7 +15491,7 @@ const ui = ({
15478
15491
  ),
15479
15492
  children: t
15480
15493
  }
15481
- ) }), cE = {
15494
+ ) }), hE = {
15482
15495
  img: ({ node: e, ...t }) => /\.(mp4|webm|mov|avi)$/.test(t.src ?? "") ? /* @__PURE__ */ k.jsx(
15483
15496
  "video",
15484
15497
  {
@@ -15490,7 +15503,7 @@ const ui = ({
15490
15503
  className: ie("rounded-lg", t.className)
15491
15504
  }
15492
15505
  ) : /* @__PURE__ */ k.jsx("img", { ...t, className: ie("rounded-lg", t.className) }),
15493
- Framed: iE,
15506
+ Framed: sE,
15494
15507
  h1: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(Ye, { level: 1, id: t, children: e }),
15495
15508
  h2: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(Ye, { level: 2, id: t, children: e }),
15496
15509
  h3: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(Ye, { level: 3, id: t, children: e }),
@@ -15519,8 +15532,8 @@ const ui = ({
15519
15532
  ...i
15520
15533
  }) => {
15521
15534
  const o = e?.match(/language?-(\w+)/);
15522
- return u === "true" || u === !0 ? /* @__PURE__ */ k.jsx(lE, { className: ie(e, "inline"), children: n }) : /* @__PURE__ */ k.jsx(
15523
- hp,
15535
+ return u === "true" || u === !0 ? /* @__PURE__ */ k.jsx(fE, { className: ie(e, "inline"), children: n }) : /* @__PURE__ */ k.jsx(
15536
+ mp,
15524
15537
  {
15525
15538
  language: o?.[1],
15526
15539
  showLanguageIndicator: !0,
@@ -15530,10 +15543,10 @@ const ui = ({
15530
15543
  }
15531
15544
  );
15532
15545
  }
15533
- }, fE = "prose dark:prose-invert prose-neutral typography", Fr = ({
15546
+ }, dE = "prose dark:prose-invert prose-neutral typography", Fr = ({
15534
15547
  children: e,
15535
15548
  className: t
15536
- }) => /* @__PURE__ */ k.jsx("div", { className: ie(fE, t), children: e }), hE = [fp], rs = cr(
15549
+ }) => /* @__PURE__ */ k.jsx("div", { className: ie(dE, t), children: e }), mE = [fp], rs = cr(
15537
15550
  ({
15538
15551
  content: e,
15539
15552
  className: t,
@@ -15546,13 +15559,13 @@ const ui = ({
15546
15559
  ],
15547
15560
  [r?.themes]
15548
15561
  ), a = Ft(
15549
- () => ({ ...cE, ...n }),
15562
+ () => ({ ...hE, ...n }),
15550
15563
  [n]
15551
15564
  );
15552
15565
  return /* @__PURE__ */ k.jsx(Fr, { className: t, children: /* @__PURE__ */ k.jsx(
15553
15566
  C0,
15554
15567
  {
15555
- remarkPlugins: hE,
15568
+ remarkPlugins: mE,
15556
15569
  rehypePlugins: u,
15557
15570
  components: a,
15558
15571
  children: e
@@ -15570,7 +15583,7 @@ const us = ({
15570
15583
  typeof e == "string" ? /* @__PURE__ */ k.jsx(rs, { content: e }) : /* @__PURE__ */ k.jsx("div", { children: e }),
15571
15584
  /* @__PURE__ */ k.jsx("small", { className: "italic", children: "Note: This hint is only shown in development mode." })
15572
15585
  ] }) });
15573
- }, dE = () => {
15586
+ }, pE = () => {
15574
15587
  const e = Is();
15575
15588
  return /* @__PURE__ */ k.jsxs(Fr, { className: "h-full pt-(--padding-content-top)", children: [
15576
15589
  /* @__PURE__ */ k.jsx(oo, { children: "404" }),
@@ -15610,7 +15623,7 @@ const us = ({
15610
15623
  }
15611
15624
  );
15612
15625
  is.displayName = "SyntaxHighlight";
15613
- function mE({ error: e }) {
15626
+ function EE({ error: e }) {
15614
15627
  const t = e instanceof Error ? e.message : "Something went wrong", n = e instanceof Wr ? e.developerHint : void 0, r = e instanceof Wr ? e.title : "Something went wrong", u = e instanceof Error ? e.stack : void 0, a = e instanceof Error ? e.cause : void 0, i = a instanceof Error ? String(a.stack) : u;
15615
15628
  return /* @__PURE__ */ k.jsxs(Fr, { className: "grid grid-cols-1 !max-w-none pt-(--padding-content-top)", children: [
15616
15629
  /* @__PURE__ */ k.jsx(Ye, { level: 1, children: r }),
@@ -15627,9 +15640,9 @@ function mE({ error: e }) {
15627
15640
  )
15628
15641
  ] });
15629
15642
  }
15630
- function HE() {
15643
+ function vE() {
15631
15644
  const e = Ns();
15632
- return Ss(e) && e.status === 404 ? /* @__PURE__ */ k.jsx(dE, {}) : /* @__PURE__ */ k.jsx(mE, { error: e });
15645
+ return Ss(e) && e.status === 404 ? /* @__PURE__ */ k.jsx(pE, {}) : /* @__PURE__ */ k.jsx(EE, { error: e });
15633
15646
  }
15634
15647
  const as = ({
15635
15648
  slots: e = {}
@@ -15669,28 +15682,28 @@ const as = ({
15669
15682
  return f.length === 0 ? (l.delete(i), c.delete(i)) : l.set(i, f), { items: l, sequences: c };
15670
15683
  })
15671
15684
  }));
15672
- }, ss = oi(as()), UE = ({
15685
+ }, ss = oi(as()), zE = ({
15673
15686
  children: e,
15674
15687
  slots: t
15675
15688
  }) => {
15676
15689
  const n = je(as({ slots: t })).current;
15677
15690
  return /* @__PURE__ */ k.jsx(ss, { value: n, children: e });
15678
15691
  };
15679
- function pE(e) {
15692
+ function TE(e) {
15680
15693
  const t = li(ss);
15681
15694
  return Js(t, e);
15682
15695
  }
15683
- const ii = ["prepend", "replace", "append"], EE = (e) => {
15684
- const t = ao(), n = pE((r) => r.getItems(e));
15696
+ const ii = ["prepend", "replace", "append"], gE = (e) => {
15697
+ const t = ao(), n = TE((r) => r.getItems(e));
15685
15698
  return Ft(() => n.length === 0 ? [] : n.toSorted((r, u) => {
15686
15699
  const a = ii.indexOf(r.type) - ii.indexOf(u.type);
15687
15700
  return a !== 0 ? a : r.sequence - u.sequence;
15688
15701
  }).map(
15689
15702
  (r) => typeof r.content == "function" ? /* @__PURE__ */ k.jsx(r.content, { ...t }, r.id) : /* @__PURE__ */ k.jsx(Ms, { children: r.content }, r.id)
15690
15703
  ), [n, t]);
15691
- }, vE = {
15704
+ }, YE = {
15692
15705
  Target: ({ name: e, fallback: t }) => {
15693
- const n = EE(e);
15706
+ const n = gE(e);
15694
15707
  return n.length === 0 ? t : n;
15695
15708
  }
15696
15709
  };
@@ -15698,29 +15711,29 @@ export {
15698
15711
  ns as A,
15699
15712
  oo as C,
15700
15713
  us as D,
15701
- mE as E,
15714
+ EE as E,
15702
15715
  Ye as H,
15703
- lE as I,
15716
+ fE as I,
15704
15717
  rs as M,
15705
- nE as N,
15706
- HE as R,
15707
- oE as S,
15718
+ uE as N,
15719
+ vE as R,
15720
+ cE as S,
15708
15721
  Fr as T,
15709
- BE as V,
15710
- vE as a,
15711
- pp as b,
15712
- Ep as c,
15722
+ HE as V,
15723
+ YE as a,
15724
+ Tp as b,
15725
+ gp as c,
15713
15726
  $a as d,
15714
15727
  $d as e,
15715
- mp as f,
15728
+ Ep as f,
15716
15729
  so as g,
15717
- ME as h,
15718
- eE as i,
15719
- FE as j,
15720
- dE as k,
15721
- cE as l,
15722
- UE as m,
15723
- rE as s,
15730
+ FE as h,
15731
+ nE as i,
15732
+ UE as j,
15733
+ pE as k,
15734
+ hE as l,
15735
+ zE as m,
15736
+ iE as s,
15724
15737
  Br as u
15725
15738
  };
15726
- //# sourceMappingURL=Slot-DAyXieeZ.js.map
15739
+ //# sourceMappingURL=Slot-BahfuM5e.js.map