boltdocs 2.6.0 → 2.6.1

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.
@@ -3,4 +3,4 @@
3
3
  * Copyright (c) 2026 Jesus Alcala
4
4
  * Licensed under the MIT License.
5
5
  */
6
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../use-search-DcfZSunO.cjs`);let t=require(`react-router-dom`),n=require(`virtual:boltdocs-layout`);n=e.D(n);let r=require(`react`),i=require(`react/jsx-runtime`),a=require(`react-aria-components`);a=e.D(a);let o=require(`react-helmet-async`),s=require(`lucide-react`);s=e.D(s);let c=require(`class-variance-authority`),l=require(`scroll-into-view-if-needed`);l=e.D(l);let u=require(`virtual:boltdocs-mdx-components`);u=e.D(u);let d=require(`virtual:boltdocs-icons`);d=e.D(d);function f(e){return e}const p=Symbol.for(`__BDOCS_MDX_COMPONENTS_CONTEXT__`),m=Symbol.for(`__BDOCS_MDX_COMPONENTS_INSTANCE__`),h=globalThis[p]||(globalThis[p]=(0,r.createContext)({}));function g(){let e=(0,r.use)(h);return(!e||Object.keys(e).length===0)&&globalThis[m]?globalThis[m]:e}function _({components:e,children:t}){return typeof globalThis<`u`&&(globalThis[m]=e),(0,i.jsx)(h.Provider,{value:e,children:t})}function v({route:e,content:t,mdxComponents:a}){let o=g(),s=(0,r.useMemo)(()=>({...o,...a}),[o,a]);return t?(0,i.jsx)(n.default,{route:e,children:(0,i.jsx)(t,{components:s})}):null}function y({MDXComponent:e,mdxComponents:n}){let r=(0,t.useLoaderData)(),a=e||r?.MDXComponent,o=n||r?.mdxComponents;return a?(0,i.jsx)(v,{route:{path:r.path,filePath:r.filePath,title:r.frontmatter.title,description:r.frontmatter.description,headings:r.headings,locale:r.locale,version:r.version,group:r.group,groupTitle:r.groupTitle},content:a,mdxComponents:o}):null}const b=Symbol.for(`__BDOCS_THEME_CONTEXT__`),x=Symbol.for(`__BDOCS_THEME_INSTANCE__`),S=`boltdocs-theme-change`,C=globalThis[b]||(globalThis[b]=(0,r.createContext)(void 0));function w({children:e}){let[t,n]=(0,r.useState)(`system`),[a,o]=(0,r.useState)(`dark`),s=e=>{let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=e===`dark`||e===`system`&&t.matches,r=window.document.documentElement;r.classList.toggle(`dark`,n),r.dataset.theme=n?`dark`:`light`,o(n?`dark`:`light`)};(0,r.useEffect)(()=>{let e=localStorage.getItem(`boltdocs-theme`);e?(n(e),s(e)):s(`system`);let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=()=>{(localStorage.getItem(`boltdocs-theme`)||`system`)===`system`&&s(`system`)};return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[]);let c={theme:t,resolvedTheme:a,setTheme:e=>{n(e),localStorage.setItem(`boltdocs-theme`,e),s(e),typeof window<`u`&&window.dispatchEvent(new CustomEvent(S,{detail:e}))}};return typeof globalThis<`u`&&(globalThis[x]=c),(0,i.jsx)(C.Provider,{value:c,children:e})}function T(){let e=(0,r.use)(C),[,t]=(0,r.useState)({});if((0,r.useEffect)(()=>{if(e)return;let n=()=>t({});return window.addEventListener(S,n),()=>window.removeEventListener(S,n)},[e]),!e&&typeof globalThis<`u`&&globalThis[x])return globalThis[x];if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function ee(){let{pathname:e,hash:n}=(0,t.useLocation)();return(0,r.useLayoutEffect)(()=>{let e=document.querySelector(`.boltdocs-content`)||window,t=()=>e===window?window.scrollY:e.scrollTop,r=(t,n=`auto`)=>{e===window?window.scrollTo({top:t,behavior:n}):e.scrollTo({top:t,behavior:n})};if(n){let i=n.replace(`#`,``),a=document.getElementById(i);if(a){let n=e===window?0:e.getBoundingClientRect().top;r(a.getBoundingClientRect().top-n-80+t(),`smooth`);return}}r(0)},[e,n]),null}const E=(0,c.cva)(`flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none`,{variants:{variant:{primary:`bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg`,secondary:`bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong`,outline:`bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500`,ghost:`bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main`,danger:`bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15`,success:`bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15`,warning:`bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15`,info:`bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15`,subtle:`bg-primary-500/10 text-primary-500 hover:bg-primary-500/20`,link:`bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline`},size:{sm:`min-h-8 px-3.5 text-[0.8125rem] gap-1.5`,md:`min-h-10 px-5 text-[0.9375rem] gap-2`,lg:`min-h-12 px-7 text-[1.05rem] gap-2.5`},rounded:{none:`rounded-none`,sm:`rounded-sm`,md:`rounded-md`,lg:`rounded-lg`,full:`rounded-full`},iconSize:{sm:`w-8 h-8 p-0`,md:`w-10 h-10 p-0`,lg:`w-12 h-12 p-0`},disabled:{true:`opacity-50 cursor-not-allowed pointer-events-none`,false:null}},defaultVariants:{variant:`primary`,size:`md`,rounded:`md`}}),D=({href:t,icon:n,iconPosition:r=`left`,isIconOnly:o,children:s,className:c,variant:l,size:u,rounded:d,iconSize:f,disabled:p,...m})=>{let h=o||!s&&!!n,g=h?(0,i.jsx)(`span`,{className:`inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]`,children:n}):(0,i.jsxs)(i.Fragment,{children:[n&&r===`left`&&(0,i.jsx)(`span`,{className:`inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]`,children:n}),(0,i.jsx)(`span`,{className:`flex items-center`,children:s}),n&&r===`right`&&(0,i.jsx)(`span`,{className:`inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]`,children:n})]});return t?(0,i.jsx)(a.Link,{href:t,className:e.x(E({variant:l,size:u,rounded:d,iconSize:h?f:void 0,disabled:p}),c),...m,children:g}):(0,i.jsx)(a.Button,{className:e.x(E({variant:l,size:u,rounded:d,iconSize:h?f:void 0,disabled:p}),c),...m,children:g})},te=({className:t,variant:n,size:r,rounded:a,iconSize:o,disabled:s,...c})=>(0,i.jsx)(D,{className:e.x(`group`,E({variant:n,size:r,rounded:a,iconSize:o,disabled:s,className:t})),...c}),O=(e,t)=>{if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(e=>O(e,t)).join(``);if((0,r.isValidElement)(e)){let n=t?.get(e.type);return n?n(e.props):O(e.props.children,t)}return``},ne=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement(`textarea`);return t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select(),document.execCommand(`copy`),document.body.removeChild(t),!0}};function re(t){let{title:n}=t,[i,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),[c,l]=(0,r.useState)(!1),u=(0,r.useRef)(null);e.C();let d=(0,r.useCallback)(async()=>{ne(u.current?.textContent??``),a(!0),setTimeout(()=>a(!1),2e3)},[]);return(0,r.useEffect)(()=>{l((u.current?.textContent?.length??0)>120)},[t.children,t.highlightedHtml]),{copied:i,isExpanded:o,setIsExpanded:s,isExpandable:c,preRef:u,handleCopy:d,shouldTruncate:c&&!o}}const ie=({children:t,className:n,plain:r=!1,...a})=>(0,i.jsx)(`div`,{className:e.x(`not-prose boltdocs-code-block`,`group relative overflow-hidden bg-(--color-code-bg)`,`contain-layout contain-paint`,{"my-6 rounded-lg border border-border-subtle":!r},n),...a,children:t}),ae=({children:t,className:n,...r})=>(0,i.jsx)(`div`,{className:e.x(`flex h-9 items-center justify-between px-4 py-1.5`,`border-b border-border-subtle bg-bg-surface/50`,`text-[13px] font-medium text-text-muted`,n),...r,children:t}),oe=({children:t,className:n,...r})=>(0,i.jsx)(`div`,{className:e.x(`flex items-center space-x-2`,n),...r,children:t}),se=({className:t,children:n,shouldTruncate:r=!1,...a})=>(0,i.jsx)(`div`,{className:e.x(`relative`,{"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":r},t),...a,children:n}),ce=({className:t,children:n,...r})=>(0,i.jsx)(a.Tooltip,{...r,offset:8,className:n=>e.x(`group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none`,`data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100`,`data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75`,`data-[placement=top]:slide-in-from-bottom-1`,`data-[placement=bottom]:slide-in-from-top-1`,`data-[placement=left]:slide-in-from-right-1`,`data-[placement=right]:slide-in-from-left-1`,typeof t==`function`?t(n):t),children:e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.OverlayArrow,{children:(0,i.jsxs)(`svg`,{width:8,height:8,viewBox:`0 0 8 8`,className:`fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90`,children:[(0,i.jsx)(`title`,{children:`Arrow`}),(0,i.jsx)(`path`,{d:`M0 0 L4 4 L8 0`})]})}),typeof n==`function`?n(e):n]})}),k=({content:e,children:t,delay:n=500,closeDelay:r=0,...o})=>(0,i.jsxs)(a.TooltipTrigger,{delay:n,closeDelay:r,children:[t,(0,i.jsx)(ce,{...o,children:e})]});k.Root=k,k.Content=ce;const le={ts:e.y,tsx:e.g,js:e.p,jsx:e.g,json:e.m,css:e.d,html:e.l,md:e.h,mdx:e.h,bash:e.v,sh:e.v,yaml:e.b,yml:e.b,rs:e._,rust:e._,toml:e.u},ue=({copied:t,handleCopy:n})=>(0,i.jsx)(k,{content:t?`Copied!`:`Copy code`,children:(0,i.jsx)(a.Button,{onPress:n,className:e.x(`grid place-items-center size-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 [&>svg]:size-4 [&>svg]:stroke-2`,t?`text-emerald-400`:`text-text-muted hover:text-text-main`),"aria-label":`Copy code`,children:t?(0,i.jsx)(s.Check,{size:20}):(0,i.jsx)(s.Copy,{size:20})})});function A(t){let{children:n,hideCopy:r=!1,highlightedHtml:o,"data-highlighted-html":c,title:l,"data-title":u,"data-lang":d,plain:f=!1,...p}=t,m=o||c,h=l||u,g=t.lang||d||``,{copied:_,isExpanded:v,setIsExpanded:y,isExpandable:b,preRef:x,handleCopy:S,shouldTruncate:C}=re(t),w=le[g];return(0,i.jsxs)(ie,{plain:f,className:t.className,children:[(h||!r)&&(0,i.jsxs)(ae,{children:[(0,i.jsx)(oe,{children:h&&(0,i.jsxs)(i.Fragment,{children:[w?(0,i.jsx)(w,{size:14}):(0,i.jsx)(s.File,{size:14,className:`opacity-60`}),(0,i.jsx)(`span`,{children:h})]})}),!r&&(0,i.jsx)(ue,{copied:_,handleCopy:S})]}),(0,i.jsxs)(se,{shouldTruncate:C,children:[m?(0,i.jsx)(`div`,{ref:x,className:`shiki-wrapper [&>pre]:m-0! [&>pre]:rounded-none! [&>pre]:border-none! [&>pre]:bg-inherit! [&>pre>code]:grid! [&>pre>code]:p-5! [&>.shiki.shiki-themes]:bg-transparent!`,dangerouslySetInnerHTML:{__html:m}}):(0,i.jsx)(`pre`,{ref:x,className:`m-0! p-5! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7] overflow-x-auto`,...p,children:O(n)}),b&&(0,i.jsx)(`div`,{className:e.x(C?`absolute bottom-0 inset-x-0 h-24 bg-linear-to-t from-(--color-code-bg) to-transparent flex items-end justify-center pb-4 z-10`:`relative flex justify-center py-4`),children:(0,i.jsx)(a.Button,{onPress:()=>y(!v),className:`rounded-full bg-bg-surface border border-border-subtle px-5 py-2 text-[0.8125rem] font-medium text-text-main outline-none cursor-pointer transition-all hover:bg-border-subtle hover:-translate-y-px backdrop-blur-md`,children:v?`Show less`:`Expand code`})})]})]})}function de({initialIndex:e=0,tabs:t}){let n=t[e]?.props.disabled?t.findIndex(e=>!e.props.disabled):e,[i,a]=(0,r.useState)(n===-1?0:n),o=(0,r.useRef)([]),[s,c]=(0,r.useState)({opacity:0,transform:`translateX(0)`,width:0});return(0,r.useEffect)(()=>{let e=o.current[i];e&&c({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[i,t]),{active:i,setActive:a,tabRefs:o,indicatorStyle:s,handleKeyDown:(0,r.useCallback)(e=>{let n=0;if(e.key===`ArrowRight`?n=1:e.key===`ArrowLeft`&&(n=-1),n!==0){let e=(i+n+t.length)%t.length;for(;t[e].props.disabled&&e!==i;)e=(e+n+t.length)%t.length;e!==i&&!t[e].props.disabled&&(a(e),o.current[e]?.focus())}},[i,t])}}const fe=(0,c.cva)(`relative flex items-center border-b border-border-subtle gap-1 overflow-x-auto no-scrollbar`,{variants:{size:{default:`px-0`,compact:`px-2`}},defaultVariants:{size:`default`}}),pe=(0,c.cva)(`flex items-center gap-2 px-4 py-2.5 text-sm font-medium outline-none transition-all duration-200 cursor-pointer bg-transparent border-none select-none whitespace-nowrap`,{variants:{isActive:{true:`text-primary-500`,false:`text-text-muted hover:text-text-main`},isDisabled:{true:`opacity-40 pointer-events-none`,false:``}},defaultVariants:{isActive:!1,isDisabled:!1}});function me({children:e}){return(0,i.jsx)(`div`,{className:`py-4`,children:typeof e==`string`?(0,i.jsx)(A,{className:`language-bash`,children:(0,i.jsx)(`code`,{children:e.trim()})}):e})}function he({defaultIndex:t=0,children:n}){let o=(0,r.useMemo)(()=>r.Children.toArray(n).filter(e=>(0,r.isValidElement)(e)&&e.props?.label),[n]),{active:s,setActive:c,tabRefs:l,indicatorStyle:u}=de({initialIndex:t,tabs:o});return(0,i.jsx)(`div`,{className:`my-8 w-full group/tabs`,children:(0,i.jsxs)(a.Tabs,{selectedKey:s.toString(),onSelectionChange:e=>c(Number(e)),className:`w-full`,children:[(0,i.jsxs)(a.TabList,{"aria-label":`Content Tabs`,className:e.x(fe()),children:[o.map((t,n)=>{let{label:r,icon:o,disabled:s}=t.props,c=n.toString();return(0,i.jsxs)(a.Tab,{id:c,isDisabled:s,ref:e=>{l.current[n]=e},className:({isSelected:t,isDisabled:n})=>e.x(pe({isActive:t,isDisabled:n})),children:[!!o&&(0,i.jsx)(`span`,{className:`shrink-0 [&>svg]:w-4 [&>svg]:h-4`,children:o}),(0,i.jsx)(`span`,{children:r})]},c)}),(0,i.jsx)(`div`,{className:`absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none`,style:u,"aria-hidden":`true`})]}),o.map((e,t)=>(0,i.jsx)(a.TabPanel,{id:t.toString(),children:o[t]},t))]})})}function ge({src:e,poster:t,alt:n,children:a,controls:o,preload:s=`metadata`,...c}){let l=(0,r.useRef)(null),[u,d]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=l.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(d(!0),t.disconnect())},{rootMargin:`200px`});return t.observe(e),()=>t.disconnect()},[]),(0,i.jsx)(`div`,{ref:l,className:`my-6 overflow-hidden rounded-lg border border-border-subtle`,children:u?(0,i.jsxs)(`video`,{className:`block w-full h-auto`,src:e,poster:t,controls:!0,preload:s,playsInline:!0,...c,children:[a,`Your browser does not support the video tag.`]}):(0,i.jsx)(`div`,{className:`aspect-video bg-bg-surface animate-pulse`,role:`img`,"aria-label":n||`Video`})})}const _e=(0,c.cva)(`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold tracking-tight`,{variants:{variant:{default:`bg-bg-surface text-text-muted border-border-subtle`,primary:`bg-primary-500/15 text-primary-400 border-primary-500/20`,success:`bg-emerald-500/15 text-emerald-400 border-emerald-500/20`,warning:`bg-amber-500/15 text-amber-400 border-amber-500/20`,danger:`bg-red-500/15 text-red-400 border-red-500/20`,info:`bg-sky-500/15 text-sky-400 border-sky-500/20`}},defaultVariants:{variant:`default`}});function ve({variant:t=`default`,children:n,className:r=``,...a}){return(0,i.jsx)(`span`,{className:e.x(_e({variant:t}),r),...a,children:n})}const ye=(0,c.cva)(`grid gap-4 my-6`,{variants:{cols:{1:`grid-cols-1`,2:`grid-cols-1 sm:grid-cols-2`,3:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`,4:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-4`}},defaultVariants:{cols:3}});function be({cols:t=3,children:n,className:r=``,...a}){return(0,i.jsx)(`div`,{className:e.x(ye({cols:t}),r),...a,children:n})}function xe({title:t,icon:n,href:o,children:s,className:c=``,...l}){let u=(0,r.useRef)(null),d=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{let t=u.current||d.current;if(!t)return;let{left:n,top:r}=t.getBoundingClientRect();t.style.setProperty(`--x`,`${e.clientX-n}px`),t.style.setProperty(`--y`,`${e.clientY-r}px`)},[]),p=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`div`,{className:`pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100`,style:{background:`radial-gradient(400px circle at var(--x) var(--y), color-mix(in oklch, var(--color-primary-500), transparent 90%), transparent 80%)`}}),n&&(0,i.jsx)(`div`,{className:`mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10 text-primary-400 text-lg transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3`,children:n}),(0,i.jsxs)(`div`,{className:`space-y-1.5`,children:[t&&(0,i.jsx)(`h3`,{className:`text-sm font-bold text-text-main`,children:t}),s&&(0,i.jsx)(`div`,{className:`text-sm text-text-muted leading-relaxed`,children:s})]})]}),m=e.x(`group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden`,`transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,c);return o?(0,i.jsx)(a.Link,{ref:d,href:o,className:e.x(m,`no-underline cursor-pointer`),onMouseMove:f,...l,children:p}):(0,i.jsx)(`div`,{ref:u,role:`presentation`,className:m,onMouseMove:f,...l,children:p})}const Se={note:(0,i.jsx)(s.Bookmark,{size:18}),tip:(0,i.jsx)(s.Lightbulb,{size:18}),info:(0,i.jsx)(s.Info,{size:18}),warning:(0,i.jsx)(s.AlertTriangle,{size:18}),danger:(0,i.jsx)(s.ShieldAlert,{size:18}),important:(0,i.jsx)(s.Flame,{size:18}),caution:(0,i.jsx)(s.Zap,{size:18})},Ce=(0,c.cva)(`py-4 px-4 rounded-lg flex items-center gap-3 border-[1px] flex-row`,{variants:{type:{note:`border-primary-200 dark:border-primary-800 bg-primary-500/5 text-primary-400`,tip:`border-emerald-200 dark:border-emerald-800 bg-emerald-500/5 text-emerald-500`,info:`border-sky-200 dark:border-sky-800 bg-sky-500/5 text-sky-500`,warning:`border-amber-200 dark:border-amber-800 bg-amber-500/5 text-amber-500`,danger:`border-red-200 dark:border-red-800/70 bg-red-500/5 text-red-500`,important:`border-orange-200 dark:border-orange-800/70 bg-orange-500/5 text-orange-500`,caution:`border-yellow-200 dark:border-yellow-800/70 bg-yellow-500/5 text-yellow-500`}},defaultVariants:{type:`note`}});function j({type:t=`note`,title:n,children:r,className:a=``,...o}){return(0,i.jsxs)(`div`,{className:e.x(Ce({type:t}),a),role:t===`warning`||t===`danger`?`alert`:`note`,...o,children:[Se[t],(0,i.jsx)(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0`,children:r})]})}const we=e=>(0,i.jsx)(j,{type:`note`,...e}),Te=e=>(0,i.jsx)(j,{type:`tip`,...e}),Ee=e=>(0,i.jsx)(j,{type:`warning`,...e}),De=e=>(0,i.jsx)(j,{type:`danger`,...e}),Oe=e=>(0,i.jsx)(j,{type:`info`,...e}),ke=e=>(0,i.jsx)(j,{type:`important`,...e}),Ae=e=>(0,i.jsx)(j,{type:`caution`,...e}),je=(0,c.cva)(`my-6 transition-all duration-200`,{variants:{variant:{default:`list-disc pl-5 text-text-muted marker:text-primary-500/50`,number:`list-decimal pl-5 text-text-muted marker:text-primary-500/50 marker:font-bold`,checked:`list-none p-0`,arrow:`list-none p-0`,bubble:`list-none p-0`},cols:{1:`grid-cols-1`,2:`grid-cols-1 sm:grid-cols-2`,3:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`,4:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-4`},isGrid:{true:`grid gap-x-8 gap-y-3`,false:`space-y-2`},dense:{true:`space-y-1`,false:`space-y-2`}},compoundVariants:[{variant:`default`,dense:!0,className:`space-y-0.5`}],defaultVariants:{variant:`default`,cols:1,isGrid:!1,dense:!1}}),Me=(0,c.cva)(`group flex items-start gap-3 text-sm leading-relaxed transition-all duration-200`,{variants:{variant:{default:``,number:``,checked:`hover:translate-x-0.5`,arrow:`hover:translate-x-0.5`,bubble:`hover:translate-x-0.5`},dense:{true:`py-0`,false:`py-0.5`}},defaultVariants:{variant:`default`,dense:!1}}),Ne=(0,c.cva)(`mt-1 shrink-0 flex items-center justify-center transition-transform group-hover:scale-110`,{variants:{variant:{bubble:`h-5 w-5 rounded-full bg-primary-500/10 text-primary-500 text-[10px] font-bold`,default:``}},defaultVariants:{variant:`default`}});function Pe({icon:t,children:n,variant:r,dense:a}){return(0,i.jsxs)(`li`,{className:e.x(Me({variant:r,dense:a})),children:[t&&(0,i.jsx)(`span`,{className:e.x(Ne({variant:r===`bubble`?`bubble`:`default`})),children:t}),(0,i.jsx)(`div`,{className:`flex-1 text-text-muted group-hover:text-text-main transition-colors`,children:n})]})}const Fe={checked:t=>(0,i.jsx)(s.Check,{size:14,className:e.x(`text-emerald-500 shrink-0`,t)}),arrow:t=>(0,i.jsx)(s.ChevronRight,{size:14,className:e.x(`text-primary-400 shrink-0`,t)}),bubble:t=>(0,i.jsx)(s.Circle,{size:6,fill:`currentColor`,className:e.x(`text-primary-500 shrink-0`,t)}),default:()=>null,number:()=>null};function Ie({variant:e=`default`,cols:t=1,dense:n=!1,children:a,className:o,...s}){let c=t!==void 0&&Number(t)>1,l=Fe[e],u=je({variant:e,cols:t,dense:n,isGrid:c,className:o}),d=e===`number`?`ol`:`ul`;return e===`default`||e===`number`?(0,i.jsx)(d,{className:u,...s,children:a}):(0,i.jsx)(`ul`,{className:u,...s,children:r.Children.map(a,t=>{if(!(0,r.isValidElement)(t))return t;let a=t,o=a.type===`li`?a.props.children:a.props.children||t;return(0,i.jsx)(Pe,{icon:l(),variant:e,dense:n,children:o})})})}const Le={ts:e.y,tsx:e.g,js:e.p,jsx:e.g,json:e.m,css:e.d,html:e.l,md:e.h,mdx:e.h,bash:e.v,sh:e.v,yaml:e.b,yml:e.b},M={CODE:/\.(ts|tsx|js|jsx|json|mjs|cjs|astro|vue|svelte)$/i,TEXT:/\.(md|mdx|txt)$/i,IMAGE:/\.(png|jpg|jpeg|svg|gif)$/i};function N(e){return typeof e==`string`?e:typeof e==`number`?e.toString():Array.isArray(e)?e.map(N).join(``):(0,r.isValidElement)(e)&&e.props&&typeof e.props==`object`&&`children`in e.props?N(e.props.children):``}function Re(t,n){let r=t.toLowerCase(),a=`shrink-0 transition-colors duration-200`;if(n)return(0,i.jsx)(s.Folder,{size:16,strokeWidth:2,className:e.x(a,`text-primary-400`),fill:`currentColor`,fillOpacity:.15});let o=Le[r.split(`.`).pop()||``];if(o)return(0,i.jsx)(o,{size:16});let c=e.x(a,`text-text-dim group-hover:text-text-main`);return M.CODE.test(r)?(0,i.jsx)(s.FileCode,{size:16,strokeWidth:2,className:c}):M.TEXT.test(r)?(0,i.jsx)(s.FileText,{size:16,strokeWidth:2,className:c}):M.IMAGE.test(r)?(0,i.jsx)(s.FileImage,{size:16,strokeWidth:2,className:c}):(0,i.jsx)(s.File,{size:16,strokeWidth:2,className:c})}function P(e,t){if(!(0,r.isValidElement)(e))return!1;let n=e.type;if(typeof n==`string`)return n===t;if(typeof n==`function`)return n.name===t||n.name?.toLowerCase()===t;let i=e.props;return i?.originalType===t||i?.mdxType===t}function ze(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function F(e,t=`root`){if(!(0,r.isValidElement)(e))return[];let n=[];if(P(e,`ul`))return r.Children.forEach(e.props.children,(e,r)=>{n.push(...F(e,`${t}-${r}`))}),n;if(P(e,`li`)){let i=r.Children.toArray(e.props.children),a=i.findIndex(e=>P(e,`ul`)),o=a!==-1,s=o?i.slice(0,a):i,c=o?i.slice(a):[],{name:l,comment:u}=ze(N(s)),d=l.endsWith(`/`),f=d?l.slice(0,-1):l,p=o||d;return n.push({id:`${t}-${f}`,name:f,comment:u,isFolder:p,children:o?F(c[0],`${t}-${f}`):void 0}),n}return e.props&&typeof e.props==`object`&&`children`in e.props&&r.Children.forEach(e.props.children,(e,r)=>{n.push(...F(e,`${t}-${r}`))}),n}function Be({item:t}){return(0,i.jsxs)(a.TreeItem,{id:t.id,textValue:t.name,className:`outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md`,children:[(0,i.jsx)(a.TreeItemContent,{children:({isExpanded:n,hasChildItems:r})=>(0,i.jsxs)(`div`,{className:`flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer`,children:[(0,i.jsx)(`div`,{style:{width:`calc((var(--tree-item-level) - 1) * 1rem)`},className:`shrink-0`}),r?(0,i.jsx)(a.Button,{slot:`chevron`,className:`outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors`,children:(0,i.jsx)(s.ChevronRight,{size:14,strokeWidth:3,className:e.x(`transition-transform duration-200`,n&&`rotate-90`)})}):(0,i.jsx)(`div`,{className:`w-[18px]`}),Re(t.name,t.isFolder),(0,i.jsx)(`span`,{className:e.x(`text-sm transition-colors truncate select-none`,t.isFolder?`font-semibold text-text-main`:`text-text-muted group-hover:text-text-main`),children:t.name}),t.comment&&(0,i.jsxs)(`span`,{className:`ml-2 text-xs italic text-text-dim opacity-70 group-hover:opacity-100 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis font-sans`,children:[`//`,` `,t.comment]})]})}),t.children&&(0,i.jsx)(a.Collection,{items:t.children,children:e=>(0,i.jsx)(Be,{item:e})})]})}function Ve({children:t}){let n=(0,r.useMemo)(()=>F(t),[t]);return(0,i.jsx)(`div`,{className:`my-8`,children:(0,i.jsx)(a.Tree,{items:n,"aria-label":`File Tree`,className:e.x(`rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none`,`max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle`,`focus-visible:ring-2 focus-visible:ring-primary-500/20`),children:e=>(0,i.jsx)(Be,{item:e})})})}function He({data:e,sortable:t=!1,paginated:n=!1,pageSize:i=10}){let[a,o]=(0,r.useState)(null),[s,c]=(0,r.useState)(1),l=(0,r.useMemo)(()=>{if(!e)return[];let n=[...e];return t&&a!==null&&n.sort((e,t)=>{let n=e[a.key],r=t[a.key],i=typeof n==`string`?n:``,o=typeof r==`string`?r:``;return i<o?a.direction===`asc`?-1:1:i>o?a.direction===`asc`?1:-1:0}),n},[e,a,t]);return{sortConfig:a,currentPage:s,setCurrentPage:c,totalPages:Math.ceil(l.length/i),paginatedData:(0,r.useMemo)(()=>{if(!n)return l;let e=(s-1)*i;return l.slice(e,e+i)},[l,n,s,i]),requestSort:e=>{if(!t)return;let n=`asc`;a&&a.key===e&&a.direction===`asc`&&(n=`desc`),o({key:e,direction:n})}}}function Ue({headers:t,data:n,children:r,className:o=``,sortable:c=!1,paginated:l=!1,pageSize:u=10}){let{sortConfig:d,currentPage:f,setCurrentPage:p,totalPages:m,paginatedData:h,requestSort:g}=He({data:n,sortable:c,paginated:l,pageSize:u}),_=e=>c?d?.key===e?d.direction===`asc`?(0,i.jsx)(s.ChevronUp,{size:14,className:`ml-1 text-primary-400`}):(0,i.jsx)(s.ChevronDown,{size:14,className:`ml-1 text-primary-400`}):(0,i.jsx)(s.ChevronDown,{size:14,className:`ml-1 opacity-30`}):null,v=r||(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(`thead`,{children:(0,i.jsx)(`tr`,{children:t.map((t,n)=>(0,i.jsx)(`th`,{onClick:()=>g(n),className:e.x(`text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm`,c&&`cursor-pointer select-none hover:text-primary-400 transition-colors`),children:(0,i.jsxs)(`div`,{className:`flex items-center`,children:[t,_(n)]})},n))})}),h&&(0,i.jsx)(`tbody`,{children:h.map((e,t)=>(0,i.jsx)(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:e.map((e,t)=>(0,i.jsx)(`td`,{className:`px-3 py-2 border-b border-border-subtle text-sm text-text-muted`,children:e},t))},t))})]});return(0,i.jsxs)(`div`,{className:e.x(`my-6 rounded-lg border border-border-subtle overflow-hidden`,o),children:[(0,i.jsx)(`div`,{className:`overflow-x-auto`,children:(0,i.jsx)(`table`,{className:`w-full border-collapse text-sm`,children:v})}),l&&m>1&&(0,i.jsxs)(`div`,{className:`flex items-center justify-between border-t border-border-subtle px-4 py-3`,children:[(0,i.jsxs)(`span`,{className:`text-xs text-text-muted`,children:[`Page `,f,` of `,m]}),(0,i.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,i.jsx)(a.Button,{onPress:()=>p(1),isDisabled:f===1,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronsLeft,{size:16})}),(0,i.jsx)(a.Button,{onPress:()=>p(e=>Math.max(e-1,1)),isDisabled:f===1,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronLeft,{size:16})}),(0,i.jsx)(a.Button,{onPress:()=>p(e=>Math.min(e+1,m)),isDisabled:f===m,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronRight,{size:16})}),(0,i.jsx)(a.Button,{onPress:()=>p(m),isDisabled:f===m,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronsRight,{size:16})})]})]})]})}function I({name:t,type:n,defaultValue:r,required:a=!1,children:o,id:s,className:c=``}){return(0,i.jsxs)(`article`,{className:e.x(`group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300`,c),id:s,children:[(0,i.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4`,children:[(0,i.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2.5`,children:[(0,i.jsx)(`code`,{className:`inline-flex items-center rounded-md bg-primary-500/10 px-2.5 py-1 font-mono text-sm font-bold text-primary-400 border border-primary-500/20 shadow-sm transition-colors`,children:t}),n&&(0,i.jsx)(`span`,{className:`rounded-md bg-bg-muted/80 border border-border-subtle px-2 py-0.5 text-[11px] font-semibold text-text-muted uppercase shadow-sm`,children:n}),a&&(0,i.jsxs)(`div`,{className:`flex items-center gap-1.5 rounded-full bg-red-500/10 px-2.5 py-0.5 text-[10px] font-bold uppercase text-red-400 border border-red-500/20 shadow-sm`,children:[(0,i.jsx)(`span`,{className:`h-1 w-1 rounded-full bg-red-400 animate-pulse`}),`Required`]})]}),r&&(0,i.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] text-text-muted bg-bg-muted/30 px-2.5 py-1 rounded-md border border-border-subtle/50`,children:[(0,i.jsx)(`span`,{className:`font-semibold opacity-60 uppercase tracking-tighter`,children:`Default`}),(0,i.jsx)(`code`,{className:`font-mono text-text-main font-medium`,children:r})]})]}),(0,i.jsx)(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30`,children:o})]})}function We({to:t,children:n,className:r=``,...a}){let o=t&&(t.startsWith(`http://`)||t.startsWith(`https://`)||t.startsWith(`//`));return(0,i.jsx)(e.i,{href:t,className:e.x(`text-blue-600 hover:text-blue-800 hover:underline cursor-pointer`,r),target:o?`_blank`:void 0,rel:o?`noopener noreferrer`:void 0,...a,children:n})}function Ge({src:e,alt:t,theme:n,...r}){let{theme:a}=T();return n&&n!==a?null:(0,i.jsx)(`img`,{src:e,alt:t||``,...r})}function Ke({title:t,props:n,className:r=``}){return(0,i.jsxs)(`div`,{className:e.x(`my-6`,r),children:[t&&(0,i.jsx)(`h3`,{className:`text-base font-bold text-text-main mb-3`,children:t}),(0,i.jsx)(`div`,{className:`overflow-x-auto rounded-lg border border-border-subtle`,children:(0,i.jsxs)(`table`,{className:`w-full border-collapse text-sm`,children:[(0,i.jsx)(`thead`,{children:(0,i.jsxs)(`tr`,{children:[(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Property`}),(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Type`}),(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Default`}),(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Description`})]})}),(0,i.jsx)(`tbody`,{children:n.map((e,t)=>(0,i.jsxs)(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:[(0,i.jsxs)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:[(0,i.jsx)(`code`,{className:`rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400`,children:e.name}),e.required&&(0,i.jsx)(`span`,{className:`ml-1 text-red-400 font-bold`,children:`*`})]}),(0,i.jsx)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:(0,i.jsx)(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted`,children:e.type})}),(0,i.jsx)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:e.defaultValue?(0,i.jsx)(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400`,children:e.defaultValue}):(0,i.jsx)(`span`,{className:`text-text-dim`,children:`—`})}),(0,i.jsx)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle text-text-muted`,children:e.description})]},`${e.name}-${t}`))})]})})]})}function qe(e){let{code:t,children:n,preview:i}=e;return{initialCode:(0,r.useMemo)(()=>(t??(typeof n==`string`?n:``)).trim(),[t,n]),previewElement:(0,r.useMemo)(()=>i??(typeof n==`string`?null:n),[i,n])}}function Je(e){let{highlightedHtml:t,hideCode:n=!1,hideCopy:r=!1}=e,{initialCode:a,previewElement:o}=qe(e);return(0,i.jsxs)(`div`,{className:`my-6 overflow-hidden rounded-xl border border-border-subtle`,children:[(0,i.jsx)(`div`,{className:`flex items-center justify-center p-8 bg-bg-surface`,children:o}),!n&&(0,i.jsx)(`div`,{className:`border-t border-border-subtle`,children:(0,i.jsx)(A,{hideCopy:r,lang:`tsx`,highlightedHtml:t,plain:!0,children:a})})]})}const L=({children:t,className:n,...r})=>(0,i.jsx)(`nav`,{className:e.x(`relative flex items-center`,n),...r,children:t});L.Root=L,L.List=({children:t,className:n})=>(0,i.jsx)(`div`,{className:e.x(`flex list-none items-center gap-1`,n),children:t}),L.Item=({children:t,label:n,className:r})=>(0,i.jsxs)(a.MenuTrigger,{children:[(0,i.jsxs)(a.Button,{className:e.x(`flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium outline-none transition-colors cursor-pointer`,`text-text-muted hover:bg-bg-surface hover:text-text-main`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,r),children:[n,(0,i.jsx)(s.ChevronDown,{size:14,className:`transition-transform`})]}),(0,i.jsx)(a.Popover,{placement:`bottom start`,className:`entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95 fill-mode-forwards`,children:(0,i.jsx)(a.Menu,{className:`w-56 outline-none rounded-xl border border-border-subtle bg-bg-surface p-2 shadow-xl ring-1 ring-border-strong/5`,children:t})})]}),L.Link=({label:t,href:n,description:r,className:o,children:s,...c})=>(0,i.jsx)(a.MenuItem,{href:n,className:e.x(`block rounded-lg px-3 py-2 text-sm outline-none cursor-pointer transition-colors`,`hover:bg-bg-muted focus:bg-bg-muted`,o),...c,children:s||(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`div`,{className:`font-semibold text-text-main`,children:t}),r&&(0,i.jsx)(`div`,{className:`text-xs text-text-muted line-clamp-1 mt-0.5`,children:r})]})});function Ye(e,t){let n=(0,r.useRef)(e);(0,r.useEffect)(()=>{n.current!==e&&(t(e),n.current=e)},[e,t])}function Xe(e){return e.startsWith(`#`)?e.slice(1):null}var Ze=class{items=[];single=!1;observer=null;onChange;callback(e){if(e.length===0)return;for(let t of e){let e=this.items.find(e=>e.id===t.target.id);e&&(e.active=t.isIntersecting,e.fallback=!t.isIntersecting&&t.boundingClientRect.top<100)}let t=-1;for(let e=this.items.length-1;e>=0;e--)if(this.items[e].fallback){t=e;break}t===-1&&this.items.length>0&&(t=0),this.items=this.items.map((e,n)=>({...e,active:n===t,t:n===t?Date.now():e.t})),this.onChange?.()}setItems(e){let t=this.observer;if(t)for(let e of this.items){let n=document.getElementById(e.id);n&&t.unobserve(n)}this.items=[];for(let t of e){let e=Xe(t.url);e&&this.items.push({id:e,active:!1,fallback:!1,t:0,original:t})}this.watchItems(),typeof window<`u`&&(setTimeout(()=>this.watchItems(),100),setTimeout(()=>this.watchItems(),500),setTimeout(()=>this.watchItems(),1e3)),this.onChange?.()}watch(e){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),e),this.watchItems())}watchItems(){if(this.observer)for(let e of this.items){let t=document.getElementById(e.id);t&&this.observer.observe(t)}}unwatch(){this.observer?.disconnect(),this.observer=null}};const R=(0,r.createContext)(null),Qe=(0,r.createContext)(null);function z(){let e=(0,r.use)(R);if(!e)throw Error(`Component must be used under the <AnchorProvider /> component.`);return e}function $e(){let e=z();return(0,r.useMemo)(()=>{let t;for(let n of e)n.active&&(!t||n.t>t.t)&&(t=n);return t?.id},[e])}function et(){let e=z();return(0,r.useMemo)(()=>{let t=[];for(let n of e)n.active&&t.push(n.id);return t},[e])}function tt({containerRef:e,children:t}){return(0,i.jsx)(Qe.Provider,{value:e,children:t})}function nt({toc:e,single:t=!1,children:n}){let a=(0,r.useMemo)(()=>new Ze,[]),[o,s]=(0,r.useState)(a.items);return a.single=t,(0,r.useEffect)(()=>{a.setItems(e)},[a,e]),(0,r.useEffect)(()=>(a.watch({rootMargin:`-100px 0% 0% 0%`,threshold:0}),a.onChange=()=>s([...a.items]),()=>{a.unwatch()}),[a]),(0,i.jsx)(R.Provider,{value:o,children:n})}const B=({children:t,className:n})=>(0,i.jsx)(`nav`,{className:e.x(`sticky top-navbar hidden xl:flex flex-col shrink-0`,`w-toc`,`py-8 pl-6 pr-4`,n),children:t}),rt=({children:t,className:n,...r})=>(0,i.jsx)(`div`,{className:e.x(`mb-4 text-xs font-bold text-text-main`,n),...r,children:t}),it=({children:t,className:n,ref:a,...o})=>{let s=(0,r.useRef)(null);return(0,r.useImperativeHandle)(a,()=>s.current),(0,i.jsx)(`div`,{ref:s,className:e.x(`relative overflow-y-auto boltdocs-otp-content`,n),...o,children:t})};it.displayName=`OnThisPageContent`,B.Root=B,B.Header=rt,B.Content=it,B.List=({children:t,className:n})=>(0,i.jsx)(`ul`,{className:e.x(`relative space-y-1 text-sm border-l border-border-subtle`,n),children:t}),B.Item=({level:t,children:n,className:r})=>(0,i.jsx)(`li`,{className:e.x(t===3&&`pl-3`,r),children:n}),B.Link=({children:t,href:n,active:a,onClick:o,className:s})=>{let c=(0,r.use)(R),u=(0,r.use)(Qe),d=n?Xe(n):null,f=(0,r.useRef)(null),[p,m]=(0,r.useState)(a);return Ye(d&&c?c.find(e=>e.id===d)?.active:null,e=>{e!==null&&e!==p&&(m(!!e),e&&f.current&&u?.current&&(0,l.default)(f.current,{behavior:`smooth`,block:`center`,inline:`center`,scrollMode:`if-needed`,boundary:u.current}))}),(0,r.useEffect)(()=>{a!==void 0&&m(a)},[a]),(0,i.jsx)(`a`,{ref:f,href:n,onClick:o,"data-active":p,className:e.x(`block py-1 pl-4 text-[13px] outline-none transition-colors hover:text-text-main`,p?`text-primary-500 font-medium`:`text-text-muted`,s),children:t})},B.Indicator=({style:t,className:n})=>(0,i.jsx)(`div`,{className:e.x(`absolute -left-px w-0.5 rounded-full bg-primary-500 transition-all duration-300`,n),style:t});const V=({children:t,className:n})=>(0,i.jsx)(`nav`,{className:e.x(`grid grid-cols-1 sm:grid-cols-2 gap-4 mt-12 pt-8 border-t border-border-subtle`,n),children:t});V.Root=V,V.Link=({children:t,to:n,direction:r,className:o})=>{let c=r===`next`;return(0,i.jsxs)(a.Link,{href:n,className:e.x(`flex group items-center p-4 rounded-xl border border-border-subtle bg-bg-surface outline-none`,`transition-all hover:bg-bg-main hover:border-primary-500 hover:shadow-lg`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,c?`text-right justify-end`:`text-left justify-start`,o),children:[!c&&(0,i.jsx)(s.ChevronLeft,{className:`mr-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:-translate-x-1`}),(0,i.jsx)(`div`,{className:`flex flex-col gap-1 flex-1`,children:t}),c&&(0,i.jsx)(s.ChevronRight,{className:`ml-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:translate-x-1`})]})},V.Title=({children:t,className:n})=>(0,i.jsx)(`span`,{className:e.x(`text-xs font-medium uppercase text-text-muted`,n),children:t}),V.Description=({children:t,className:n})=>(0,i.jsx)(`span`,{className:e.x(`text-base font-bold text-text-main truncate`,n),children:t}),V.Icon=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});const H=({children:t,className:n=``,...r})=>(0,i.jsx)(`div`,{className:e.x(`w-full`,n),...r,children:t});H.Root=H,H.List=({children:t,className:n=``})=>(0,i.jsx)(`div`,{role:`tablist`,className:e.x(`relative flex flex-row items-center border-b border-border-subtle`,n),children:t}),H.Item=({children:t,id:n,selected:r,className:a=``,...o})=>(0,i.jsx)(`button`,{role:`tab`,"aria-selected":r,className:e.x(`flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors outline-none cursor-pointer bg-transparent border-none`,r?`text-primary-500`:`text-text-muted hover:text-text-main`,a),...o,children:t}),H.Content=({children:t,className:n=``})=>(0,i.jsx)(`div`,{className:e.x(`p-4 outline-none`,n),children:t}),H.Indicator=({className:t=``,style:n})=>(0,i.jsx)(`div`,{className:e.x(`absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300`,t),style:n});const at=({badge:t})=>{let n={new:`bg-primary-500/20 text-primary-500`,updated:`bg-gray-500/20 text-gray-500`,deprecated:`bg-red-500/20 text-red-500`};if(typeof t==`object`&&t?.expires){let e=new Date(t.expires),n=new Date,r=e.getTime()-n.getTime();if(Math.ceil(r/(1e3*60*60*24))===0)return null}let r=typeof t==`string`?t:t?.text;return(0,i.jsx)(`span`,{className:e.x(`ml-auto flex h-4.5 items-center rounded-full text-[9px] font-medium px-1.5 py-0.5 text-center whitespace-nowrap`,n[r]||n.new),children:r})},U=({children:t,className:n})=>(0,i.jsx)(`aside`,{className:e.x(`boltdocs-sidebar sticky top-navbar hidden lg:flex flex-col shrink-0`,`w-sidebar h-full`,`overflow-y-auto border-r border-border-subtle bg-bg-main`,`py-6 px-4`,n),children:(0,i.jsx)(`nav`,{className:`flex-1 space-y-6`,children:t})});U.Root=U,U.Group=({children:t,title:n,icon:r,className:a})=>(0,i.jsxs)(`div`,{className:e.x(`space-y-1`,a),children:[n&&(0,i.jsx)(`div`,{className:e.x(`flex w-full items-center justify-between px-2 py-1.5 text-sm font-semibold`,`text-text-main`),children:(0,i.jsxs)(`div`,{className:`flex items-center gap-2`,children:[r&&(0,i.jsx)(r,{size:14}),n]})}),t&&(0,i.jsx)(`div`,{className:`space-y-0.5`,children:t})]}),U.SubGroup=({label:t,href:n,active:r,icon:o,badge:c,className:l,isOpen:u=!1,onToggle:d,children:f})=>(0,i.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,i.jsxs)(`div`,{className:`flex items-center w-full`,children:[(0,i.jsxs)(e.i,{href:n,className:e.x(`group flex flex-1 items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none`,`transition-all duration-200 ease-in-out`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,r?`bg-primary-500/10 text-primary-500 font-medium`:`text-text-muted hover:bg-bg-surface hover:text-text-main hover:translate-x-1`,l),children:[o&&(0,i.jsx)(o,{size:16,className:e.x(r?`text-primary-500`:`text-text-muted group-hover:text-text-main`)}),(0,i.jsx)(`span`,{className:`truncate`,children:t}),c&&(0,i.jsx)(at,{badge:c})]}),f&&(0,i.jsx)(a.Button,{onPress:d,className:`flex items-center justify-center p-1.5 ml-1 rounded-md text-text-muted hover:bg-bg-surface hover:text-text-main transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-500/30 cursor-pointer`,children:(0,i.jsx)(s.ChevronRight,{size:16,className:e.x(`transition-transform duration-200`,u&&`rotate-90`)})})]}),u&&f&&(0,i.jsx)(`div`,{className:`pl-4 ml-[7px] border-l border-border-subtle/50 space-y-0.5 mt-0.5`,children:f})]}),U.GroupItem=({children:t,className:n})=>(0,i.jsx)(`div`,{className:e.x(n),children:t}),U.Link=({label:t,href:n,active:r,icon:a,badge:o,className:s})=>(0,i.jsxs)(e.i,{href:n,className:e.x(`group flex items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none`,`transition-all duration-200 ease-in-out`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,{"bg-primary-500/10 text-primary-500 font-medium":r,"text-text-muted hover:bg-bg-muted hover:text-text-main":!r},s),children:[a&&(0,i.jsx)(a,{size:16,className:e.x(r?`text-primary-500`:`text-text-muted group-hover:text-text-main`)}),(0,i.jsx)(`span`,{className:`truncate`,children:t}),o&&(0,i.jsx)(at,{badge:o})]});const W=({children:t,className:n,...r})=>(0,i.jsx)(a.Breadcrumbs,{className:e.x(`flex items-center gap-1.5 pl-0! mb-0 text-sm text-text-muted`,n),...r,children:t});W.Root=W,W.Item=({children:t,className:n,...r})=>(0,i.jsx)(a.Breadcrumb,{className:e.x(`flex items-center mb-0 gap-1.5`,n),...r,children:t}),W.Link=({children:t,href:n,className:r,...o})=>(0,i.jsx)(a.Link,{href:n,className:e.x(`transition-colors outline-none hover:text-text-main focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm`,`current:font-medium current:text-text-main current:pointer-events-none cursor-pointer`,r),...o,children:t}),W.Separator=({className:t})=>(0,i.jsx)(s.ChevronRight,{size:14,className:e.x(`shrink-0 text-text-dim`,t)});const ot=({children:t,className:n,vertical:r=!1})=>(0,i.jsx)(`div`,{className:e.x(`inline-flex`,r?`flex-col`:`flex-row`,!r&&[`[&>*:not(:first-child)]:-ml-px`,`[&>*:first-child]:rounded-r-none`,`[&>*:last-child]:rounded-l-none`,`[&>*:not(:first-child):not(:last-child)]:rounded-none`,n?.includes(`rounded-full`)&&[`[&>*:first-child]:rounded-l-full`,`[&>*:last-child]:rounded-r-full`],n?.includes(`rounded-xl`)&&[`[&>*:first-child]:rounded-l-xl`,`[&>*:last-child]:rounded-r-xl`],n?.includes(`rounded-lg`)&&[`[&>*:first-child]:rounded-l-lg`,`[&>*:last-child]:rounded-r-lg`]],r&&[`[&>*:not(:first-child)]:-mt-px`,`[&>*:first-child]:rounded-b-none`,`[&>*:last-child]:rounded-t-none`,`[&>*:not(:first-child):not(:last-child)]:rounded-none`,n?.includes(`rounded-full`)&&[`[&>*:first-child]:rounded-t-full`,`[&>*:last-child]:rounded-b-full`]],n),children:t}),G=({children:t,className:n,showArrow:r,...o})=>(0,i.jsxs)(a.Popover,{offset:8,...o,className:a.composeRenderProps(n,t=>e.x(`z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none`,t)),children:[r&&(0,i.jsx)(a.OverlayArrow,{className:`group`,children:(0,i.jsx)(`svg`,{viewBox:`0 0 12 12`,className:`block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90`,"aria-hidden":`true`,children:(0,i.jsx)(`path`,{d:`M0 0 L6 6 L12 0`})})}),t]});function st(e){let[t,n]=r.Children.toArray(e.children).slice(0,2);return(0,i.jsxs)(a.MenuTrigger,{...e,children:[t,(0,i.jsx)(G,{placement:e.placement,className:`min-w-35`,children:n})]})}function ct(e){let[t,n]=r.Children.toArray(e.children).slice(0,2);return(0,i.jsxs)(a.SubmenuTrigger,{...e,children:[t,(0,i.jsx)(G,{offset:-4,crossOffset:-4,children:n})]})}function K(t){return(0,i.jsx)(a.Menu,{...t,className:a.composeRenderProps(t.className,t=>e.x(`p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75`,t))})}function lt(t){let n=t.textValue||(typeof t.children==`string`?t.children:void 0);return(0,i.jsx)(a.MenuItem,{...t,textValue:n,className:a.composeRenderProps(t.className,(t,{isFocused:n,isPressed:r,isDisabled:i})=>e.x(`group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none`,`text-text-main text-[12px]`,{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":n,"bg-bg-surface-elevanted":r,"opacity-40 grayscale pointer-events-none":i},t)),children:a.composeRenderProps(t.children,(e,{selectionMode:t,isSelected:n,hasSubmenu:r})=>(0,i.jsxs)(i.Fragment,{children:[t!==`none`&&(0,i.jsxs)(`span`,{className:`flex items-center size-4 shrink-0 justify-center`,children:[n&&t===`multiple`&&(0,i.jsx)(s.Check,{className:`size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200`}),n&&t===`single`&&(0,i.jsx)(s.Dot,{className:`size-5 text-primary-500 animate-in zoom-in-50 duration-200`})]}),(0,i.jsx)(`div`,{className:`flex flex-row w-full transition-colors items-center gap-2 py-1 px-1`,children:e}),r&&(0,i.jsx)(s.ChevronRight,{className:`size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors`})]}))})}function ut({title:t,...n}){return(0,i.jsxs)(a.MenuSection,{...n,className:e.x(`flex flex-col gap-0.5`,n.className),children:[t&&(0,i.jsx)(a.Header,{className:`px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none`,children:t}),(0,i.jsx)(a.Collection,{items:n.items,children:n.children})]})}function dt(e){return(0,i.jsx)(a.Separator,{...e,className:`mx-2 my-1.5 border-t border-border-subtle/50`})}K.Root=K,K.Item=lt,K.Trigger=st,K.SubTrigger=ct,K.Section=ut,K.Separator=dt;function q({className:t,variant:n=`rect`,...r}){return(0,i.jsx)(`div`,{className:e.x(`animate-pulse bg-bg-muted`,n===`circle`?`rounded-full`:`rounded-md`,t),...r})}const ft=e=>{let[t,n]=(0,r.useState)(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)},handleOpenRaw:()=>{let t=new Blob([e],{type:`text/plain;charset=utf-8`}),n=URL.createObjectURL(t);window.open(n,`_blank`)}}};function J({content:t,mdxRaw:n,config:r}){let a=n||t||``,{copied:o,handleCopy:c,handleOpenRaw:l}=ft(a),u=r!==!1,d=typeof r==`object`&&r.text||`Copy Markdown`;return!u||!a?null:(0,i.jsx)(`div`,{className:`relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200`,children:(0,i.jsxs)(ot,{className:`rounded-xl border border-border-subtle bg-bg-surface/40 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:shadow-lg hover:shadow-primary-500/5 group overflow-hidden`,children:[(0,i.jsx)(D,{variant:`ghost`,onPress:c,icon:o?(0,i.jsx)(s.Check,{size:16}):(0,i.jsx)(s.Copy,{size:16}),iconPosition:`left`,className:e.x(`px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0`,`text-text-main transition-all duration-300 hover:bg-primary-500/5`,o&&`text-emerald-500 hover:bg-emerald-500/5`),children:o?`Copied!`:d}),(0,i.jsxs)(K.Trigger,{placement:`bottom end`,children:[(0,i.jsx)(D,{variant:`ghost`,isIconOnly:!0,icon:(0,i.jsx)(s.ChevronDown,{size:14}),className:e.x(`px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0`,`transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500`)}),(0,i.jsxs)(K.Root,{className:`w-52`,children:[(0,i.jsxs)(K.Item,{onAction:c,children:[(0,i.jsx)(s.Copy,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),(0,i.jsx)(`span`,{className:`font-medium text-[0.8125rem]`,children:`Copy Markdown`})]}),(0,i.jsxs)(K.Item,{onAction:l,children:[(0,i.jsx)(s.ExternalLink,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),(0,i.jsx)(`span`,{className:`font-medium text-[0.8125rem]`,children:`View as Markdown`})]})]})]})]})})}var pt=e.E({Admonition:()=>j,Badge:()=>ve,Button:()=>te,Card:()=>xe,Cards:()=>be,Caution:()=>Ae,CodeBlock:()=>A,ComponentPreview:()=>Je,ComponentProps:()=>Ke,CopyMarkdown:()=>J,Danger:()=>De,Field:()=>I,FileTree:()=>Ve,Image:()=>Ge,Important:()=>ke,InfoBox:()=>Oe,Link:()=>We,List:()=>Ie,Note:()=>we,Tab:()=>me,Table:()=>Ue,Tabs:()=>he,Tip:()=>Te,Video:()=>ge,Warning:()=>Ee});function mt(){return(0,i.jsx)(`div`,{className:e.x(`w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in`),children:(0,i.jsxs)(`div`,{className:`mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10`,children:[(0,i.jsxs)(`div`,{className:`flex gap-2`,children:[(0,i.jsx)(q,{className:`h-3 w-16`}),(0,i.jsx)(q,{className:`h-3 w-24`})]}),(0,i.jsx)(q,{className:`h-10 w-[60%] sm:h-12`}),(0,i.jsxs)(`div`,{className:`space-y-3`,children:[(0,i.jsx)(q,{className:`h-4 w-full`}),(0,i.jsx)(q,{className:`h-4 w-[95%]`}),(0,i.jsx)(q,{className:`h-4 w-[40%]`})]}),(0,i.jsxs)(`div`,{className:`space-y-6 pt-4`,children:[(0,i.jsx)(q,{className:`h-7 w-32`}),(0,i.jsxs)(`div`,{className:`space-y-3`,children:[(0,i.jsx)(q,{className:`h-4 w-full`}),(0,i.jsx)(q,{className:`h-4 w-[98%]`}),(0,i.jsx)(q,{className:`h-4 w-[92%]`}),(0,i.jsx)(q,{className:`h-4 w-[60%]`})]})]}),(0,i.jsx)(q,{className:`h-32 w-full rounded-lg bg-bg-muted/50`}),(0,i.jsxs)(`div`,{className:`space-y-6 pt-4`,children:[(0,i.jsx)(q,{className:`h-7 w-48`}),(0,i.jsxs)(`div`,{className:`space-y-3`,children:[(0,i.jsx)(q,{className:`h-4 w-full`}),(0,i.jsx)(q,{className:`h-4 w-[85%]`})]})]})]})})}const Y=({level:e,id:t,children:n,...r})=>(0,i.jsxs)(`h${e}`,{id:t,...r,className:`boltdocs-heading`,children:[n,t&&(0,i.jsx)(`a`,{href:`#${t}`,className:`header-anchor`,"aria-label":`Anchor`,children:(0,i.jsx)(s.Link,{size:16})})]}),ht={...pt,Loading:mt,h1:e=>(0,i.jsx)(Y,{level:1,...e}),h2:e=>(0,i.jsx)(Y,{level:2,...e}),h3:e=>(0,i.jsx)(Y,{level:3,...e}),h4:e=>(0,i.jsx)(Y,{level:4,...e}),h5:e=>(0,i.jsx)(Y,{level:5,...e}),h6:e=>(0,i.jsx)(Y,{level:6,...e}),pre:e=>(0,i.jsx)(A,{...e,children:e.children})};function gt({config:t}){let{currentLocale:n}=e.T();return(0,r.useEffect)(()=>{if(!t.i18n||typeof document>`u`)return;let e=n||t.i18n.defaultLocale,r=t.i18n.localeConfigs?.[e];document.documentElement.lang=r?.htmlLang||e||`en`,document.documentElement.dir=r?.direction||`ltr`},[n,t.i18n]),null}function _t({config:n}){let i=(0,t.useLocation)(),{setLocale:a,setVersion:o,currentLocale:s,currentVersion:c}=e.T();return(0,r.useEffect)(()=>{let e=i.pathname.split(`/`).filter(Boolean),t=0,r=n.versions?.defaultVersion,l=n.i18n?.defaultLocale;if(e[t]===`docs`&&t++,n.versions&&e.length>t){let i=n.versions.versions.find(n=>n.path===e[t]);i&&(r=i.path,t++)}n.i18n&&e.length>t&&n.i18n.locales[e[t]]?l=e[t]:n.i18n&&e.length===0&&(l=s||n.i18n.defaultLocale),l!==s&&a(l||``),r!==c&&o(r??``)},[i.pathname,n,a,o,s,c]),null}function vt({config:n,routes:s,components:c={}}){let l=(0,r.useMemo)(()=>({...ht,...u.default,...c}),[c]),d=(0,t.useNavigate)();return(0,i.jsx)(o.HelmetProvider,{children:(0,i.jsx)(e.w,{children:(0,i.jsx)(w,{children:(0,i.jsx)(_,{components:l,children:(0,i.jsx)(e.S.Provider,{value:n,children:(0,i.jsx)(e.c,{routes:s,children:(0,i.jsxs)(a.RouterProvider,{navigate:d,children:[(0,i.jsx)(ee,{}),(0,i.jsx)(_t,{config:n}),(0,i.jsx)(gt,{config:n}),(0,i.jsx)(t.Outlet,{})]})})})})})})})}function yt(){return(0,i.jsx)(`div`,{className:`flex items-center justify-center min-h-[60vh] text-center`,children:(0,i.jsxs)(`div`,{className:`space-y-4`,children:[(0,i.jsx)(`span`,{className:`text-8xl font-black tracking-tighter text-primary-500/20`,children:`404`}),(0,i.jsx)(`h1`,{className:`text-2xl font-bold text-text-main`,children:`Page Not Found`}),(0,i.jsx)(`p`,{className:`text-sm text-text-muted max-w-sm mx-auto`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,i.jsxs)(e.i,{href:`/`,className:`inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30`,children:[(0,i.jsx)(s.ArrowLeft,{size:16}),` Go to Home`]})]})})}function bt(e,t){let n=t.replace(/\\/g,`/`);return Object.keys(e).find(e=>e.endsWith(`/${n}`)||e.endsWith(n))}function xt(e){let{routesData:t,config:n,mdxModules:r,Layout:a,homePage:o,externalPages:s,externalLayout:c,components:l}=e,u=c||a,d=e=>{let t=n.base||`/`;return e.startsWith(t)?e:`${t===`/`?``:t.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`||`/`},f=[...t.map(e=>{let t=bt(r,e.filePath),n=t?r[t]?.default:null,a=d(e.path===``?`/`:e.path);return{path:a,element:(0,i.jsx)(y,{MDXComponent:n,mdxComponents:l}),loader:async()=>({path:a,frontmatter:{title:e.title,description:e.description||``},headings:e.headings||[],filePath:e.filePath,locale:e.locale,version:e.version,group:e.group,groupTitle:e.groupTitle}),getStaticPaths:()=>[a]}})];if(o){let e=[d(`/`)];n.i18n&&Object.keys(n.i18n.locales).forEach(t=>{e.push(d(`/${t}`))}),e.forEach(e=>{f.find(t=>t.path===e)||f.push({path:e,element:(0,i.jsx)(u,{children:(0,i.jsx)(o,{})}),getStaticPaths:()=>[e]})})}return s&&Object.entries(s).forEach(([e,t])=>{let r=d(e);f.find(e=>e.path===r)||(f.push({path:r,element:(0,i.jsx)(u,{children:(0,i.jsx)(t,{})}),getStaticPaths:()=>[r]}),n.i18n&&Object.keys(n.i18n.locales).forEach(n=>{let r=d(`/${n}${e===`/`?``:e}`);f.find(e=>e.path===r)||f.push({path:r,element:(0,i.jsx)(u,{children:(0,i.jsx)(t,{})}),getStaticPaths:()=>[r]})}))}),f.push({path:`*`,element:(0,i.jsx)(u,{children:(0,i.jsx)(yt,{})})}),[{element:(0,i.jsx)(vt,{config:n,routes:[...t],components:l}),children:f}]}function X(e,t){return e?typeof e==`string`?e:t&&e[t]?e[t]:Object.values(e)[0]||``:``}function St(){let n=e.C(),{theme:r,resolvedTheme:i}=T(),a=(0,t.useLocation)(),{currentLocale:o}=e.s(),s=n.theme||{},c=X(s.title,o)||`Boltdocs`,l=s.navbar||[],u=s.socialLinks||[],d=s.githubRepo,f=l.map(e=>{let t=e.href||e.to||e.link||``;return{label:X(e.label||e.text,o),href:t,active:(e=>{let t=a.pathname;if(t===e)return!0;if(!e||e===`/`)return t===`/`;let r=e=>{let t=e.split(`/`).filter(Boolean),r=0;return n.i18n?.locales&&t[r]&&n.i18n.locales[t[r]]&&r++,n.versions?.versions&&t[r]&&n.versions.versions.some(e=>e.path===t[r])&&r++,t.slice(r)},i=r(e),o=r(t);return i.length===0?o.length===0:o.length<i.length?!1:i.every((e,t)=>o[t]===e)})(t),to:t.startsWith(`http`)||t.startsWith(`//`)?`external`:void 0}}),p=s.logo;return{links:f,title:c,logo:p?typeof p==`string`?p:i===`dark`?p.dark:p.light:null,logoProps:{alt:(p&&typeof p==`object`?p.alt:void 0)||c,width:p&&typeof p==`object`?p.width:void 0,height:p&&typeof p==`object`?p.height:void 0},github:d?`https://github.com/${d}`:null,social:u,config:n,theme:r}}function Ct(n){let r=e.C(),i=(0,t.useLocation)(),a=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,o=a(i.pathname),s=n.find(e=>a(e.path)===o),c=s?.tab?.toLowerCase(),l=c?n.filter(e=>!e.tab||e.tab.toLowerCase()===c):n,u=[],d=new Map;for(let e of l)e.group?(d.has(e.group)||d.set(e.group,{slug:e.group,title:e.groupTitle||e.group,routes:[],icon:e.groupIcon}),d.get(e.group).routes.push(e)):u.push(e);return{groups:Array.from(d.values()).map(e=>{let t=new Map,n=new Map;for(let r of e.routes)r.subRouteGroup&&((r.path.endsWith(`/${r.subRouteGroup}`)||r.path.endsWith(`/${r.subRouteGroup}/`))&&!t.has(r.subRouteGroup)?t.set(r.subRouteGroup,r):(n.has(r.subRouteGroup)||n.set(r.subRouteGroup,[]),n.get(r.subRouteGroup).push(r)));let r=[],i=new Set;for(let a of e.routes)if(a.subRouteGroup){if(!i.has(a.subRouteGroup)){i.add(a.subRouteGroup);let e=t.get(a.subRouteGroup),o=n.get(a.subRouteGroup)||[];e?r.push({...e,subRoutes:o}):r.push(...o)}}else r.push(a);return{...e,routes:r}}),ungrouped:u,activeRoute:s,activePath:o,config:r}}function wt(e=[]){let[t,n]=(0,r.useState)(null);return{headings:e,activeId:t,setActiveId:n}}function Tt(e=[],n=[]){let i=(0,t.useLocation)(),a=(0,r.useRef)([]),[o,s]=(0,r.useState)({opacity:0,transform:`translateX(0) scaleX(0)`,width:0}),c=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,l=c(i.pathname),u=n.find(e=>c(e.path)===l)?.tab?.toLowerCase(),d=e.findIndex(e=>e.id.toLowerCase()===u),f=d===-1?0:d;return(0,r.useEffect)(()=>{let e=a.current[f];e&&s({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[f,e.length,i.pathname]),{tabs:e,activeIndex:f,indicatorStyle:o,tabRefs:a,activeTabId:u}}function Z(e,t,n){let r=e;return t&&(r===t||r.startsWith(t+`/`))&&(r=r===t?`index.md`:r.slice(t.length+1)),n&&(r===n||r.startsWith(n+`/`))&&(r=r===n?`index.md`:r.slice(n.length+1)),r}function Et(){let n=(0,t.useNavigate)(),r=e.s(),{allRoutes:i,currentRoute:a,currentVersion:o,currentLocale:s,config:c}=r,l=c.versions,{setVersion:u}=e.T(),d=e=>{if(!l||e===o)return;u(e);let t=`/docs/${e}`;if(a){let n=Z(a.filePath,a.version,a.locale),r=i.find(t=>Z(t.filePath,t.version,t.locale)===n&&(t.version||l.defaultVersion)===e&&(s?t.locale===s:!t.locale));if(r)t=r.path;else{let n=i.find(t=>Z(t.filePath,t.version,t.locale)===`index.md`&&(t.version||l.defaultVersion)===e&&(s?t.locale===s:!t.locale));t=n?n.path:`/docs/${e}${s?`/${s}`:``}`}}n(t)},f=r.availableVersions.map(e=>({...e,label:e.label,value:e.key}));return{currentVersion:o,currentVersionLabel:r.currentVersionLabel,availableVersions:f,handleVersionChange:d}}function Dt(){let n=(0,t.useNavigate)(),{allRoutes:r,currentRoute:i,currentLocale:a,config:o}=e.s(),s=o.i18n,{setLocale:c}=e.T();return{currentLocale:a,currentLocaleLabel:o.i18n?.localeConfigs?.[a]?.label||o.i18n?.locales[a]||a,availableLocales:o.i18n?Object.entries(o.i18n.locales).map(([e,t])=>({key:e,label:o.i18n?.localeConfigs?.[e]?.label||t,value:e,isCurrent:e===a})):[],handleLocaleChange:e=>{if(!s||e===a)return;c(e);let t=`/`;if(i){let n=Z(i.filePath,i.version,i.locale),a=r.find(t=>Z(t.filePath,t.version,t.locale)===n&&(t.locale||s.defaultLocale)===e&&t.version===i.version);if(a)t=a.path;else{let n=r.find(t=>Z(t.filePath,t.version,t.locale)===`index.md`&&(t.locale||s.defaultLocale)===e&&t.version===i.version);t=n?n.path:e===s.defaultLocale?i.version?`/${i.version}`:`/`:i.version?`/${i.version}/${e}`:`/${e}`}}else{let n=r.find(t=>(t.filePath===`index.mdx`||t.filePath===`index.md`)&&(t.locale||s.defaultLocale)===e&&!t.version);t=n?n.path:e===s.defaultLocale?`/`:`/${e}`}n(t)}}}function Ot(){let{routes:n,currentRoute:r}=e.s(),i=(0,t.useLocation)();if(!r)return{prevPage:null,nextPage:null,currentRoute:null};let a=r.tab?.toLowerCase(),o=a?n.filter(e=>e.tab?.toLowerCase()===a):n.filter(e=>!e.tab),s=o.findIndex(e=>e.path===i.pathname);return{prevPage:s>0?o[s-1]:null,nextPage:s!==-1&&s<o.length-1?o[s+1]:null,currentRoute:r}}function kt(){let{currentRoute:t}=e.s(),n=[];return t&&(t.groupTitle&&n.push({label:t.groupTitle}),n.push({label:t.title,href:t.path})),{crumbs:n,activeRoute:t}}const At=()=>(0,t.useLocation)();function jt({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`h-screen flex flex-col overflow-hidden bg-bg-main text-text-main`,n),style:r,children:t})}function Mt({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`mx-auto flex flex-1 w-full max-w-(--breakpoint-3xl) bg-bg-main overflow-hidden`,n),style:r,children:t})}function Nt({children:t,className:n,style:r}){return(0,i.jsx)(`main`,{className:e.x(`boltdocs-content flex-1 min-w-0 overflow-y-auto`,`contain-layout`,n),style:r,children:t})}function Pt({children:t,className:n,style:r}){let{pathname:a}=At();return(0,i.jsx)(`div`,{className:e.x(`boltdocs-page mx-auto pt-4 pb-20 px-4 sm:px-8`,{"max-w-content-max":a.includes(`/docs/`)},n),style:r,children:t})}function Ft({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`flex items-center justify-between mb-10`,n),style:r,children:t})}function It({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`mt-20`,n),style:r,children:t})}const Q=Object.assign(jt,{Body:Mt,Content:Nt,ContentMdx:Pt,ContentHeader:Ft,ContentFooter:It});function Lt(){let{theme:e,setTheme:t}=T(),[n,o]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{o(!0)},[]),!n)return(0,i.jsx)(`div`,{className:`h-9 w-9`});let c=e===`system`?s.Monitor:e===`dark`?s.Moon:s.Sun;return(0,i.jsxs)(K.Trigger,{placement:`bottom right`,children:[(0,i.jsx)(a.Button,{className:`flex h-9 w-9 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-bg-surface hover:text-text-main outline-none focus-visible:ring-2 focus-visible:ring-primary-500`,"aria-label":`Selection theme`,children:(0,i.jsx)(c,{size:20,className:`animate-in fade-in zoom-in duration-300`})}),(0,i.jsxs)(K.Root,{selectionMode:`single`,selectedKeys:[e],onSelectionChange:e=>{let n=Array.from(e)[0];t(n)},children:[(0,i.jsxs)(K.Item,{id:`light`,children:[(0,i.jsx)(s.Sun,{size:16}),(0,i.jsx)(`span`,{children:`Light`})]}),(0,i.jsxs)(K.Item,{id:`dark`,children:[(0,i.jsx)(s.Moon,{size:16}),(0,i.jsx)(`span`,{children:`Dark`})]}),(0,i.jsxs)(K.Item,{id:`system`,children:[(0,i.jsx)(s.Monitor,{size:16}),(0,i.jsx)(`span`,{children:`System`})]})]})]})}async function Rt(e,t,n=`https://api.github.com`){let r=new Headers;t&&r.append(`authorization`,t);let i=await(await fetch(`${n}/repos/${e}`,{headers:r})).json();return i.stargazers_count===void 0?`0`:zt(i.stargazers_count)}const zt=e=>Intl.NumberFormat(`en`,{notation:`compact`,compactDisplay:`short`}).format(e);function Bt({repo:t}){let[n,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{t&&Rt(t).then(e=>a(e)).catch(()=>a(`0`))},[t]),(0,i.jsxs)(`a`,{href:`https://github.com/${t}`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs font-medium text-text-muted transition-all hover:bg-bg-main hover:border-border-strong hover:text-text-main`,children:[(0,i.jsx)(e.f,{className:`h-4 w-4`}),n&&(0,i.jsx)(`span`,{className:`tabular-nums`,children:n})]})}function Vt({tabs:t,routes:n}){let{currentLocale:r}=e.s(),{indicatorStyle:a,tabRefs:o,activeIndex:c}=Tt(t,n),l=e=>{if(!e)return null;if(e.trim().startsWith(`<svg`))return(0,i.jsx)(`span`,{className:`h-4 w-4`,dangerouslySetInnerHTML:{__html:e}});let t=s[e];return t?(0,i.jsx)(t,{size:16}):(0,i.jsx)(`img`,{src:e,alt:``,className:`h-4 w-4 object-contain`})};return(0,i.jsx)(`div`,{className:`mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6`,children:(0,i.jsxs)(H.List,{className:`border-none py-0`,children:[t.map((t,a)=>{let s=a===c,u=n.find(e=>e.tab&&e.tab.toLowerCase()===t.id.toLowerCase());return(0,i.jsxs)(e.i,{href:u?u.path:`#`,ref:e=>{o.current[a]=e},className:`relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors outline-none ${s?`text-primary-500`:`text-text-muted hover:text-text-main`}`,children:[l(t.icon),(0,i.jsx)(`span`,{children:X(t.text,r)})]},t.id)}),(0,i.jsx)(H.Indicator,{style:a})]})})}const Ht=(0,r.lazy)(()=>Promise.resolve().then(()=>require(`../search-dialog-DMK5OpgH.cjs`)).then(e=>({default:e.SearchDialog})));function Ut(){let{links:n,title:a,logo:o,logoProps:s,github:c,social:l,config:u}=St(),{routes:d,allRoutes:f,currentVersion:p,currentLocale:m}=e.s(),{pathname:h}=(0,t.useLocation)(),g=u.theme||{},_=h.startsWith(`/docs`),v=g?.tabs&&g.tabs.length>0;return(0,i.jsxs)(e.r.Root,{className:v?`border-b-0`:``,children:[(0,i.jsxs)(e.r.Content,{children:[(0,i.jsxs)(e.r.Left,{children:[o&&(0,i.jsx)(e.r.Logo,{src:o,alt:s?.alt||a,width:s?.width??24,height:s?.height??24}),(0,i.jsx)(e.r.Title,{children:a}),u.versions&&p&&(0,i.jsx)(Gt,{})]}),(0,i.jsx)(e.r.Center,{children:(0,i.jsx)(r.Suspense,{fallback:(0,i.jsx)(`div`,{className:`h-9 w-32 animate-pulse rounded-md bg-bg-surface`}),children:(0,i.jsx)(Ht,{routes:d||[]})})}),(0,i.jsxs)(e.r.Right,{children:[(0,i.jsx)(e.r.Links,{children:n.map(e=>(0,i.jsx)(Wt,{link:e},e.href))}),u.i18n&&m&&(0,i.jsx)(Kt,{}),(0,i.jsx)(e.r.Split,{}),(0,i.jsx)(Lt,{}),c&&(0,i.jsx)(Bt,{repo:g?.githubRepo??``}),l.length>0&&(0,i.jsx)(e.r.Split,{}),(0,i.jsx)(`div`,{className:`flex items-center gap-1`,children:l.map(({icon:t,link:n})=>(0,i.jsx)(e.r.Socials,{icon:t,link:n,className:`p-1.5`},n))})]})]}),_&&v&&g?.tabs&&(0,i.jsx)(`div`,{className:`w-full border-b border-border-subtle bg-bg-main`,children:(0,i.jsx)(Vt,{tabs:g.tabs,routes:f||d||[]})})]})}function Wt({link:t}){let n=e.o(t.href||``);return(0,i.jsx)(e.r.Link,{...t,href:n})}function Gt(){let{currentVersionLabel:e,availableVersions:t,handleVersionChange:n}=Et();return t.length===0?null:(0,i.jsxs)(K.Trigger,{children:[(0,i.jsx)(D,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:(0,i.jsx)(s.ChevronDown,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5`,children:(0,i.jsx)(`span`,{className:`font-semibold text-[0.8125rem]`,children:e})}),(0,i.jsx)(K.Root,{children:(0,i.jsx)(K.Section,{items:t,children:e=>(0,i.jsx)(K.Item,{onPress:()=>n(e.value),children:e.label},`${e.value??``}`)})})]})}function Kt(){let{currentLocale:e,availableLocales:t,handleLocaleChange:n}=Dt();return t.length===0?null:(0,i.jsxs)(K.Trigger,{children:[(0,i.jsx)(D,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:(0,i.jsx)(s.ChevronDown,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5 px-2.5`,children:(0,i.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,i.jsx)(s.Languages,{className:`w-3.5 h-3.5 text-primary-500`}),(0,i.jsx)(`span`,{className:`font-bold text-[0.75rem] uppercase opacity-90`,children:e||`en`})]})}),(0,i.jsx)(K.Root,{children:(0,i.jsx)(K.Section,{items:t,children:e=>(0,i.jsx)(K.Item,{onPress:()=>n(e.value),children:(0,i.jsxs)(`div`,{className:`flex items-center justify-between w-full gap-4`,children:[(0,i.jsx)(`span`,{children:e.label}),(0,i.jsx)(`span`,{className:`text-[10px] font-bold opacity-40 uppercase tracking-tighter`,children:e.value})]})},`${e.value??``}`)})})]})}function qt(){return(0,i.jsx)(`div`,{className:`flex items-center justify-center mt-10 mb-4 px-4 w-full`,children:(0,i.jsxs)(`a`,{href:`https://github.com/jesusalcaladev/boltdocs`,target:`_blank`,rel:`noopener noreferrer`,className:`group relative flex items-center gap-2 px-4 py-2 rounded-full border border-border-subtle bg-bg-surface/50 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:bg-bg-surface hover:shadow-xl hover:shadow-primary-500/5 select-none`,children:[(0,i.jsx)(s.Zap,{className:`w-3.5 h-3.5 text-text-muted group-hover:text-primary-500 transition-colors duration-300`,fill:`currentColor`}),(0,i.jsxs)(`span`,{className:`text-[11px] font-medium text-text-muted group-hover:text-text-main transition-colors duration-300 tracking-wide`,children:[`Powered by`,` `,(0,i.jsx)(`strong`,{className:`font-bold text-text-main/80 group-hover:text-text-main`,children:`Boltdocs`})]})]})})}function Jt(e){if(!e)return;let t={...s,...d.default};return t[e]||t[e+`Icon`]||void 0}function Yt({route:e,activePath:t,getIcon:n}){let a=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path),o=(0,r.useMemo)(()=>e.subRoutes?.some(e=>e.path===t),[e.subRoutes,t]),[s,c]=(0,r.useState)(o||a);return(0,r.useEffect)(()=>{(o||a)&&c(!0)},[o,a]),(0,i.jsx)(U.SubGroup,{label:e.title,href:e.path,active:a,icon:n(e.icon),badge:e.badge,isOpen:s,onToggle:()=>c(!s),children:e.subRoutes?.map(e=>{let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return(0,i.jsx)(U.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function Xt({group:e,activePath:t,getIcon:n}){return(0,i.jsx)(U.Group,{title:e.title,icon:n(e.icon),children:e.routes.map(e=>{if(e.subRoutes&&e.subRoutes.length>0)return(0,i.jsx)(Yt,{route:e,activePath:t,getIcon:n},e.path);let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return(0,i.jsx)(U.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function Zt({routes:e,config:t}){let{groups:n,ungrouped:r,activePath:a}=Ct(e),o=t.theme||{};return(0,i.jsxs)(U.Root,{children:[r.length>0&&(0,i.jsx)(U.Group,{className:`mb-6`,children:r.map(e=>{let t=a===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return(0,i.jsx)(U.Link,{label:e.title,href:e.path,active:t,icon:Jt(e.icon),badge:e.badge},e.path)})}),n.map(e=>(0,i.jsx)(Xt,{group:e,activePath:a,getIcon:Jt},e.slug)),o?.poweredBy&&(0,i.jsx)(`div`,{className:`mt-auto pt-8`,children:(0,i.jsx)(qt,{})})]})}function Qt({headings:e=[],editLink:t,communityHelp:n,filePath:a}){let{headings:o}=wt(e),s=(0,r.useMemo)(()=>o.map(e=>({title:e.text,url:`#${e.id}`,depth:e.level})),[o]);return o.length===0?null:(0,i.jsx)(nt,{toc:s,children:(0,i.jsx)($t,{headings:o,editLink:t,communityHelp:n,filePath:a})})}function $t({headings:e,editLink:t,communityHelp:n,filePath:a}){let o=$e(),[c,l]=(0,r.useState)({opacity:0}),u=(0,r.useRef)(null),d=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!o||!u.current)return;let e=u.current.querySelector(`a[href="#${o}"]`);e&&l({transform:`translateY(${e.offsetTop}px)`,height:`${e.offsetHeight}px`,opacity:1})},[o]);let f=(0,r.useCallback)((e,t)=>{e.preventDefault();let n=document.getElementById(t);n&&(n.scrollIntoView({behavior:`smooth`}),window.history.pushState(null,``,`#${t}`))},[]);return(0,i.jsxs)(B.Root,{children:[(0,i.jsxs)(B.Header,{className:`flex flex-row gap-x-2`,children:[(0,i.jsx)(s.TextAlignStart,{size:16}),`On this page`]}),(0,i.jsx)(tt,{containerRef:d,children:(0,i.jsxs)(B.Content,{className:`max-h-[450px] boltdocs-otp-scroll-area`,ref:d,children:[(0,i.jsx)(B.Indicator,{style:c}),(0,i.jsx)(`ul`,{className:`relative space-y-2 border-l border-border-subtle`,ref:u,children:e.map(e=>(0,i.jsx)(B.Item,{level:e.level,children:(0,i.jsx)(B.Link,{href:`#${e.id}`,active:o===e.id,onClick:t=>f(t,e.id),className:`pl-4`,children:e.text})},e.id))})]})}),(t||n)&&(0,i.jsxs)(`div`,{className:`mt-8 pt-8 border-t border-border-subtle space-y-4`,children:[(0,i.jsx)(`p`,{className:`text-xs font-bold uppercase text-text-main`,children:`Need help?`}),(0,i.jsxs)(`ul`,{className:`space-y-3`,children:[t&&a&&(0,i.jsx)(`li`,{children:(0,i.jsxs)(`a`,{href:t.replace(`:path`,a),target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[(0,i.jsx)(s.Pencil,{size:16}),`Edit this page`]})}),n&&(0,i.jsx)(`li`,{children:(0,i.jsxs)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[(0,i.jsx)(s.CircleHelp,{size:16}),`Community help`]})})]})]})]})}function en({siteTitle:n,siteDescription:r,routes:a}){let s=(0,t.useLocation)(),c=e.C(),l=a?.find?.(e=>e.path===s.pathname),u=l?.title,d=l?.description||r||``,f=u?`${u} | ${n}`:n,p=l?.seo||{},m=c?.seo?.metatags||{},h=c?.seo?.thumbnails?.background,g=p[`og:image`]||h;return(0,i.jsxs)(o.Helmet,{children:[(0,i.jsx)(`title`,{children:f}),(0,i.jsx)(`meta`,{name:`description`,content:d}),(0,i.jsx)(`meta`,{property:`og:title`,content:f}),(0,i.jsx)(`meta`,{property:`og:description`,content:d}),(0,i.jsx)(`meta`,{property:`og:type`,content:`article`}),typeof window<`u`&&(0,i.jsx)(`meta`,{property:`og:url`,content:window.location.href}),typeof window<`u`&&(0,i.jsx)(`link`,{rel:`canonical`,href:window.location.origin+s.pathname}),(0,i.jsx)(`meta`,{name:`twitter:card`,content:`summary`}),(0,i.jsx)(`meta`,{name:`twitter:title`,content:f}),(0,i.jsx)(`meta`,{name:`twitter:description`,content:d}),g&&(0,i.jsx)(`meta`,{name:`twitter:image`,content:g}),g&&(0,i.jsx)(`meta`,{property:`og:image`,content:g}),(0,i.jsx)(`meta`,{name:`generator`,content:`Boltdocs`}),Object.entries(m).map(([e,t])=>e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?(0,i.jsx)(`meta`,{property:e,content:t},e):(0,i.jsx)(`meta`,{name:e,content:t},e)),Object.entries(p).map(([e,t])=>e===`noindex`&&t===!0?(0,i.jsx)(`meta`,{name:`robots`,content:`noindex`},`noindex`):e===`robots`?(0,i.jsx)(`meta`,{name:`robots`,content:t},`robots`):e===`canonical`?(0,i.jsx)(`link`,{rel:`canonical`,href:t},`canonical`):e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?(0,i.jsx)(`meta`,{property:e,content:t},e):(0,i.jsx)(`meta`,{name:e,content:t},e))]})}function tn(){let{crumbs:t,activeRoute:n}=kt(),r=e.C().theme||{};return t.length===0||!r?.breadcrumbs?null:(0,i.jsxs)(W.Root,{children:[(0,i.jsx)(W.Item,{children:(0,i.jsx)(W.Link,{href:`/`,children:(0,i.jsx)(s.Home,{size:14})})}),t.map((t,r)=>(0,i.jsxs)(W.Item,{children:[(0,i.jsx)(W.Separator,{}),(0,i.jsx)(W.Link,{href:t.href,className:e.x({"font-medium text-text-main":t.href===n?.path}),children:t.label})]},`crumb-${t.href}-${t.label}-${r}`))]})}function nn(){let{prevPage:e,nextPage:t}=Ot();return!e&&!t?null:(0,i.jsxs)(V.Root,{className:`animate-in fade-in slide-in-from-bottom-4 duration-700`,children:[e?(0,i.jsxs)(V.Link,{to:e.path,direction:`prev`,children:[(0,i.jsx)(V.Title,{children:`Previous`}),(0,i.jsx)(V.Description,{children:e.title})]}):(0,i.jsx)(`div`,{}),t&&(0,i.jsxs)(V.Link,{to:t.path,direction:`next`,children:[(0,i.jsx)(V.Title,{children:`Next`}),(0,i.jsx)(V.Description,{children:t.title})]})]})}var $=class extends r.Component{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Uncaught error in Boltdocs Layout:`,e,t)}render(){return this.state.hasError?this.props.fallback||(0,i.jsxs)(`div`,{className:`flex flex-col items-center justify-center min-h-[40vh] text-center gap-4 px-4`,children:[(0,i.jsx)(`div`,{className:`text-lg font-bold text-red-400`,children:`Something went wrong`}),(0,i.jsx)(`p`,{className:`text-sm text-text-muted max-w-md`,children:this.state.error?.message||`An unexpected error occurred while rendering this page.`}),(0,i.jsx)(D,{className:`rounded-lg border border-border-subtle bg-bg-surface px-5 py-2 text-sm font-medium text-text-main transition-colors hover:bg-bg-muted cursor-pointer`,onPress:()=>this.setState({hasError:!1}),children:`Try again`})]}):this.props.children}};function rn({children:n}){let{routes:r,allRoutes:a,currentRoute:o,currentLocale:s}=e.s(),{pathname:c}=(0,t.useLocation)(),l=e.C(),u=g().CopyMarkdown||J,d=c.startsWith(`/docs`);return(0,i.jsxs)(Q,{children:[(0,i.jsx)(en,{siteTitle:X(l.theme?.title,s)||`Boltdocs`,siteDescription:X(l.theme?.description,s)||``,routes:a}),(0,i.jsx)(Ut,{}),(0,i.jsxs)(Q.Body,{children:[d&&(0,i.jsx)(Zt,{routes:r,config:l}),(0,i.jsx)(Q.Content,{children:(0,i.jsxs)(Q.ContentMdx,{children:[d&&(0,i.jsxs)(Q.ContentHeader,{children:[(0,i.jsx)(tn,{}),(0,i.jsx)(u,{mdxRaw:o?._rawContent,route:o,config:l.theme?.copyMarkdown})]}),(0,i.jsx)($,{children:n}),d&&(0,i.jsx)(Q.ContentFooter,{children:(0,i.jsx)(nn,{})})]})}),d&&(0,i.jsx)(Qt,{headings:o?.headings,editLink:l.theme?.editLink,communityHelp:l.theme?.communityHelp,filePath:o?.filePath})]})]})}exports.Admonition=j,exports.AnchorProvider=nt,exports.Badge=ve,exports.BoltdocsShell=vt,exports.Breadcrumbs=tn,exports.Button=te,exports.ButtonGroup=ot,exports.Card=xe,exports.Cards=be,exports.Caution=Ae,exports.CodeBlock=A,exports.ComponentPreview=Je,exports.ComponentProps=Ke,exports.CopyMarkdown=J,exports.Danger=De,exports.DefaultLayout=rn,exports.DocsLayout=Q,exports.ErrorBoundary=$,exports.Field=I,exports.FileTree=Ve,exports.Head=en,exports.Image=Ge,exports.Important=ke,exports.InfoBox=Oe,exports.Link=We,exports.List=Ie,exports.Loading=mt,exports.MdxPage=y,exports.Navbar=Ut,exports.NotFound=yt,exports.Note=we,exports.OnThisPage=Qt,exports.PageNav=nn,exports.PrimitiveBreadcrumbs=W,exports.PrimitiveButton=D,exports.PrimitiveLink=e.i,exports.PrimitiveMenu=K,exports.PrimitiveNavLink=e.a,exports.PrimitiveNavbar=e.r,exports.PrimitiveNavigationMenu=L,exports.PrimitiveOnThisPage=B,exports.PrimitivePageNav=V,exports.PrimitivePopover=G,exports.PrimitiveSidebar=U,exports.PrimitiveSkeleton=q,exports.PrimitiveTabs=H,exports.PrimitiveTooltip=k,exports.ScrollProvider=tt,exports.SearchDialogPrimitive=e.n,exports.Sidebar=Zt,exports.Tab=me,exports.Table=Ue,exports.Tabs=he,exports.Tip=Te,exports.Video=ge,exports.Warning=Ee,exports.cn=e.x,exports.createRoutes=xt,exports.defineConfig=f,exports.useActiveAnchor=$e,exports.useActiveAnchors=et,exports.useBreadcrumbs=kt,exports.useConfig=e.C,exports.useI18n=Dt,exports.useItems=z,exports.useLocalizedTo=e.o,exports.useLocation=At,exports.useMdxComponents=g,exports.useNavbar=St,exports.useOnThisPage=wt,exports.usePageNav=Ot,exports.useRoutes=e.s,exports.useSearch=e.t,exports.useSidebar=Ct,exports.useTabs=Tt,exports.useTheme=T,exports.useVersion=Et;
6
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../use-search-DcfZSunO.cjs`);let t=require(`react-router-dom`),n=require(`virtual:boltdocs-layout`);n=e.D(n);let r=require(`react`),i=require(`react/jsx-runtime`),a=require(`react-aria-components`);a=e.D(a);let o=require(`react-helmet-async`),s=require(`lucide-react`);s=e.D(s);let c=require(`class-variance-authority`),l=require(`scroll-into-view-if-needed`);l=e.D(l);let u=require(`virtual:boltdocs-mdx-components`);u=e.D(u);let d=require(`virtual:boltdocs-icons`);d=e.D(d);const f=Symbol.for(`__BDOCS_MDX_COMPONENTS_CONTEXT__`),p=Symbol.for(`__BDOCS_MDX_COMPONENTS_INSTANCE__`),m=globalThis[f]||(globalThis[f]=(0,r.createContext)({}));function h(){let e=(0,r.use)(m);return(!e||Object.keys(e).length===0)&&globalThis[p]?globalThis[p]:e}function g({components:e,children:t}){return typeof globalThis<`u`&&(globalThis[p]=e),(0,i.jsx)(m.Provider,{value:e,children:t})}function _({route:e,content:t,mdxComponents:a}){let o=h(),s=(0,r.useMemo)(()=>({...o,...a}),[o,a]);return t?(0,i.jsx)(n.default,{route:e,children:(0,i.jsx)(t,{components:s})}):null}function v({MDXComponent:e,mdxComponents:n}){let r=(0,t.useLoaderData)(),a=e||r?.MDXComponent,o=n||r?.mdxComponents;return a?(0,i.jsx)(_,{route:{path:r.path,filePath:r.filePath,title:r.frontmatter.title,description:r.frontmatter.description,headings:r.headings,locale:r.locale,version:r.version,group:r.group,groupTitle:r.groupTitle},content:a,mdxComponents:o}):null}const y=Symbol.for(`__BDOCS_THEME_CONTEXT__`),b=Symbol.for(`__BDOCS_THEME_INSTANCE__`),x=`boltdocs-theme-change`,S=globalThis[y]||(globalThis[y]=(0,r.createContext)(void 0));function C({children:e}){let[t,n]=(0,r.useState)(`system`),[a,o]=(0,r.useState)(`dark`),s=e=>{let t=window.matchMedia(`(prefers-color-scheme: dark)`),n=e===`dark`||e===`system`&&t.matches,r=window.document.documentElement;r.classList.toggle(`dark`,n),r.dataset.theme=n?`dark`:`light`,o(n?`dark`:`light`)};(0,r.useEffect)(()=>{let e=localStorage.getItem(`boltdocs-theme`);e?(n(e),s(e)):s(`system`);let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=()=>{(localStorage.getItem(`boltdocs-theme`)||`system`)===`system`&&s(`system`)};return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[]);let c={theme:t,resolvedTheme:a,setTheme:e=>{n(e),localStorage.setItem(`boltdocs-theme`,e),s(e),typeof window<`u`&&window.dispatchEvent(new CustomEvent(x,{detail:e}))}};return typeof globalThis<`u`&&(globalThis[b]=c),(0,i.jsx)(S.Provider,{value:c,children:e})}function w(){let e=(0,r.use)(S),[,t]=(0,r.useState)({});if((0,r.useEffect)(()=>{if(e)return;let n=()=>t({});return window.addEventListener(x,n),()=>window.removeEventListener(x,n)},[e]),!e&&typeof globalThis<`u`&&globalThis[b])return globalThis[b];if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function ee(){let{pathname:e,hash:n}=(0,t.useLocation)();return(0,r.useLayoutEffect)(()=>{let e=document.querySelector(`.boltdocs-content`)||window,t=()=>e===window?window.scrollY:e.scrollTop,r=(t,n=`auto`)=>{e===window?window.scrollTo({top:t,behavior:n}):e.scrollTo({top:t,behavior:n})};if(n){let i=n.replace(`#`,``),a=document.getElementById(i);if(a){let n=e===window?0:e.getBoundingClientRect().top;r(a.getBoundingClientRect().top-n-80+t(),`smooth`);return}}r(0)},[e,n]),null}const T=(0,c.cva)(`flex flex-row items-center justify-center w-auto font-semibold tracking-tight no-underline whitespace-nowrap select-none outline-none transition-all duration-200 cursor-pointer pressed:scale-[0.97] hover:-translate-y-px leading-none`,{variants:{variant:{primary:`bg-primary-500 text-white shadow-md hover:brightness-110 hover:shadow-lg`,secondary:`bg-bg-surface text-text-main border border-border-subtle hover:bg-bg-muted hover:border-border-strong`,outline:`bg-transparent text-text-main border border-border-strong hover:bg-bg-surface hover:border-primary-500`,ghost:`bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-main`,danger:`bg-[var(--color-danger-500)]/10 text-[var(--color-danger-500)] border border-[var(--color-danger-500)]/20 hover:bg-[var(--color-danger-500)]/15`,success:`bg-[var(--color-success-500)]/10 text-[var(--color-success-500)] border border-[var(--color-success-500)]/20 hover:bg-[var(--color-success-500)]/15`,warning:`bg-[var(--color-warning-500)]/10 text-[var(--color-warning-500)] border border-[var(--color-warning-500)]/20 hover:bg-[var(--color-warning-500)]/15`,info:`bg-[var(--color-info-500)]/10 text-[var(--color-info-500)] border border-[var(--color-info-500)]/20 hover:bg-[var(--color-info-500)]/15`,subtle:`bg-primary-500/10 text-primary-500 hover:bg-primary-500/20`,link:`bg-transparent text-primary-500 !p-0 !min-h-0 hover:underline`},size:{sm:`min-h-8 px-3.5 text-[0.8125rem] gap-1.5`,md:`min-h-10 px-5 text-[0.9375rem] gap-2`,lg:`min-h-12 px-7 text-[1.05rem] gap-2.5`},rounded:{none:`rounded-none`,sm:`rounded-sm`,md:`rounded-md`,lg:`rounded-lg`,full:`rounded-full`},iconSize:{sm:`w-8 h-8 p-0`,md:`w-10 h-10 p-0`,lg:`w-12 h-12 p-0`},disabled:{true:`opacity-50 cursor-not-allowed pointer-events-none`,false:null}},defaultVariants:{variant:`primary`,size:`md`,rounded:`md`}}),E=({href:t,icon:n,iconPosition:r=`left`,isIconOnly:o,children:s,className:c,variant:l,size:u,rounded:d,iconSize:f,disabled:p,...m})=>{let h=o||!s&&!!n,g=h?(0,i.jsx)(`span`,{className:`inline-flex items-center justify-center [&>svg]:w-[1.2rem] [&>svg]:h-[1.2rem]`,children:n}):(0,i.jsxs)(i.Fragment,{children:[n&&r===`left`&&(0,i.jsx)(`span`,{className:`inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]`,children:n}),(0,i.jsx)(`span`,{className:`flex items-center`,children:s}),n&&r===`right`&&(0,i.jsx)(`span`,{className:`inline-flex items-center shrink-0 [&>svg]:w-[1.1rem] [&>svg]:h-[1.1rem]`,children:n})]});return t?(0,i.jsx)(a.Link,{href:t,className:e.x(T({variant:l,size:u,rounded:d,iconSize:h?f:void 0,disabled:p}),c),...m,children:g}):(0,i.jsx)(a.Button,{className:e.x(T({variant:l,size:u,rounded:d,iconSize:h?f:void 0,disabled:p}),c),...m,children:g})},te=({className:t,variant:n,size:r,rounded:a,iconSize:o,disabled:s,...c})=>(0,i.jsx)(E,{className:e.x(`group`,T({variant:n,size:r,rounded:a,iconSize:o,disabled:s,className:t})),...c}),D=(e,t)=>{if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(e=>D(e,t)).join(``);if((0,r.isValidElement)(e)){let n=t?.get(e.type);return n?n(e.props):D(e.props.children,t)}return``},ne=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement(`textarea`);return t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select(),document.execCommand(`copy`),document.body.removeChild(t),!0}};function re(t){let{title:n}=t,[i,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),[c,l]=(0,r.useState)(!1),u=(0,r.useRef)(null);e.C();let d=(0,r.useCallback)(async()=>{ne(u.current?.textContent??``),a(!0),setTimeout(()=>a(!1),2e3)},[]);return(0,r.useEffect)(()=>{l((u.current?.textContent?.length??0)>120)},[t.children,t.highlightedHtml]),{copied:i,isExpanded:o,setIsExpanded:s,isExpandable:c,preRef:u,handleCopy:d,shouldTruncate:c&&!o}}const ie=({children:t,className:n,plain:r=!1,...a})=>(0,i.jsx)(`div`,{className:e.x(`not-prose boltdocs-code-block`,`group relative overflow-hidden bg-(--color-code-bg)`,`contain-layout contain-paint`,{"my-6 rounded-lg border border-border-subtle":!r},n),...a,children:t}),ae=({children:t,className:n,...r})=>(0,i.jsx)(`div`,{className:e.x(`flex h-9 items-center justify-between px-4 py-1.5`,`border-b border-border-subtle bg-bg-surface/50`,`text-[13px] font-medium text-text-muted`,n),...r,children:t}),oe=({children:t,className:n,...r})=>(0,i.jsx)(`div`,{className:e.x(`flex items-center space-x-2`,n),...r,children:t}),se=({className:t,children:n,shouldTruncate:r=!1,...a})=>(0,i.jsx)(`div`,{className:e.x(`relative`,{"[&>pre]:max-h-62.5 [&>pre]:overflow-hidden":r},t),...a,children:n}),ce=({className:t,children:n,...r})=>(0,i.jsx)(a.Tooltip,{...r,offset:8,className:n=>e.x(`group z-50 overflow-visible rounded-md bg-bg-surface/90 px-2.5 py-1.5 text-xs font-medium text-text-main shadow-lg backdrop-blur-md ring-1 ring-border-subtle outline-hidden select-none`,`data-entering:animate-in data-entering:fade-in data-entering:zoom-in-95 data-entering:duration-100`,`data-exiting:animate-out data-exiting:fade-out data-exiting:zoom-out-95 data-exiting:duration-75`,`data-[placement=top]:slide-in-from-bottom-1`,`data-[placement=bottom]:slide-in-from-top-1`,`data-[placement=left]:slide-in-from-right-1`,`data-[placement=right]:slide-in-from-left-1`,typeof t==`function`?t(n):t),children:e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.OverlayArrow,{children:(0,i.jsxs)(`svg`,{width:8,height:8,viewBox:`0 0 8 8`,className:`fill-bg-surface/90 stroke-border-subtle group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90`,children:[(0,i.jsx)(`title`,{children:`Arrow`}),(0,i.jsx)(`path`,{d:`M0 0 L4 4 L8 0`})]})}),typeof n==`function`?n(e):n]})}),O=({content:e,children:t,delay:n=500,closeDelay:r=0,...o})=>(0,i.jsxs)(a.TooltipTrigger,{delay:n,closeDelay:r,children:[t,(0,i.jsx)(ce,{...o,children:e})]});O.Root=O,O.Content=ce;const le={ts:e.y,tsx:e.g,js:e.p,jsx:e.g,json:e.m,css:e.d,html:e.l,md:e.h,mdx:e.h,bash:e.v,sh:e.v,yaml:e.b,yml:e.b,rs:e._,rust:e._,toml:e.u},ue=({copied:t,handleCopy:n})=>(0,i.jsx)(O,{content:t?`Copied!`:`Copy code`,children:(0,i.jsx)(a.Button,{onPress:n,className:e.x(`grid place-items-center size-8 bg-transparent outline-none cursor-pointer transition-all duration-200 hover:scale-110 active:scale-95 [&>svg]:size-4 [&>svg]:stroke-2`,t?`text-emerald-400`:`text-text-muted hover:text-text-main`),"aria-label":`Copy code`,children:t?(0,i.jsx)(s.Check,{size:20}):(0,i.jsx)(s.Copy,{size:20})})});function k(t){let{children:n,hideCopy:r=!1,highlightedHtml:o,"data-highlighted-html":c,title:l,"data-title":u,"data-lang":d,plain:f=!1,...p}=t,m=o||c,h=l||u,g=t.lang||d||``,{copied:_,isExpanded:v,setIsExpanded:y,isExpandable:b,preRef:x,handleCopy:S,shouldTruncate:C}=re(t),w=le[g];return(0,i.jsxs)(ie,{plain:f,className:t.className,children:[(h||!r)&&(0,i.jsxs)(ae,{children:[(0,i.jsx)(oe,{children:h&&(0,i.jsxs)(i.Fragment,{children:[w?(0,i.jsx)(w,{size:14}):(0,i.jsx)(s.File,{size:14,className:`opacity-60`}),(0,i.jsx)(`span`,{children:h})]})}),!r&&(0,i.jsx)(ue,{copied:_,handleCopy:S})]}),(0,i.jsxs)(se,{shouldTruncate:C,children:[m?(0,i.jsx)(`div`,{ref:x,className:`shiki-wrapper [&>pre]:m-0! [&>pre]:rounded-none! [&>pre]:border-none! [&>pre]:bg-inherit! [&>pre>code]:grid! [&>pre>code]:p-5! [&>.shiki.shiki-themes]:bg-transparent!`,dangerouslySetInnerHTML:{__html:m}}):(0,i.jsx)(`pre`,{ref:x,className:`m-0! p-5! rounded-none! border-none! bg-inherit! font-mono text-[0.8125rem] leading-[1.7] overflow-x-auto`,...p,children:D(n)}),b&&(0,i.jsx)(`div`,{className:e.x(C?`absolute bottom-0 inset-x-0 h-24 bg-linear-to-t from-(--color-code-bg) to-transparent flex items-end justify-center pb-4 z-10`:`relative flex justify-center py-4`),children:(0,i.jsx)(a.Button,{onPress:()=>y(!v),className:`rounded-full bg-bg-surface border border-border-subtle px-5 py-2 text-[0.8125rem] font-medium text-text-main outline-none cursor-pointer transition-all hover:bg-border-subtle hover:-translate-y-px backdrop-blur-md`,children:v?`Show less`:`Expand code`})})]})]})}function de({initialIndex:e=0,tabs:t}){let n=t[e]?.props.disabled?t.findIndex(e=>!e.props.disabled):e,[i,a]=(0,r.useState)(n===-1?0:n),o=(0,r.useRef)([]),[s,c]=(0,r.useState)({opacity:0,transform:`translateX(0)`,width:0});return(0,r.useEffect)(()=>{let e=o.current[i];e&&c({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[i,t]),{active:i,setActive:a,tabRefs:o,indicatorStyle:s,handleKeyDown:(0,r.useCallback)(e=>{let n=0;if(e.key===`ArrowRight`?n=1:e.key===`ArrowLeft`&&(n=-1),n!==0){let e=(i+n+t.length)%t.length;for(;t[e].props.disabled&&e!==i;)e=(e+n+t.length)%t.length;e!==i&&!t[e].props.disabled&&(a(e),o.current[e]?.focus())}},[i,t])}}const fe=(0,c.cva)(`relative flex items-center border-b border-border-subtle gap-1 overflow-x-auto no-scrollbar`,{variants:{size:{default:`px-0`,compact:`px-2`}},defaultVariants:{size:`default`}}),pe=(0,c.cva)(`flex items-center gap-2 px-4 py-2.5 text-sm font-medium outline-none transition-all duration-200 cursor-pointer bg-transparent border-none select-none whitespace-nowrap`,{variants:{isActive:{true:`text-primary-500`,false:`text-text-muted hover:text-text-main`},isDisabled:{true:`opacity-40 pointer-events-none`,false:``}},defaultVariants:{isActive:!1,isDisabled:!1}});function me({children:e}){return(0,i.jsx)(`div`,{className:`py-4`,children:typeof e==`string`?(0,i.jsx)(k,{className:`language-bash`,children:(0,i.jsx)(`code`,{children:e.trim()})}):e})}function he({defaultIndex:t=0,children:n}){let o=(0,r.useMemo)(()=>r.Children.toArray(n).filter(e=>(0,r.isValidElement)(e)&&e.props?.label),[n]),{active:s,setActive:c,tabRefs:l,indicatorStyle:u}=de({initialIndex:t,tabs:o});return(0,i.jsx)(`div`,{className:`my-8 w-full group/tabs`,children:(0,i.jsxs)(a.Tabs,{selectedKey:s.toString(),onSelectionChange:e=>c(Number(e)),className:`w-full`,children:[(0,i.jsxs)(a.TabList,{"aria-label":`Content Tabs`,className:e.x(fe()),children:[o.map((t,n)=>{let{label:r,icon:o,disabled:s}=t.props,c=n.toString();return(0,i.jsxs)(a.Tab,{id:c,isDisabled:s,ref:e=>{l.current[n]=e},className:({isSelected:t,isDisabled:n})=>e.x(pe({isActive:t,isDisabled:n})),children:[!!o&&(0,i.jsx)(`span`,{className:`shrink-0 [&>svg]:w-4 [&>svg]:h-4`,children:o}),(0,i.jsx)(`span`,{children:r})]},c)}),(0,i.jsx)(`div`,{className:`absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300 ease-in-out pointer-events-none`,style:u,"aria-hidden":`true`})]}),o.map((e,t)=>(0,i.jsx)(a.TabPanel,{id:t.toString(),children:o[t]},t))]})})}function ge({src:e,poster:t,alt:n,children:a,controls:o,preload:s=`metadata`,...c}){let l=(0,r.useRef)(null),[u,d]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=l.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(d(!0),t.disconnect())},{rootMargin:`200px`});return t.observe(e),()=>t.disconnect()},[]),(0,i.jsx)(`div`,{ref:l,className:`my-6 overflow-hidden rounded-lg border border-border-subtle`,children:u?(0,i.jsxs)(`video`,{className:`block w-full h-auto`,src:e,poster:t,controls:!0,preload:s,playsInline:!0,...c,children:[a,`Your browser does not support the video tag.`]}):(0,i.jsx)(`div`,{className:`aspect-video bg-bg-surface animate-pulse`,role:`img`,"aria-label":n||`Video`})})}const _e=(0,c.cva)(`inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold tracking-tight`,{variants:{variant:{default:`bg-bg-surface text-text-muted border-border-subtle`,primary:`bg-primary-500/15 text-primary-400 border-primary-500/20`,success:`bg-emerald-500/15 text-emerald-400 border-emerald-500/20`,warning:`bg-amber-500/15 text-amber-400 border-amber-500/20`,danger:`bg-red-500/15 text-red-400 border-red-500/20`,info:`bg-sky-500/15 text-sky-400 border-sky-500/20`}},defaultVariants:{variant:`default`}});function ve({variant:t=`default`,children:n,className:r=``,...a}){return(0,i.jsx)(`span`,{className:e.x(_e({variant:t}),r),...a,children:n})}const ye=(0,c.cva)(`grid gap-4 my-6`,{variants:{cols:{1:`grid-cols-1`,2:`grid-cols-1 sm:grid-cols-2`,3:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`,4:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-4`}},defaultVariants:{cols:3}});function be({cols:t=3,children:n,className:r=``,...a}){return(0,i.jsx)(`div`,{className:e.x(ye({cols:t}),r),...a,children:n})}function xe({title:t,icon:n,href:o,children:s,className:c=``,...l}){let u=(0,r.useRef)(null),d=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{let t=u.current||d.current;if(!t)return;let{left:n,top:r}=t.getBoundingClientRect();t.style.setProperty(`--x`,`${e.clientX-n}px`),t.style.setProperty(`--y`,`${e.clientY-r}px`)},[]),p=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`div`,{className:`pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100`,style:{background:`radial-gradient(400px circle at var(--x) var(--y), color-mix(in oklch, var(--color-primary-500), transparent 90%), transparent 80%)`}}),n&&(0,i.jsx)(`div`,{className:`mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-primary-500/10 text-primary-400 text-lg transition-transform duration-300 group-hover:scale-105 group-hover:-rotate-3`,children:n}),(0,i.jsxs)(`div`,{className:`space-y-1.5`,children:[t&&(0,i.jsx)(`h3`,{className:`text-sm font-bold text-text-main`,children:t}),s&&(0,i.jsx)(`div`,{className:`text-sm text-text-muted leading-relaxed`,children:s})]})]}),m=e.x(`group relative block rounded-xl border border-border-subtle bg-bg-surface p-5 outline-none overflow-hidden`,`transition-all duration-200 hover:border-primary-500/40 hover:shadow-lg hover:shadow-primary-500/5`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,c);return o?(0,i.jsx)(a.Link,{ref:d,href:o,className:e.x(m,`no-underline cursor-pointer`),onMouseMove:f,...l,children:p}):(0,i.jsx)(`div`,{ref:u,role:`presentation`,className:m,onMouseMove:f,...l,children:p})}const Se={note:(0,i.jsx)(s.Bookmark,{size:18}),tip:(0,i.jsx)(s.Lightbulb,{size:18}),info:(0,i.jsx)(s.Info,{size:18}),warning:(0,i.jsx)(s.AlertTriangle,{size:18}),danger:(0,i.jsx)(s.ShieldAlert,{size:18}),important:(0,i.jsx)(s.Flame,{size:18}),caution:(0,i.jsx)(s.Zap,{size:18})},Ce=(0,c.cva)(`py-4 px-4 rounded-lg flex items-center gap-3 border-[1px] flex-row`,{variants:{type:{note:`border-primary-200 dark:border-primary-800 bg-primary-500/5 text-primary-400`,tip:`border-emerald-200 dark:border-emerald-800 bg-emerald-500/5 text-emerald-500`,info:`border-sky-200 dark:border-sky-800 bg-sky-500/5 text-sky-500`,warning:`border-amber-200 dark:border-amber-800 bg-amber-500/5 text-amber-500`,danger:`border-red-200 dark:border-red-800/70 bg-red-500/5 text-red-500`,important:`border-orange-200 dark:border-orange-800/70 bg-orange-500/5 text-orange-500`,caution:`border-yellow-200 dark:border-yellow-800/70 bg-yellow-500/5 text-yellow-500`}},defaultVariants:{type:`note`}});function A({type:t=`note`,title:n,children:r,className:a=``,...o}){return(0,i.jsxs)(`div`,{className:e.x(Ce({type:t}),a),role:t===`warning`||t===`danger`?`alert`:`note`,...o,children:[Se[t],(0,i.jsx)(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 [&>p]:mb-2 [&>p:last-child]:mb-0`,children:r})]})}const j=e=>(0,i.jsx)(A,{type:`note`,...e}),M=e=>(0,i.jsx)(A,{type:`tip`,...e}),N=e=>(0,i.jsx)(A,{type:`warning`,...e}),P=e=>(0,i.jsx)(A,{type:`danger`,...e}),we=e=>(0,i.jsx)(A,{type:`info`,...e}),Te=e=>(0,i.jsx)(A,{type:`important`,...e}),Ee=e=>(0,i.jsx)(A,{type:`caution`,...e}),De=(0,c.cva)(`my-6 transition-all duration-200`,{variants:{variant:{default:`list-disc pl-5 text-text-muted marker:text-primary-500/50`,number:`list-decimal pl-5 text-text-muted marker:text-primary-500/50 marker:font-bold`,checked:`list-none p-0`,arrow:`list-none p-0`,bubble:`list-none p-0`},cols:{1:`grid-cols-1`,2:`grid-cols-1 sm:grid-cols-2`,3:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-3`,4:`grid-cols-1 sm:grid-cols-2 lg:grid-cols-4`},isGrid:{true:`grid gap-x-8 gap-y-3`,false:`space-y-2`},dense:{true:`space-y-1`,false:`space-y-2`}},compoundVariants:[{variant:`default`,dense:!0,className:`space-y-0.5`}],defaultVariants:{variant:`default`,cols:1,isGrid:!1,dense:!1}}),Oe=(0,c.cva)(`group flex items-start gap-3 text-sm leading-relaxed transition-all duration-200`,{variants:{variant:{default:``,number:``,checked:`hover:translate-x-0.5`,arrow:`hover:translate-x-0.5`,bubble:`hover:translate-x-0.5`},dense:{true:`py-0`,false:`py-0.5`}},defaultVariants:{variant:`default`,dense:!1}}),ke=(0,c.cva)(`mt-1 shrink-0 flex items-center justify-center transition-transform group-hover:scale-110`,{variants:{variant:{bubble:`h-5 w-5 rounded-full bg-primary-500/10 text-primary-500 text-[10px] font-bold`,default:``}},defaultVariants:{variant:`default`}});function Ae({icon:t,children:n,variant:r,dense:a}){return(0,i.jsxs)(`li`,{className:e.x(Oe({variant:r,dense:a})),children:[t&&(0,i.jsx)(`span`,{className:e.x(ke({variant:r===`bubble`?`bubble`:`default`})),children:t}),(0,i.jsx)(`div`,{className:`flex-1 text-text-muted group-hover:text-text-main transition-colors`,children:n})]})}const je={checked:t=>(0,i.jsx)(s.Check,{size:14,className:e.x(`text-emerald-500 shrink-0`,t)}),arrow:t=>(0,i.jsx)(s.ChevronRight,{size:14,className:e.x(`text-primary-400 shrink-0`,t)}),bubble:t=>(0,i.jsx)(s.Circle,{size:6,fill:`currentColor`,className:e.x(`text-primary-500 shrink-0`,t)}),default:()=>null,number:()=>null};function Me({variant:e=`default`,cols:t=1,dense:n=!1,children:a,className:o,...s}){let c=t!==void 0&&Number(t)>1,l=je[e],u=De({variant:e,cols:t,dense:n,isGrid:c,className:o}),d=e===`number`?`ol`:`ul`;return e===`default`||e===`number`?(0,i.jsx)(d,{className:u,...s,children:a}):(0,i.jsx)(`ul`,{className:u,...s,children:r.Children.map(a,t=>{if(!(0,r.isValidElement)(t))return t;let a=t,o=a.type===`li`?a.props.children:a.props.children||t;return(0,i.jsx)(Ae,{icon:l(),variant:e,dense:n,children:o})})})}const Ne={ts:e.y,tsx:e.g,js:e.p,jsx:e.g,json:e.m,css:e.d,html:e.l,md:e.h,mdx:e.h,bash:e.v,sh:e.v,yaml:e.b,yml:e.b},F={CODE:/\.(ts|tsx|js|jsx|json|mjs|cjs|astro|vue|svelte)$/i,TEXT:/\.(md|mdx|txt)$/i,IMAGE:/\.(png|jpg|jpeg|svg|gif)$/i};function I(e){return typeof e==`string`?e:typeof e==`number`?e.toString():Array.isArray(e)?e.map(I).join(``):(0,r.isValidElement)(e)&&e.props&&typeof e.props==`object`&&`children`in e.props?I(e.props.children):``}function Pe(t,n){let r=t.toLowerCase(),a=`shrink-0 transition-colors duration-200`;if(n)return(0,i.jsx)(s.Folder,{size:16,strokeWidth:2,className:e.x(a,`text-primary-400`),fill:`currentColor`,fillOpacity:.15});let o=Ne[r.split(`.`).pop()||``];if(o)return(0,i.jsx)(o,{size:16});let c=e.x(a,`text-text-dim group-hover:text-text-main`);return F.CODE.test(r)?(0,i.jsx)(s.FileCode,{size:16,strokeWidth:2,className:c}):F.TEXT.test(r)?(0,i.jsx)(s.FileText,{size:16,strokeWidth:2,className:c}):F.IMAGE.test(r)?(0,i.jsx)(s.FileImage,{size:16,strokeWidth:2,className:c}):(0,i.jsx)(s.File,{size:16,strokeWidth:2,className:c})}function L(e,t){if(!(0,r.isValidElement)(e))return!1;let n=e.type;if(typeof n==`string`)return n===t;if(typeof n==`function`)return n.name===t||n.name?.toLowerCase()===t;let i=e.props;return i?.originalType===t||i?.mdxType===t}function Fe(e){let t=e.match(/\s+(\/\/|#)\s+(.*)$/);return t?{name:e.slice(0,t.index).trim(),comment:t[2]}:{name:e.trim()}}function R(e,t=`root`){if(!(0,r.isValidElement)(e))return[];let n=[];if(L(e,`ul`))return r.Children.forEach(e.props.children,(e,r)=>{n.push(...R(e,`${t}-${r}`))}),n;if(L(e,`li`)){let i=r.Children.toArray(e.props.children),a=i.findIndex(e=>L(e,`ul`)),o=a!==-1,s=o?i.slice(0,a):i,c=o?i.slice(a):[],{name:l,comment:u}=Fe(I(s)),d=l.endsWith(`/`),f=d?l.slice(0,-1):l,p=o||d;return n.push({id:`${t}-${f}`,name:f,comment:u,isFolder:p,children:o?R(c[0],`${t}-${f}`):void 0}),n}return e.props&&typeof e.props==`object`&&`children`in e.props&&r.Children.forEach(e.props.children,(e,r)=>{n.push(...R(e,`${t}-${r}`))}),n}function Ie({item:t}){return(0,i.jsxs)(a.TreeItem,{id:t.id,textValue:t.name,className:`outline-none group focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-md`,children:[(0,i.jsx)(a.TreeItemContent,{children:({isExpanded:n,hasChildItems:r})=>(0,i.jsxs)(`div`,{className:`flex items-center gap-2 py-1 px-1.5 rounded-md transition-colors hover:bg-primary-500/5 cursor-pointer`,children:[(0,i.jsx)(`div`,{style:{width:`calc((var(--tree-item-level) - 1) * 1rem)`},className:`shrink-0`}),r?(0,i.jsx)(a.Button,{slot:`chevron`,className:`outline-none text-text-dim hover:text-primary-400 p-0.5 rounded transition-colors`,children:(0,i.jsx)(s.ChevronRight,{size:14,strokeWidth:3,className:e.x(`transition-transform duration-200`,n&&`rotate-90`)})}):(0,i.jsx)(`div`,{className:`w-[18px]`}),Pe(t.name,t.isFolder),(0,i.jsx)(`span`,{className:e.x(`text-sm transition-colors truncate select-none`,t.isFolder?`font-semibold text-text-main`:`text-text-muted group-hover:text-text-main`),children:t.name}),t.comment&&(0,i.jsxs)(`span`,{className:`ml-2 text-xs italic text-text-dim opacity-70 group-hover:opacity-100 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis font-sans`,children:[`//`,` `,t.comment]})]})}),t.children&&(0,i.jsx)(a.Collection,{items:t.children,children:e=>(0,i.jsx)(Ie,{item:e})})]})}function Le({children:t}){let n=(0,r.useMemo)(()=>R(t),[t]);return(0,i.jsx)(`div`,{className:`my-8`,children:(0,i.jsx)(a.Tree,{items:n,"aria-label":`File Tree`,className:e.x(`rounded-xl border border-border-subtle bg-bg-surface/50 p-4 font-mono text-sm shadow-sm backdrop-blur-sm outline-none`,`max-h-[500px] overflow-y-auto scrollbar-thin scrollbar-thumb-border-subtle`,`focus-visible:ring-2 focus-visible:ring-primary-500/20`),children:e=>(0,i.jsx)(Ie,{item:e})})})}function Re({data:e,sortable:t=!1,paginated:n=!1,pageSize:i=10}){let[a,o]=(0,r.useState)(null),[s,c]=(0,r.useState)(1),l=(0,r.useMemo)(()=>{if(!e)return[];let n=[...e];return t&&a!==null&&n.sort((e,t)=>{let n=e[a.key],r=t[a.key],i=typeof n==`string`?n:``,o=typeof r==`string`?r:``;return i<o?a.direction===`asc`?-1:1:i>o?a.direction===`asc`?1:-1:0}),n},[e,a,t]);return{sortConfig:a,currentPage:s,setCurrentPage:c,totalPages:Math.ceil(l.length/i),paginatedData:(0,r.useMemo)(()=>{if(!n)return l;let e=(s-1)*i;return l.slice(e,e+i)},[l,n,s,i]),requestSort:e=>{if(!t)return;let n=`asc`;a&&a.key===e&&a.direction===`asc`&&(n=`desc`),o({key:e,direction:n})}}}function ze({headers:t,data:n,children:r,className:o=``,sortable:c=!1,paginated:l=!1,pageSize:u=10}){let{sortConfig:d,currentPage:f,setCurrentPage:p,totalPages:m,paginatedData:h,requestSort:g}=Re({data:n,sortable:c,paginated:l,pageSize:u}),_=e=>c?d?.key===e?d.direction===`asc`?(0,i.jsx)(s.ChevronUp,{size:14,className:`ml-1 text-primary-400`}):(0,i.jsx)(s.ChevronDown,{size:14,className:`ml-1 text-primary-400`}):(0,i.jsx)(s.ChevronDown,{size:14,className:`ml-1 opacity-30`}):null,v=r||(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(`thead`,{children:(0,i.jsx)(`tr`,{children:t.map((t,n)=>(0,i.jsx)(`th`,{onClick:()=>g(n),className:e.x(`text-left px-3 py-2.5 border-b-2 border-border-subtle text-text-main font-semibold text-sm`,c&&`cursor-pointer select-none hover:text-primary-400 transition-colors`),children:(0,i.jsxs)(`div`,{className:`flex items-center`,children:[t,_(n)]})},n))})}),h&&(0,i.jsx)(`tbody`,{children:h.map((e,t)=>(0,i.jsx)(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:e.map((e,t)=>(0,i.jsx)(`td`,{className:`px-3 py-2 border-b border-border-subtle text-sm text-text-muted`,children:e},t))},t))})]});return(0,i.jsxs)(`div`,{className:e.x(`my-6 rounded-lg border border-border-subtle overflow-hidden`,o),children:[(0,i.jsx)(`div`,{className:`overflow-x-auto`,children:(0,i.jsx)(`table`,{className:`w-full border-collapse text-sm`,children:v})}),l&&m>1&&(0,i.jsxs)(`div`,{className:`flex items-center justify-between border-t border-border-subtle px-4 py-3`,children:[(0,i.jsxs)(`span`,{className:`text-xs text-text-muted`,children:[`Page `,f,` of `,m]}),(0,i.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,i.jsx)(a.Button,{onPress:()=>p(1),isDisabled:f===1,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronsLeft,{size:16})}),(0,i.jsx)(a.Button,{onPress:()=>p(e=>Math.max(e-1,1)),isDisabled:f===1,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronLeft,{size:16})}),(0,i.jsx)(a.Button,{onPress:()=>p(e=>Math.min(e+1,m)),isDisabled:f===m,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronRight,{size:16})}),(0,i.jsx)(a.Button,{onPress:()=>p(m),isDisabled:f===m,className:`grid place-items-center h-7 w-7 rounded-md text-text-muted outline-none transition-colors hover:bg-bg-surface disabled:opacity-30 disabled:pointer-events-none cursor-pointer`,children:(0,i.jsx)(s.ChevronsRight,{size:16})})]})]})]})}function Be({name:t,type:n,defaultValue:r,required:a=!1,children:o,id:s,className:c=``}){return(0,i.jsxs)(`article`,{className:e.x(`group relative my-6 rounded-xl border border-border-subtle bg-bg-surface p-5 transition-all duration-300`,c),id:s,children:[(0,i.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4`,children:[(0,i.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2.5`,children:[(0,i.jsx)(`code`,{className:`inline-flex items-center rounded-md bg-primary-500/10 px-2.5 py-1 font-mono text-sm font-bold text-primary-400 border border-primary-500/20 shadow-sm transition-colors`,children:t}),n&&(0,i.jsx)(`span`,{className:`rounded-md bg-bg-muted/80 border border-border-subtle px-2 py-0.5 text-[11px] font-semibold text-text-muted uppercase shadow-sm`,children:n}),a&&(0,i.jsxs)(`div`,{className:`flex items-center gap-1.5 rounded-full bg-red-500/10 px-2.5 py-0.5 text-[10px] font-bold uppercase text-red-400 border border-red-500/20 shadow-sm`,children:[(0,i.jsx)(`span`,{className:`h-1 w-1 rounded-full bg-red-400 animate-pulse`}),`Required`]})]}),r&&(0,i.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] text-text-muted bg-bg-muted/30 px-2.5 py-1 rounded-md border border-border-subtle/50`,children:[(0,i.jsx)(`span`,{className:`font-semibold opacity-60 uppercase tracking-tighter`,children:`Default`}),(0,i.jsx)(`code`,{className:`font-mono text-text-main font-medium`,children:r})]})]}),(0,i.jsx)(`div`,{className:`text-sm text-text-muted leading-relaxed [&>p]:m-0 selection:bg-primary-500/30`,children:o})]})}function z({to:t,children:n,className:r=``,...a}){let o=t&&(t.startsWith(`http://`)||t.startsWith(`https://`)||t.startsWith(`//`));return(0,i.jsx)(e.i,{href:t,className:e.x(`text-blue-600 hover:text-blue-800 hover:underline cursor-pointer`,r),target:o?`_blank`:void 0,rel:o?`noopener noreferrer`:void 0,...a,children:n})}function Ve({src:e,alt:t,theme:n,...r}){let{theme:a}=w();return n&&n!==a?null:(0,i.jsx)(`img`,{src:e,alt:t||``,...r})}function He({title:t,props:n,className:r=``}){return(0,i.jsxs)(`div`,{className:e.x(`my-6`,r),children:[t&&(0,i.jsx)(`h3`,{className:`text-base font-bold text-text-main mb-3`,children:t}),(0,i.jsx)(`div`,{className:`overflow-x-auto rounded-lg border border-border-subtle`,children:(0,i.jsxs)(`table`,{className:`w-full border-collapse text-sm`,children:[(0,i.jsx)(`thead`,{children:(0,i.jsxs)(`tr`,{children:[(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Property`}),(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Type`}),(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Default`}),(0,i.jsx)(`th`,{className:`text-left px-4 py-3 border-b-2 border-border-subtle text-xs font-bold uppercase tracking-wider text-text-muted`,children:`Description`})]})}),(0,i.jsx)(`tbody`,{children:n.map((e,t)=>(0,i.jsxs)(`tr`,{className:`transition-colors hover:bg-bg-surface`,children:[(0,i.jsxs)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:[(0,i.jsx)(`code`,{className:`rounded bg-bg-surface px-1.5 py-0.5 font-mono text-xs font-bold text-primary-400`,children:e.name}),e.required&&(0,i.jsx)(`span`,{className:`ml-1 text-red-400 font-bold`,children:`*`})]}),(0,i.jsx)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:(0,i.jsx)(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-text-muted`,children:e.type})}),(0,i.jsx)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle`,children:e.defaultValue?(0,i.jsx)(`code`,{className:`rounded bg-bg-muted px-1.5 py-0.5 font-mono text-xs text-primary-400`,children:e.defaultValue}):(0,i.jsx)(`span`,{className:`text-text-dim`,children:`—`})}),(0,i.jsx)(`td`,{className:`px-4 py-2.5 border-b border-border-subtle text-text-muted`,children:e.description})]},`${e.name}-${t}`))})]})})]})}function Ue(e){let{code:t,children:n,preview:i}=e;return{initialCode:(0,r.useMemo)(()=>(t??(typeof n==`string`?n:``)).trim(),[t,n]),previewElement:(0,r.useMemo)(()=>i??(typeof n==`string`?null:n),[i,n])}}function We(e){let{highlightedHtml:t,hideCode:n=!1,hideCopy:r=!1}=e,{initialCode:a,previewElement:o}=Ue(e);return(0,i.jsxs)(`div`,{className:`my-6 overflow-hidden rounded-xl border border-border-subtle`,children:[(0,i.jsx)(`div`,{className:`flex items-center justify-center p-8 bg-bg-surface`,children:o}),!n&&(0,i.jsx)(`div`,{className:`border-t border-border-subtle`,children:(0,i.jsx)(k,{hideCopy:r,lang:`tsx`,highlightedHtml:t,plain:!0,children:a})})]})}const B=({children:t,className:n,...r})=>(0,i.jsx)(`nav`,{className:e.x(`relative flex items-center`,n),...r,children:t});B.Root=B,B.List=({children:t,className:n})=>(0,i.jsx)(`div`,{className:e.x(`flex list-none items-center gap-1`,n),children:t}),B.Item=({children:t,label:n,className:r})=>(0,i.jsxs)(a.MenuTrigger,{children:[(0,i.jsxs)(a.Button,{className:e.x(`flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium outline-none transition-colors cursor-pointer`,`text-text-muted hover:bg-bg-surface hover:text-text-main`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,r),children:[n,(0,i.jsx)(s.ChevronDown,{size:14,className:`transition-transform`})]}),(0,i.jsx)(a.Popover,{placement:`bottom start`,className:`entering:animate-in entering:fade-in entering:zoom-in-95 exiting:animate-out exiting:fade-out exiting:zoom-out-95 fill-mode-forwards`,children:(0,i.jsx)(a.Menu,{className:`w-56 outline-none rounded-xl border border-border-subtle bg-bg-surface p-2 shadow-xl ring-1 ring-border-strong/5`,children:t})})]}),B.Link=({label:t,href:n,description:r,className:o,children:s,...c})=>(0,i.jsx)(a.MenuItem,{href:n,className:e.x(`block rounded-lg px-3 py-2 text-sm outline-none cursor-pointer transition-colors`,`hover:bg-bg-muted focus:bg-bg-muted`,o),...c,children:s||(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`div`,{className:`font-semibold text-text-main`,children:t}),r&&(0,i.jsx)(`div`,{className:`text-xs text-text-muted line-clamp-1 mt-0.5`,children:r})]})});function Ge(e,t){let n=(0,r.useRef)(e);(0,r.useEffect)(()=>{n.current!==e&&(t(e),n.current=e)},[e,t])}function Ke(e){return e.startsWith(`#`)?e.slice(1):null}var qe=class{items=[];single=!1;observer=null;onChange;callback(e){if(e.length===0)return;for(let t of e){let e=this.items.find(e=>e.id===t.target.id);e&&(e.active=t.isIntersecting,e.fallback=!t.isIntersecting&&t.boundingClientRect.top<100)}let t=-1;for(let e=this.items.length-1;e>=0;e--)if(this.items[e].fallback){t=e;break}t===-1&&this.items.length>0&&(t=0),this.items=this.items.map((e,n)=>({...e,active:n===t,t:n===t?Date.now():e.t})),this.onChange?.()}setItems(e){let t=this.observer;if(t)for(let e of this.items){let n=document.getElementById(e.id);n&&t.unobserve(n)}this.items=[];for(let t of e){let e=Ke(t.url);e&&this.items.push({id:e,active:!1,fallback:!1,t:0,original:t})}this.watchItems(),typeof window<`u`&&(setTimeout(()=>this.watchItems(),100),setTimeout(()=>this.watchItems(),500),setTimeout(()=>this.watchItems(),1e3)),this.onChange?.()}watch(e){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),e),this.watchItems())}watchItems(){if(this.observer)for(let e of this.items){let t=document.getElementById(e.id);t&&this.observer.observe(t)}}unwatch(){this.observer?.disconnect(),this.observer=null}};const V=(0,r.createContext)(null),Je=(0,r.createContext)(null);function H(){let e=(0,r.use)(V);if(!e)throw Error(`Component must be used under the <AnchorProvider /> component.`);return e}function Ye(){let e=H();return(0,r.useMemo)(()=>{let t;for(let n of e)n.active&&(!t||n.t>t.t)&&(t=n);return t?.id},[e])}function Xe(){let e=H();return(0,r.useMemo)(()=>{let t=[];for(let n of e)n.active&&t.push(n.id);return t},[e])}function Ze({containerRef:e,children:t}){return(0,i.jsx)(Je.Provider,{value:e,children:t})}function Qe({toc:e,single:t=!1,children:n}){let a=(0,r.useMemo)(()=>new qe,[]),[o,s]=(0,r.useState)(a.items);return a.single=t,(0,r.useEffect)(()=>{a.setItems(e)},[a,e]),(0,r.useEffect)(()=>(a.watch({rootMargin:`-100px 0% 0% 0%`,threshold:0}),a.onChange=()=>s([...a.items]),()=>{a.unwatch()}),[a]),(0,i.jsx)(V.Provider,{value:o,children:n})}const U=({children:t,className:n})=>(0,i.jsx)(`nav`,{className:e.x(`sticky top-navbar hidden xl:flex flex-col shrink-0`,`w-toc`,`py-8 pl-6 pr-4`,n),children:t}),$e=({children:t,className:n,...r})=>(0,i.jsx)(`div`,{className:e.x(`mb-4 text-xs font-bold text-text-main`,n),...r,children:t}),et=({children:t,className:n,ref:a,...o})=>{let s=(0,r.useRef)(null);return(0,r.useImperativeHandle)(a,()=>s.current),(0,i.jsx)(`div`,{ref:s,className:e.x(`relative overflow-y-auto boltdocs-otp-content`,n),...o,children:t})};et.displayName=`OnThisPageContent`,U.Root=U,U.Header=$e,U.Content=et,U.List=({children:t,className:n})=>(0,i.jsx)(`ul`,{className:e.x(`relative space-y-1 text-sm border-l border-border-subtle`,n),children:t}),U.Item=({level:t,children:n,className:r})=>(0,i.jsx)(`li`,{className:e.x(t===3&&`pl-3`,r),children:n}),U.Link=({children:t,href:n,active:a,onClick:o,className:s})=>{let c=(0,r.use)(V),u=(0,r.use)(Je),d=n?Ke(n):null,f=(0,r.useRef)(null),[p,m]=(0,r.useState)(a);return Ge(d&&c?c.find(e=>e.id===d)?.active:null,e=>{e!==null&&e!==p&&(m(!!e),e&&f.current&&u?.current&&(0,l.default)(f.current,{behavior:`smooth`,block:`center`,inline:`center`,scrollMode:`if-needed`,boundary:u.current}))}),(0,r.useEffect)(()=>{a!==void 0&&m(a)},[a]),(0,i.jsx)(`a`,{ref:f,href:n,onClick:o,"data-active":p,className:e.x(`block py-1 pl-4 text-[13px] outline-none transition-colors hover:text-text-main`,p?`text-primary-500 font-medium`:`text-text-muted`,s),children:t})},U.Indicator=({style:t,className:n})=>(0,i.jsx)(`div`,{className:e.x(`absolute -left-px w-0.5 rounded-full bg-primary-500 transition-all duration-300`,n),style:t});const W=({children:t,className:n})=>(0,i.jsx)(`nav`,{className:e.x(`grid grid-cols-1 sm:grid-cols-2 gap-4 mt-12 pt-8 border-t border-border-subtle`,n),children:t});W.Root=W,W.Link=({children:t,to:n,direction:r,className:o})=>{let c=r===`next`;return(0,i.jsxs)(a.Link,{href:n,className:e.x(`flex group items-center p-4 rounded-xl border border-border-subtle bg-bg-surface outline-none`,`transition-all hover:bg-bg-main hover:border-primary-500 hover:shadow-lg`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,c?`text-right justify-end`:`text-left justify-start`,o),children:[!c&&(0,i.jsx)(s.ChevronLeft,{className:`mr-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:-translate-x-1`}),(0,i.jsx)(`div`,{className:`flex flex-col gap-1 flex-1`,children:t}),c&&(0,i.jsx)(s.ChevronRight,{className:`ml-3 h-5 w-5 text-text-muted group-hover:text-primary-500 transition-transform group-hover:translate-x-1`})]})},W.Title=({children:t,className:n})=>(0,i.jsx)(`span`,{className:e.x(`text-xs font-medium uppercase text-text-muted`,n),children:t}),W.Description=({children:t,className:n})=>(0,i.jsx)(`span`,{className:e.x(`text-base font-bold text-text-main truncate`,n),children:t}),W.Icon=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});const G=({children:t,className:n=``,...r})=>(0,i.jsx)(`div`,{className:e.x(`w-full`,n),...r,children:t});G.Root=G,G.List=({children:t,className:n=``})=>(0,i.jsx)(`div`,{role:`tablist`,className:e.x(`relative flex flex-row items-center border-b border-border-subtle`,n),children:t}),G.Item=({children:t,id:n,selected:r,className:a=``,...o})=>(0,i.jsx)(`button`,{role:`tab`,"aria-selected":r,className:e.x(`flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors outline-none cursor-pointer bg-transparent border-none`,r?`text-primary-500`:`text-text-muted hover:text-text-main`,a),...o,children:t}),G.Content=({children:t,className:n=``})=>(0,i.jsx)(`div`,{className:e.x(`p-4 outline-none`,n),children:t}),G.Indicator=({className:t=``,style:n})=>(0,i.jsx)(`div`,{className:e.x(`absolute bottom-0 h-0.5 bg-primary-500 transition-all duration-300`,t),style:n});const tt=({badge:t})=>{let n={new:`bg-primary-500/20 text-primary-500`,updated:`bg-gray-500/20 text-gray-500`,deprecated:`bg-red-500/20 text-red-500`};if(typeof t==`object`&&t?.expires){let e=new Date(t.expires),n=new Date,r=e.getTime()-n.getTime();if(Math.ceil(r/(1e3*60*60*24))===0)return null}let r=typeof t==`string`?t:t?.text;return(0,i.jsx)(`span`,{className:e.x(`ml-auto flex h-4.5 items-center rounded-full text-[9px] font-medium px-1.5 py-0.5 text-center whitespace-nowrap`,n[r]||n.new),children:r})},K=({children:t,className:n})=>(0,i.jsx)(`aside`,{className:e.x(`boltdocs-sidebar sticky top-navbar hidden lg:flex flex-col shrink-0`,`w-sidebar h-full`,`overflow-y-auto border-r border-border-subtle bg-bg-main`,`py-6 px-4`,n),children:(0,i.jsx)(`nav`,{className:`flex-1 space-y-6`,children:t})});K.Root=K,K.Group=({children:t,title:n,icon:r,className:a})=>(0,i.jsxs)(`div`,{className:e.x(`space-y-1`,a),children:[n&&(0,i.jsx)(`div`,{className:e.x(`flex w-full items-center justify-between px-2 py-1.5 text-sm font-semibold`,`text-text-main`),children:(0,i.jsxs)(`div`,{className:`flex items-center gap-2`,children:[r&&(0,i.jsx)(r,{size:14}),n]})}),t&&(0,i.jsx)(`div`,{className:`space-y-0.5`,children:t})]}),K.SubGroup=({label:t,href:n,active:r,icon:o,badge:c,className:l,isOpen:u=!1,onToggle:d,children:f})=>(0,i.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,i.jsxs)(`div`,{className:`flex items-center w-full`,children:[(0,i.jsxs)(e.i,{href:n,className:e.x(`group flex flex-1 items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none`,`transition-all duration-200 ease-in-out`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,r?`bg-primary-500/10 text-primary-500 font-medium`:`text-text-muted hover:bg-bg-surface hover:text-text-main hover:translate-x-1`,l),children:[o&&(0,i.jsx)(o,{size:16,className:e.x(r?`text-primary-500`:`text-text-muted group-hover:text-text-main`)}),(0,i.jsx)(`span`,{className:`truncate`,children:t}),c&&(0,i.jsx)(tt,{badge:c})]}),f&&(0,i.jsx)(a.Button,{onPress:d,className:`flex items-center justify-center p-1.5 ml-1 rounded-md text-text-muted hover:bg-bg-surface hover:text-text-main transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-500/30 cursor-pointer`,children:(0,i.jsx)(s.ChevronRight,{size:16,className:e.x(`transition-transform duration-200`,u&&`rotate-90`)})})]}),u&&f&&(0,i.jsx)(`div`,{className:`pl-4 ml-[7px] border-l border-border-subtle/50 space-y-0.5 mt-0.5`,children:f})]}),K.GroupItem=({children:t,className:n})=>(0,i.jsx)(`div`,{className:e.x(n),children:t}),K.Link=({label:t,href:n,active:r,icon:a,badge:o,className:s})=>(0,i.jsxs)(e.i,{href:n,className:e.x(`group flex items-center gap-2.5 rounded-lg px-2.5 py-2 text-sm outline-none`,`transition-all duration-200 ease-in-out`,`focus-visible:ring-2 focus-visible:ring-primary-500/30`,{"bg-primary-500/10 text-primary-500 font-medium":r,"text-text-muted hover:bg-bg-muted hover:text-text-main":!r},s),children:[a&&(0,i.jsx)(a,{size:16,className:e.x(r?`text-primary-500`:`text-text-muted group-hover:text-text-main`)}),(0,i.jsx)(`span`,{className:`truncate`,children:t}),o&&(0,i.jsx)(tt,{badge:o})]});const q=({children:t,className:n,...r})=>(0,i.jsx)(a.Breadcrumbs,{className:e.x(`flex items-center gap-1.5 pl-0! mb-0 text-sm text-text-muted`,n),...r,children:t});q.Root=q,q.Item=({children:t,className:n,...r})=>(0,i.jsx)(a.Breadcrumb,{className:e.x(`flex items-center mb-0 gap-1.5`,n),...r,children:t}),q.Link=({children:t,href:n,className:r,...o})=>(0,i.jsx)(a.Link,{href:n,className:e.x(`transition-colors outline-none hover:text-text-main focus-visible:ring-2 focus-visible:ring-primary-500/30 rounded-sm`,`current:font-medium current:text-text-main current:pointer-events-none cursor-pointer`,r),...o,children:t}),q.Separator=({className:t})=>(0,i.jsx)(s.ChevronRight,{size:14,className:e.x(`shrink-0 text-text-dim`,t)});const nt=({children:t,className:n,vertical:r=!1})=>(0,i.jsx)(`div`,{className:e.x(`inline-flex`,r?`flex-col`:`flex-row`,!r&&[`[&>*:not(:first-child)]:-ml-px`,`[&>*:first-child]:rounded-r-none`,`[&>*:last-child]:rounded-l-none`,`[&>*:not(:first-child):not(:last-child)]:rounded-none`,n?.includes(`rounded-full`)&&[`[&>*:first-child]:rounded-l-full`,`[&>*:last-child]:rounded-r-full`],n?.includes(`rounded-xl`)&&[`[&>*:first-child]:rounded-l-xl`,`[&>*:last-child]:rounded-r-xl`],n?.includes(`rounded-lg`)&&[`[&>*:first-child]:rounded-l-lg`,`[&>*:last-child]:rounded-r-lg`]],r&&[`[&>*:not(:first-child)]:-mt-px`,`[&>*:first-child]:rounded-b-none`,`[&>*:last-child]:rounded-t-none`,`[&>*:not(:first-child):not(:last-child)]:rounded-none`,n?.includes(`rounded-full`)&&[`[&>*:first-child]:rounded-t-full`,`[&>*:last-child]:rounded-b-full`]],n),children:t}),J=({children:t,className:n,showArrow:r,...o})=>(0,i.jsxs)(a.Popover,{offset:8,...o,className:a.composeRenderProps(n,t=>e.x(`z-50 overflow-auto rounded-xl border border-border-subtle bg-bg-surface/80 shadow-xl backdrop-blur-md outline-none transition-none`,t)),children:[r&&(0,i.jsx)(a.OverlayArrow,{className:`group`,children:(0,i.jsx)(`svg`,{viewBox:`0 0 12 12`,className:`block h-3 w-3 fill-bg-surface/80 stroke-border-subtle group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90`,"aria-hidden":`true`,children:(0,i.jsx)(`path`,{d:`M0 0 L6 6 L12 0`})})}),t]});function rt(e){let[t,n]=r.Children.toArray(e.children).slice(0,2);return(0,i.jsxs)(a.MenuTrigger,{...e,children:[t,(0,i.jsx)(J,{placement:e.placement,className:`min-w-35`,children:n})]})}function it(e){let[t,n]=r.Children.toArray(e.children).slice(0,2);return(0,i.jsxs)(a.SubmenuTrigger,{...e,children:[t,(0,i.jsx)(J,{offset:-4,crossOffset:-4,children:n})]})}function Y(t){return(0,i.jsx)(a.Menu,{...t,className:a.composeRenderProps(t.className,t=>e.x(`p-1.5 outline-none max-h-[inherit] overflow-auto max-w-75`,t))})}function at(t){let n=t.textValue||(typeof t.children==`string`?t.children:void 0);return(0,i.jsx)(a.MenuItem,{...t,textValue:n,className:a.composeRenderProps(t.className,(t,{isFocused:n,isPressed:r,isDisabled:i})=>e.x(`group relative flex flex-row items-center gap-2 px-2 py-1 rounded-lg outline-none cursor-default hover:cursor-pointer transition-none`,`text-text-main text-[12px]`,{"bg-bg-surface-elevated text-primary-600 ring-1 ring-border-strong/5":n,"bg-bg-surface-elevanted":r,"opacity-40 grayscale pointer-events-none":i},t)),children:a.composeRenderProps(t.children,(e,{selectionMode:t,isSelected:n,hasSubmenu:r})=>(0,i.jsxs)(i.Fragment,{children:[t!==`none`&&(0,i.jsxs)(`span`,{className:`flex items-center size-4 shrink-0 justify-center`,children:[n&&t===`multiple`&&(0,i.jsx)(s.Check,{className:`size-3.5 stroke-[2.5px] text-primary-500 animate-in zoom-in-50 duration-200`}),n&&t===`single`&&(0,i.jsx)(s.Dot,{className:`size-5 text-primary-500 animate-in zoom-in-50 duration-200`})]}),(0,i.jsx)(`div`,{className:`flex flex-row w-full transition-colors items-center gap-2 py-1 px-1`,children:e}),r&&(0,i.jsx)(s.ChevronRight,{className:`size-4 ml-auto text-text-muted group-focused:text-primary-500/70 transition-colors`})]}))})}function ot({title:t,...n}){return(0,i.jsxs)(a.MenuSection,{...n,className:e.x(`flex flex-col gap-0.5`,n.className),children:[t&&(0,i.jsx)(a.Header,{className:`px-3 py-2 text-[10px] font-bold uppercase tracking-[0.075em] text-text-muted/50 select-none`,children:t}),(0,i.jsx)(a.Collection,{items:n.items,children:n.children})]})}function st(e){return(0,i.jsx)(a.Separator,{...e,className:`mx-2 my-1.5 border-t border-border-subtle/50`})}Y.Root=Y,Y.Item=at,Y.Trigger=rt,Y.SubTrigger=it,Y.Section=ot,Y.Separator=st;function X({className:t,variant:n=`rect`,...r}){return(0,i.jsx)(`div`,{className:e.x(`animate-pulse bg-bg-muted`,n===`circle`?`rounded-full`:`rounded-md`,t),...r})}const ct=e=>{let[t,n]=(0,r.useState)(!1);return{copied:t,handleCopy:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)},handleOpenRaw:()=>{let t=new Blob([e],{type:`text/plain;charset=utf-8`}),n=URL.createObjectURL(t);window.open(n,`_blank`)}}};function lt({content:t,mdxRaw:n,config:r}){let a=n||t||``,{copied:o,handleCopy:c,handleOpenRaw:l}=ct(a),u=r!==!1,d=typeof r==`object`&&r.text||`Copy Markdown`;return!u||!a?null:(0,i.jsx)(`div`,{className:`relative inline-flex z-100 flex-shrink-0 w-max translate-y-0 active:translate-y-px transition-transform duration-200`,children:(0,i.jsxs)(nt,{className:`rounded-xl border border-border-subtle bg-bg-surface/40 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:shadow-lg hover:shadow-primary-500/5 group overflow-hidden`,children:[(0,i.jsx)(E,{variant:`ghost`,onPress:c,icon:o?(0,i.jsx)(s.Check,{size:16}):(0,i.jsx)(s.Copy,{size:16}),iconPosition:`left`,className:e.x(`px-5 py-2 bg-transparent text-[0.8125rem] font-semibold h-9 border-none shrink-0`,`text-text-main transition-all duration-300 hover:bg-primary-500/5`,o&&`text-emerald-500 hover:bg-emerald-500/5`),children:o?`Copied!`:d}),(0,i.jsxs)(Y.Trigger,{placement:`bottom end`,children:[(0,i.jsx)(E,{variant:`ghost`,isIconOnly:!0,icon:(0,i.jsx)(s.ChevronDown,{size:14}),className:e.x(`px-3.5 h-9 border-l border-border-subtle/50 text-text-muted rounded-none bg-transparent shrink-0`,`transition-all duration-300 hover:bg-primary-500/5 hover:text-primary-500`)}),(0,i.jsxs)(Y.Root,{className:`w-52`,children:[(0,i.jsxs)(Y.Item,{onAction:c,children:[(0,i.jsx)(s.Copy,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),(0,i.jsx)(`span`,{className:`font-medium text-[0.8125rem]`,children:`Copy Markdown`})]}),(0,i.jsxs)(Y.Item,{onAction:l,children:[(0,i.jsx)(s.ExternalLink,{size:16,className:`size-4 mt-0.5 text-text-muted group-hover:text-primary-500`}),(0,i.jsx)(`span`,{className:`font-medium text-[0.8125rem]`,children:`View as Markdown`})]})]})]})]})})}var ut=e.E({Admonition:()=>A,Badge:()=>ve,Button:()=>te,Card:()=>xe,Cards:()=>be,Caution:()=>Ee,CodeBlock:()=>k,ComponentPreview:()=>We,ComponentProps:()=>He,CopyMarkdown:()=>lt,Danger:()=>P,Field:()=>Be,FileTree:()=>Le,Image:()=>Ve,Important:()=>Te,InfoBox:()=>we,Link:()=>z,List:()=>Me,Note:()=>j,Tab:()=>me,Table:()=>ze,Tabs:()=>he,Tip:()=>M,Video:()=>ge,Warning:()=>N});function dt(){return(0,i.jsx)(`div`,{className:e.x(`w-full h-full relative overflow-y-auto transition-opacity duration-300 animate-fade-in`),children:(0,i.jsxs)(`div`,{className:`mx-auto max-w-(--spacing-content-max) px-4 py-8 space-y-10`,children:[(0,i.jsxs)(`div`,{className:`flex gap-2`,children:[(0,i.jsx)(X,{className:`h-3 w-16`}),(0,i.jsx)(X,{className:`h-3 w-24`})]}),(0,i.jsx)(X,{className:`h-10 w-[60%] sm:h-12`}),(0,i.jsxs)(`div`,{className:`space-y-3`,children:[(0,i.jsx)(X,{className:`h-4 w-full`}),(0,i.jsx)(X,{className:`h-4 w-[95%]`}),(0,i.jsx)(X,{className:`h-4 w-[40%]`})]}),(0,i.jsxs)(`div`,{className:`space-y-6 pt-4`,children:[(0,i.jsx)(X,{className:`h-7 w-32`}),(0,i.jsxs)(`div`,{className:`space-y-3`,children:[(0,i.jsx)(X,{className:`h-4 w-full`}),(0,i.jsx)(X,{className:`h-4 w-[98%]`}),(0,i.jsx)(X,{className:`h-4 w-[92%]`}),(0,i.jsx)(X,{className:`h-4 w-[60%]`})]})]}),(0,i.jsx)(X,{className:`h-32 w-full rounded-lg bg-bg-muted/50`}),(0,i.jsxs)(`div`,{className:`space-y-6 pt-4`,children:[(0,i.jsx)(X,{className:`h-7 w-48`}),(0,i.jsxs)(`div`,{className:`space-y-3`,children:[(0,i.jsx)(X,{className:`h-4 w-full`}),(0,i.jsx)(X,{className:`h-4 w-[85%]`})]})]})]})})}const Z=({level:e,id:t,children:n,...r})=>(0,i.jsxs)(`h${e}`,{id:t,...r,className:`boltdocs-heading`,children:[n,t&&(0,i.jsx)(`a`,{href:`#${t}`,className:`header-anchor`,"aria-label":`Anchor`,children:(0,i.jsx)(s.Link,{size:16})})]}),ft={...ut,Loading:dt,h1:e=>(0,i.jsx)(Z,{level:1,...e}),h2:e=>(0,i.jsx)(Z,{level:2,...e}),h3:e=>(0,i.jsx)(Z,{level:3,...e}),h4:e=>(0,i.jsx)(Z,{level:4,...e}),h5:e=>(0,i.jsx)(Z,{level:5,...e}),h6:e=>(0,i.jsx)(Z,{level:6,...e}),pre:e=>(0,i.jsx)(k,{...e,children:e.children})};function pt({config:t}){let{currentLocale:n}=e.T();return(0,r.useEffect)(()=>{if(!t.i18n||typeof document>`u`)return;let e=n||t.i18n.defaultLocale,r=t.i18n.localeConfigs?.[e];document.documentElement.lang=r?.htmlLang||e||`en`,document.documentElement.dir=r?.direction||`ltr`},[n,t.i18n]),null}function mt({config:n}){let i=(0,t.useLocation)(),{setLocale:a,setVersion:o,currentLocale:s,currentVersion:c}=e.T();return(0,r.useEffect)(()=>{let e=i.pathname.split(`/`).filter(Boolean),t=0,r=n.versions?.defaultVersion,l=n.i18n?.defaultLocale;if(e[t]===`docs`&&t++,n.versions&&e.length>t){let i=n.versions.versions.find(n=>n.path===e[t]);i&&(r=i.path,t++)}n.i18n&&e.length>t&&n.i18n.locales[e[t]]?l=e[t]:n.i18n&&e.length===0&&(l=s||n.i18n.defaultLocale),l!==s&&a(l||``),r!==c&&o(r??``)},[i.pathname,n,a,o,s,c]),null}function ht({config:n,routes:s,components:c={}}){let l=(0,r.useMemo)(()=>({...ft,...u.default,...c}),[c]),d=(0,t.useNavigate)();return(0,i.jsx)(o.HelmetProvider,{children:(0,i.jsx)(e.w,{children:(0,i.jsx)(C,{children:(0,i.jsx)(g,{components:l,children:(0,i.jsx)(e.S.Provider,{value:n,children:(0,i.jsx)(e.c,{routes:s,children:(0,i.jsxs)(a.RouterProvider,{navigate:d,children:[(0,i.jsx)(ee,{}),(0,i.jsx)(mt,{config:n}),(0,i.jsx)(pt,{config:n}),(0,i.jsx)(t.Outlet,{})]})})})})})})})}function gt(){return(0,i.jsx)(`div`,{className:`flex items-center justify-center min-h-[60vh] text-center`,children:(0,i.jsxs)(`div`,{className:`space-y-4`,children:[(0,i.jsx)(`span`,{className:`text-8xl font-black tracking-tighter text-primary-500/20`,children:`404`}),(0,i.jsx)(`h1`,{className:`text-2xl font-bold text-text-main`,children:`Page Not Found`}),(0,i.jsx)(`p`,{className:`text-sm text-text-muted max-w-sm mx-auto`,children:`The page you're looking for doesn't exist or has been moved.`}),(0,i.jsxs)(e.i,{href:`/`,className:`inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white outline-none transition-all hover:brightness-110 hover:shadow-lg focus-visible:ring-2 focus-visible:ring-primary-500/30`,children:[(0,i.jsx)(s.ArrowLeft,{size:16}),` Go to Home`]})]})})}function _t(e,t){let n=t.replace(/\\/g,`/`);return Object.keys(e).find(e=>e.endsWith(`/${n}`)||e.endsWith(n))}function vt(e){let{routesData:t,config:n,mdxModules:r,Layout:a,homePage:o,externalPages:s,externalLayout:c,components:l}=e,u=c||a,d=e=>{let t=n.base||`/`;return e.startsWith(t)?e:`${t===`/`?``:t.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`||`/`},f=[...t.map(e=>{let t=_t(r,e.filePath),n=t?r[t]?.default:null,a=d(e.path===``?`/`:e.path);return{path:a,element:(0,i.jsx)(v,{MDXComponent:n,mdxComponents:l}),loader:async()=>({path:a,frontmatter:{title:e.title,description:e.description||``},headings:e.headings||[],filePath:e.filePath,locale:e.locale,version:e.version,group:e.group,groupTitle:e.groupTitle}),getStaticPaths:()=>[a]}})];if(o){let e=[d(`/`)];n.i18n&&Object.keys(n.i18n.locales).forEach(t=>{e.push(d(`/${t}`))}),e.forEach(e=>{f.find(t=>t.path===e)||f.push({path:e,element:(0,i.jsx)(u,{children:(0,i.jsx)(o,{})}),getStaticPaths:()=>[e]})})}return s&&Object.entries(s).forEach(([e,t])=>{let r=d(e);f.find(e=>e.path===r)||(f.push({path:r,element:(0,i.jsx)(u,{children:(0,i.jsx)(t,{})}),getStaticPaths:()=>[r]}),n.i18n&&Object.keys(n.i18n.locales).forEach(n=>{let r=d(`/${n}${e===`/`?``:e}`);f.find(e=>e.path===r)||f.push({path:r,element:(0,i.jsx)(u,{children:(0,i.jsx)(t,{})}),getStaticPaths:()=>[r]})}))}),f.push({path:`*`,element:(0,i.jsx)(u,{children:(0,i.jsx)(gt,{})})}),[{element:(0,i.jsx)(ht,{config:n,routes:[...t],components:l}),children:f}]}function Q(e,t){return e?typeof e==`string`?e:t&&e[t]?e[t]:Object.values(e)[0]||``:``}function yt(){let n=e.C(),{theme:r,resolvedTheme:i}=w(),a=(0,t.useLocation)(),{currentLocale:o}=e.s(),s=n.theme||{},c=Q(s.title,o)||`Boltdocs`,l=s.navbar||[],u=s.socialLinks||[],d=s.githubRepo,f=l.map(e=>{let t=e.href||e.to||e.link||``;return{label:Q(e.label||e.text,o),href:t,active:(e=>{let t=a.pathname;if(t===e)return!0;if(!e||e===`/`)return t===`/`;let r=e=>{let t=e.split(`/`).filter(Boolean),r=0;return n.i18n?.locales&&t[r]&&n.i18n.locales[t[r]]&&r++,n.versions?.versions&&t[r]&&n.versions.versions.some(e=>e.path===t[r])&&r++,t.slice(r)},i=r(e),o=r(t);return i.length===0?o.length===0:o.length<i.length?!1:i.every((e,t)=>o[t]===e)})(t),to:t.startsWith(`http`)||t.startsWith(`//`)?`external`:void 0}}),p=s.logo;return{links:f,title:c,logo:p?typeof p==`string`?p:i===`dark`?p.dark:p.light:null,logoProps:{alt:(p&&typeof p==`object`?p.alt:void 0)||c,width:p&&typeof p==`object`?p.width:void 0,height:p&&typeof p==`object`?p.height:void 0},github:d?`https://github.com/${d}`:null,social:u,config:n,theme:r}}function bt(n){let r=e.C(),i=(0,t.useLocation)(),a=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,o=a(i.pathname),s=n.find(e=>a(e.path)===o),c=s?.tab?.toLowerCase(),l=c?n.filter(e=>!e.tab||e.tab.toLowerCase()===c):n,u=[],d=new Map;for(let e of l)e.group?(d.has(e.group)||d.set(e.group,{slug:e.group,title:e.groupTitle||e.group,routes:[],icon:e.groupIcon}),d.get(e.group).routes.push(e)):u.push(e);return{groups:Array.from(d.values()).map(e=>{let t=new Map,n=new Map;for(let r of e.routes)r.subRouteGroup&&((r.path.endsWith(`/${r.subRouteGroup}`)||r.path.endsWith(`/${r.subRouteGroup}/`))&&!t.has(r.subRouteGroup)?t.set(r.subRouteGroup,r):(n.has(r.subRouteGroup)||n.set(r.subRouteGroup,[]),n.get(r.subRouteGroup).push(r)));let r=[],i=new Set;for(let a of e.routes)if(a.subRouteGroup){if(!i.has(a.subRouteGroup)){i.add(a.subRouteGroup);let e=t.get(a.subRouteGroup),o=n.get(a.subRouteGroup)||[];e?r.push({...e,subRoutes:o}):r.push(...o)}}else r.push(a);return{...e,routes:r}}),ungrouped:u,activeRoute:s,activePath:o,config:r}}function xt(e=[]){let[t,n]=(0,r.useState)(null);return{headings:e,activeId:t,setActiveId:n}}function St(e=[],n=[]){let i=(0,t.useLocation)(),a=(0,r.useRef)([]),[o,s]=(0,r.useState)({opacity:0,transform:`translateX(0) scaleX(0)`,width:0}),c=e=>e.endsWith(`/`)&&e.length>1?e.slice(0,-1):e,l=c(i.pathname),u=n.find(e=>c(e.path)===l)?.tab?.toLowerCase(),d=e.findIndex(e=>e.id.toLowerCase()===u),f=d===-1?0:d;return(0,r.useEffect)(()=>{let e=a.current[f];e&&s({opacity:1,width:e.offsetWidth,transform:`translateX(${e.offsetLeft}px)`})},[f,e.length,i.pathname]),{tabs:e,activeIndex:f,indicatorStyle:o,tabRefs:a,activeTabId:u}}function $(e,t,n){let r=e;return t&&(r===t||r.startsWith(t+`/`))&&(r=r===t?`index.md`:r.slice(t.length+1)),n&&(r===n||r.startsWith(n+`/`))&&(r=r===n?`index.md`:r.slice(n.length+1)),r}function Ct(){let n=(0,t.useNavigate)(),r=e.s(),{allRoutes:i,currentRoute:a,currentVersion:o,currentLocale:s,config:c}=r,l=c.versions,{setVersion:u}=e.T(),d=e=>{if(!l||e===o)return;u(e);let t=`/docs/${e}`;if(a){let n=$(a.filePath,a.version,a.locale),r=i.find(t=>$(t.filePath,t.version,t.locale)===n&&(t.version||l.defaultVersion)===e&&(s?t.locale===s:!t.locale));if(r)t=r.path;else{let n=i.find(t=>$(t.filePath,t.version,t.locale)===`index.md`&&(t.version||l.defaultVersion)===e&&(s?t.locale===s:!t.locale));t=n?n.path:`/docs/${e}${s?`/${s}`:``}`}}n(t)},f=r.availableVersions.map(e=>({...e,label:e.label,value:e.key}));return{currentVersion:o,currentVersionLabel:r.currentVersionLabel,availableVersions:f,handleVersionChange:d}}function wt(){let n=(0,t.useNavigate)(),{allRoutes:r,currentRoute:i,currentLocale:a,config:o}=e.s(),s=o.i18n,{setLocale:c}=e.T();return{currentLocale:a,currentLocaleLabel:o.i18n?.localeConfigs?.[a]?.label||o.i18n?.locales[a]||a,availableLocales:o.i18n?Object.entries(o.i18n.locales).map(([e,t])=>({key:e,label:o.i18n?.localeConfigs?.[e]?.label||t,value:e,isCurrent:e===a})):[],handleLocaleChange:e=>{if(!s||e===a)return;c(e);let t=`/`;if(i){let n=$(i.filePath,i.version,i.locale),a=r.find(t=>$(t.filePath,t.version,t.locale)===n&&(t.locale||s.defaultLocale)===e&&t.version===i.version);if(a)t=a.path;else{let n=r.find(t=>$(t.filePath,t.version,t.locale)===`index.md`&&(t.locale||s.defaultLocale)===e&&t.version===i.version);t=n?n.path:e===s.defaultLocale?i.version?`/${i.version}`:`/`:i.version?`/${i.version}/${e}`:`/${e}`}}else{let n=r.find(t=>(t.filePath===`index.mdx`||t.filePath===`index.md`)&&(t.locale||s.defaultLocale)===e&&!t.version);t=n?n.path:e===s.defaultLocale?`/`:`/${e}`}n(t)}}}function Tt(){let{routes:n,currentRoute:r}=e.s(),i=(0,t.useLocation)();if(!r)return{prevPage:null,nextPage:null,currentRoute:null};let a=r.tab?.toLowerCase(),o=a?n.filter(e=>e.tab?.toLowerCase()===a):n.filter(e=>!e.tab),s=o.findIndex(e=>e.path===i.pathname);return{prevPage:s>0?o[s-1]:null,nextPage:s!==-1&&s<o.length-1?o[s+1]:null,currentRoute:r}}function Et(){let{currentRoute:t}=e.s(),n=[];return t&&(t.groupTitle&&n.push({label:t.groupTitle}),n.push({label:t.title,href:t.path})),{crumbs:n,activeRoute:t}}const Dt=()=>(0,t.useLocation)();function Ot({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`h-screen flex flex-col overflow-hidden bg-bg-main text-text-main`,n),style:r,children:t})}function kt({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`mx-auto flex flex-1 w-full max-w-(--breakpoint-3xl) bg-bg-main overflow-hidden`,n),style:r,children:t})}function At({children:t,className:n,style:r}){return(0,i.jsx)(`main`,{className:e.x(`boltdocs-content flex-1 min-w-0 overflow-y-auto`,`contain-layout`,n),style:r,children:t})}function jt({children:t,className:n,style:r}){let{pathname:a}=Dt();return(0,i.jsx)(`div`,{className:e.x(`boltdocs-page mx-auto pt-4 pb-20 px-4 sm:px-8`,{"max-w-content-max":a.includes(`/docs/`)},n),style:r,children:t})}function Mt({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`flex items-center justify-between mb-10`,n),style:r,children:t})}function Nt({children:t,className:n,style:r}){return(0,i.jsx)(`div`,{className:e.x(`mt-20`,n),style:r,children:t})}const Pt=Object.assign(Ot,{Body:kt,Content:At,ContentMdx:jt,ContentHeader:Mt,ContentFooter:Nt});function Ft(){let{theme:e,setTheme:t}=w(),[n,o]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{o(!0)},[]),!n)return(0,i.jsx)(`div`,{className:`h-9 w-9`});let c=e===`system`?s.Monitor:e===`dark`?s.Moon:s.Sun;return(0,i.jsxs)(Y.Trigger,{placement:`bottom right`,children:[(0,i.jsx)(a.Button,{className:`flex h-9 w-9 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-bg-surface hover:text-text-main outline-none focus-visible:ring-2 focus-visible:ring-primary-500`,"aria-label":`Selection theme`,children:(0,i.jsx)(c,{size:20,className:`animate-in fade-in zoom-in duration-300`})}),(0,i.jsxs)(Y.Root,{selectionMode:`single`,selectedKeys:[e],onSelectionChange:e=>{let n=Array.from(e)[0];t(n)},children:[(0,i.jsxs)(Y.Item,{id:`light`,children:[(0,i.jsx)(s.Sun,{size:16}),(0,i.jsx)(`span`,{children:`Light`})]}),(0,i.jsxs)(Y.Item,{id:`dark`,children:[(0,i.jsx)(s.Moon,{size:16}),(0,i.jsx)(`span`,{children:`Dark`})]}),(0,i.jsxs)(Y.Item,{id:`system`,children:[(0,i.jsx)(s.Monitor,{size:16}),(0,i.jsx)(`span`,{children:`System`})]})]})]})}async function It(e,t,n=`https://api.github.com`){let r=new Headers;t&&r.append(`authorization`,t);let i=await(await fetch(`${n}/repos/${e}`,{headers:r})).json();return i.stargazers_count===void 0?`0`:Lt(i.stargazers_count)}const Lt=e=>Intl.NumberFormat(`en`,{notation:`compact`,compactDisplay:`short`}).format(e);function Rt({repo:t}){let[n,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{t&&It(t).then(e=>a(e)).catch(()=>a(`0`))},[t]),(0,i.jsxs)(`a`,{href:`https://github.com/${t}`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs font-medium text-text-muted transition-all hover:bg-bg-main hover:border-border-strong hover:text-text-main`,children:[(0,i.jsx)(e.f,{className:`h-4 w-4`}),n&&(0,i.jsx)(`span`,{className:`tabular-nums`,children:n})]})}function zt({tabs:t,routes:n}){let{currentLocale:r}=e.s(),{indicatorStyle:a,tabRefs:o,activeIndex:c}=St(t,n),l=e=>{if(!e)return null;if(e.trim().startsWith(`<svg`))return(0,i.jsx)(`span`,{className:`h-4 w-4`,dangerouslySetInnerHTML:{__html:e}});let t=s[e];return t?(0,i.jsx)(t,{size:16}):(0,i.jsx)(`img`,{src:e,alt:``,className:`h-4 w-4 object-contain`})};return(0,i.jsx)(`div`,{className:`mx-auto max-w-(--breakpoint-3xl) px-4 md:px-6`,children:(0,i.jsxs)(G.List,{className:`border-none py-0`,children:[t.map((t,a)=>{let s=a===c,u=n.find(e=>e.tab&&e.tab.toLowerCase()===t.id.toLowerCase());return(0,i.jsxs)(e.i,{href:u?u.path:`#`,ref:e=>{o.current[a]=e},className:`relative flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors outline-none ${s?`text-primary-500`:`text-text-muted hover:text-text-main`}`,children:[l(t.icon),(0,i.jsx)(`span`,{children:Q(t.text,r)})]},t.id)}),(0,i.jsx)(G.Indicator,{style:a})]})})}const Bt=(0,r.lazy)(()=>Promise.resolve().then(()=>require(`../search-dialog-DMK5OpgH.cjs`)).then(e=>({default:e.SearchDialog})));function Vt(){let{links:n,title:a,logo:o,logoProps:s,github:c,social:l,config:u}=yt(),{routes:d,allRoutes:f,currentVersion:p,currentLocale:m}=e.s(),{pathname:h}=(0,t.useLocation)(),g=u.theme||{},_=h.startsWith(`/docs`),v=g?.tabs&&g.tabs.length>0;return(0,i.jsxs)(e.r.Root,{className:v?`border-b-0`:``,children:[(0,i.jsxs)(e.r.Content,{children:[(0,i.jsxs)(e.r.Left,{children:[o&&(0,i.jsx)(e.r.Logo,{src:o,alt:s?.alt||a,width:s?.width??24,height:s?.height??24}),(0,i.jsx)(e.r.Title,{children:a}),u.versions&&p&&(0,i.jsx)(Ut,{})]}),(0,i.jsx)(e.r.Center,{children:(0,i.jsx)(r.Suspense,{fallback:(0,i.jsx)(`div`,{className:`h-9 w-32 animate-pulse rounded-md bg-bg-surface`}),children:(0,i.jsx)(Bt,{routes:d||[]})})}),(0,i.jsxs)(e.r.Right,{children:[(0,i.jsx)(e.r.Links,{children:n.map(e=>(0,i.jsx)(Ht,{link:e},e.href))}),u.i18n&&m&&(0,i.jsx)(Wt,{}),(0,i.jsx)(e.r.Split,{}),(0,i.jsx)(Ft,{}),c&&(0,i.jsx)(Rt,{repo:g?.githubRepo??``}),l.length>0&&(0,i.jsx)(e.r.Split,{}),(0,i.jsx)(`div`,{className:`flex items-center gap-1`,children:l.map(({icon:t,link:n})=>(0,i.jsx)(e.r.Socials,{icon:t,link:n,className:`p-1.5`},n))})]})]}),_&&v&&g?.tabs&&(0,i.jsx)(`div`,{className:`w-full border-b border-border-subtle bg-bg-main`,children:(0,i.jsx)(zt,{tabs:g.tabs,routes:f||d||[]})})]})}function Ht({link:t}){let n=e.o(t.href||``);return(0,i.jsx)(e.r.Link,{...t,href:n})}function Ut(){let{currentVersionLabel:e,availableVersions:t,handleVersionChange:n}=Ct();return t.length===0?null:(0,i.jsxs)(Y.Trigger,{children:[(0,i.jsx)(E,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:(0,i.jsx)(s.ChevronDown,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5`,children:(0,i.jsx)(`span`,{className:`font-semibold text-[0.8125rem]`,children:e})}),(0,i.jsx)(Y.Root,{children:(0,i.jsx)(Y.Section,{items:t,children:e=>(0,i.jsx)(Y.Item,{onPress:()=>n(e.value),children:e.label},`${e.value??``}`)})})]})}function Wt(){let{currentLocale:e,availableLocales:t,handleLocaleChange:n}=wt();return t.length===0?null:(0,i.jsxs)(Y.Trigger,{children:[(0,i.jsx)(E,{variant:`outline`,size:`sm`,rounded:`lg`,iconPosition:`right`,icon:(0,i.jsx)(s.ChevronDown,{className:`w-3.5 h-3.5 text-text-muted/60`}),className:`h-8 border-border-subtle/60 bg-bg-surface/30 backdrop-blur-sm transition-all duration-200 hover:border-primary-500/50 hover:bg-primary-500/5 px-2.5`,children:(0,i.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,i.jsx)(s.Languages,{className:`w-3.5 h-3.5 text-primary-500`}),(0,i.jsx)(`span`,{className:`font-bold text-[0.75rem] uppercase opacity-90`,children:e||`en`})]})}),(0,i.jsx)(Y.Root,{children:(0,i.jsx)(Y.Section,{items:t,children:e=>(0,i.jsx)(Y.Item,{onPress:()=>n(e.value),children:(0,i.jsxs)(`div`,{className:`flex items-center justify-between w-full gap-4`,children:[(0,i.jsx)(`span`,{children:e.label}),(0,i.jsx)(`span`,{className:`text-[10px] font-bold opacity-40 uppercase tracking-tighter`,children:e.value})]})},`${e.value??``}`)})})]})}function Gt(){return(0,i.jsx)(`div`,{className:`flex items-center justify-center mt-10 mb-4 px-4 w-full`,children:(0,i.jsxs)(`a`,{href:`https://github.com/jesusalcaladev/boltdocs`,target:`_blank`,rel:`noopener noreferrer`,className:`group relative flex items-center gap-2 px-4 py-2 rounded-full border border-border-subtle bg-bg-surface/50 backdrop-blur-md transition-all duration-300 hover:border-primary-500/50 hover:bg-bg-surface hover:shadow-xl hover:shadow-primary-500/5 select-none`,children:[(0,i.jsx)(s.Zap,{className:`w-3.5 h-3.5 text-text-muted group-hover:text-primary-500 transition-colors duration-300`,fill:`currentColor`}),(0,i.jsxs)(`span`,{className:`text-[11px] font-medium text-text-muted group-hover:text-text-main transition-colors duration-300 tracking-wide`,children:[`Powered by`,` `,(0,i.jsx)(`strong`,{className:`font-bold text-text-main/80 group-hover:text-text-main`,children:`Boltdocs`})]})]})})}function Kt(e){if(!e)return;let t={...s,...d.default};return t[e]||t[e+`Icon`]||void 0}function qt({route:e,activePath:t,getIcon:n}){let a=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path),o=(0,r.useMemo)(()=>e.subRoutes?.some(e=>e.path===t),[e.subRoutes,t]),[s,c]=(0,r.useState)(o||a);return(0,r.useEffect)(()=>{(o||a)&&c(!0)},[o,a]),(0,i.jsx)(K.SubGroup,{label:e.title,href:e.path,active:a,icon:n(e.icon),badge:e.badge,isOpen:s,onToggle:()=>c(!s),children:e.subRoutes?.map(e=>{let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return(0,i.jsx)(K.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function Jt({group:e,activePath:t,getIcon:n}){return(0,i.jsx)(K.Group,{title:e.title,icon:n(e.icon),children:e.routes.map(e=>{if(e.subRoutes&&e.subRoutes.length>0)return(0,i.jsx)(qt,{route:e,activePath:t,getIcon:n},e.path);let r=t===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return(0,i.jsx)(K.Link,{label:e.title,href:e.path,active:r,icon:n(e.icon),badge:e.badge},e.path)})})}function Yt({routes:e,config:t}){let{groups:n,ungrouped:r,activePath:a}=bt(e),o=t.theme||{};return(0,i.jsxs)(K.Root,{children:[r.length>0&&(0,i.jsx)(K.Group,{className:`mb-6`,children:r.map(e=>{let t=a===(e.path.endsWith(`/`)?e.path.slice(0,-1):e.path);return(0,i.jsx)(K.Link,{label:e.title,href:e.path,active:t,icon:Kt(e.icon),badge:e.badge},e.path)})}),n.map(e=>(0,i.jsx)(Jt,{group:e,activePath:a,getIcon:Kt},e.slug)),o?.poweredBy&&(0,i.jsx)(`div`,{className:`mt-auto pt-8`,children:(0,i.jsx)(Gt,{})})]})}function Xt({headings:e=[],editLink:t,communityHelp:n,filePath:a}){let{headings:o}=xt(e),s=(0,r.useMemo)(()=>o.map(e=>({title:e.text,url:`#${e.id}`,depth:e.level})),[o]);return o.length===0?null:(0,i.jsx)(Qe,{toc:s,children:(0,i.jsx)(Zt,{headings:o,editLink:t,communityHelp:n,filePath:a})})}function Zt({headings:e,editLink:t,communityHelp:n,filePath:a}){let o=Ye(),[c,l]=(0,r.useState)({opacity:0}),u=(0,r.useRef)(null),d=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!o||!u.current)return;let e=u.current.querySelector(`a[href="#${o}"]`);e&&l({transform:`translateY(${e.offsetTop}px)`,height:`${e.offsetHeight}px`,opacity:1})},[o]);let f=(0,r.useCallback)((e,t)=>{e.preventDefault();let n=document.getElementById(t);n&&(n.scrollIntoView({behavior:`smooth`}),window.history.pushState(null,``,`#${t}`))},[]);return(0,i.jsxs)(U.Root,{children:[(0,i.jsxs)(U.Header,{className:`flex flex-row gap-x-2`,children:[(0,i.jsx)(s.TextAlignStart,{size:16}),`On this page`]}),(0,i.jsx)(Ze,{containerRef:d,children:(0,i.jsxs)(U.Content,{className:`max-h-[450px] boltdocs-otp-scroll-area`,ref:d,children:[(0,i.jsx)(U.Indicator,{style:c}),(0,i.jsx)(`ul`,{className:`relative space-y-2 border-l border-border-subtle`,ref:u,children:e.map(e=>(0,i.jsx)(U.Item,{level:e.level,children:(0,i.jsx)(U.Link,{href:`#${e.id}`,active:o===e.id,onClick:t=>f(t,e.id),className:`pl-4`,children:e.text})},e.id))})]})}),(t||n)&&(0,i.jsxs)(`div`,{className:`mt-8 pt-8 border-t border-border-subtle space-y-4`,children:[(0,i.jsx)(`p`,{className:`text-xs font-bold uppercase text-text-main`,children:`Need help?`}),(0,i.jsxs)(`ul`,{className:`space-y-3`,children:[t&&a&&(0,i.jsx)(`li`,{children:(0,i.jsxs)(`a`,{href:t.replace(`:path`,a),target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[(0,i.jsx)(s.Pencil,{size:16}),`Edit this page`]})}),n&&(0,i.jsx)(`li`,{children:(0,i.jsxs)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-2 text-sm text-text-muted hover:text-text-main transition-colors`,children:[(0,i.jsx)(s.CircleHelp,{size:16}),`Community help`]})})]})]})]})}function Qt({siteTitle:n,siteDescription:r,routes:a}){let s=(0,t.useLocation)(),c=e.C(),l=a?.find?.(e=>e.path===s.pathname),u=l?.title,d=l?.description||r||``,f=u?`${u} | ${n}`:n,p=l?.seo||{},m=c?.seo?.metatags||{},h=c?.seo?.thumbnails?.background,g=p[`og:image`]||h;return(0,i.jsxs)(o.Helmet,{children:[(0,i.jsx)(`title`,{children:f}),(0,i.jsx)(`meta`,{name:`description`,content:d}),(0,i.jsx)(`meta`,{property:`og:title`,content:f}),(0,i.jsx)(`meta`,{property:`og:description`,content:d}),(0,i.jsx)(`meta`,{property:`og:type`,content:`article`}),typeof window<`u`&&(0,i.jsx)(`meta`,{property:`og:url`,content:window.location.href}),typeof window<`u`&&(0,i.jsx)(`link`,{rel:`canonical`,href:window.location.origin+s.pathname}),(0,i.jsx)(`meta`,{name:`twitter:card`,content:`summary`}),(0,i.jsx)(`meta`,{name:`twitter:title`,content:f}),(0,i.jsx)(`meta`,{name:`twitter:description`,content:d}),g&&(0,i.jsx)(`meta`,{name:`twitter:image`,content:g}),g&&(0,i.jsx)(`meta`,{property:`og:image`,content:g}),(0,i.jsx)(`meta`,{name:`generator`,content:`Boltdocs`}),Object.entries(m).map(([e,t])=>e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?(0,i.jsx)(`meta`,{property:e,content:t},e):(0,i.jsx)(`meta`,{name:e,content:t},e)),Object.entries(p).map(([e,t])=>e===`noindex`&&t===!0?(0,i.jsx)(`meta`,{name:`robots`,content:`noindex`},`noindex`):e===`robots`?(0,i.jsx)(`meta`,{name:`robots`,content:t},`robots`):e===`canonical`?(0,i.jsx)(`link`,{rel:`canonical`,href:t},`canonical`):e.startsWith(`og:`)||e.startsWith(`music:`)||e.startsWith(`video:`)||e.startsWith(`article:`)||e.startsWith(`book:`)||e.startsWith(`profile:`)?(0,i.jsx)(`meta`,{property:e,content:t},e):(0,i.jsx)(`meta`,{name:e,content:t},e))]})}function $t(){let{crumbs:t,activeRoute:n}=Et(),r=e.C().theme||{};return t.length===0||!r?.breadcrumbs?null:(0,i.jsxs)(q.Root,{children:[(0,i.jsx)(q.Item,{children:(0,i.jsx)(q.Link,{href:`/`,children:(0,i.jsx)(s.Home,{size:14})})}),t.map((t,r)=>(0,i.jsxs)(q.Item,{children:[(0,i.jsx)(q.Separator,{}),(0,i.jsx)(q.Link,{href:t.href,className:e.x({"font-medium text-text-main":t.href===n?.path}),children:t.label})]},`crumb-${t.href}-${t.label}-${r}`))]})}function en(){let{prevPage:e,nextPage:t}=Tt();return!e&&!t?null:(0,i.jsxs)(W.Root,{className:`animate-in fade-in slide-in-from-bottom-4 duration-700`,children:[e?(0,i.jsxs)(W.Link,{to:e.path,direction:`prev`,children:[(0,i.jsx)(W.Title,{children:`Previous`}),(0,i.jsx)(W.Description,{children:e.title})]}):(0,i.jsx)(`div`,{}),t&&(0,i.jsxs)(W.Link,{to:t.path,direction:`next`,children:[(0,i.jsx)(W.Title,{children:`Next`}),(0,i.jsx)(W.Description,{children:t.title})]})]})}var tn=class extends r.Component{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Uncaught error in Boltdocs Layout:`,e,t)}render(){return this.state.hasError?this.props.fallback||(0,i.jsxs)(`div`,{className:`flex flex-col items-center justify-center min-h-[40vh] text-center gap-4 px-4`,children:[(0,i.jsx)(`div`,{className:`text-lg font-bold text-red-400`,children:`Something went wrong`}),(0,i.jsx)(`p`,{className:`text-sm text-text-muted max-w-md`,children:this.state.error?.message||`An unexpected error occurred while rendering this page.`}),(0,i.jsx)(E,{className:`rounded-lg border border-border-subtle bg-bg-surface px-5 py-2 text-sm font-medium text-text-main transition-colors hover:bg-bg-muted cursor-pointer`,onPress:()=>this.setState({hasError:!1}),children:`Try again`})]}):this.props.children}};exports.Admonition=A,exports.AnchorProvider=Qe,exports.Badge=ve,exports.BoltdocsShell=ht,exports.Breadcrumbs=$t,exports.Button=te,exports.ButtonGroup=nt,exports.Card=xe,exports.Cards=be,exports.Caution=Ee,exports.CodeBlock=k,exports.ComponentPreview=We,exports.ComponentProps=He,exports.CopyMarkdown=lt,exports.Danger=P,exports.DocsLayout=Pt,exports.ErrorBoundary=tn,exports.Field=Be,exports.FileTree=Le,exports.Head=Qt,exports.Image=Ve,exports.Important=Te,exports.InfoBox=we,exports.Link=z,exports.List=Me,exports.Loading=dt,exports.MdxPage=v,exports.Navbar=Vt,exports.NotFound=gt,exports.Note=j,exports.OnThisPage=Xt,exports.PageNav=en,exports.PrimitiveBreadcrumbs=q,exports.PrimitiveButton=E,exports.PrimitiveLink=e.i,exports.PrimitiveMenu=Y,exports.PrimitiveNavLink=e.a,exports.PrimitiveNavbar=e.r,exports.PrimitiveNavigationMenu=B,exports.PrimitiveOnThisPage=U,exports.PrimitivePageNav=W,exports.PrimitivePopover=J,exports.PrimitiveSidebar=K,exports.PrimitiveSkeleton=X,exports.PrimitiveTabs=G,exports.PrimitiveTooltip=O,exports.ScrollProvider=Ze,exports.SearchDialogPrimitive=e.n,exports.Sidebar=Yt,exports.Tab=me,exports.Table=ze,exports.Tabs=he,exports.Tip=M,exports.Video=ge,exports.Warning=N,exports.cn=e.x,exports.createRoutes=vt,exports.getTranslated=Q,exports.useActiveAnchor=Ye,exports.useActiveAnchors=Xe,exports.useBreadcrumbs=Et,exports.useConfig=e.C,exports.useI18n=wt,exports.useItems=H,exports.useLocalizedTo=e.o,exports.useLocation=Dt,exports.useMdxComponents=h,exports.useNavbar=yt,exports.useOnThisPage=xt,exports.usePageNav=Tt,exports.useRoutes=e.s,exports.useSearch=e.t,exports.useSidebar=bt,exports.useTabs=St,exports.useTheme=w,exports.useVersion=Ct;
@@ -172,16 +172,6 @@ interface BoltdocsConfig$1 {
172
172
  vite?: any;
173
173
  }
