PageSourceSearch

https://mondoo.com/docs/_next/static/chunks/1kl6jr6z5l5e4.js

js mondoo.com collected 2026-09-24 21:46:37 UTC 35,249 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,872685,e=>{"use strict";var t=e.i(124787),n=e.i(376019),r=e.i(717127),i=e.i(849536),s=e.i(565566);let o={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};o.node;let a=(0,s.default)(o);var l=e.i(147502),c=e.i(179628),u=e.i(447268),d=e.i(561732),f=e.i(59377),m=e.i(122722);let h={name:"book-bookmark",size:24,node:[["path",{d:"M10 2v7.751a.25.25 0 00.407.195l2.28-1.834a.5.5 0 01.627 0l2.28 1.834A.25.25 0 0016 9.751V2",key:"x9x4jl"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 016.5 2H19a1 1 0 011 1v18a1 1 0 01-1 1H6.5a1 1 0 010-5H20",key:"1889un"}]],aliases:["book-marked"]};h.node;let p=(0,s.default)(h),x={name:"newspaper",size:24,node:[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]]};x.node;let v=(0,s.default)(x);var g=e.i(444409);let j=[{title:"Platform",url:"/start/what-is-mondoo"},{title:"cnspec",url:"/cnspec"},{title:"MQL",url:"/mql"},{title:"xgrep",url:"/xgrep"},{title:"VS Code",url:"/vscode"}],w=[{title:"Release Highlights",description:"What is new in Mondoo",url:"/releases",icon:v},{title:"Glossary",description:"Definitions of Mondoo terms",url:"/glossary",icon:p}];function y(){return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("a",{href:"https://mondoo.com",className:"flex items-center hover:opacity-80 transition-opacity","aria-label":"Mondoo home",children:(0,t.jsx)(g.MondooIcon,{className:"w-7 h-7 text-fd-foreground"})}),(0,t.jsx)("div",{className:"w-px h-5 bg-fd-border"}),(0,t.jsx)(n.default,{href:"/",className:"flex items-center group",children:(0,t.jsx)("span",{className:"text-base font-semibold text-fd-foreground group-hover:text-fd-primary transition-colors",children:"Docs"})})]})}let b="inline-flex items-center gap-1 p-2 text-sm text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",N=[...j.filter(e=>"Platform"!==e.title).map(e=>e.url),"/releases"];function C(e,t){let n=t.length>1?t.replace(/\/$/,""):t;return"Platform"===e.title?"/"!==n&&!N.some(e=>n===e||n.startsWith(`${e}/`)):n===e.url||n.startsWith(`${e.url}/`)}function R(){return(0,t.jsxs)(f.Popover,{children:[(0,t.jsxs)(f.PopoverTrigger,{className:(0,m.cn)(b,"group"),children:["Resources",(0,t.jsx)(i.ChevronDown,{className:"size-3.5 transition-transform group-data-[state=open]:rotate-180"})]}),(0,t.jsx)(f.PopoverContent,{align:"start",className:"flex w-72 flex-col gap-1",children:w.map(e=>(0,t.jsx)(f.PopoverClose,{asChild:!0,children:(0,t.jsxs)(n.default,{href:e.url,className:"flex gap-3 rounded-lg p-2.5 transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",children:[(0,t.jsx)(e.icon,{className:"mt-0.5 size-4 shrink-0 text-fd-muted-foreground"}),(0,t.jsxs)("span",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:e.title}),(0,t.jsx)("span",{className:"text-xs text-fd-muted-foreground",children:e.description})]})]})},e.url))})]})}function E(){let e=(0,r.usePathname)();return(0,t.jsxs)(f.Popover,{children:[(0,t.jsx)(f.PopoverTrigger,{"aria-label":"Toggle menu",className:"rounded-md p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground md:hidden",children:(0,t.jsx)(a,{className:"size-5"})}),(0,t.jsxs)(f.PopoverContent,{align:"end",className:"flex w-56 flex-col gap-0.5",children:[j.map(r=>(0,t.jsx)(f.PopoverClose,{asChild:!0,children:(0,t.jsx)(n.default,{href:r.url,"data-active":C(r,e),className:"rounded-md p-2 text-sm transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",children:r.title})},r.title)),(0,t.jsx)("div",{role:"separator",className:"my-1 border-t"}),w.map(e=>(0,t.jsx)(f.PopoverClose,{asChild:!0,children:(0,t.jsxs)(n.default,{href:e.url,className:"flex items-center gap-2 rounded-md p-2 text-sm transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",children:[(0,t.jsx)(e.icon,{className:"size-4 text-fd-muted-foreground"}
1),e.title]})},e.url)),(0,t.jsx)("div",{role:"separator",className:"my-1 border-t"}),(0,t.jsx)(u.ThemeSwitch,{className:"self-start"})]})]})}function k({mobileEnd:e,...i}){let s=(0,r.usePathname)();return(0,t.jsx)("header",{...i,className:(0,m.cn)("h-14 border-b bg-fd-background/80 backdrop-blur-lg transition-colors",i.className),children:(0,t.jsxs)("nav",{className:"mx-auto flex h-full w-full max-w-[var(--fd-layout-width,1400px)] items-center px-4",children:[(0,t.jsx)(y,{}),(0,t.jsxs)("ul",{className:"flex items-center gap-1 px-4 max-md:hidden",children:[j.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.url,"data-active":C(e,s),className:b,children:e.title})},e.title)),(0,t.jsx)("li",{children:(0,t.jsx)(R,{})})]}),(0,t.jsxs)("div",{className:"flex flex-1 items-center justify-end gap-1.5",children:[(0,t.jsx)(c.FullSearchTrigger,{hideIfDisabled:!0,className:"w-full max-w-60 rounded-full ps-2.5 max-md:hidden"}),(0,t.jsx)(u.ThemeSwitch,{className:"max-md:hidden"}),(0,t.jsx)(c.SearchTrigger,{hideIfDisabled:!0,className:"md:hidden"}),e]})]})})}e.s(["DocsNavbar",0,function(e){let{slots:n}=(0,d.useNotebookLayout)(),r=n.sidebar?.trigger;return(0,t.jsx)(k,{...e,className:(0,m.cn)("sticky top-(--fd-docs-row-1) z-40 col-span-full row-start-1 layout:[--fd-header-height:--spacing(14)]",e.className),mobileEnd:r?(0,t.jsx)(r,{"aria-label":"Open sidebar",className:"rounded-md p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground md:hidden",children:(0,t.jsx)(l.Sidebar,{className:"size-5"})}):void 0})},"HomeNavbar",0,function(e){return(0,t.jsx)(k,{...e,className:(0,m.cn)("sticky top-0 z-40",e.className),mobileEnd:(0,t.jsx)(E,{})})},"SiteNavbar",0,k],872685)},669539,e=>{"use strict";var t=e.i(733559),n=e.i(264145),r=e.i(166100),i=e.i(617739),s=e.i(124787),o=Object.defineProperty,a=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e){let o=e+"CollectionProvider",[l,c]=(0,n.createContextScope)(o),[u,d]=l(o,{collectionRef:{current:null},itemMap:new Map}),f=a(e=>{let{scope:n,children:r}=e,i=t.useRef(null),o=t.useRef(new Map).current;return(0,s.jsx)(u,{scope:n,itemMap:o,collectionRef:i,children:r})},"CollectionProvider");f.displayName=o;let m=e+"CollectionSlot",h=(0,i.createSlot)(m),p=t.forwardRef((e,t)=>{let{scope:n,children:i}=e,o=d(m,n),a=(0,r.useComposedRefs)(t,o.collectionRef);return(0,s.jsx)(h,{ref:a,children:i})});p.displayName=m;let x=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,i.createSlot)(x),j=t.forwardRef((e,n)=>{let{scope:i,children:o,...a}=e,l=t.useRef(null),c=(0,r.useComposedRefs)(n,l),u=d(x,i);return t.useEffect(()=>(u.itemMap.set(l,{ref:l,...a}),()=>void u.itemMap.delete(l))),(0,s.jsx)(g,{...{[v]:""},ref:c,children:o})});function w(n){let r=d(e+"CollectionConsumer",n);return t.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])}return j.displayName=x,a(w,"useCollection"),[{Provider:f,Slot:p,ItemSlot:j},w,c]}a(l,"createCollection");var c=new WeakMap,u=class e extends Map{static{a(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],c.set(this,!0)}set(e,t){return c.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),s=this.#e.length,o=m(e),a=o>=0?o:s+o,l=a<0||a>=s?-1:a;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let c=this.size+ +!i;o<0&&a++;let u=[...this.#e],d=!1;for(let e=a;e<c;e++)if(a===e){let s=u[e];u[e]===t&&(s=u[e+1]),i&&this.delete(t),r=this.get(s),this.set(t,n)}else{d||u[e-1]!==t||(d=!0);let n=u[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}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,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}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=d(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=d(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return d(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function d(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=f(e,t);return -1===n?void 0:e[n]}function f(e,t){let n=e.length,r=m(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function m(e){return e!=e||0===e?0:Math.trunc(e)}function h(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function p(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function x(e,t){return e[1].element&&t[1].element?p(e[1].element,t[1].element)?-1:1:0}function v(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}a(d,"at"),a(f,"toSafeIndex"),a(m,"toSafeInteger"),a(function(e){let o=e+"CollectionProvider",[l,c]=(0,n.createContextScope)(o),[d,f]=l(o,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new u,setItemMap:a(()=>void 0,"setItemMap")}),m=a(({state:e,...t})=>e?(0,s.jsx)(g,{...t,state:e}):(0,s.jsx)(p,{...t}),"CollectionProvider");m.displayName=o;let p=a(e=>{let t=R();return(0,s.jsx)(g,{...e,state:t})},"CollectionInit");p.displayName=o+"Init";let g=a(e=>{let{scope:n,children:i,state:o}=e,a=t.useRef(null),[l,c]=t.useState(null),u=(0,r.useComposedRefs)(a,c),[f,m]=o;return t.useEffect(()=>{if(!l)return;let e=v(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,s.jsx)(d,{scope:n,itemMap:f,setItemMap:m,collectionRef:u,collectionRefObject:a,collectionElement:l,children:i})},"CollectionProviderImpl");g.displayName=o+"Impl";let j=e+"CollectionSlot",w=(0,i.createSlot)(j),y=t.forwardRef((e,t)=>{let{scope:n,children:i}=e,o=f(j,n),a=(0,r.useComposedRefs)(t,o.collectionRef);return(0,s.jsx)(w,{ref:a,children:i})});y.displayName=j;let b=e+"CollectionItemSlot",N=(0,i.createSlot)(b),C=t.forwardRef((e,n)=>{let{scope:i,children:o,...a}=e,l=t.useRef(null),[c,d]=t.useState(null),m=(0,r.useComposedRefs)(n,l,d),{setItemMap:p}=f(b,i),v=t.useRef(a);h(v.current,a)||(v.current=a);let g=v.current;return t.useEffect(()=>(p(e=>c?e.has(c)?e.set(c,{...g,element:c}).toSorted(x):(e.set(c,{...g,element:c}),e.toSorted(x)):e),()=>{p(e=>c&&e.has(c)?(e.delete(c),new u(e)):e)}),[c,g,p]),(0,s.jsx)(N,{"data-radix-collection-item":"",ref:m,children:o})});function R(){return t.useState(new u)}function E(t){let{itemMap:n}=f(e+"CollectionConsumer",t);return n}return C.displayName=b,a(R,"useInitCollection"),a(E,"useCollection"),[{Provider:m,Slot:y,ItemSlot:C},{createCollectionScope:c,useCollection:E,useInitCollection:R}]},"createCollection"),a(h,"shallowEqual"),a(p,"isElementPreceding"),a(x,"sortByDocumentPosition"),a(v,"getChildListObserver"),e.s(["createCollection",0,l])},18688,e=>{"use strict";var t={get url(){return e.F("node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_@typ_aaa239aca3e1fc07f0646742be183498/node_modules/fumadocs-core/dist/url-BVHvi3_K.js")},env:{DEV:!1,PROD:!0,MODE:"production",BASE_URL:"/docs/",SSR:!1}};let n=void 0!==t.env&&"string"==typeof t.env.BASE_URL?t.env.BASE_URL:"/";e.s(["n",0,function(...e){let t="";for(let n of e)t.length>0&&(n.startsWith("/")&&(n=n.slice(1)),t.endsWith("/")||(t+="/")),t+=n;return t},"r",0,function(e){return e.startsWith("http://")||e.startsWith("https://")||(e.startsWith("/")||(e="/"+e),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1))),e},"t",0,n])},521822,e=>{"use strict";e.s(["HomeLayout",()=>eL,"useHomeLayout",()=>eI],521822);var t=e.i(733429),n=e.i(326371),r=e.i(227152),i=e.i(124787);function s(e){return(0,i.jsx)("main",{id:"nd-home-layout",...e,className:(0,r.cn)("flex flex-1 flex-col [--fd-layout-width:1400px]",e.className)})}var o=e.i(951725),a=e.i(281624),l=e.i(733559);e.i(834867);var c=e.i(264145),u=e.i(543836),d=e.i(978238),f=e.i(315671),m=e.i(166100),h=e.i(900877),p=e.i(997611),x=e.i(432567),v=e.i(669539),g=e.i(296113);function j(e){let t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(j,"name",{value:"usePrevious",configurable:!0});var w=e.i(44532),y=e.i(232253),b=Object.defineProperty,N=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),C=l.forwardRef(b(function(e,t){return(0,i.jsx)(d.Primitive.span,{...e,ref:t,style:{...N,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),R=Object.defineProperty,E=(e,t)=>R(e,"name",{value:t,configurable:!0}),k="NavigationMenu",[P,M,S]=(0,v.createCollection)(k),[T,I,O]=(0,v.createCollection)(k),[L,A]=(0,c.createContextScope)(k,[S,O]),[D,z]=L(k),[_,F]=L(k),H=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,value:r,onValueChange:s,defaultValue:o,delayDuration:a=200,skipDelayDuration:c=300,orientation:u="horizontal",dir:p,...x}=e,[v,g]=l.useState(null),j=(0,m.useComposedRefs)(t,g),w=(0,h.useDirection)(p),y=l.useRef(0),b=l.useRef(0),N=l.useRef(0),[C,R]=l.useState(!0),[P,M]=(0,f.useControllableState)({prop:r,onChange:E(e=>{let t=c>
10;""!==e?(window.clearTimeout(N.current),t&&R(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>R(!0),c)),s?.(e)},"onChange"),defaultProp:o??"",caller:k}),S=l.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>M(""),150)},[M]),T=l.useCallback(e=>{window.clearTimeout(b.current),M(e)},[M]),I=l.useCallback(e=>{P===e?window.clearTimeout(b.current):y.current=window.setTimeout(()=>{window.clearTimeout(b.current),M(e)},a)},[P,M,a]);return l.useEffect(()=>()=>{window.clearTimeout(y.current),window.clearTimeout(b.current),window.clearTimeout(N.current)},[]),(0,i.jsx)(V,{scope:n,isRootMenu:!0,value:P,dir:w,orientation:u,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(y.current),C?I(e):T(e)},onTriggerLeave:()=>{window.clearTimeout(y.current),S()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:S,onItemSelect:e=>{M(t=>t===e?"":e)},onItemDismiss:()=>M(""),children:(0,i.jsx)(d.Primitive.nav,{"aria-label":"Main","data-orientation":u,dir:w,...x,ref:j})})},"NavigationMenu")),V=E(e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:s,orientation:o,children:a,value:c,onItemSelect:u,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:p}=e,[v,g]=l.useState(null),[w,b]=l.useState(new Map),[N,C]=l.useState(null);return(0,i.jsx)(D,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:c,previousValue:j(c),baseId:(0,x.useId)(),dir:s,orientation:o,viewport:v,onViewportChange:g,indicatorTrack:N,onIndicatorTrackChange:C,onTriggerEnter:(0,y.useCallbackRef)(f),onTriggerLeave:(0,y.useCallbackRef)(m),onContentEnter:(0,y.useCallbackRef)(h),onContentLeave:(0,y.useCallbackRef)(p),onItemSelect:(0,y.useCallbackRef)(u),onItemDismiss:(0,y.useCallbackRef)(d),onViewportContentChange:l.useCallback((e,t)=>{b(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:l.useCallback(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,i.jsx)(P.Provider,{scope:t,children:(0,i.jsx)(_,{scope:t,items:w,children:a})})})},"NavigationMenuProvider"),K=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,...r}=e,s=z("NavigationMenuList",n),o=(0,i.jsx)(d.Primitive.ul,{"data-orientation":s.orientation,...r,ref:t});return(0,i.jsx)(d.Primitive.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:(0,i.jsx)(P.Slot,{scope:n,children:s.isRootMenu?(0,i.jsx)(es,{asChild:!0,children:o}):o})})},"NavigationMenuList")),[W,U]=L("NavigationMenuItem"),$=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,value:r,...s}=e,o=(0,x.useId)(),a=l.useRef(null),c=l.useRef(null),u=l.useRef(null),f=l.useRef(()=>{}),m=l.useRef(!1),h=l.useCallback((e="start")=>{if(a.current){f.current();let t=el(a.current);t.length&&ec("start"===e?t:t.reverse())}},[]),p=l.useCallback(()=>{if(a.current){let e=el(a.current);e.length&&(f.current=eu(e))}},[]);return(0,i.jsx)(W,{scope:n,value:r||o||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:a,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:(0,i.jsx)(d.Primitive.li,{...s,ref:t})})},"NavigationMenuItem")),B="NavigationMenuTrigger",G=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,disabled:r,...s}=e,o=z(B,e.__scopeNavigationMenu),a=U(B,e.__scopeNavigationMenu),c=l.useRef(null),f=(0,m.useComposedRefs)(c,a.triggerRef,t),h=em(o.baseId,a.value),p=eh(o.baseId,a.value),x=l.useRef(!1),v=l.useRef(!1),g=a.value===o.value;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(P.ItemSlot,{scope:n,value:a.value,children:(0,i.jsx)(ea,{asChild:!0,children:(0,i.jsx)(d.Primitive.button,{id:h,disabled:r,"data-disabled":r?"":void 0,"data-state":ef(g),"aria-expanded":g,"aria-controls":g?p:void 0,...s,ref:f,onPointerEnter:(0,u.composeEventHandlers)(e.onPointerEnter,()=>{v.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:(0,u.composeEventHandlers)(e.onPointerMove,ep(()=>{r||v.current||a.wasEscapeCloseRef.current||x.current||(o.onTriggerEnter(a.value),x.current=!0)})),onPointerLeave:(0,u.composeEventHandlers)(e.onPointerLeave,ep(()=>{r||(o.onTriggerLeave(),x.current=!1)})),onClick:(0,u.composeEventHandlers)(e.onClick,()=>{o.onItemSelect(a.value),v.current=g}),onKeyDown:(0,u.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===o.dir?"ArrowLeft":"ArrowRight"}[o.orientation];g&&e.key===t&&(a.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(C,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:e=>{let t=a.contentRef.current,n=e.relatedTarget,r=n===c.current,i=t?.contains(n);(r||!i)&&a.onFocusProxyEnter(r?"start":"end")}}),o.viewport&&(0,i.jsx)("span",{"aria-owns":p})]})]})},"NavigationMenuTrigger")),q="navigationMenu.linkSelect",Q=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,active:r,onSelect:s,...o}=e;return(0,i.jsx)(ea,{asChild:!0,children:(0,i.jsx)(d.Primitive.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...o,ref:t,onClick:(0,u.composeEventHandlers)(e.onClick,e=>{let t=e.target,n=new CustomEvent(q,{bubbles:!0,cancelable:!0});if(t.addEventListener(q,e=>s?.(e),{once:!0}),(0,d.dispatchDiscreteCustomEvent)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Z,{bubbles:!0,cancelable:!0});(0,d.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),Y="NavigationMenuContent",J=l.forwardRef(E(function(e,t){let{forceMount:n,...r}=e,s=z(Y,e.__scopeNavigationMenu),o=U(Y,e.__scopeNavigationMenu),a=(0,m.useComposedRefs)(o.contentRef,t),l=o.value===s.value,c={value:o.value,triggerRef:o.triggerRef,focu
1sProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...r};return s.viewport?(0,i.jsx)(X,{forceMount:n,...c,ref:a}):(0,i.jsx)(p.Presence,{present:n||l,children:(0,i.jsx)(ee,{"data-state":ef(l),...c,ref:a,onPointerEnter:(0,u.composeEventHandlers)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,u.composeEventHandlers)(e.onPointerLeave,ep(s.onContentLeave)),style:{pointerEvents:!l&&s.isRootMenu?"none":void 0,...c.style}})})},"NavigationMenuContent")),X=l.forwardRef(E(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:r}=z(Y,e.__scopeNavigationMenu);return(0,w.useLayoutEffect)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,w.useLayoutEffect)(()=>()=>r(e.value),[e.value,r]),null},"ViewportContentMounter")),Z="navigationMenu.rootContentDismiss",ee=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,value:r,triggerRef:s,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:c,onContentFocusOutside:d,...f}=e,h=z(Y,n),p=l.useRef(null),x=(0,m.useComposedRefs)(p,t),v=em(h.baseId,r),j=eh(h.baseId,r),w=M(n),y=l.useRef(null),{onItemDismiss:b}=h;l.useEffect(()=>{let e=p.current;if(h.isRootMenu&&e){let t=E(()=>{b(),c(),e.contains(document.activeElement)&&s.current?.focus()},"handleClose");return e.addEventListener(Z,t),()=>e.removeEventListener(Z,t)}},[h.isRootMenu,e.value,s,b,c]);let N=l.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===h.dir&&e.reverse();let t=e.indexOf(h.value),n=e.indexOf(h.previousValue),i=r===h.value,s=n===e.indexOf(r);if(!i&&!s)return y.current;let o=(()=>{if(t!==n){if(i&&-1!==n)return t>n?"from-end":"from-start";if(s&&-1!==t)return t>n?"to-start":"to-end"}return null})();return y.current=o,o},[h.previousValue,h.value,h.dir,w,r]);return(0,i.jsx)(es,{asChild:!0,children:(0,i.jsx)(g.DismissableLayer,{id:j,"aria-labelledby":v,"data-motion":N,"data-orientation":h.orientation,...f,ref:x,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(Z,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(e)},onFocusOutside:(0,u.composeEventHandlers)(e.onFocusOutside,e=>{d();let t=e.target;h.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,u.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,n=w().some(e=>e.ref.current?.contains(t)),r=h.isRootMenu&&h.viewport?.contains(t);(n||r||!h.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,u.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=el(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);ec(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():o.current?.focus()}}),onEscapeKeyDown:(0,u.composeEventHandlers)(e.onEscapeKeyDown,e=>{a.current=!0})})})},"NavigationMenuContentImpl")),et="NavigationMenuViewport",en=l.forwardRef(E(function(e,t){let{forceMount:n,...r}=e,s=!!z(et,e.__scopeNavigationMenu).value;return(0,i.jsx)(p.Presence,{present:n||s,children:(0,i.jsx)(er,{...r,ref:t})})},"NavigationMenuViewport")),er=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,children:r,...s}=e,o=z(et,n),a=(0,m.useComposedRefs)(t,o.onViewportChange),c=F(Y,e.__scopeNavigationMenu),[f,h]=l.useState(null),[x,v]=l.useState(null),g=f?f?.width+"px":void 0,j=f?f?.height+"px":void 0,w=!!o.value,y=w?o.value:o.previousValue,b=E(()=>{x&&h({width:x.offsetWidth,height:x.offsetHeight})},"handleSizeChange");return ed(x,b),(0,i.jsx)(d.Primitive.div,{"data-state":ef(w),"data-orientation":o.orientation,...s,ref:a,style:{pointerEvents:!w&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:(0,u.composeEventHandlers)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,u.composeEventHandlers)(e.onPointerLeave,ep(o.onContentLeave)),children:Array.from(c.items).map(([e,{ref:t,forceMount:n,...r}])=>{let s=y===e;return(0,i.jsx)(p.Presence,{present:n||s,children:(0,i.jsx)(ei,{...r,contentRef:t,isActive:s,onActiveContentChange:v})},e)})})},"NavigationMenuViewportImpl")),ei=E(({contentRef:e,isActive:t,onActiveContentChange:n,...r})=>{let s=l.useCallback(e=>{t&&e&&n(e)}
1,[t,n]),o=(0,m.useComposedRefs)(e,s);return(0,i.jsx)(ee,{...r,ref:o})},"NavigationMenuViewportItem"),es=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,...r}=e,s=z("FocusGroup",n);return(0,i.jsx)(T.Provider,{scope:n,children:(0,i.jsx)(T.Slot,{scope:n,children:(0,i.jsx)(d.Primitive.div,{dir:s.dir,...r,ref:t})})})},"FocusGroup")),eo=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ea=l.forwardRef(E(function(e,t){let{__scopeNavigationMenu:n,...r}=e,s=I(n),o=z("FocusGroupItem",n);return(0,i.jsx)(T.ItemSlot,{scope:n,children:(0,i.jsx)(d.Primitive.button,{...r,ref:t,onKeyDown:(0,u.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...eo].includes(e.key)){let t=s().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eo.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>ec(t)),e.preventDefault()}})})})},"FocusGroupItem"));function el(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:E(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function ec(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eu(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function ed(e,t){let n=(0,y.useCallbackRef)(t);(0,w.useLayoutEffect)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function ef(e){return e?"open":"closed"}function em(e,t){return`${e}-trigger-${t}`}function eh(e,t){return`${e}-content-${t}`}function ep(e){return t=>"mouse"===t.pointerType?e(t):void 0}function ex({className:e,children:t,...n}){return(0,i.jsx)($,{className:(0,r.cn)("list-none",e),...n,children:t})}function ev({className:e,children:t,...n}){return(0,i.jsx)(G,{className:(0,r.cn)("data-[state=open]:bg-fd-accent/50",e),...n,children:t})}function eg({className:e,...t}){return(0,i.jsx)(J,{className:(0,r.cn)("absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft",e),...t})}function ej({className:e,ref:t,...n}){return(0,i.jsx)("div",{ref:t,className:"flex w-full justify-center",children:(0,i.jsx)(en,{...n,className:(0,r.cn)("relative h-(--radix-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden transition-[width,height] duration-300 data-[state=closed]:animate-fd-nav-menu-out data-[state=open]:animate-fd-nav-menu-in",e)})})}E(el,"getTabbableCandidates"),E(ec,"focusFirst"),E(eu,"removeFromTabOrder"),E(ed,"useResizeObserver"),E(ef,"getOpenState"),E(em,"makeTriggerId"),E(eh,"makeContentId"),E(ep,"whenMouse");var ew=e.i(310960),ey=e.i(849536),eb=e.i(718276),eN=e.i(294237),eC=e.i(214104);let eR=(0,eN.cva)("[&_svg]:size-4",{variants:{variant:{main:"inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",button:(0,o.buttonVariants)({variant:"secondary",className:"gap-1.5"}),icon:(0,o.buttonVariants)({variant:"ghost",size:"icon"})}},defaultVariants:{variant:"main"}});function eE(e){let{navItems:t,menuItems:n,slots:s,props:{nav:a}}=eI(),l=(0,eC.useTranslations)({note:"mobile menu"});return a?.component?a.component:(0,i.jsxs)(eP,{transparentMode:a?.transparentMode,...e,children:[s.navTitle&&(0,i.jsx)(s.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),a?.children,(0,i.jsx)("ul",{className:"flex flex-row items-center gap-2 px-6 max-sm:hidden",children:t.filter(e=>!ek(e)).map((e,t)=>(0,i.jsx)(eM,{item:e,className:"text-sm"},t))}),(0,i.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1.5 flex-1 max-lg:hidden",children:[s.searchTrigger&&(0,i.jsx)(s.searchTrigger.full,{hideIfDisabled:!0,className:"w-full rounded-full ps-2.5 max-w-[240px]"}),s.themeSwitch&&(0,i.jsx)(s.themeSwitch,{}),s.languageSelect&&(0,i.jsx)(s.languageSelect.root,{children:(0,i.jsx)(eb.Languages,{className:"size-5"})}),(0,i.jsx)("ul",{className:"flex flex-row gap-2 items-center empty:hidden",children:t.filter(ek).map((e,t)=>(0,i.jsx)(eM,{className:(0,r.cn)("icon"===e.type&&"-mx-1 first:ms-0 last:me-0"),item:e},t))})]}),(0,i.jsxs)("div",{className:"flex flex-row items-center ms-auto -me-1.5 lg:hidden",children:[s.searchTrigger&&(0,i.jsx)(s.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),(0,i.jsx)(ex,{asChild:!0,children:(0,i.jsxs)("div",{children:[(0,i.jsx)(ev,{"aria-label":l("Toggle Menu",{note:"aria-label"}),className:(0,r.cn)((0,o.buttonVariants)({size:"icon",variant:"ghost",className:"group [&_svg]:size-5.5"})),onPointerMove:a?.enableHoverToOpen?void 0:e=>e.preventDefault(),children:(0,i.jsx)(ey.ChevronDown,{className:"transition-transform duration-300 group-data-[state=open]:rotate-180"})}),(0,i.jsxs)(eg,{className:"flex flex-col p-4 sm:flex-row sm:items-center sm:justify-end",children:[n.filter(e=>!ek(e)).map((e,t)=>(0,i.jsx)(eS,{item:e,className:"sm:hidden"},t)),(0,i.jsxs)("div",{className:"-ms-1.5 flex flex-row items-center gap-2 max-sm:mt-2",children:[n.filter(ek).map((e,t)=>(0,i.jsx)(eS,{item:e,className:(0,r.cn)("icon"===e.type&&"-mx-1 first:ms-0")},t)),(0,i.jsx)("div",{role:"separator",className:"flex-1"}),s.languageSelect&&(0,i.jsxs)(s.languageSelect.root,{children:[(0,i.jsx)(eb.Languages,{className:"size-5"}),s.languageSelect.text&&(0,i.jsx)(s.languageSelect.text,{}),(0,i.jsx)(ey.ChevronDown,{className:"size-3 text-fd-muted-foreground"})]}),s.themeSwitch&&(0,i.jsx)(s.themeSwitch,{})]})]})]})})]})]})}function ek(e){return"secondary"in e&&null!=e.secondary?e.secondary:"icon"===e.type}function eP({transparentMode:e="none",...t}){let[n,s]=(0,l.useState)(""),o=(0,a.useIsScrollTop)({enabled:"top"===e})??!0;return(0,i.jsx)(H,{value:n,onValueChange:s,asChild:!0,children:(0,i.jsx)("header",{id:"nd-nav",...t,className:(0,r.cn)("sticky h-14 top-0 z-40",t.className),children:(0,i.jsxs)("div",{className:(0,r.cn)("backdrop-blur-lg border-b transition-colors *:mx-auto *:max-w-(--fd-layout-width)",n.length>0&&"max-lg:shadow-lg max-lg:rounded-b-2xl",(!("top"===e?o:"always"===e)||n.length>0)&&"bg-fd-background/80"),children:[(0,i.jsx)(K,{className:"flex h-14 w-full items-center px-4",asChild:!0,children:(0,i.jsx)("nav",{children:t.children})}),(0,i.jsx)(ej,{})]})})})}function eM({item:e,...n}){if("custom"===e.type)return e.children;if("menu"===e.type){let t=e.items.map((e,t)=>{if("custom"===e.type)return(0,i.jsx)(l.Fragment,{children:e.children},t);
1let{banner:n=e.icon?(0,i.jsx)("div",{className:"w-fit rounded-md border bg-fd-muted p-1 [&_svg]:size-4",children:e.icon}):null,...s}=e.menu??{};return(0,i.jsx)(Q,{asChild:!0,children:(0,i.jsx)(ew.default,{href:e.url,external:e.external,...s,className:(0,r.cn)("flex flex-col gap-2 rounded-lg border bg-fd-card p-3 transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground",s.className),children:s.children??(0,i.jsxs)(i.Fragment,{children:[n,(0,i.jsx)("p",{className:"text-base font-medium",children:e.text}),(0,i.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden",children:e.description})]})})},`${t}-${e.url}`)});return(0,i.jsxs)(ex,{...n,children:[(0,i.jsx)(ev,{className:(0,r.cn)(eR(),"rounded-md"),children:e.url?(0,i.jsx)(ew.default,{href:e.url,external:e.external,children:e.text}):e.text}),(0,i.jsx)(eg,{className:"grid grid-cols-1 gap-2 p-4 md:grid-cols-2 lg:grid-cols-3",children:t})]})}return(0,i.jsx)(ex,{...n,children:(0,i.jsx)(Q,{asChild:!0,children:(0,i.jsx)(t.LinkItem,{item:e,"aria-label":"icon"===e.type?e.label:void 0,className:(0,r.cn)(eR({variant:e.type})),children:"icon"===e.type?e.icon:e.text})})})}function eS({item:e,...n}){if("custom"===e.type)return(0,i.jsx)("div",{className:(0,r.cn)("grid",n.className),children:e.children});if("menu"===e.type){let t=(0,i.jsxs)(i.Fragment,{children:[e.icon,e.text]});return(0,i.jsxs)("div",{className:(0,r.cn)("mb-4 flex flex-col",n.className),children:[(0,i.jsx)("p",{className:"mb-1 text-sm text-fd-muted-foreground",children:e.url?(0,i.jsx)(Q,{asChild:!0,children:(0,i.jsx)(ew.default,{href:e.url,external:e.external,children:t})}):t}),e.items.map((e,t)=>(0,i.jsx)(eS,{item:e},t))]})}return(0,i.jsx)(Q,{asChild:!0,children:(0,i.jsxs)(t.LinkItem,{item:e,className:(0,r.cn)({main:"inline-flex items-center gap-2 py-1.5 transition-colors hover:text-fd-popover-foreground
1/50 data-[active=true]:font-medium data-[active=true]:text-fd-primary [&_svg]:size-4",icon:(0,o.buttonVariants)({size:"icon",variant:"ghost"}),button:(0,o.buttonVariants)({variant:"secondary",className:"gap-1.5 [&_svg]:size-4"})}[e.type??"main"],n.className),"aria-label":"icon"===e.type?e.label:void 0,children:[e.icon,"icon"===e.type?void 0:e.text]})})}let eT=(0,l.createContext)(null);function eI(){let e=(0,l.use)(eT);if(!e)throw Error("Please use this component under <HomeLayout /> (`fumadocs-ui/layouts/home`).");return e}let{useBaseSlots:eO}=(0,t.baseSlots)({useProps:()=>eI().props});function eL(e){let{nav:{enabled:t=!0}={},slots:r,children:o,i18n:a,githubUrl:l,links:c,themeSwitch:u,searchToggle:d,...f}=e,{baseSlots:m,baseProps:h}=eO(e),p=(0,n.useLinkItems)(e),x={...m,header:r?.header??eE,container:r?.container??s};return(0,i.jsx)(eT,{value:{props:h,slots:x,...p},children:(0,i.jsxs)(x.container,{...f,children:[t&&(0,i.jsx)(x.header,{}),o]})})}}]);

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.