1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,805276,e=>{"use strict";e.s(["HomeLayout",()=>tn,"useHomeLayout",()=>te],805276);var t=e.i(996392),n=e.i(652848),r=e.i(78829),o=e.i(483830);function i(e){return(0,o.jsx)("main",{id:"nd-home-layout",...e,className:(0,r.cn)("flex flex-1 flex-col [--fd-layout-width:1400px]",e.className)})}var a=e.i(258159),s=e.i(341301),l=e.i(763294),u=e.i(515995),c=e.i(52827),d=e.i(472786),f=e.i(558959),p=e.i(294237),g=e.i(210312),m=e.i(391954);e.s([],156865),e.i(156865);var h=e.i(880269),x=e.i(497561),v=e.i(941637),b=e.i(645900),y=e.i(138273),w=e.i(144757),E=e.i(288430),C=e.i(91871),S=e.i(49465);let j=g.createContext(void 0);function P(e){let t=g.useContext(j);if(void 0===t&&!e)throw Error((0,S.default)(41));return t}let R=g.createContext(void 0);function N(){return g.useContext(R)}var T=e.i(67323),A=e.i(809622),O=e.i(660530);let k="--positioner-width",M="--positioner-height",D="--popup-width",I="--popup-height";function F(e,t,n,r){e.style.setProperty(D,`${n}px`),e.style.setProperty(I,`${r}px`),t.style.setProperty(k,`${n}px`),t.style.setProperty(M,`${r}px`)}let L=new Set([O.REASONS.triggerHover,O.REASONS.outsidePress,O.REASONS.focusOut]),z=g.forwardRef(function(e,t){let{defaultValue:n=null,value:r,onValueChange:i,actionsRef:a,delay:s=50,closeDelay:l=50,orientation:u="horizontal",onOpenChangeComplete:c}=e,d=null!=(0,w.useFloatingParentNodeId)(),f=P(!0),[p,m]=(0,x.useControlled)({controlled:r,default:n,name:"NavigationMenu",state:"value"}),C=null!=p,S=g.useRef(void 0),R=g.useRef(null),[N,D]=g.useState(null),[I,z]=g.useState(null),[V,B]=g.useState(null),[_,$]=g.useState(null),[Y,U]=g.useState(null),[W,q]=g.useState(void 0),[K,G]=g.useState(!1),J=g.useRef(null),Q=g.useRef(null),X=g.useRef(null),Z=g.useRef(null),ee=g.useRef(null),et=g.useRef(null),en=g.useRef({abortController:null,owner:null}),{mounted:er,setMounted:eo,transitionStatus:ei}=(0,A.useTransitionStatus)(C);(0,b.useIsoLayoutEffect)(()=>{let e,t;if(C||!N||!I)return;let n=(e=parseFloat(N.style.getPropertyValue(k))||0,t=parseFloat(N.style.getPropertyValue(M))||0,e<=0||t<=0?null:{width:e,height:t});n&&F(I,N,n.width,n.height)},[C,I,N]),g.useEffect(()=>{G(!1)},[p]);let ea=(0,v.useStableCallback)((e,t)=>{null==e&&(S.current=t.reason),e!==p&&i?.(e,t),!t.isCanceled&&(null==e&&(U(null),q(void 0)),m(e),d&&null==e&&t.reason===O.REASONS.linkPress&&f&&f.setValue(null,t))}),es=(0,v.useStableCallback)(()=>{let e=(0,y.ownerDocument)(R.current),t=(0,E.activeElement)(e);!(S.current&&L.has(S.current))&&(0,h.isHTMLElement)(J.current)&&(t===(0,y.ownerDocument)(I).body||(0,E.contains)(I,t))&&I&&(J.current.focus({preventScroll:!0}),J.current=void 0),eo(!1),c?.(!1),U(null),q(void 0),Q.current=null,S.current=void 0});g.useImperativeHandle(a,()=>({unmount:es}),[es]),(0,T.useOpenChangeComplete)({enabled:!a,open:C,ref:{current:I},onComplete(){C||es()}}),(0,T.useOpenChangeComplete)({enabled:!a,open:C,ref:{current:_},onComplete(){C||es()}});let el=C?Y:null,eu=g.useMemo(()=>({open:C,value:p,setValue:ea,mounted:er,transitionStatus:ei,positionerElement:N,setPositionerElement:D,popupElement:I,setPopupElement:z,viewportElement:V,setViewportElement:B,viewportTargetElement:_,setViewportTargetElement:$,activationDirection:el,setActivationDirection:U,floatingRootContext:W,setFloatingRootContext:q,currentContentRef:Q,nested:d,rootRef:R,beforeInsideRef:X,afterInsideRef:Z,beforeOutsideRef:ee,afterOutsideRef:et,prevTriggerElementRef:J,popupAutoSizeResetRef:en,delay:s,closeDelay:l,orientation:u,viewportInert:K,setViewportInert:G}),[C,p,ea,er,ei,N,I,V,_,el,W,d,s,l,u,K]),ec=(0,o.jsx)(j.Provider,{value:eu,children:(0,o.jsx)(H,{componentProps:e,forwardedRef:t,children:e.children})});return d?ec:(0,o.jsx)(w.FloatingTree,{children:ec})});function H(e){let{className:t,render:n,defaultValue:r,value:i,onValueChange:a,actionsRef:s,delay:l,closeDelay:u,orientation:c,onOpenChangeComplete:d,style:f,...p}=e.componentProps,g=(0,w.useFloatingNodeId)(),{rootRef:m,nested:h,open:x}=P(),v=(0,C.useRenderElement)(h?"div":"nav",e.componentProps,{state:{open:x,nested:h},ref:[e.forwardedRef,m],props:p});return(0,o.jsx)(R.Provider,{value:g,children:(0,o.jsx)(w.FloatingNode,{id:g,children:v})})}var V=e.i(258188),B=e.i(407647),_=e.i(704470),$=e.i(432933);let Y="data-base-ui-navigation-menu-trigger",U=g.createContext(void 0);var W=e.i(586390),q=e.i(983170);function K(){return new q.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new W.PopupTriggerMap,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}let G=g.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,s=N(),{orientation:l,open:u,floatingRootContext:c,positionerElement:d,value:f,closeDelay:p,viewportElement:m,nested:h}=P(),x=g.useMemo(()=>K(),[]),v=c||x;(0,_.useHoverFloatingInteraction)(v,{enabled:!!c&&(null!=d||null!=m||null==f),closeDelay:p,nodeId:s});let b=(0,B.useDismiss)(v,{enabled:null!=d||null==f,outsidePressEvent:"intentional",outsidePress(e){let t=(0,E.getTarget)(e);return null===t?.closest(`[${Y}]`)}}),y=c?b:void 0,w={open:u},S=h?V.EMPTY_OBJECT:{onKeyDown(e){("horizontal"===l&&("ArrowLeft"===e.key||"ArrowRight"===e.key)||"vertical"===l&&("ArrowUp"===e.key||"ArrowDown"===e.key))&&e.stopPropagation()}},j=[y?.floating||V.EMPTY_OBJECT,S,a],R=(0,C.useRenderElement)("ul",e,{state:w,ref:t,props:j,enabled:h});return h?(0,o.jsx)(U.Provider,{value:y,children:R}):(0,o.jsx)(U.Provider,{value:y,children:(0,o.jsx)($.CompositeRoot,{render:n,className:r,style:i,state:w,refs:[t],props:j,loopFocus:!1,orientation:l,tag:"ul"})})}),J=g.createContext(void 0);function Q(){let e=g.useContext(J);if(!e)throw Error((0,S.default)(39));return e}var X=e.i(446045);let Z=g.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a,...s}=e,l=(0,X.useBaseUiId)(),u=a??l,c=(0,C.useRenderElement)("li",e,{ref:t,props:s}),d=g.useMemo(()=>({value:u}),[u]);return(0,o.jsx)(J.Provider,{value:d,children:c})});var ee=e.i(731735),et=e.i(872919),en=e.i(497394),er=e.i(488515),eo=e.i(326676);eo.CommonPopupDataAttributes.open,eo.CommonPopupDataAttributes.closed,eo.CommonPopupDataAttributes.startingStyle,eo.CommonPopupDataAttributes.endingStyle;let ei={...er.popupStateMapping,...en.transitionStatusMapping,activationDirection:e=>e?{"data-activation-direction":e}:null},ea=g.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...s}
1=e,{mounted:l,viewportElement:u,value:c,activationDirection:d,currentContentRef:f,viewportTargetElement:p}=P(),{value:m}=Q(),h=N(),x=l&&c===m,y=g.useRef(null),[C,S]=g.useState(!1),[j,R]=g.useState(!1),{mounted:O,setMounted:k,transitionStatus:M}=(0,A.useTransitionStatus)(x);O&&!l&&k(!1),(0,T.useOpenChangeComplete)({ref:y,open:x,onComplete(){x||k(!1)}}),(0,b.useIsoLayoutEffect)(()=>{x&&y.current&&(f.current=y.current)},[x,f]);let D={open:x,transitionStatus:M,activationDirection:d},I=(0,v.useStableCallback)(e=>{e&&x&&(f.current=e)}),F={onFocus(e){let t=(0,E.getTarget)(e.nativeEvent);t?.hasAttribute("data-base-ui-focus-guard")||R(!0)},onBlur(e){(0,E.contains)(e.currentTarget,e.relatedTarget)||R(!1)}},L=!x&&O?{style:{position:"absolute",top:0,left:0},inert:(0,et.inertValue)(!j),...F}:F,z=p||u,H=a&&!O,B=a&&!z&&!C;return(a&&z&&!C&&S(!0),B)?(0,o.jsx)($.CompositeRoot,{render:n,className:r,style:i,state:D,refs:[t],props:[L,{hidden:!0},s],stateAttributesMapping:ei}):z&&(O||a)?ee.createPortal((0,o.jsx)(w.FloatingNode,{id:h,children:(0,o.jsx)($.CompositeRoot,{render:n,className:r,style:i,state:D,refs:[t,y,I],props:[L,H?{hidden:!0}:V.EMPTY_OBJECT,s],stateAttributesMapping:ei})}),z):null});var es=e.i(953329),el=e.i(479995),eu=e.i(550804),ec=e.i(117440),ed=e.i(517571),ef=e.i(805126),ep=e.i(180135),eg=e.i(268949),em=e.i(628284),eh=e.i(652424),ex=e.i(836274),ev=e.i(13411),eb=e.i(886437),ey=e.i(266341),ew=e.i(895600),eE=e.i(912899),eC=e.i(352915);function eS({currentTarget:e,relatedTarget:t},n){let{popupElement:r,rootRef:o,tree:i,nodeId:a}=n,s=!!i&&(0,eC.getNodeChildren)(i.nodesRef.current,a).some(e=>(0,E.contains)(e.context?.elements.floating,t));return r?!(0,E.contains)(r,e)&&!(0,E.contains)(r,t)&&!(0,E.contains)(o.current,t)&&!s:!(0,E.contains)(o.current,t)&&!s}var ej=e.i(993759);function eP(e){let{render:t,className:n,style:r,state:o=V.EMPTY_OBJECT,props:i=V.EMPTY_ARRAY,refs:a=V.EMPTY_ARRAY,metadata:s,stateAttributesMapping:l,tag:u="div",...c}=e,{compositeProps:d,compositeRef:f}=(0,ej.useCompositeItem)({metadata:s});return(0,C.useRenderElement)(u,e,{state:o,ref:[f,...a],props:[d,...i,c],stateAttributesMapping:l})}var eR=e.i(202787),eN=e.i(954567),eT=e.i(14472),eA=e.i(892237),eO=e.i(791514);let ek={width:0,height:0},eM=g.forwardRef(function(e,t){let{render:n,className:r,style:i,nativeButton:a=!0,disabled:s=!1,...l}=e,{value:u,setValue:c,mounted:d,open:f,positionerElement:p,setActivationDirection:m,setFloatingRootContext:h,popupElement:x,viewportElement:y,transitionStatus:C,rootRef:S,beforeOutsideRef:j,afterOutsideRef:R,afterInsideRef:T,beforeInsideRef:A,prevTriggerElementRef:L,popupAutoSizeResetRef:z,currentContentRef:H,delay:B,closeDelay:_,orientation:$,setViewportInert:W,nested:q}=P(),{value:K}=Q(),G=N(),J=(0,w.useFloatingTree)(),X=g.useContext(U),Z=(0,eO.useDirection)(),et=(0,eu.useTimeout)(),en=(0,ec.useAnimationFrame)(),eo=(0,ec.useAnimationFrame)(),ei=(0,ec.useAnimationFrame)(),[ea,eC]=g.useState(null),[ej,eM]=g.useState(!0),[eD,eI]=g.useState(""),eF=g.useRef(null),eL=g.useRef(ek),ez=g.useRef(!1),eH=f&&u===K,eV=(0,ed.useValueAsRef)(eH),eB=(null!=p||null==u)&&!s,e_=p||y,e$=(null!=e_||null==u)&&!s,eY=(0,eN.useAnimationsFinished)(x),eU=g.useCallback(e=>{eF.current=e,eC(e)},[]),eW=(0,v.useStableCallback)((e=!1)=>{(e||z.current.owner===K)&&(z.current.abortController?.abort(),z.current.abortController=null,z.current.owner=null)});function eq(e){e.style.setProperty(D,"auto"),e.style.setProperty(I,"auto")}function eK(e,t){e.style.removeProperty(D),e.style.removeProperty(I),t.style.removeProperty(k),t.style.removeProperty(M)}function eG(e){eW(!0);let t=new AbortController;z.current.abortController=t,z.current.owner=K,eY(()=>{z.current.abortController=null,z.current.owner=null,eq(e)},t.signal)}(0,b.useIsoLayoutEffect)(()=>{eH||(en.cancel(),ei.cancel(),eW())},[eH,en,ei,eW]);let eJ=(0,v.useStableCallback)((e,t,n,r)=>{eW(!0),eK(e,t);let{width:o,height:i}=(0,eT.getCssDimensions)(e),a=o||eL.current.width,s=i||eL.current.height;(0===r||0===n)&&(n=a,r=s),e.style.setProperty(D,`${n}px`),e.style.setProperty(I,`${r}px`),t.style.setProperty(k,`${a}px`),t.style.setProperty(M,`${s}px`),ei.request(()=>
1{eV.current&&(e.style.setProperty(D,`${a}px`),e.style.setProperty(I,`${s}px`),eG(e))})}),eQ=(0,v.useStableCallback)((e,t,n,r)=>{ei.cancel(),en.cancel(),eW(!0),0!==n&&0!==r&&(F(e,t,n,r),en.request(()=>{en.request(()=>{eK(e,t);let{width:o,height:i}=(0,eT.getCssDimensions)(e),a=o||n,s=i||r;F(e,t,n,r),ei.request(()=>{eV.current&&(F(e,t,a,s),eG(e))})})}))}),eX=(0,v.useStableCallback)((e,t)=>{ei.cancel(),eW(!0),eK(e,t);let{width:n,height:r}=(0,eT.getCssDimensions)(e);0!==n&&0!==r&&(eL.current={width:n,height:r},eq(e),t.style.setProperty(k,`${n}px`),t.style.setProperty(M,`${r}px`))}),eZ=(0,v.useStableCallback)(e=>{let t=e.style.getPropertyValue(D),n=e.style.getPropertyValue(I);return""===t||"auto"===t||""===n||"auto"===n?{size:eL.current,syncPositioner:!1}:{size:{width:e.offsetWidth||eL.current.width,height:e.offsetHeight||eL.current.height},syncPositioner:!0}});g.useEffect(()=>{f||(et.clear(),en.cancel(),eo.cancel(),ei.cancel(),eW(!0),ez.current=!1,eI(""))},[et,f,en,eo,ei,eW]),g.useEffect(()=>{d||(eL.current=ek)},[d]),(0,b.useIsoLayoutEffect)(()=>{if(!x||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(()=>{eL.current={width:x.offsetWidth,height:x.offsetHeight}});return e.observe(x),()=>{e.disconnect()}},[x]),g.useEffect(()=>{if(!f||!eH||!x||!p)return;let e=(0,el.ownerWindow)(p),t=(0,es.addEventListener)(e,"resize",function(){eo.cancel(),eo.request(()=>eX(x,p))});return()=>{eo.cancel(),t()}},[f,eH,x,p,eo,eX]),g.useEffect(()=>{let e=H.current;if(!e||!x||!p||!eH||"function"!=typeof MutationObserver)return;let t=new MutationObserver(()=>{if("starting"===C||x.hasAttribute(eE.TransitionStatusDataAttributes.startingStyle))return void eX(x,p);let{size:e,syncPositioner:t}=eZ(x);t?eQ(x,p,e.width,e.height):eJ(x,p,e.width,e.height)});return t.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["hidden"]}),()=>{t.disconnect()}},[H,x,p,eH,C,eZ,eQ,eJ,eX]),(0,b.useIsoLayoutEffect)(()=>{if(eV.current&&f&&x&&p){if(ez.current){ez.current=!1;return}let{width:e,height:t}=(0,eT.getCssDimensions)(x);eJ(x,p,e,t)}},[H,eJ,eV,f,x,p,C]);let e0=(0,eg.useFloatingRootContext)({open:f,onOpenChange:function(e,t){let n=t.reason===O.REASONS.triggerHover;function r(){n&&(eM(!0),et.clear(),et.start(ey.PATIENT_CLICK_THRESHOLD,()=>{eM(!1)})),e?c(K,t):(c(null,t),eI(""))}eB&&("touch"!==eD||!n)&&(e||u===K)&&(n?ee.flushSync(r):r())},elements:{reference:ea,floating:e_}}),e1=(0,eh.useHoverInteractionSharedState)(e0),e2="touch"!==eD;g.useEffect(()=>(f||(e0.context.dataRef.current.openEvent=void 0,e1.pointerType=void 0,e1.interactedInside=!1,e1.restTimeoutPending=!1,e1.openChangeTimeout.clear(),e1.restTimeout.clear()),()=>{(0,eh.clearSafePolygonPointerEventsMutation)(e1)}),[e0,e1,f]);let e5=(0,v.useStableCallback)(()=>q&&!p&&eF.current&&e_?function(e,t,n){let r,o,i,a,s,l,u,c;return{placement:(r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=r.left+r.
1width/2,a=r.top+r.height/2,s=o.left+o.width/2,l=o.top+o.height/2,Math.abs(u=s-i)>=Math.abs(c=l-a)?u>=0?"right":"left":c>=0?"bottom":"top"),elements:{domReference:e,floating:t},nodeId:n}}(eF.current,e_,G):null);function e4(){return q&&p?null:eF.current?.closest("ul")??null}let e9=(0,em.useHoverReferenceInteraction)(e0,{enabled:e$,move:!1,handleClose:(0,ef.safePolygon)({blockPointerEvents:e2,getScope:e4}),restMs:d&&p?0:B,delay:{close:_},triggerElementRef:eF,getHandleCloseContext:e5}),e3=g.useMemo(()=>e9?{reference:e9}:void 0,[e9]),e8=(0,ep.useClick)(e0,{enabled:eB,stickIfOpen:ej,toggle:eH}),e6=g.useMemo(()=>(0,eA.mergeProps)(e8.reference,e3?.reference),[e8.reference,e3]);function e7(e){ee.flushSync(()=>{let t=e.currentTarget,n=L.current?.getBoundingClientRect();if(d&&n&&ea){let e=ea.getBoundingClientRect(),t=e.left>n.left,r=e.top>n.top;"horizontal"===$&&e.left!==n.left?m(t?"right":"left"):"vertical"===$&&e.top!==n.top&&m(r?"down":"up")}if("click"!==e.type&&null!=u&&(e0.context.dataRef.current.openEvent=void 0),("touch"!==eD||"click"===e.type)&&(null!=u&&"keydown"!==e.type&&c(K,(0,eb.createChangeEventDetails)("mouseenter"===e.type?O.REASONS.triggerHover:O.REASONS.triggerPress,e.nativeEvent)),"mouseenter"===e.type&&e2&&(!q||!p)&&e_)){let e=()=>{let e=e4()??t.ownerDocument.body;(0,eh.applySafePolygonPointerEventsMutation)(e1,{scopeElement:e,referenceElement:t,floatingElement:e_})};null!=u&&u!==K?queueMicrotask(e):e()}})}(0,b.useIsoLayoutEffect)(()=>{eH&&(h(e0),L.current=ea)},[eH,e0,h,L,ea]);let te=(0,v.useStableCallback)(e=>{if(s)return;if(!x||!p)return void e7(e);let{width:t,height:n}=(0,eT.getCssDimensions)(x),r=null!=u&&u!==K&&("click"===e.type||"touch"!==eD);e7(e),r&&(ez.current=!0),eJ(x,p,t,n)});function tt(e){eI(e.pointerType)}let tn={tabIndex:0,onMouseEnter:te,onClick:te,onPointerEnter:tt,onPointerDown:function(e){tt(e),(0,eh.clearSafePolygonPointerEventsMutation)(e1)},"aria-expanded":eH,"aria-controls":eH?x?.id:void 0,[Y]:"",onFocus(){eH&&W(!1)},onMouseLeave(){null==u&&(0,eh.clearSafePolygonPointerEventsMutation)(e1)},onKeyDown(e){if(q)return;let t="horizontal"===$&&"ArrowDown"===e.key,n="vertical"===$&&e.key===("rtl"===Z?"ArrowLeft":"ArrowRight");(t||n)&&(c(K,(0,eb.createChangeEventDetails)(O.REASONS.listNavigation,e.nativeEvent)),te(e),(0,ev.stopEvent)(e))},onBlur(e){p&&x&&eS({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:x,rootRef:S,tree:J,nodeId:G})&&c(null,(0,eb.createChangeEventDetails)(O.REASONS.focusOut,e.nativeEvent))}},{getButtonProps:tr,buttonRef:to}=(0,eR.useButton)({disabled:s,focusableWhenDisabled:!0,native:a});return(0,o.jsxs)(g.Fragment,{children:[(0,o.jsx)(eP,{tag:"button",render:n,className:r,style:i,state:{open:eH,disabled:s},stateAttributesMapping:er.pressableTriggerOpenStateMapping,refs:[t,eU,to],props:[e6,X?.reference||V.EMPTY_ARRAY,tn,l,tr]}),eH&&(0,o.jsxs)(g.Fragment,{children:[(0,o.jsx)(ew.FocusGuard,{ref:j,onFocus:e=>{if(e_&&(0,ex.isOutsideEvent)(e,e_))A.current?.focus();else{let e=(0,ex.getPreviousTabbable)(ea);e?.focus()}}}),(0,o.jsx)("span",{"aria-owns":y?.id,style:ey.ownerVisuallyHidden}),(0,o.jsx)(ew.FocusGuard,{ref:R,onFocus:e=>{if(e_&&(0,ex.isOutsideEvent)(e,e_)){ee.flushSync(()=>{W(!1)});let e=T.current||ea;e?.focus()}else{let t=(0,ex.getNextTabbable)(ea);q&&!p&&e_&&t&&(0,E.contains)(e_,t)&&(t=(0,ex.getTabbableAfterElement)(T.current)),t?.focus(),q&&!p||(0,E.contains)(S.current,t)||c(null,(0,eb.createChangeEventDetails)(O.REASONS.focusOut,e.nativeEvent))}}})]})]})});var eD=e.i(356555);let eI=g.createContext(void 0),eF=g.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{mounted:i}=P();return i||n?(0,o.jsx)(eI.Provider,{value:n,children:(0,o.jsx)(eD.FloatingPortal,{ref:t,...r})}):null});var eL=e.i(339697),ez=e.i(964439),eH=e.i(25073);let eV=g.createContext(void 0);function eB(e=!1){let t=g.useContext(eV);if(!t&&!e)throw Error((0,S.default)(42));return t}var e_=e.i(548242),e$=e.i(492229);let eY=K(),eU=g.forwardRef(function(e,t){var n;let{open:r,mounted:i,positionerElement:a,setPositionerElement:s,floatingRootContext:l,nested:u,transitionStatus:c}=P(),{className:d,render:f,anchor:p,positionMethod:m="absolute",side:h="bottom",align:x="center",sideOffset:v=0,alignOffset:b=0,collisionBoundary:y="clipping-ancestors",collisionPadding:w=5,collisionAvoidance:E=u?ey.POPUP_COLLISION_AVOIDANCE:ey.DROPDOWN_COLLISION_AVOIDANCE,arrowPadding:C=5,sticky:j=!1,disableAnchorTracking:R=!1,style:T,...A}=e,O=function(){let e=g.useContext(eI);if(void 0===e)throw Error((0,S.default)(40));return e}(),k=N(),M=(0,eu.useTimeout)(),D=(0,eu.useTimeout)(),[I,F]=g.useState(r),L=g.useRef(r);g.useEffect(()=>{if(a)return(0,eL.mergeCleanups)((0,es.addEventListener)(a,"focusin",e,!0),(0,es.addEventListener)(a,"focusout",e,!0));function e(e){a&&(0,ex.isOutsideEvent)(e)&&("focusin"===e.type?ex.enableFocusInside:ex.disableFocusInside)(a)}},[a]);let z=(l||eY).useState("domReferenceElement"),H=(n={anchor:p??z,positionMethod:m,mounted:i,side:h,sideOffset:v,align:x,alignOffset:b,arrowPadding:C,collisionBoundary:y,collisionPadding:w,sticky:j,disableAnchorTracking:R,keepMounted:O,floatingRootContext:l,collisionAvoidance:E,shift:{rootBoundary:"layoutViewport"},nodeId:k,adaptiveOrigin:e_.adaptiveOrigin},(0,eH.useAnchorPositioningWithHook)(n,ez.useFloating)),V={open:r,side:H.side,align:H.align,anchorHidden:H.anchorHidden,instant:I};g.useEffect(()=>{if(!r)return;L.current&&M.start(0,()=>{L.current=!1,D.isStarted()||F(!1)});let e=(0,el.ownerWindow)(a);return(0,es.addEventListener)(e,"resize",function(){ee.flushSync(()=>{F(!0)}),D.start(100,()=>{F(!1)})})},[r,M,D,a]);let B=(0,e$.usePositioner)(e,V,{styles:H.positionerStyles,transitionStatus:c,props:A,refs:[t,s],hidden:!i,inert:!r});return(0,o.jsx)(eV.Provider,{value:H,children:B})});var eW=e.i(466494);let eq=K();function eK({children:e}){let{beforeInsideRef:t,beforeOutsideRef:n,afterInsideRef:r,afterOutsideRef:i,positionerElement:a,viewportElement:s,floatingRootContext:l}=P(),u=!!eB(!0),c=a||s;return l||u?(0,o.jsxs)(g.Fragment,{children:[(0,o.jsx)(ew.FocusGuard,{ref:t,onFocus:e=>
1{c&&(0,ex.isOutsideEvent)(e,c)?(0,ex.getNextTabbable)(c)?.focus():n.current?.focus()}}),e,(0,o.jsx)(ew.FocusGuard,{ref:r,onFocus:e=>{c&&(0,ex.isOutsideEvent)(e,c)?(0,ex.getPreviousTabbable)(c)?.focus():i.current?.focus()}})]}):e}let eG=g.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,id:s,...l}=e,u=(0,eW.useId)(s),{setViewportElement:c,setViewportTargetElement:d,floatingRootContext:f,prevTriggerElementRef:p,viewportInert:g,setViewportInert:m}=P(),h=!!eB(!0),x=(f||eq).useState("domReferenceElement");(0,b.useIsoLayoutEffect)(()=>{x&&(p.current=x)},[x,p]);let v=(0,C.useRenderElement)("div",e,{ref:[t,c],props:[{id:u,onBlur(e){let t=e.relatedTarget,n=e.currentTarget;t&&!(0,E.contains)(n,t)&&t!==x&&m(!0)},...!h&&g&&{inert:(0,et.inertValue)(!0)},children:h?a:(0,o.jsx)(eK,{children:(0,o.jsx)("div",{ref:d,children:a})})},l]});return h?(0,o.jsx)(eK,{children:v}):v}),eJ=g.forwardRef(function(e,t){let{render:n,className:r,style:o,...i}=e,{open:a,mounted:s,transitionStatus:l}=P();return(0,C.useRenderElement)("div",e,{state:{open:a,transitionStatus:l},ref:t,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},i],stateAttributesMapping:er.popupTransitionStateMapping})});var eQ=e.i(302795);let eX=g.forwardRef(function(e,t){let{render:n,className:r,style:o,id:i,...a}=e,{open:s,transitionStatus:l,setPopupElement:u}=P(),c=eB(),d=(0,eO.useDirection)(),f=(0,X.useBaseUiId)(i),p={open:s,transitionStatus:l,side:c.side,align:c.align,anchorHidden:c.anchorHidden},g="left"===c.side;g="rtl"===d?g||"inline-end"===c.side:g||"inline-start"===c.side;let m="top"===c.side||g;return(0,C.useRenderElement)("nav",e,{state:p,ref:[t,u],props:[{id:f,tabIndex:-1,style:m?{position:"absolute",["top"===c.side?"bottom":"top"]:"0",[g?"right":"left"]:"0"}:{}},(0,eQ.getDisabledMountTransitionStyles)(l),a],stateAttributesMapping:er.popupTransitionStateMapping})}),eZ=g.forwardRef(function(e,t){let{render:n,className:r,style:o,...i}=e,{open:a,transitionStatus:s}=P(),{arrowRef:l,side:u,align:c,arrowUncentered:d,arrowStyles:f}=eB();return(0,C.useRenderElement)("div",e,{state:{open:a,side:u,align:c,uncentered:d},ref:[t,l],props:[{style:f,"aria-hidden":!0},(0,eQ.getDisabledMountTransitionStyles)(s),i],stateAttributesMapping:er.popupStateMapping})}),e0=g.forwardRef(function(e,t){let{className:n,render:r,active:i=!1,closeOnClick:a=!1,style:s,...l}=e,{setValue:u,popupElement:c,positionerElement:d,rootRef:f}=P(),p=N(),g=(0,w.useFloatingTree)();return(0,o.jsx)(eP,{tag:"a",render:r,className:n,style:s,state:{active:i},refs:[t],props:[{"aria-current":i?"page":void 0,tabIndex:void 0,onClick(e){a&&u(null,(0,eb.createChangeEventDetails)(O.REASONS.linkPress,e.nativeEvent))},onBlur(e){d&&c&&eS({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:c,rootRef:f,tree:g,nodeId:p})&&u(null,(0,eb.createChangeEventDetails)(O.REASONS.focusOut,e.nativeEvent))}},l]})}),e1=g.forwardRef(function(e,t){let{render:n,className:r,style:o,...i}=e,{value:a}=Q(),{open:s,value:l}=P();return(0,C.useRenderElement)("span",e,{state:{open:s&&l===a},ref:t,props:[{"aria-hidden":!0,children:"â¼"},i],stateAttributesMapping:er.triggerOpenStateMapping})});e.s(["Arrow",0,eZ,"Backdrop",0,eJ,"Content",0,ea,"Icon",0,e1,"Item",0,Z,"Link",0,e0,"List",0,G,"Popup",0,eX,"Portal",0,eF,"Positioner",0,eU,"Root",0,z,"Trigger",0,eM,"Viewport",0,eG],383612);var e2=e.i(383612),e2=e2;let e5=(0,p.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,a.buttonVariants)({color:"secondary",className:"gap-1.5"}),icon:(0,a.buttonVariants)({color:"ghost",size:"icon"})}},defaultVariants:{variant:"main"}}),e4=(0,g.createContext)(null);function e9(e){let{navItems:t,menuItems:n,slots:i,props:{nav:c}}=te(),p=(0,g.useRef)(null),h=(0,g.useRef)(null),[x,v]=(0,g.useState)(!1),b=(0,m.useTranslations)({note:"home layout header"}),y=c?.transparentMode??"none",w=(0,u.useIsScrollTop)({enabled:"top"===y})??!0,E="top"===y?w:"always"===y,C=(0,g.useEffectEvent)(e=>{let t=p.current;x&&t&&(t===e.target||t.contains(e.target)||v(!1))});(0,g.useEffect)(()=>(window.addEventListener("click",C),()=>{window.removeEventListener("click",C)}),[]);let S=(0,o.jsxs)(e2.List,{ref:h,render:(0,o.jsx)("div",{}),className:"flex h-14 w-full mx-auto max-w-(--fd-layout-width) items-center px-4",children:[i.navTitle&&(0,o.jsx)(i.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),c?.children,(0,o.jsx)("ul",{className:"flex flex-row items-center gap-2 px-6 max-sm:hidden",children:t.filter(e=>!e3(e)).map((e,t)=>(0,o.jsx)(e8,{item:e,className:"text-sm"},t))}),(0,o.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1.5 flex-1 max-lg:hidden",children:[i.searchTrigger&&(0,o.jsx)(i.searchTrigger.full,{hideIfDisabled:!0,className:"w-full rounded-full ps-2.5 max-w-[240px]"}),i.themeSwitch&&(0,o.jsx)(i.themeSwitch,{}),i.languageSelect&&(0,o.jsx)(i.languageSelect.root,{children:(0,o.jsx)(f.Languages,{className:"size-5"})}),(0,o.jsx)("ul",{className:"flex flex-row gap-2 items-center empty:hidden",children:t.filter(e3).map((e,t)=>(0,o.jsx)(e8,{className:(0,r.cn)("icon"===e.type&&"-mx-1 first:ms-0 last:me-0"),item:e},t))})]}),(0,o.jsxs)("div",{className:"flex flex-row items-center ms-auto -me-1.5 lg:hidden",children:[i.searchTrigger&&(0,o.jsx)(i.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),(0,o.jsx)(l.CollapsibleTrigger,{"aria-label":b("Toggle Menu",{note:"aria-label"}),className:(0,r.cn)((0,a.buttonVariants)({size:"icon",color:"ghost"})),onPointerEnter:c?.enableHoverToOpen?()=>{v(!0)}:void 0,children:(0,o.jsx)(d.ChevronDown,{className:(0,r.cn)("transition-transform",x&&"rotate-180")}
1)})]})]});return(0,o.jsx)(l.Collapsible,{open:x,onOpenChange:v,render:(0,o.jsx)("header",{id:"nd-nav",...e,ref:(0,s.mergeRefs)(p,e.ref),className:(0,r.cn)("sticky h-14 top-0 z-40",e.className),children:(0,o.jsxs)(e2.Root,{className:e=>(0,r.cn)("backdrop-blur-lg border-b transition-[box-shadow,background-color,border-radius]",x&&"max-lg:shadow-lg max-lg:rounded-b-2xl",(x||!E||e.open)&&"bg-fd-background/80"),children:[S,(0,o.jsx)(l.CollapsibleContent,{className:"mx-auto max-w-(--fd-layout-width) lg:hidden",children:(0,o.jsx)("div",{className:"flex flex-col pt-2 p-4 sm:flex-row sm:items-center sm:justify-end",children:(0,o.jsxs)(e4,{value:(0,g.useMemo)(()=>({setOpen:v}),[]),children:[n.filter(e=>!e3(e)).map((e,t)=>(0,o.jsx)(e6,{item:e,className:"sm:hidden"},t)),(0,o.jsxs)("div",{className:"-ms-1.5 flex flex-row items-center gap-2 max-sm:mt-2",children:[n.filter(e3).map((e,t)=>(0,o.jsx)(e6,{item:e,className:(0,r.cn)("icon"===e.type&&"-mx-1 first:ms-0")},t)),(0,o.jsx)("div",{role:"separator",className:"flex-1"}),i.languageSelect&&(0,o.jsxs)(i.languageSelect.root,{children:[(0,o.jsx)(f.Languages,{className:"size-5"}),i.languageSelect.text&&(0,o.jsx)(i.languageSelect.text,{}),(0,o.jsx)(d.ChevronDown,{className:"size-3 text-fd-muted-foreground"})]}),i.themeSwitch&&(0,o.jsx)(i.themeSwitch,{})]})]})})}),(0,o.jsx)(e2.Portal,{children:(0,o.jsx)(e2.Positioner,{side:"bottom",anchor:h,collisionPadding:{top:5,bottom:5},className:"z-40 box-border h-(--positioner-height) w-(--anchor-width) max-w-(--available-width) duration-(--duration) ease-(--easing) before:absolute before:content-[''] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5 data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5 data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5 data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5",style:{"--duration":"0.35s","--easing":"cubic-bezier(0.22, 1, 0.36, 1)"},children:(0,o.jsx)(e2.Popup,{className:"relative border h-(--popup-height) w-full rounded-xl bg-fd-popover/80 text-fd-popover-foreground backdrop-blur-md shadow-lg transition-[opacity,width,height] duration-(--duration) ease-(--easing) data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:opacity-0",children:(0,o.jsx)(e2.Viewport,{className:"relative size-full overflow-hidden"})})})})]})})})}function e3(e){return"secondary"in e&&null!=e.secondary?e.secondary:"icon"===e.type}function e8({item:e,className:n,...i}){if("custom"===e.type)return e.children;if("menu"===e.type){let t=e.items.map((e,t)=>{if("custom"===e.type)return(0,o.jsx)(g.Fragment,{children:e.children},t);let{banner:n=e.icon?(0,o.jsx)("div",{className:"w-fit rounded-md border bg-fd-muted p-1 [&_svg]:size-4",children:e.icon}):null,...i}=e.menu??{};return(0,o.jsx)(e2.Link,{render:(0,o.jsx)(c.default,{href:e.url,external:e.external,...i,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",i.className),children:i.children??(0,o.jsxs)(o.Fragment,{children:[n,(0,o.jsx)("p",{className:"text-base font-medium",children:e.text}),(0,o.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden",children:e.description})]})})},`${t}-${e.url}`)});return(0,o.jsxs)(e2.Item,{className:(0,r.cn)("list-none",n),...i,children:[(0,o.jsx)(e2.Trigger,{className:(0,r.cn)(e5(),"rounded-md"),children:e.url?(0,o.jsx)(c.default,{href:e.url,external:e.external,children:e.text}):e.text}),(0,o.jsx)(e2.Content,{className:(0,r.cn)("h-full w-(--anchor-width) max-w-(--available-width) p-3","transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)","data-starting-style:opacity-0 data-ending-style:opacity-0","data-starting-style:data-[activation-direction=left]:-translate-x-1/2","data-starting-style:data-[activation-direction=right]:translate-x-1/2","data-ending-style:data-[activation-direction=left]:translate-x-1/2","data-ending-style:data-[activation-direction=right]:-translate-x-1/2","grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3"),children:t})]})}
1return(0,o.jsx)(e2.Item,{className:(0,r.cn)("list-none",n),...i,children:(0,o.jsx)(e2.Link,{render:(0,o.jsx)(t.LinkItem,{item:e,"aria-label":"icon"===e.type?e.label:void 0,className:(0,r.cn)(e5({variant:e.type})),children:"icon"===e.type?e.icon:e.text})})})}function e6({item:e,...n}){let{setOpen:i}=(0,g.use)(e4);return"custom"===e.type?(0,o.jsx)("div",{className:(0,r.cn)("grid",n.className),children:e.children}):"menu"===e.type?(0,o.jsxs)("div",{className:(0,r.cn)("mb-4 flex flex-col",n.className),children:[(0,o.jsx)("p",{className:"mb-1 text-sm text-fd-muted-foreground",children:e.url?(0,o.jsxs)(c.default,{href:e.url,external:e.external,onClick:()=>i(!1),children:[e.icon,e.text]}):(0,o.jsxs)(o.Fragment,{children:[e.icon,e.text]})}),e.items.map((e,t)=>(0,o.jsx)(e6,{item:e},t))]}):(0,o.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/50 data-[active=true]:font-medium data-[active=true]:text-fd-primary [&_svg]:size-4",icon:(0,a.buttonVariants)({size:"icon",color:"ghost"}),button:(0,a.buttonVariants)({color:"secondary",className:"gap-1.5 [&_svg]:size-4"})}[e.type??"main"],n.className),"aria-label":"icon"===e.type?e.label:void 0,onClick:()=>i(!1),children:[e.icon,"icon"===e.type?void 0:e.text]})}let e7=(0,g.createContext)(null);function te(){let e=(0,g.use)(e7);if(!e)throw Error("Please use this component under <HomeLayout /> (`fumadocs-ui/layouts/home`).");return e}let{useBaseSlots:tt}=(0,t.baseSlots)({useProps:()=>te().props});function tn(e){let{nav:{enabled:t=!0}={},slots:r,children:a,i18n:s,githubUrl:l,links:u,themeSwitch:c,searchToggle:d,...f}=e,{baseSlots:p,baseProps:g}=tt(e),m=(0,n.useLinkItems)(e),h={...p,header:r?.header??tr,container:r?.container??i};return(0,o.jsx)(e7,{value:{props:g,slots:h,...m},children:(0,o.jsxs)(h.container,{...f,children:[t&&(0,o.jsx)(h.header,{}),a]})})}function tr(e){let{nav:t}=te().props;return t?.component?t.component:(0,o.jsx)(e9,{...e})}}]);
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.