174
174
  //#endregion
175
- //#region src/shared/config-utils.d.ts
176
- /**
177
- * Type-safe helper for defining Boltdocs configuration.
178
- * This is an identity function that provides IntelliSense in both
179
- * Node.js (config files) and client-side code (MDX examples).
180
- *
181
- * @param config - The Boltdocs configuration object
182
- */
183
- declare function defineConfig(config: BoltdocsConfig$1): BoltdocsConfig$1;
184
- //#endregion
185
175
  //#region src/client/types.d.ts
186
176
  /**
187
177
  * Metadata provided by the server for a specific route.
@@ -560,19 +550,6 @@ interface DocsLayoutComponent extends React.FC<SlotProps> {
560
550
  }
561
551
  declare const DocsLayout: DocsLayoutComponent;
562
552
  //#endregion
563
- //#region src/client/components/default-layout.d.ts
564
- interface LayoutProps$1 {
565
- children: React.ReactNode;
566
- }
567
- /**
568
- * The built-in default layout for Boltdocs.
569
- * Users who create their own `layout.tsx` can import the same building blocks
570
- * and rearrange, wrap, or replace any section.
571
- */
572
- declare function DefaultLayout({
573
- children
574
- }: LayoutProps$1): _$react_jsx_runtime0.JSX.Element;
575
- //#endregion
576
553
  //#region src/client/components/ui-base/navbar.d.ts
