1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,937649,e=>{"use strict";var t=e.i(271645),r=e.i(720565),n=e.i(745939);e.s(["TrackDocPageView",0,function({slug:e,locale:s}){let o=(0,r.usePostHog)();return(0,t.useEffect)(()=>{o?.capture(n.WebEvents.DOC_PAGE_VIEWED,{slug:e,locale:s})},[o,e,s]),null}])},144324,e=>{"use strict";var t=e.i(179862),r=e.i(713548),n=e.i(737877),s=e.i(14804),o=e.i(843476),i=e.i(271645),a=e.i(981140),l=e.i(30030),c=e.i(820783),u=e.i(991918),d=Object.defineProperty,f=(e,t)=>d(e,"name",{value:t,configurable:!0});function h(e){let t=e+"CollectionProvider",[r,n]=(0,l.createContextScope)(t),[s,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=f(e=>{let{scope:t,children:r}=e,n=i.useRef(null),a=i.useRef(new Map).current;return(0,o.jsx)(s,{scope:t,itemMap:a,collectionRef:n,children:r})},"CollectionProvider");d.displayName=t;let h=e+"CollectionSlot",m=(0,u.createSlot)(h),p=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,s=a(h,r),i=(0,c.useComposedRefs)(t,s.collectionRef);return(0,o.jsx)(m,{ref:i,children:n})});p.displayName=h;let x=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,u.createSlot)(x),b=i.forwardRef((e,t)=>{let{scope:r,children:n,...s}=e,l=i.useRef(null),u=(0,c.useComposedRefs)(t,l),d=a(x,r);return i.useEffect(()=>(d.itemMap.set(l,{ref:l,...s}),()=>void d.itemMap.delete(l))),(0,o.jsx)(v,{...{[g]:""},ref:u,children:n})});function y(t){let r=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return b.displayName=x,f(y,"useCollection"),[{Provider:d,Slot:p,ItemSlot:b},y,n]}f(h,"createCollection");var m=new WeakMap,p=class e extends Map{static{f(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],m.set(this,!0)}set(e,t){return m.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,s=this.has(t),o=this.#e.length,i=v(e),a=i>=0?i:o+i,l=a<0||a>=o?-1:a;if(l===this.size||s&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!s;i<0&&a++;let u=[...this.#e],d=!1;for(let e=a;e<c;e++)if(a===e){let o=u[e];u[e]===t&&(o=u[e+1]),s&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||u[e-1]!==t||(d=!0);let r=u[d?e:e-1],s=n;n=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,n){let s=new e(this);return s.insert(t,r,n),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=x(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=x(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return x(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&n.push(e),s++;return new e(n)}map(t,r){let n=[],s=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(n)}reduce(...e){let[t,r]=e,n=0,s=r??this.at(0);for(let r of this)s=0===n&&1===e.length?r:Reflect.apply(t,this,[s,r,n,this]),n++;return s}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);n=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[n,s,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,s=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function x(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=g(e,t);return -1===r?void 0:e[r]}function g(e,t){let r=e.length,n=v(t),s=n>=0?n:r+n;return s<0||s>=r?-1:s}function v(e){return e!=e||0===e?0:Math.trunc(e)}function b(e,t){if(e===t)return!0;
1if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function y(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function j(e,t){return e[1].element&&t[1].element?y(e[1].element,t[1].element)?-1:1:0}function w(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}f(x,"at"),f(g,"toSafeIndex"),f(v,"toSafeInteger"),f(function(e){let t=e+"CollectionProvider",[r,n]=(0,l.createContextScope)(t),[s,a]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new p,setItemMap:f(()=>void 0,"setItemMap")}),d=f(({state:e,...t})=>e?(0,o.jsx)(m,{...t,state:e}):(0,o.jsx)(h,{...t}),"CollectionProvider");d.displayName=t;let h=f(e=>{let t=N();return(0,o.jsx)(m,{...e,state:t})},"CollectionInit");h.displayName=t+"Init";let m=f(e=>{let{scope:t,children:r,state:n}=e,a=i.useRef(null),[l,u]=i.useState(null),d=(0,c.useComposedRefs)(a,u),[f,h]=n;return i.useEffect(()=>{if(!l)return;let e=w(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,o.jsx)(s,{scope:t,itemMap:f,setItemMap:h,collectionRef:d,collectionRefObject:a,collectionElement:l,children:r})},"CollectionProviderImpl");m.displayName=t+"Impl";let x=e+"CollectionSlot",g=(0,u.createSlot)(x),v=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,s=a(x,r),i=(0,c.useComposedRefs)(t,s.collectionRef);return(0,o.jsx)(g,{ref:i,children:n})});v.displayName=x;let y=e+"CollectionItemSlot",C=(0,u.createSlot)(y),k=i.forwardRef((e,t)=>{let{scope:r,children:n,...s}=e,l=i.useRef(null),[u,d]=i.useState(null),f=(0,c.useComposedRefs)(t,l,d),{setItemMap:h}=a(y,r),m=i.useRef(s);b(m.current,s)||(m.current=s);let x=m.current;return i.useEffect(()=>(h(e=>u?e.has(u)?e.set(u,{...x,element:u}).toSorted(j):(e.set(u,{...x,element:u}),e.toSorted(j)):e),()=>{h(e=>u&&e.has(u)?(e.delete(u),new p(e)):e)}),[u,x,h]),(0,o.jsx)(C,{"data-radix-collection-item":"",ref:f,children:n})});function N(){return i.useState(new p)}function R(t){let{itemMap:r}=a(e+"CollectionConsumer",t);return r}return k.displayName=y,f(N,"useInitCollection"),f(R,"useCollection"),[{Provider:d,Slot:v,ItemSlot:k},{createCollectionScope:n,useCollection:R,useInitCollection:N}]},"createCollection"),f(b,"shallowEqual"),f(y,"isElementPreceding"),f(j,"sortByDocumentPosition"),f(w,"getChildListObserver");var C=e.i(610772),k=e.i(248425),N=e.i(30207),R=e.i(369340),I=e.i(586318),S=e.i(934620),P=Object.defineProperty,T=(e,t)=>P(e,"name",{value:t,configurable:!0}),E=!1;function M(){let[e,t]=i.useState(E);return i.useEffect(()=>{E||(E=!0,t(!0))},[]),e}T(M,"useIsHydrated");var L=i[" useSyncExternalStore ".trim().toString()];function A(){return()=>{}}function $(){return L(A,()=>!0,()=>!1)}T(A,"subscribe"),T($,"useIsHydratedModern");var O="function"==typeof L?$:M,D=Object.defineProperty,z=(e,t)=>D(e,"name",{value:t,configurable:!0}),B="rovingFocusGroup.onEntryFocus",F={bubbles:!1,cancelable:!0},_="RovingFocusGroup",[H,V,W]=h(_),[U,G]=(0,l.createContextScope)(_,[W]),[K,q]=U(_),Z=i.forwardRef(z(function(e,t){return(0,o.jsx)(H.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(H.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(X,{...e,ref:t})})})},"RovingFocusGroup")),X=i.forwardRef(z(function(e,t){let{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...p}=e,x=i.useRef(null),g=(0,c.useComposedRefs)(t,x),v=(0,I.useDirection)(l),[b,y]=(0,R.useControllableState)({prop:u,defaultProp:d??null,onChange:f,caller:_}),[j,w]=i.useState(!1),C=(0,N.useCallbackRef)(h),S=V(r),P=i.useRef(!1),[T,E]=i.useState(0);return i.useEffect(()=>{let e=x.current;if(e)return e.addEventListener(B,C),()=>e.removeEventListener(B,C)},[C]),(0,o.jsx)(K,{scope:r,orientation:n,dir:v,loop:s,currentTabStopId:b,onItemFocus:i.useCallback(e=>y(e),[y]),onItemShiftTab:i.useCallback(()=>w(!0),[]),onFocusableItemAdd:i.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>E(e=>e-1),[]),children:(0,o.jsx)(k.Primitive.div,{tabIndex:j||0===T?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,a.composeEventHandlers)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(B,F);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>
1e.focusable);et([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),m)}}P.current=!1}),onBlur:(0,a.composeEventHandlers)(e.onBlur,()=>w(!1))})})},"RovingFocusGroupImpl")),Y=i.forwardRef(z(function(e,t){let{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:l,children:c,...u}=e,d=(0,C.useId)(),f=l||d,h=q("RovingFocusGroupItem",r),m=h.currentTabStopId===f,p=V(r),{onFocusableItemAdd:x,onFocusableItemRemove:g,currentTabStopId:v}=h,b=O();return(0,S.useLayoutEffect)(()=>{if(b&&n)return x(),()=>g()},[b,n,x,g]),i.useEffect(()=>{if(!b&&n)return x(),()=>g()},[b,n,x,g]),(0,o.jsx)(H.ItemSlot,{scope:r,id:f,focusable:n,active:s,children:(0,o.jsx)(k.Primitive.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{n?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=ee(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=h.loop?er(r,n+1):r.slice(n+1)}setTimeout(()=>et(r))}}),children:"function"==typeof c?c({isCurrentTabStop:m,hasTabStop:null!=v}):c})})},"RovingFocusGroupItem")),J={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Q(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function ee(e,t,r){let n=Q(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return J[n]}function et(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function er(e,t){return e.map((r,n)=>e[(t+n)%e.length])}z(Q,"getDirectionAwareKey"),z(ee,"getFocusIntent"),z(et,"focusFirst"),z(er,"wrapArray");var en=e.i(296626),es=Object.defineProperty,eo=(e,t)=>es(e,"name",{value:t,configurable:!0}),ei="Tabs",[ea,el]=(0,l.createContextScope)(ei,[G]),ec=G(),[eu,ed]=ea(ei),ef=i.forwardRef(eo(function(e,t){let{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=(0,I.useDirection)(l),[f,h]=(0,R.useControllableState)({prop:n,onChange:s,defaultProp:i??"",caller:ei});return(0,o.jsx)(eu,{scope:r,baseId:(0,C.useId)(),value:f,onValueChange:h,orientation:a,dir:d,activationMode:c,children:(0,o.jsx)(k.Primitive.div,{dir:d,"data-orientation":a,...u,ref:t})})},"Tabs")),eh=i.forwardRef(eo(function(e,t){let{__scopeTabs:r,loop:n=!0,...s}=e,i=ed("TabsList",r),a=ec(r);return(0,o.jsx)(Z,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:n,children:(0,o.jsx)(k.Primitive.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:t})})},"TabsList")),em=i.forwardRef(eo(function(e,t){let{__scopeTabs:r,value:n,disabled:s=!1,...i}=e,l=ed("TabsTrigger",r),c=ec(r),u=ex(l.baseId,n),d=eg(l.baseId,n),f=n===l.value;return(0,o.jsx)(Y,{asChild:!0,...c,focusable:!s,active:f,children:(0,o.jsx)(k.Primitive.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u,...i,ref:t,onMouseDown:(0,a.composeEventHandlers)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)}),onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{!s&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&l.onValueChange(n)}),onFocus:(0,a.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==l.activationMode;f||s||!e||l.onValueChange(n)})})})},"TabsTrigger")),ep=i.forwardRef(eo(function(e,t){let{__scopeTabs:r,value:n,forceMount:s,children:a,...l}=e,c=ed("TabsContent",r),u=ex(c.baseId,n),d=eg(c.baseId,n),f=n===c.value,h=i.useRef(f);return i.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,o.jsx)(en.Presence,{present:s||f,children:({present:r})=>(0,o.jsx)(k.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&a})})},"TabsContent"));function ex(e,t){return`${e}-trigger-${t}`}function eg(e,t){return`${e}-content-${t}`}eo(ex,"makeTriggerId"),eo(eg,"makeContentId");let ev=new Map,eb=(0,i.createContext)(null);function ey({ref:e,groupId:t,persist:r=!1,updateAnchor:n=!1,defaultValue:a,value:l,onValueChange:c,...u}){let d=(0,i.useRef)(null),f=(0,i.useMemo)(()=>new Map,[]),h=(0,i.useMemo)(()=>
1new Map,[]),[m,p]=void 0===l?(0,i.useState)(a):[l,(0,i.useEffectEvent)(e=>c?.(e))];return(0,i.useLayoutEffect)(()=>{if(!t)return;let e=sessionStorage.getItem(t);r&&(e??=localStorage.getItem(t)),e&&p(e);let n=ev.get(t)??new Set;return n.add(p),ev.set(t,n),()=>{n.delete(p)}},[t,r]),(0,i.useLayoutEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);if(!e)return;for(let[t,r]of f.entries())if(r===e){p(t),d.current?.scrollIntoView();return}let t=document.getElementById(e);if(t){for(let[e,r]of h.entries())if(r.contains(t)){p(e),requestAnimationFrame(()=>t.scrollIntoView());return}}};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[f,h]),(0,o.jsx)(ef,{ref:(0,s.mergeRefs)(e,d),value:m,onValueChange:e=>{if(n){let t=f.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){let n=ev.get(t);if(n)for(let t of n)t(e);sessionStorage.setItem(t,e),r&&localStorage.setItem(t,e)}else p(e)},...u,children:(0,o.jsx)(eb,{value:(0,i.useMemo)(()=>({valueToIdMap:f,panels:h}),[f,h]),children:u.children})})}function ej({value:e,ref:t,...r}){let{valueToIdMap:n,panels:a}=function(){let e=(0,i.use)(eb);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return r.id&&n.set(e,r.id),(0,o.jsx)(ep,{ref:(0,s.mergeRefs)(t,t=>{t?a.set(e,t):a.delete(e)}),value:e,...r,children:r.children})}var ew=e.i(689664),eC=e.i(456420);let ek={name:"clipboard",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]};ek.node;let eN=(0,eC.default)(ek);var eR=e.i(532257);let eI=(0,i.createContext)(null);function eS({className:e,containerRef:s,...i}){let a=(0,eR.useTranslations)({note:"code block"}),[l,c]=(0,n.useCopyButton)(()=>{let e=s.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,o.jsx)("button",{type:"button","data-checked":l||void 0,className:(0,t.cn)((0,r.buttonVariants)({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":a(l?"Copied Text":"Copy Text",{note:"aria-label"}),onClick:c,...i,children:l?(0,o.jsx)(ew.Check,{}):(0,o.jsx)(eN,{})})}e.s(["CodeBlock",0,function({ref:e,title:r,allowCopy:n=!0,keepBackground:s=!1,icon:a,viewportProps:l={},children:c,Actions:u=e=>(0,o.jsx)("div",{...e,className:(0,t.cn)("empty:hidden",e.className)}),...d}){let f=null!==(0,i.use)(eI),h=(0,i.useRef)(null);return"true"===n?n=!0:"false"===n&&(n=!1),(0,o.jsxs)("figure",{ref:e,dir:"ltr",...d,tabIndex:-1,className:(0,t.cn)(f?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",s&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",d.className),children:[r?(0,o.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof a?(0,o.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:a}}):a,(0,o.jsx)("figcaption",{className:"flex-1 truncate",children:r}),u({className:"-me-2",children:n&&(0,o.jsx)(eS,{containerRef:h})})]}):u({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:n&&(0,o.jsx)(eS,{containerRef:h})}),(0,o.jsx)("div",{ref:h,...l,role:"region",tabIndex:0,className:(0,t.cn)("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",l.className),style:{"--padding-right":r?void 0:"calc(var(--spacing) * 8)",counterSet:d["data-line-numbers"]?`line ${Number(d["data-line-numbers-start"]??1)-1}`:void 0,...l.style},children:c})]})},"CodeBlockTab",0,function(e){return(0,o.jsx)(ej,{...e})},"CodeBlockTabs",0,function({ref:e,...r}){let n=(0,i.useRef)(null),a=null!==(0,i.use)(eI);return(0,o.jsx)(ey,{ref:(0,s.mergeRefs)(n,e),...r,className:(0,t.cn)("bg-fd-card rounded-xl border",!a&&"my-4",r.className),children:(0,o.jsx)(eI,{value:(0,i.useMemo)(()=>({containerRef:n,nested:a}
1),[a]),children:r.children})})},"CodeBlockTabsList",0,function(e){return(0,o.jsx)(eh,{...e,className:(0,t.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},"CodeBlockTabsTrigger",0,function({children:e,...r}){return(0,o.jsxs)(em,{...r,className:(0,t.cn)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",r.className),children:[(0,o.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},"Pre",0,function(e){return(0,o.jsx)("pre",{...e,className:(0,t.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}],144324)},494157,e=>{"use strict";var t=e.i(179862),r=e.i(713548),n=e.i(737877),s=e.i(843476),o=e.i(456420);let i={name:"copy-check",size:24,node:[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};i.node;let a=(0,o.default)(i),l={name:"link",size:24,node:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]};l.node;let c=(0,o.default)(l);var u=e.i(532257);e.s(["Heading",0,function({as:e,...o}){let i=e??"h1",l=(0,u.useTranslations)({note:"heading anchor"}),[d,f]=(0,n.useCopyButton)(()=>{if(!o.id)return;let e=new URL(window.location.href);return e.hash=o.id,navigator.clipboard.writeText(e.href)});return o.id?(0,s.jsxs)(i,{...o,className:(0,t.cn)("group/heading flex scroll-m-28 flex-row items-center gap-1",o.className),children:[(0,s.jsx)("a",{"data-card":"",href:`#${o.id}`,children:o.children}),(0,s.jsx)("button",{"aria-label":l("Copy Anchor Link",{note:"aria-label"}),className:(0,t.cn)((0,r.buttonVariants)({variant:"ghost",size:"icon-xs"}),"not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100"),onClick:f,children:d?(0,s.jsx)(a,{}):(0,s.jsx)(c,{})})]}):(0,s.jsx)(i,{...o})}],494157)},353266,e=>{"use strict";var t=e.i(179862),r=e.i(563199),n=e.i(214072),s=e.i(647873),o=e.i(843476),i=e.i(867927),a=e.i(271645),l=e.i(557886);function c({includeRoot:e,includeSeparator:r,includePage:u,...d}){let f=(0,n.useTreePath)(),{root:h}=(0,n.useTreeContext)(),m=(0,a.useMemo)(()=>(0,l.getBreadcrumbItemsFromPath)(h,f,{includePage:u,includeSeparator:r,includeRoot:e}),[u,e,r,f,h]);return 0===m.length?null:(0,o.jsx)("div",{...d,className:(0,t.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",d.className),children:m.map((e,r)=>{let n=(0,t.cn)("truncate",r===m.length-1&&"text-fd-primary font-medium");return(0,o.jsxs)(a.Fragment,{children:[0!==r&&(0,o.jsx)(i.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,o.jsx)(s.default,{href:e.url,className:(0,t.cn)(n,"transition-opacity hover:opacity-80"),children:e.name}):(0,o.jsx)("span",{className:n,children:e.name})]},r)})})}var u=e.i(730942),d=e.i(713548),f=e.i(14804),h=e.i(826907),m=e.i(191909);let p=(0,a.createContext)(null),x=(0,a.createContext)(null);function g({ref:e,onActiveChange:t=()=>null,autoScroll:r=!0,...n}){let s=n.href?w(n.href):null,i=(0,a.use)(x),l=(0,a.useRef)(null),c=(0,a.useRef)(!0),u=v(),[d,f]=(0,a.useState)(()=>u.items.some(e=>e.id===s&&e.active)),h=(0,a.useEffectEvent)((e,n)=>{let o,a=s?e.find(e=>e.id===s):null;if(!a)return;a.active!==d&&(f(a.active),t(a.active));let c=l.current,u=i?.current;if(r&&c&&u){for(let t of e)t.active&&(!o||o.t<t.t)&&(o=t);o?.id===s&&(0,m.default)(c,{behavior:n?"instant":"smooth",block:"center",inline:"center",scrollMode:"always",boundary:u})}});return(0,a.useEffect)(()=>{r&&h(u.items,c.current),c.current=!1},[u,r]),(0,a.useEffect)(()=>{let e=e=>h(e,!1);return u.listen(e),()=>u.unlisten(e)},[u]),(0,o.jsx)("a",{ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(l,e),"data-active":d,...n})}function v(){let e=(0,a.use)(p);if(!e)throw Error("Component must be used under the <AnchorProvider /> component.");return e}function b(){let e=v();return(0,a.useMemo)(()=>({get:()=>e.items,listen:e.listen.bind(e),unlisten:e.unlisten.bind(e)}),[e])}function y(e){let t=v(),r=(0,a.useEffectEvent)(e);(0,a.useEffect)(()=>(t.listen(r),()=>t.unlisten(r)),[t])}function j(e,t=h.t){let r=v(),[n,s]=(0,a.useState)(()=>e(r.items));return y(r=>{let o=e(r);t(n,o)||s(o)}),n}function w(e){return e.startsWith("#")?e.slice(1):null}var C=class{constructor(){this.items=[],this.single=!1,this.observer=null,this.listeners=new Set}listen(e){this.listeners.add(e)}unlisten(e){this.listeners.delete(e)}setItems(e){let t=this.observer;if(t)for(let e of this.items){let r=document.getElementById(e.id);r&&t.unobserve(r)}let r=[];for(let t of e){let e=w(t.url);e&&r.push({id:e,active:!1,fallback:!1,t:0,original:t})}this.update(r),this.observeItems()}watch(e){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),e),this.observeItems())}unwatch(){this.observer?.disconnect(),this.observer=null}callback(e){if(0===e.length)return;let t=!1,r=this.items.map(r=>{let n=e.find(e=>e.target.id===r.id),s=n?n.isIntersecting:r.active&&!r.fallback;return this.single&&t&&(s=!1),r.active!==s&&(r={...r,t:Date.now(),active:s,fallback:!1}),s&&(t=!0),r});if(!t&&e[0].rootBounds){let t=e[0].rootBounds.top,n=Number.MAX_VALUE,s=-1;for(let e=0;e<r.length;e++){let o=document.getElementById(r[e].id);if(!o)continue;let i=Math.abs(t-o.getBoundingClientRect().top);i<n&&(s=e,n=i)}-1!==s&&(r[s]={...r[s],active:!0,fallback:!0,t:Date.now()})}this.update(r)}observeItems(){if(this.observer)for(let e of this.items){let t=document.getElementById(e.id);t&&this.observer.observe(t)}}update(e){for(let t of(this.items=e,this.listeners))t(e)}};e.s(["AnchorProvider",0,function({toc:e,single:t=!1,children:r}){let n=(0,a.useMemo)(()=>new C,[]);return n.single=t,(0,a.useEffect)(()=>{n.setItems(e)},[n,e]),(0,a.useEffect)(()=>(n.watch({threshold:.9}),()=>n.unwatch()),[n]),(0,o.jsx)(p,{value:n,children:r})},"ScrollProvider",0,function({containerRef:e,children:t}){return(0,o.jsx)(x,{value:e,children:t})},"TOCItem",0,g,"useActiveAnchor",0,function(){return j(e=>{let t;for(let r of e)r.active&&(!t||r.t>t.t)&&(t=r);return t?.id})},"useActiveAnchors",0,function(){return j(e=>{let t=[];
1for(let r of e)r.active&&t.push(r.id);return t})},"useItems",0,function(){return j(e=>e)},"useTOC",0,b,"useTOCListener",0,y,"useTOCSelector",0,j],64588);var k=e.i(64588);let N=(0,a.createContext)([]);function R(){return(0,a.use)(N)}let{useActiveAnchor:I,useActiveAnchors:S,useItems:P}=k;function T({toc:e,children:t,...r}){return(0,o.jsx)(N,{value:e,children:(0,o.jsx)(k.AnchorProvider,{toc:e,...r,children:t})})}function E({ref:e,className:r,...n}){let s=(0,a.useRef)(null);return(0,o.jsx)("div",{ref:(0,f.mergeRefs)(s,e),className:(0,t.cn)("relative min-h-0 text-sm ms-px overflow-auto overscroll-contain [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",r),...n,children:(0,o.jsx)(k.ScrollProvider,{containerRef:s,children:n.children})})}var M=e.i(532257),L=(0,u.__exportAll)({TOCEmpty:()=>$,TOCItem:()=>z,TOCItems:()=>A});function A({ref:e,className:r,thumbBox:n=!0,children:s,...i}){let l=(0,a.useRef)(null),c=R(),[u,d]=(0,a.useState)(null),h=(0,a.useCallback)(()=>{let e=l.current;if(!e||0===e.clientHeight)return;if(0===c.length)return void d(null);let t=0,r=0,s="",i=[],a=[];for(let n=0;n<c.length;n++){let l=c[n],u=e.querySelector(`a[href="${l.url}"]`);if(!u)continue;let d=getComputedStyle(u),f=D(l.depth)+.5,h=u.offsetTop+parseFloat(d.paddingTop),m=u.offsetTop+u.clientHeight-parseFloat(d.paddingBottom);if(t=Math.max(f+8,t),r=Math.max(r,m),0===n)s+=` M${f} ${h} L${f} ${m}`;else{let[,e,t]=n>0?i[n-1]:[0,0,0];s+=` C ${t} ${h-4} ${f} ${e+4} ${f} ${h} L${f} ${m}`}void 0!==l._step&&a.push((0,o.jsxs)("g",{transform:`translate(${f}, ${(h+m)/2})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"0",r:"8",className:"fill-fd-primary"}),(0,o.jsx)("text",{cx:"0",cy:"0",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-primary-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:l._step})]},n)),i.push([h,m,f])}a.unshift((0,o.jsx)("path",{d:s,className:"stroke-fd-primary",strokeWidth:"1",fill:"none"},"path"));let u=[];if(n){let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",s);let t=e.getTotalLength();for(let r=0;r<i.length;r++){let[n,s]=i[r],o=r>0?u[r-1][1]+(n-i[r-1][1]):n;for(;o<t&&e.getPointAtLength(o).y<n;)o++;u.push([o,o+s-n])}}d({content:a,width:t,height:r,d:s,itemLineLengths:u,positions:i})},[c,n]);return(0,a.useEffect)(()=>{let e=l.current;if(!e)return;let t=new ResizeObserver(h);return t.observe(e),h(),()=>{t.unobserve(e)}},[h]),(0,o.jsxs)("div",{ref:(0,f.mergeRefs)(l,e),className:(0,t.cn)("relative flex flex-col",r),...i,children:[u&&(0,o.jsx)(O,{computed:u,thumbBox:n}),s]})}function $(){let e=(0,M.useTranslations)({note:"table of contents"});return(0,o.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:e("No Headings")})}function O({computed:e,thumbBox:t}){let r=(0,a.useRef)(null),n=(0,a.useRef)(null),s=b();function i(r){let s={},o=r.findIndex(e=>e.active);if(-1===o)return s;let i=r.findLastIndex(e=>e.active);if(s["--track-top"]=`${e.positions[o][0]}px`,s["--track-bottom"]=`${e.positions[i][1]}px`,t){let t=!1;if(n.current){let e=n.current;t=e.startIdx>o||e.endIdx>i||e.startIdx===o&&e.endIdx===i&&e.isUp}n.current={startIdx:o,endIdx:i,isUp:t},s["--offset-distance"]=t?`${e.itemLineLengths[o][0]}px`:`${e.itemLineLengths[i][1]}px`,s["--opacity"]=void 0!==r[t?o:i].original._step?"0":"1"}return s}return y(e=>{let t=r.current;if(t)for(let[r,n]of Object.entries(i(e)))t.style.setProperty(r,n)}),(0,o.jsxs)("div",{ref:r,className:"absolute top-0 inset-s-0 origin-center rtl:-scale-x-100",style:{width:e.width,height:e.height,...i(s.get())},children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.width} ${e.height}`,className:"absolute transition-[clip-path]",style:{width:e.width,height:e.height,clipPath:"polygon(0 var(--track-top,0), 100% var(--track-top,0), 100% var(--track-bottom,0), 0 var(--track-bottom,0))"},children:e.content}),t&&(0,o.jsx)("div",{className:"absolute left-0 size-1 bg-fd-primary rounded-full [offset-distance:var(--offset-distance,0)] opacity-(--opacity,0) transition-[opacity,offset-distance]",style:{offsetPath:`path("${e.d}")`}})]})}function D(e){return e<=2?8:3===e?16:24}function z({item:e,...r}){var n;let s=R(),{isFirst:i,isLast:l,svg:c}=(0,a.useMemo)(()=>{let r=s.indexOf(e),n=0===r,i=r===s.length-1,a=D(e.depth),l=n?a:D(s[r-1].depth),c=i?a:D(s[r+1].depth);return{isFirst:n,isLast:i,svg:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,t.cn)("absolute -top-1.5 inset-s-0 bottom-0 h-[calc(100%+--spacing(1.5))] -z-1 rtl:-scale-x-100",a!==c&&"h-full bottom-1.5"),style:{width:Math.max(l,a)+9},children:[l!==a&&(0,o.jsx)("path",{d:`M ${l+.5} 0 C ${l+.5} 8 ${a+.5} 4 ${a+.5} 12`,stroke:"black",strokeWidth:"1",fill:"none",className:"stroke-fd-foreground
1/10"}),(0,o.jsx)("line",{x1:a+.5,y1:l===a?"6":"12",x2:a+.5,y2:"100%",strokeWidth:"1",className:"stroke-fd-foreground/10"}),void 0!==e._step&&(0,o.jsxs)("g",{transform:`translate(${a+.5}, ${a===c?"3":"6"})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"50%",r:"8",className:"fill-fd-muted"}),(0,o.jsx)("text",{x:"0",y:"50%",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-muted-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:e._step})]})]})}},[s,e]);return(0,o.jsxs)(g,{href:e.url,...r,className:(0,t.cn)("prose relative py-1.5 text-sm scroll-m-4 text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere data-[active=true]:text-fd-primary",i&&"pt-0",l&&"pb-0",r.className),style:{paddingInlineStart:(n=e.depth)<=2?20:3===n?32:44,...r.style},children:[c,e.title]})}var B=(0,u.__exportAll)({TOCEmpty:()=>_,TOCItem:()=>W,TOCItems:()=>F});function F({ref:e,className:r,children:n,...s}){let i=(0,a.useRef)(null),l=R(),[c,u]=(0,a.useState)(null),d=(0,a.useCallback)(()=>{let e=i.current;if(!e||0===e.clientHeight)return;if(0===l.length)return void u(null);let t=0,r=0,n="",s=[],a=[];for(let i=0;i<l.length;i++){let c=l[i],u=e.querySelector(`a[href="${c.url}"]`);if(!u)continue;let d=getComputedStyle(u),f=V(c.depth)+.5,h=u.offsetTop+parseFloat(d.paddingTop),m=u.offsetTop+u.clientHeight-parseFloat(d.paddingBottom);if(t=Math.max(f+8,t),r=Math.max(r,m),0===i)n+=` M${f} ${h} L${f} ${m}`;else{let[,e,t]=i>0?s[i-1]:[0,0,0];n+=` L ${t} ${e} ${f} ${h} L${f} ${m}`}void 0!==c._step&&a.push((0,o.jsxs)("g",{transform:`translate(${f}, ${(h+m)/2})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"0",r:"8",className:"fill-fd-primary"}),(0,o.jsx)("text",{cx:"0",cy:"0",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-primary-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:c._step})]},i)),s.push([h,m,f])}a.unshift((0,o.jsx)("path",{d:n,className:"stroke-fd-primary",strokeWidth:"1",fill:"none"},"path")),u({content:a,width:t,height:r,d:n,itemLineLengths:[],positions:s})},[l]);return(0,a.useEffect)(()=>{let e=i.current;if(!e)return;let t=new ResizeObserver(d);return t.observe(e),d(),()=>{t.unobserve(e)}},[d]),(0,o.jsxs)("div",{ref:(0,f.mergeRefs)(i,e),className:(0,t.cn)("relative flex flex-col",r),...s,children:[c&&(0,o.jsx)(H,{computed:c}),n]})}function _(){let e=(0,M.useTranslations)({note:"table of contents"});return(0,o.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:e("No Headings")})}function H({computed:e}){let t=(0,a.useRef)(null),r=b();function n(t){let r={},n=t.findIndex(e=>e.active);if(-1===n)return r;let s=t.findLastIndex(e=>e.active);return r["--track-top"]=`${e.positions[n][0]}px`,r["--track-bottom"]=`${e.positions[s][1]}px`,r}return y(e=>{let r=t.current;if(r)for(let[t,s]of Object.entries(n(e)))r.style.setProperty(t,s)}),(0,o.jsx)("div",{ref:t,className:"absolute top-0 inset-s-0 origin-center rtl:-scale-x-100",style:{width:e.width,height:e.height,...n(r.get())},children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.width} ${e.height}`,className:"absolute transition-[clip-path]",style:{width:e.width,height:e.height,clipPath:"polygon(0 var(--track-top,0), 100% var(--track-top,0), 100% var(--track-bottom,0), 0 var(--track-bottom,0))"},children:e.content})})}function V(e){return e<=2?8:3===e?20:32}function W({item:e,...r}){var n;let s=R(),{isFirst:i,isLast:l,svg:c}=(0,a.useMemo)(()=>{let r=s.indexOf(e),n=0===r,i=r===s.length-1,a=V(e.depth),l=n?a:V(s[r-1].depth),c=i?a:V(s[r+1].depth);return{isFirst:n,isLast:i,svg:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,t.cn)("absolute -top-1.5 inset-s-0 bottom-0 h-[calc(100%+--spacing(1.5))] -z-1 rtl:-scale-x-100",a!==c&&"h-full bottom-1.5"),style:{width:Math.max(l,a)+9},children:[l!==a&&(0,o.jsx)("path",{d:`M ${l+.5} 0 L ${l+.5} 0 ${a+.5} 12`,stroke:"black",strokeWidth:"1",fill:"none",className:"stroke-fd-foreground/10"}),(0,o.jsx)("line",{x1:a+.5,y1:l===a?"6":"12",x2:a+.5,y2:"100%",strokeWidth:"1",className:"stroke-fd-foreground
1/10"}),void 0!==e._step&&(0,o.jsxs)("g",{transform:`translate(${a+.5}, ${a===c?"3":"6"})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"50%",r:"8",className:"fill-fd-muted"}),(0,o.jsx)("text",{x:"0",y:"50%",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-muted-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:e._step})]})]})}},[s,e]);return(0,o.jsxs)(g,{href:e.url,...r,className:(0,t.cn)("prose relative py-1.5 text-sm scroll-m-4 text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere data-[active=true]:text-fd-primary",i&&"pt-0",l&&"pb-0",r.className),style:{paddingInlineStart:(n=e.depth)<=2?20:3===n?32:44,...r.style},children:[c,e.title]})}var U=e.i(451988);e.i(922943);var G=e.i(716327),K=e.i(456420);let q={name:"text-align-start",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],aliases:["text","align-left"]};q.node;let Z=(0,K.default)(q);function X(e){return(0,o.jsx)(T,{...e})}function Y({container:e,header:r,footer:n,style:s="normal",list:i}){let a=R(),l=(0,M.useTranslations)({note:"table of contents"}),{TOCItems:c,TOCEmpty:u,TOCItem:d}="clerk"===s?B:L;return 0!==a.length||r||n?(0,o.jsxs)("div",{id:"nd-toc",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-1) h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] flex flex-col [grid-area:toc] w-(--fd-toc-width) pt-12 pe-4 pb-2 xl:layout:[--fd-toc-width:268px] max-xl:hidden",e?.className),children:[r,(0,o.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,o.jsx)(Z,{className:"size-4"}),l("On this page")]}),(0,o.jsx)(E,{children:(0,o.jsxs)(c,{...i,children:[0===a.length&&(0,o.jsx)(u,{}),a.map(e=>(0,o.jsx)(d,{item:e},e.url))]})}),n]}):(0,o.jsx)("div",{id:"nd-toc-placeholder",className:"hidden xl:layout:[--fd-toc-width:268px]"})}let J=(0,a.createContext)(null);function Q({container:e,trigger:n,content:s,header:i,footer:l,style:c="normal",list:u}){let d=R(),f=(0,a.useRef)(null),[h,m]=(0,a.useState)(!1),{isNavTransparent:p}=(0,r.useDocsLayout)(),{TOCItems:x,TOCItem:g,TOCEmpty:v}="clerk"===c?B:L,b=(0,a.useEffectEvent)(e=>{h&&e.target instanceof HTMLElement&&f.current&&!f.current.contains(e.target)&&m(!1)}),y=()=>{m(!1)};return(0,a.useEffect)(()=>(window.addEventListener("click",b),()=>{window.removeEventListener("click",b)}),[]),(0,o.jsx)(J,{value:(0,a.useMemo)(()=>({open:h,setOpen:m}),[m,h]),children:(0,o.jsx)(U.Collapsible,{open:h,onOpenChange:m,"data-toc-popover":"",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-2) z-10 [grid-area:toc-popover] h-(--fd-toc-popover-height) xl:hidden max-xl:layout:[--fd-toc-popover-height:--spacing(10)]",e?.className),children:(0,o.jsxs)("header",{ref:f,className:(0,t.cn)("border-b backdrop-blur-sm transition-colors",(!p||h)&&"bg-fd-background/80",h&&"shadow-lg"),children:[(0,o.jsx)(ee,{...n}),(0,o.jsxs)(er,{...s,children:[i,(0,o.jsx)(E,{children:(0,o.jsxs)(x,{...u,children:[0===d.length&&(0,o.jsx)(v,{}),d.map(e=>(0,o.jsx)(g,{item:e,onClick:y},e.url))]})}),l]})]})})})}function ee({className:e,...r}){let s=(0,M.useTranslations)({note:"table of contents"}),{open:i}=(0,a.use)(J),l=P(),c=l.findIndex(e=>e.active),u=(0,n.useTreePath)().at(-1),d=-1!==c&&!i;return(0,o.jsxs)(U.CollapsibleTrigger,{className:(0,t.cn)("flex w-full h-10 items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:size-4 md:px-6",e),"data-toc-popover-trigger":"",...r,children:[(0,o.jsx)(et,{value:(l.findLastIndex(e=>e.active)+1)/Math.max(1,l.length),max:1,className:(0,t.cn)("shrink-0",i&&"text-fd-primary")}),(0,o.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate,color]",i&&"text-fd-foreground",d&&"opacity-0 -translate-y-full pointer-events-none"),children:u?.name??s("On this page")}),(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate]",!d&&"opacity-0 translate-y-full pointer-events-none"),children:l[c]?.original.title})]}),(0,o.jsx)(G.ChevronDown,{className:(0,t.cn)("shrink-0 transition-transform mx-0.5",i&&"rotate-180")}
1)]})}function et({value:e,strokeWidth:t=1.5,size:r=18,min:n=0,max:s=100,style:i,...a}){let l=e<n?n:e>s?s:e,c=r/2-t,u=2*Math.PI*c,d=l/s*u,f={cx:r/2,cy:r/2,r:c,fill:"none",strokeWidth:t};return(0,o.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":l,"aria-valuemin":n,"aria-valuemax":s,style:{width:r,height:r,...i},...a,children:[(0,o.jsx)("circle",{...f,className:"stroke-current/25"}),(0,o.jsx)("circle",{...f,stroke:"currentColor",strokeDasharray:u,strokeDashoffset:u-d,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function er(e){return(0,o.jsx)(U.CollapsibleContent,{"data-toc-popover-content":"",...e,children:(0,o.jsx)("div",{className:"flex flex-col px-4 max-h-[50vh] md:px-6",children:e.children})})}var en=e.i(600074);let es=new WeakMap;function eo(){let{root:e}=(0,n.useTreeContext)(),t=es.get(e);if(t)return t;let r=[];for(let t of e.children)!function e(t){if("folder"===t.type)for(let r of(t.index&&e(t.index),t.children))e(r);else"page"!==t.type||t.external||r.push(t)}(t);return es.set(e,r),r}var ei=e.i(224110),ea=e.i(24071);function el({items:e,children:r,className:n,...s}){let i=eo(),l=(0,ei.usePathname)(),{previous:c,next:u}=(0,a.useMemo)(()=>{if(e)return e;let t=i.findIndex(e=>(0,en.isActive)(e.url,l));return -1===t?{}:{previous:i[t-1],next:i[t+1]}},[i,e,l]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:(0,t.cn)("@container grid gap-4",c&&u?"grid-cols-2":"grid-cols-1",n),...s,children:[c&&(0,o.jsx)(ec,{item:c,index:0}),u&&(0,o.jsx)(ec,{item:u,index:1})]}),r]})}function ec({item:e,index:r}){let n=(0,M.useTranslations)({note:"pagination"}),a=0===r?ea.ChevronLeft:i.ChevronRight;return(0,o.jsxs)(s.default,{href:e.url,className:(0,t.cn)("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",1===r&&"text-end"),children:[(0,o.jsxs)("div",{className:(0,t.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,o.jsx)(a,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,o.jsx)("p",{children:e.name})]}),(0,o.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??n(0===r?"Previous Page":"Next Page")})]})}function eu(e){let{full:r}=eR();return(0,o.jsx)("main",{className:"grid [grid-area:main] justify-items-center","data-layout-main":"",children:(0,o.jsx)("article",{id:"nd-page","data-layout-content":"","data-full":r,...e,className:(0,t.cn)("flex flex-col min-w-0 w-full max-w-[900px] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14",r&&"max-w-[1168px]",e.className),children:e.children})})}var ed=e.i(737877),ef=e.i(281878),eh=e.i(689664);let em={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};em.node;let ep=(0,K.default)(em);var ex=e.i(643905),ex=ex,eg={get url(){return e.F("node_modules/fumadocs-ui/dist/layouts/shared/page-actions.js")},env:{DEV:!1,PROD:!0,MODE:"production",BASE_URL:"/",SSR:!1}};let ev=new Map;function eb({markdownUrl:e,...r}){let n=(0,M.useTranslations)({note:"page actions"}),[s,i]=(0,a.useState)(!1),[l,c]=(0,ed.useCopyButton)(async()=>{let t=ev.get(e);if(t)return navigator.clipboard.writeText(await t);i(!0);try{let t=fetch(ej(e)).then(e=>e.text());ev.set(e,t),await navigator.clipboard.write([new ClipboardItem({"text/plain":t})])}finally{i(!1)}});return(0,o.jsxs)("button",{disabled:s,onClick:c,...r,className:(0,t.cn)((0,d.buttonVariants)({color:"secondary",size:"sm",className:"gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"}),r.className),children:[l?(0,o.jsx)(eh.Check,{}):(0,o.jsx)(ep,{}),r.children??n("Copy Markdown")]})}function ey({markdownUrl:e,githubUrl:r,...n}){let s=(0,ei.usePathname)(),i=(0,M.useTranslations)({note:"page actions"}),l=(0,a.useMemo)(()=>{let t=i("Read {url}, I want to ask questions about it.",{variables:{url:String("u"<typeof window?s:new URL(s,window.location.origin))}});return[r&&{title:i("Open in GitHub"),href:r,icon:(0,o.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:[(0,o.jsx)("title",{children:"GitHub"}),(0,o.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})},e&&{title:i("View as Markdown"),href:ej(e),icon:(0,o.jsx)(Z,{})},{title:i("Open in Scira AI"),href:`https://scira.ai/?${new URLSearchParams({q:t})}`,icon:(0,o.jsxs)("svg",{width:"910",height:"934",viewBox:"0 0 910 934",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"Scira AI"}),(0,o.jsx)("path",{d:"M647.664 197.775C569.13 189.049 525.5 145.419 516.774 66.8849C508.048 145.419 464.418 189.049 385.884 197.775C464.418 206.501 508.048 250.131 516.774 328.665C525.5 250.131 569.13 206.501 647.664 197.775Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M516.774 304.217C510.299 275.491 498.208 252.087 480.335 234.214C462.462 216.341 439.058 204.251 410.333 197.775C439.059 191.3 462.462 179.209 480.335 161.336C498.208 143.463 510.299 120.06 516.774 91.334C523.25 120.059 535.34 143.463 553.213 161.336C571.086 179.209 594.49 191.3 623.216 197.775C594.49 204.251 571.086 216.341 553.213 234.214C535.34 252.087 523.25 275.491 516.774 304.217Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M857.5 508.116C763.259 497.644 710.903 445.288 700.432 351.047C689.961 445.288 637.605 497.644 543.364 508.116C637.605 518.587 689.961 570.943 700.432 665.184C710.903 570.943 763.259 518.587 857.5 508.116Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M700.432 615.957C691.848 589.05 678.575 566.357 660.383 548.165C642.191 529.973 619.499 516.7 592.593 508.116C619.499 499.533 642.191 486.258 660.383 468.066C678.575 449.874 691.848 427.181 700.432 400.274C709.015 427.181 722.289 449.874 740.481 468.066C758.673 486.258 781.365 499.533 808.271 508.116C781.365 516.7 758.673 529.973 740.481 548.165C722.289 566.357 709.015 589.05 700.432 615.957Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M889.949 121.237C831.049 114.692 798.326 81.9698 791.782 23.0692C785.237 81.9698 752.515 114.692 693.614 121.237C752.515 127.781 785.237 160.504 791.782 219.404C798.326 160.504 831.049 127.781 889.949 121.237Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M791.782 196.795C786.697 176.937 777.869 160.567 765.16 147.858C752.452 135.15 736.082 126.322 716.226 121.237C736.082 116.152 752.452 107.324 765.16 94.6152C777.869 81.9065 786.697 65.5368 791.782 45.6797C796.867 65.5367 805.695 81.9066 818.403 94.6152C831.112 107.324 847.481 116.152 867.338 121.237C847.481 126.322 831.112 135.15 818.403 147.858C805.694 160.567 796.867 176.937 791.782 196.795Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M760.632 764.337C720.719 814.616 669.835 855.1 611.872 882.692C553.91 910.285 490.404 924.255 426.213 923.533C362.022 922.812 298.846 907.419 241.518 878.531C184.19 849.643 134.228 808.026 95.4548 756.863C56.6815 705.7 30.1238 646.346 17.8129 583.343C5.50207 520.339 7.76433 455.354 24.4266 393.359C41.089 331.364 71.7099 274.001 113.947 225.658C156.184 177.315 208.919 139.273 268.117 114.442",stroke:"currentColor",strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round"})]})},{title:i("Open in ChatGPT"),href:`https://chatgpt.com/?${new URLSearchParams({prompt:t,hints:"search"})}
1`,icon:(0,o.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"OpenAI"}),(0,o.jsx)("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})},{title:i("Open in Claude"),href:`https://claude.ai/new?${new URLSearchParams({q:t})}`,icon:(0,o.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"Anthropic"}),(0,o.jsx)("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})]})},{title:i("Open in Cursor"),icon:(0,o.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"Cursor"}),(0,o.jsx)("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"})]}),href:`https://cursor.com/link/prompt?${new URLSearchParams({text:t})}`}].filter(e=>!!e)},[r,e,s,i]);return(0,o.jsxs)(ef.Popover,{children:[(0,o.jsxs)(ef.PopoverTrigger,{...n,className:(0,t.cn)((0,d.buttonVariants)({color:"secondary",size:"sm"}),"gap-2 data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",n.className),children:[n.children??i("Open"),(0,o.jsx)(G.ChevronDown,{className:"size-3.5 text-fd-muted-foreground"})]}),(0,o.jsx)(ef.PopoverContent,{className:"flex flex-col",children:l.map(e=>(0,o.jsxs)("a",{href:e.href,rel:"noreferrer noopener",target:"_blank",className:"text-sm p-2 rounded-lg inline-flex items-center gap-2 hover:text-fd-accent-foreground hover:bg-fd-accent [&_svg]:size-4",children:[e.icon,e.title,(0,o.jsx)(ex.default,{className:"text-fd-muted-foreground size-3.5 ms-auto"})]},e.href))})]})}function ej(e){return e.match(/^\w+:/)||e.startsWith("//")?e:(void 0!==eg.env&&"string"==typeof eg.env.BASE_URL?eg.env.BASE_URL.replace(/\/$/,""):"")+e}let ew={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};ew.node;let eC=(0,K.default)(ew);var ek=(0,u.__exportAll)({DocsBody:()=>eP,DocsDescription:()=>eT,DocsPage:()=>eI,DocsTitle:()=>
1eE,EditOnGitHub:()=>eS,MarkdownCopyButton:()=>eb,PageBreadcrumb:()=>c,PageFooter:()=>el,PageLastUpdate:()=>eM,ViewOptionsPopover:()=>ey,useDocsPage:()=>eR});let eN=(0,a.createContext)(null);function eR(){let e=(0,a.use)(eN);if(!e)throw Error("Please use page components under <DocsPage /> (`fumadocs-ui/layouts/docs/page`).");return e}function eI({full:e=!1,tableOfContent:{enabled:t=!e,single:r,...n}={},tableOfContentPopover:{enabled:s,...i}={},breadcrumb:{enabled:a=!0,...l}={},footer:{enabled:u=!0,...d}={},toc:f=[],slots:h={},children:m,...p}){s??=!!(f.length>0||i.header||i.footer);let x={breadcrumb:h.breadcrumb??c,footer:h.footer??el,toc:h.toc??{provider:X,main:Y,popover:Q},container:h.container??eu};return(0,o.jsx)(eN,{value:{full:e,slots:x},children:(0,o.jsxs)(x.toc.provider,{single:r,toc:t||s?f:[],children:[s&&(i.component??(0,o.jsx)(x.toc.popover,{...i})),(0,o.jsxs)(x.container,{...p,children:[a&&(l.component??(0,o.jsx)(x.breadcrumb,{...l})),m,u&&(d.component??(0,o.jsx)(x.footer,{...d}))]}),t&&(n.component??(0,o.jsx)(x.toc.main,{...n}))]})})}function eS(e){let r=(0,M.useTranslations)({note:"edit page"});return(0,o.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,t.cn)((0,d.buttonVariants)({color:"secondary",size:"sm"}),"gap-1.5 not-prose",e.className),children:e.children??(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eC,{className:"size-3.5"}),r("Edit on GitHub")]})})}function eP({children:e,className:r,...n}){return(0,o.jsx)("div",{...n,className:(0,t.cn)("prose flex-1",r),children:e})}function eT({children:e,className:r,...n}){return void 0===e?null:(0,o.jsx)("p",{...n,className:(0,t.cn)("mb-8 text-lg text-fd-muted-foreground",r),children:e})}function eE({children:e,className:r,...n}){return(0,o.jsx)("h1",{...n,className:(0,t.cn)("text-[1.75em] font-semibold",r),children:e})}function eM({date:e,...r}){let n=(0,M.useTranslations)({note:"page footer"}),[s,i]=(0,a.useState)("");return(0,a.useEffect)(()=>{i(e.toLocaleDateString())},[e]),(0,o.jsxs)("p",{...r,className:(0,t.cn)("text-sm text-fd-muted-foreground",r.className),children:[n("Last updated on")," ",s]})}var eL=e.i(874072);e.i(187302),e.i(411150);var eA=e.i(670956),e$=e.i(183374),eO=e.i(283978);e.i(379654),e.i(999092),e.i(127652),e.i(263676);let eD=(0,e.i(225913).cva)("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:inset-s-2.5"}}});function ez(e){return`calc(${2+3*e} * var(--spacing))`}let{useSidebar:eB}=eA.base_exports;function eF(e){return(0,o.jsx)(eA.SidebarFolder,{...e})}function e_({className:e,style:r,children:n,...s}){let i=(0,eA.useFolderDepth)();return(0,o.jsx)(eA.SidebarItem,{className:(0,t.cn)(eD({variant:"link",highlight:i>=1}),e),style:{paddingInlineStart:ez(i),...r},...s,children:n})}function eH({className:e,style:r,...n}){let{depth:s,collapsible:i}=(0,eA.useFolder)();return(0,o.jsx)(eA.SidebarFolderTrigger,{className:(0,t.cn)(eD({variant:i?"button":null}),"w-full",e),style:{paddingInlineStart:ez(s-1),...r},...n,children:n.children})}function eV({className:e,style:r,...n}){let s=(0,eA.useFolderDepth)();return(0,o.jsx)(eA.SidebarFolderLink,{className:(0,t.cn)(eD({variant:"link",highlight:s>1}),"w-full",e),style:{paddingInlineStart:ez(s-1),...r},...n,children:n.children})}function eW({className:e,children:r,...n}){let s=(0,eA.useFolderDepth)();return(0,o.jsx)(eA.SidebarFolderContent,{className:(0,t.cn)("relative",1===s&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:inset-s-2.5",e),...n,children:(0,o.jsx)("div",{className:"flex flex-col gap-0.5 pt-0.5",children:r})})}(0,e$.createPageTreeRenderer)({SidebarFolder:eF,SidebarFolderContent:eW,SidebarFolderLink:eV,SidebarFolderTrigger:eH,SidebarItem:e_,SidebarSeparator:function({className:e,style:r,children:n,...s}){let i=(0,eA.useFolderDepth)();return(0,o.jsx)(eA.SidebarSeparator,{className:(0,t.cn)("inline-flex items-center gap-2 mb-1.5 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",0===i&&"first:mt-0",e),style:{paddingInlineStart:ez(i),...r},...s,children:n})}}),(0,eO.createLinkItemRenderer)({SidebarFolder:eF,SidebarFolderContent:eW,SidebarFolderLink:eV,SidebarFolderTrigger:eH,SidebarItem:e_}),e.i(221229);let{useBaseSlots:eU}=(0,eL.baseSlots)({useProps:()=>eK().props}),eG=(0,a.createContext)(null);function eK(){let e=(0,a.use)(eG);if(!e)throw Error("Please use <DocsPage /> (`fumadocs-ui/layouts/notebook/page`) under <DocsLayout /> (`fumadocs-ui/layouts/notebook`).");return e}function eq(e){return(0,o.jsx)(T,{...e})}
1function eZ({container:e,header:r,footer:n,style:s="normal",list:i}){let a=R(),l=(0,M.useTranslations)({note:"table of contents"}),{TOCItems:c,TOCEmpty:u,TOCItem:d}="clerk"===s?B:L;return 0!==a.length||n||r?(0,o.jsxs)("div",{id:"nd-toc",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-3) [grid-area:toc] h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] flex flex-col w-(--fd-toc-width) pt-12 pe-4 pb-2 xl:layout:[--fd-toc-width:268px] max-xl:hidden",e?.className),children:[r,(0,o.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,o.jsx)(Z,{className:"size-4"}),l("On this page")]}),(0,o.jsx)(E,{children:(0,o.jsxs)(c,{...i,children:[0===a.length&&(0,o.jsx)(u,{}),a.map(e=>(0,o.jsx)(d,{item:e},e.url))]})}),n]}):(0,o.jsx)("div",{id:"nd-toc-placeholder",className:"hidden xl:layout:[--fd-toc-width:268px]"})}let eX=(0,a.createContext)(null);function eY({container:e,trigger:r,content:n,header:s,footer:i,style:l="normal",list:c}){let u=R(),d=(0,a.useRef)(null),[f,h]=(0,a.useState)(!1),{isNavTransparent:m}=eK(),{TOCItems:p,TOCItem:x,TOCEmpty:g}="clerk"===l?B:L,v=(0,a.useEffectEvent)(e=>{f&&e.target instanceof HTMLElement&&d.current&&!d.current.contains(e.target)&&h(!1)}),b=()=>{h(!1)};return(0,a.useEffect)(()=>(window.addEventListener("click",v),()=>{window.removeEventListener("click",v)}),[]),(0,o.jsx)(eX,{value:(0,a.useMemo)(()=>({open:f,setOpen:h}),[h,f]),children:(0,o.jsx)(U.Collapsible,{open:f,onOpenChange:h,"data-toc-popover":"",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-2) z-10 [grid-area:toc-popover] h-(--fd-toc-popover-height) xl:hidden max-xl:layout:[--fd-toc-popover-height:--spacing(10)]",e?.className),children:(0,o.jsxs)("header",{ref:d,className:(0,t.cn)("border-b backdrop-blur-sm transition-colors",(!m||f)&&"bg-fd-background/80",f&&"shadow-lg"),children:[(0,o.jsx)(eJ,{...r}),(0,o.jsxs)(e0,{...n,children:[s,(0,o.jsx)(E,{children:(0,o.jsxs)(p,{...c,children:[0===u.length&&(0,o.jsx)(g,{}),u.map(e=>(0,o.jsx)(x,{item:e,onClick:b},e.url))]})}),i]})]})})})}function eJ({className:e,...r}){let s=(0,M.useTranslations)({note:"table of contents"}),{open:i}=(0,a.use)(eX),l=P(),c=l.findIndex(e=>e.active),u=(0,n.useTreePath)().at(-1),d=-1!==c&&!i;return(0,o.jsxs)(U.CollapsibleTrigger,{className:(0,t.cn)("flex w-full h-10 items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:size-4 md:px-6",e),"data-toc-popover-trigger":"",...r,children:[(0,o.jsx)(eQ,{value:(l.findLastIndex(e=>e.active)+1)/Math.max(1,l.length),max:1,className:(0,t.cn)("shrink-0",i&&"text-fd-primary")}),(0,o.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate,color]",i&&"text-fd-foreground",d&&"opacity-0 -translate-y-full pointer-events-none"),children:u?.name??s("On this page")}),(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate]",!d&&"opacity-0 translate-y-full pointer-events-none"),children:l[c]?.original.title})]}),(0,o.jsx)(G.ChevronDown,{className:(0,t.cn)("shrink-0 transition-transform mx-0.5",i&&"rotate-180")})]})}function eQ({value:e,strokeWidth:t=1.5,size:r=18,min:n=0,max:s=100,style:i,...a}){let l=e<n?n:e>s?s:e,c=r/2-t,u=2*Math.PI*c,d=l/s*u,f={cx:r/2,cy:r/2,r:c,fill:"none",strokeWidth:t};return(0,o.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":l,"aria-valuemin":n,"aria-valuemax":s,style:{width:r,height:r,...i},...a,children:[(0,o.jsx)("circle",{...f,className:"stroke-current/25"}),(0,o.jsx)("circle",{...f,stroke:"currentColor",strokeDasharray:u,strokeDashoffset:u-d,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function e0(e){return(0,o.jsx)(U.CollapsibleContent,{"data-toc-popover-content":"",...e,children:(0,o.jsx)("div",{className:"flex flex-col px-4 max-h-[50vh] md:px-6",children:e.children})})}function e1({items:e,children:r,className:n,...s}){let i=eo(),l=(0,ei.usePathname)(),{previous:c,next:u}=(0,a.useMemo)(()=>
1{if(e)return e;let t=i.findIndex(e=>(0,en.isActive)(e.url,l));return -1===t?{}:{previous:i[t-1],next:i[t+1]}},[i,e,l]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:(0,t.cn)("@container grid gap-4",c&&u?"grid-cols-2":"grid-cols-1",n),...s,children:[c&&(0,o.jsx)(e2,{item:c,index:0}),u&&(0,o.jsx)(e2,{item:u,index:1})]}),r]})}function e2({item:e,index:r}){let n=(0,M.useTranslations)({note:"pagination"}),a=0===r?ea.ChevronLeft:i.ChevronRight;return(0,o.jsxs)(s.default,{href:e.url,className:(0,t.cn)("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",1===r&&"text-end"),children:[(0,o.jsxs)("div",{className:(0,t.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,o.jsx)(a,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,o.jsx)("p",{children:e.name})]}),(0,o.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??n(0===r?"Previous Page":"Next Page")})]})}function e4({includeRoot:e,includeSeparator:r,includePage:c,...u}){let d=(0,n.useTreePath)(),{root:f}=(0,n.useTreeContext)(),h=(0,a.useMemo)(()=>(0,l.getBreadcrumbItemsFromPath)(f,d,{includePage:c,includeSeparator:r,includeRoot:e}),[c,e,r,d,f]);return 0===h.length?null:(0,o.jsx)("div",{...u,className:(0,t.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",u.className),children:h.map((e,r)=>{let n=(0,t.cn)("truncate",r===h.length-1&&"text-fd-primary font-medium");return(0,o.jsxs)(a.Fragment,{children:[0!==r&&(0,o.jsx)(i.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,o.jsx)(s.default,{href:e.url,className:(0,t.cn)(n,"transition-opacity hover:opacity-80"),children:e.name}):(0,o.jsx)("span",{className:n,children:e.name})]},r)})})}function e5(e){let{full:r}=e8();return(0,o.jsx)("main",{className:"grid [grid-area:main]","data-layout-main":"",children:(0,o.jsx)("article",{id:"nd-page","data-layout-content":"","data-full":r,...e,className:(0,t.cn)("flex flex-col min-w-0 px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14 *:max-w-[900px]",r&&"*:max-w-[1285px]",e.className),children:e.children})})}var e7=(0,u.__exportAll)({DocsBody:()=>te,DocsDescription:()=>tt,DocsPage:()=>e3,DocsTitle:()=>tr,EditOnGitHub:()=>e9,MarkdownCopyButton:()=>eb,PageBreadcrumb:()=>e4,PageFooter:()=>e1,PageLastUpdate:()=>tn,ViewOptionsPopover:()=>ey,useDocsPage:()=>e8});let e6=(0,a.createContext)(null);function e8(){let e=(0,a.use)(e6);if(!e)throw Error("Please use page components under <DocsPage /> (`fumadocs-ui/layouts/notebook/page`).");return e}function e3({full:e=!1,tableOfContent:{enabled:t=!e,single:r,...n}={},tableOfContentPopover:{enabled:s,...i}={},breadcrumb:{enabled:a=!0,...l}={},footer:{enabled:c=!0,...u}={},toc:d=[],slots:f={},children:h,...m}){s??=!!(d.length>0||i.header||i.footer);let p={breadcrumb:f.breadcrumb??e4,footer:f.footer??e1,toc:f.toc??{provider:eq,main:eZ,popover:eY},container:f.container??e5};return(0,o.jsx)(e6,{value:{full:e,slots:p},children:(0,o.jsxs)(p.toc.provider,{single:r,toc:t||s?d:[],children:[s&&(i.component??(0,o.jsx)(p.toc.popover,{...i})),(0,o.jsxs)(p.container,{...m,children:[a&&(l.component??(0,o.jsx)(p.breadcrumb,{...l})),h,c&&(u.component??(0,o.jsx)(p.footer,{...u}))]}),t&&(n.component??(0,o.jsx)(p.toc.main,{...n}))]})})}function e9(e){let r=(0,M.useTranslations)({note:"edit page"});return(0,o.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,t.cn)((0,d.buttonVariants)({color:"secondary",size:"sm"}),"gap-1.5 not-prose",e.className),children:e.children??(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eC,{className:"size-3.5"}),r("Edit on GitHub")]})})}function te({children:e,className:r,...n}){return(0,o.jsx)("div",{...n,className:(0,t.cn)("prose flex-1",r),children:e})}function tt({children:e,className:r,...n}){return void 0===e?null:(0,o.jsx)("p",{...n,className:(0,t.cn)("mb-8 text-lg text-fd-muted-foreground",r),children:e})}function tr({children:e,className:r,...n}){return(0,o.jsx)("h1",{...n,className:(0,t.cn)("text-[1.75em] font-semibold",r),children:e})}function tn({date:e,...r}){let n=(0,M.useTranslations)({note:"page footer"}),[s,i]=(0,a.useState)("");return(0,a.useEffect)(()=>{i(e.toLocaleDateString())},[e]),(0,o.jsxs)("p",{...r,className:(0,t.cn)("text-sm text-fd-muted-foreground",r.className),children:[n("Last updated on")," ",s]})}function ts(e){return(0,o.jsx)("main",{...e,className:(0,t.cn)("w-full max-w-[1400px] mx-auto px-4 py-12",e.className),children:(0,o.jsx)("article",{className:"prose",children:e.children})})}function to({lastUpdate:e,editOnGithub:t,children:n,...s}){let{DocsPage:i,EditOnGitHub:a,PageLastUpdate:l}=(0,r.useIsDocsLayout)()?ek:e7;return(0,o.jsxs)(i,{...s,children:[n,(0,o.jsxs)("div",{className:"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden",children:[t&&(0,o.jsx)(a,{href:`https://github.com/${t.owner}/${t.repo}/blob/${t.sha}/${t.path.startsWith("/")?t.path.slice(1):t.path}`}),e&&(0,o.jsx)(l,{date:new Date(e)})]})]})}e.s(["DocsPage",0,to,"withArticle",0,ts],512409),e.i(512409),e.s(["DocsBody",0,eP,"DocsDescription",0,eT,"DocsPage",0,to,"DocsTitle",0,eE,"EditOnGitHub",0,eS,"PageBreadcrumb",0,c,"PageLastUpdate",0,eM,"withArticle",0,ts],353266)},737877,e=>{"use strict";var t=e.i(271645);e.s(["useCopyButton",0,function(e){let[r,n]=(0,t.useState)(!1),s=(0,t.useRef)(e),o=(0,t.useRef)(null);s.current=e;let i=(0,t.useCallback)(()=>{o.current&&window.clearTimeout(o.current),Promise.resolve(s.current()).then(()=>{n(!0),o.current=window.setTimeout(()=>{n(!1)},1500)})},[]);return(0,t.useEffect)(()=>()=>{o.current&&window.clearTimeout(o.current)},[]),[r,i]}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.