577
554
  declare function Navbar(): _$react_jsx_runtime0.JSX.Element;
578
555
  //#endregion
@@ -1557,4 +1534,15 @@ declare function Skeleton({
1557
1534
  //#region src/client/utils/cn.d.ts
1558
1535
  declare function cn(...inputs: ClassValue[]): string;
1559
1536
  //#endregion
1560
- export { Admonition, type AdmonitionProps, AnchorProvider, Badge, type BadgeProps, type BoltdocsConfig$1 as BoltdocsConfig, BoltdocsShell, type BoltdocsThemeConfig, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Cards, type CardsProps, Caution, CodeBlock, ComponentPreview, type ComponentPreviewProps, ComponentProps, type ComponentPropsProps, type ComponentRoute, CopyMarkdown, Danger, DefaultLayout, DocsLayout, ErrorBoundary, Field, type FieldProps, FileTree, type FileTreeProps, Head, Image, type ImageProps, Important, InfoBox, type LayoutProps, Link, type LinkProps, List, type ListProps, Loading, MdxPage, Navbar, NotFound, Note, OnThisPage, PageNav, Breadcrumbs$1 as PrimitiveBreadcrumbs, Button$1 as PrimitiveButton, Link$1 as PrimitiveLink, Menu as PrimitiveMenu, NavLink as PrimitiveNavLink, Navbar$1 as PrimitiveNavbar, NavigationMenu as PrimitiveNavigationMenu, OnThisPage$1 as PrimitiveOnThisPage, PageNav$1 as PrimitivePageNav, Popover as PrimitivePopover, Sidebar as PrimitiveSidebar, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, Tooltip as PrimitiveTooltip, ScrollProvider, SearchDialog as SearchDialogPrimitive, Sidebar$1 as Sidebar, Tab, type TabProps, Table, type TableProps, Tabs$1 as Tabs, type TabsProps, Tip, Video, Warning, cn, createRoutes, defineConfig, useActiveAnchor, useActiveAnchors, useBreadcrumbs, useConfig, useI18n, useItems, useLocalizedTo, useLocation, useMdxComponents, useNavbar, useOnThisPage, usePageNav, useRoutes, useSearch, useSidebar, useTabs, useTheme, useVersion };
1537
+ //#region src/client/utils/i18n.d.ts
1538
+ /**
1539
+ * Retrieves the correct translation from a value that can be either
1540
+ * a simple string or a map of locale-specific strings.
1541
+ *
1542
+ * @param value - The text to translate
1543
+ * @param locale - The current active locale (e.g., 'en', 'es')
1544
+ * @returns The translated string
1545
+ */
1546
+ declare function getTranslated(value: string | Record<string, string> | undefined, locale?: string): string;
1547
+ //#endregion
1548
+ export { Admonition, type AdmonitionProps, AnchorProvider, Badge, type BadgeProps, BoltdocsShell, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Cards, type CardsProps, Caution, CodeBlock, ComponentPreview, type ComponentPreviewProps, ComponentProps, type ComponentPropsProps, type ComponentRoute, CopyMarkdown, Danger, DocsLayout, ErrorBoundary, Field, type FieldProps, FileTree, type FileTreeProps, Head, Image, type ImageProps, Important, InfoBox, type LayoutProps, Link, type LinkProps, List, type ListProps, Loading, MdxPage, Navbar, NotFound, Note, OnThisPage, PageNav, Breadcrumbs$1 as PrimitiveBreadcrumbs, Button$1 as PrimitiveButton, Link$1 as PrimitiveLink, Menu as PrimitiveMenu, NavLink as PrimitiveNavLink, Navbar$1 as PrimitiveNavbar, NavigationMenu as PrimitiveNavigationMenu, OnThisPage$1 as PrimitiveOnThisPage, PageNav$1 as PrimitivePageNav, Popover as PrimitivePopover, Sidebar as PrimitiveSidebar, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, Tooltip as PrimitiveTooltip, ScrollProvider, SearchDialog as SearchDialogPrimitive, Sidebar$1 as Sidebar, Tab, type TabProps, Table, type TableProps, Tabs$1 as Tabs, type TabsProps, Tip, Video, Warning, cn, createRoutes, getTranslated, useActiveAnchor, useActiveAnchors, useBreadcrumbs, useConfig, useI18n, useItems, useLocalizedTo, useLocation, useMdxComponents, useNavbar, useOnThisPage, usePageNav, useRoutes, useSearch, useSidebar, useTabs, useTheme, useVersion };
@@ -172,16 +172,6 @@ interface BoltdocsConfig$1 {
172
172
  vite?: any;
173
173
  }
174
174
  //#endregion
175
- //#region src/shared/config-utils.d.ts
176
- /**
177
- * Type-safe helper for defining Boltdocs configuration.
178
- * This is an identity function that provides IntelliSense in both
179
- * Node.js (config files) and client-side code (MDX examples).
180
- *
181
- * @param config - The Boltdocs configuration object
182
- */
183
- declare function defineConfig(config: BoltdocsConfig$1): BoltdocsConfig$1;
184
- //#endregion
185
175
  //#region src/client/types.d.ts
186
176
  /**
187
177
  * Metadata provided by the server for a specific route.
@@ -560,19 +550,6 @@ interface DocsLayoutComponent extends React.FC<SlotProps> {
560
550
  }
561
551
  declare const DocsLayout: DocsLayoutComponent;
562
552
  //#endregion
563
- //#region src/client/components/default-layout.d.ts
564
- interface LayoutProps$1 {
565
- children: React.ReactNode;
566
- }
567
- /**
568
- * The built-in default layout for Boltdocs.
569
- * Users who create their own `layout.tsx` can import the same building blocks
570
- * and rearrange, wrap, or replace any section.
571
- */
572
- declare function DefaultLayout({
573
- children
574
- }: LayoutProps$1): _$react_jsx_runtime0.JSX.Element;
575
- //#endregion
576
553
  //#region src/client/components/ui-base/navbar.d.ts
577
554
  declare function Navbar(): _$react_jsx_runtime0.JSX.Element;
578
555
  //#endregion
@@ -1557,4 +1534,15 @@ declare function Skeleton({
1557
1534
  //#region src/client/utils/cn.d.ts
1558
1535
  declare function cn(...inputs: ClassValue[]): string;
1559
1536
  //#endregion
1560
- export { Admonition, type AdmonitionProps, AnchorProvider, Badge, type BadgeProps, type BoltdocsConfig$1 as BoltdocsConfig, BoltdocsShell, type BoltdocsThemeConfig, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Cards, type CardsProps, Caution, CodeBlock, ComponentPreview, type ComponentPreviewProps, ComponentProps, type ComponentPropsProps, type ComponentRoute, CopyMarkdown, Danger, DefaultLayout, DocsLayout, ErrorBoundary, Field, type FieldProps, FileTree, type FileTreeProps, Head, Image, type ImageProps, Important, InfoBox, type LayoutProps, Link, type LinkProps, List, type ListProps, Loading, MdxPage, Navbar, NotFound, Note, OnThisPage, PageNav, Breadcrumbs$1 as PrimitiveBreadcrumbs, Button$1 as PrimitiveButton, Link$1 as PrimitiveLink, Menu as PrimitiveMenu, NavLink as PrimitiveNavLink, Navbar$1 as PrimitiveNavbar, NavigationMenu as PrimitiveNavigationMenu, OnThisPage$1 as PrimitiveOnThisPage, PageNav$1 as PrimitivePageNav, Popover as PrimitivePopover, Sidebar as PrimitiveSidebar, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, Tooltip as PrimitiveTooltip, ScrollProvider, SearchDialog as SearchDialogPrimitive, Sidebar$1 as Sidebar, Tab, type TabProps, Table, type TableProps, Tabs$1 as Tabs, type TabsProps, Tip, Video, Warning, cn, createRoutes, defineConfig, useActiveAnchor, useActiveAnchors, useBreadcrumbs, useConfig, useI18n, useItems, useLocalizedTo, useLocation, useMdxComponents, useNavbar, useOnThisPage, usePageNav, useRoutes, useSearch, useSidebar, useTabs, useTheme, useVersion };
1537
+ //#region src/client/utils/i18n.d.ts
1538
+ /**
1539
+ * Retrieves the correct translation from a value that can be either
1540
+ * a simple string or a map of locale-specific strings.
1541
+ *
1542
+ * @param value - The text to translate
1543
+ * @param locale - The current active locale (e.g., 'en', 'es')
1544
+ * @returns The translated string
1545
+ */
1546
+ declare function getTranslated(value: string | Record<string, string> | undefined, locale?: string): string;
1547
+ //#endregion
1548
+ export { Admonition, type AdmonitionProps, AnchorProvider, Badge, type BadgeProps, BoltdocsShell, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Cards, type CardsProps, Caution, CodeBlock, ComponentPreview, type ComponentPreviewProps, ComponentProps, type ComponentPropsProps, type ComponentRoute, CopyMarkdown, Danger, DocsLayout, ErrorBoundary, Field, type FieldProps, FileTree, type FileTreeProps, Head, Image, type ImageProps, Important, InfoBox, type LayoutProps, Link, type LinkProps, List, type ListProps, Loading, MdxPage, Navbar, NotFound, Note, OnThisPage, PageNav, Breadcrumbs$1 as PrimitiveBreadcrumbs, Button$1 as PrimitiveButton, Link$1 as PrimitiveLink, Menu as PrimitiveMenu, NavLink as PrimitiveNavLink, Navbar$1 as PrimitiveNavbar, NavigationMenu as PrimitiveNavigationMenu, OnThisPage$1 as PrimitiveOnThisPage, PageNav$1 as PrimitivePageNav, Popover as PrimitivePopover, Sidebar as PrimitiveSidebar, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, Tooltip as PrimitiveTooltip, ScrollProvider, SearchDialog as SearchDialogPrimitive, Sidebar$1 as Sidebar, Tab, type TabProps, Table, type TableProps, Tabs$1 as Tabs, type TabsProps, Tip, Video, Warning, cn, createRoutes, getTranslated, useActiveAnchor, useActiveAnchors, useBreadcrumbs, useConfig, useI18n, useItems, useLocalizedTo, useLocation, useMdxComponents, useNavbar, useOnThisPage, usePageNav, useRoutes, useSearch, useSidebar, useTabs, useTheme, useVersion };