1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5701],{1933:(e,t,n)=>{n.d(t,{FX:()=>l,jH:()=>a});var r=n(12115),o=n(95155),i=r.createContext(void 0),l=e=>{let{dir:t,children:n}=e;return(0,o.jsx)(i.Provider,{value:t,children:n})};function a(e){let t=r.useContext(i);return e||t||"ltr"}},2993:(e,t,n)=>{n.d(t,{LinkItem:()=>j,baseSlots:()=>S});var r=n(51011),o=n(622),i=n(60202),l=n(7305),a=n(95155),s=n(78962);function u({className:e,variant:t="ghost",children:n,...c}){let f=(0,r.s)(),d=(0,s.c3)({note:"language switcher"});if(!f.locales)throw Error("Missing `<I18nProvider />`");let p=d("Choose a language");return(0,a.jsxs)(l.AM,{children:[(0,a.jsx)(l.Wv,{"aria-label":d("Choose a language",{note:"aria-label"}),className:(0,o.QP)((0,i.r)({variant:t}),"gap-1.5 p-1.5 data-[state=open]:bg-fd-accent",e),...c,children:n}),(0,a.jsxs)(l.hl,{className:"flex flex-col gap-0.5 p-1",children:[(0,a.jsx)("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:p}),f.locales.map(e=>(0,a.jsx)("button",{type:"button",className:(0,o.QP)("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",e.locale===f.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{f.onChange?.(e.locale)},children:e.name},e.locale))]})]})}function c(e){let{locales:t,locale:n}=(0,r.s)(),o=t?.find(e=>e.locale===n)?.name;return(0,a.jsx)("span",{...e,children:o})}var f=n(40955),d=n(30772);let p=(0,d.A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),h=(0,d.A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),m=(0,d.A)("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]);var g=n(32747),v=n(12115),x=n(70460);let y=(0,g.F)("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),w=[["light",p],["dark",h],["system",m]];function b({className:e,mode:t="light-dark",...n}){let{setTheme:r,theme:i,resolvedTheme:l}=(0,x.D)(),[u,c]=(0,v.useState)(!1),f=(0,s.c3)({note:"theme switcher"}),d={light:f("Light",{note:"aria-label"}),dark:f("Dark",{note:"aria-label"}),system:f("System",{note:"aria-label"})};(0,v.useEffect)(()=>{c(!0)},[]);let p=(0,o.QP)("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",e);if("light-dark"===t){let e=u?l:null;return(0,a.jsx)("button",{className:p,"aria-label":f("Toggle Theme",{note:"aria-label"}),onClick:()=>r("light"===e?"dark":"light"),"data-theme-toggle":"",children:w.map(([t,n])=>{if("system"!==t)return(0,a.jsx)(n,{fill:"currentColor",className:(0,o.QP)(y({active:e===t}))},t)})})}let h=u?i:null;return(0,a.jsx)("div",{className:p,"data-theme-toggle":"",...n,children:w.map(([e,t])=>(0,a.jsx)("button",{"aria-label":d[e],className:(0,o.QP)(y({active:h===e})),onClick:()=>r(e),children:(0,a.jsx)(t,{className:"size-full",fill:"currentColor"})},e))})}var k=n(61919),C=n(84579),A=n(38774);function j({ref:e,item:t,...n}){let r=(0,k.Og)(t,(0,A.a8)());return(0,a.jsx)(C.default,{ref:e,href:t.url,external:t.external,...n,"data-active":r,children:n.children})}function S({useProps:e}){function t(t){let{themeSwitch:n}=e();return n.component?n.component:(0,a.jsx)(b,{...t,...n})}function n(t){let{searchToggle:n}=e();return n.components?.sm?n.components.sm:(0,a.jsx)(f.H,{...t,...n.sm})}function o(t){let{searchToggle:n}=e();return n.components?.lg?n.components.lg:(0,a.jsx)(f.K,{...t,...n.full})}function i({href:t="/",...n}){let{url:r=t,title:o}=e().nav??{};return"function"==typeof o?o({href:r,...n}):(0,a.jsx)(C.default,{href:r,...n,children:o})}return{useProvider(e){let{locales:l=[]}=(0,r.s)(),{nav:a,slots:s={},i18n:f=l.length>1,searchToggle:{enabled:d=!0,...p}={},themeSwitch:{enabled:h=!0,...m}={}}=e;return{baseSlots:{navTitle:s.navTitle??i,themeSwitch:h&&(s.themeSwitch??t),languageSelect:!!f&&(s.languageSelect??{root:u,text:c}),searchTrigger:d&&(s.searchTrigger??{sm:n,full:o})},baseProps:{nav:a,searchToggle:p,themeSwitch:m}}}}}},5035:(e,t,n)=>{n.d(t,{$A:()=>l,YL:()=>u});var r=n(95155),o=n(12115);let i=(0,o.createContext)({enabled:!1,open:!1,hotKey:[],setOpenSearch:()=>void 0});function l(){return(0,o.use)(i)}let a=[{key:e=>e.metaKey||e.ctrlKey,display:(0,r.jsx)(function(){let[e,t]=(0,o.useState)("â");return(0,o.useEffect)(()=>{/Windows|Linux/i.test(window.navigator.userAgent)&&t("Ctrl")},[]),e},{})},{key:"k",display:"K"}],s=(0,o.lazy)(()=>Promise.all([n.e(6863),n.e(4344),n.e(5149)]).then(n.bind(n,15149)));function u({SearchDialog:e=s,children:t,preload:n=!0,options:l,hotKey:c=a,links:f}){let[d,p]=(0,o.useState)(!n&&void 0),h=(0,o.useEffectEvent)(e=>{c.every(t=>"string"==typeof t.key?e.key===t.key:t.key(e))&&(p(e=>!e),e.preventDefault())});return(0,o.useEffect)(()=>(window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h)}),[]),(0,r.jsxs)(i,{value:(0,o.useMemo)(()=>
1({enabled:!0,open:d??!1,hotKey:c,setOpenSearch:p}),[d,c]),children:[(0,r.jsx)(o.Suspense,{fallback:null,children:void 0!==d&&(0,r.jsx)(e,{open:d,onOpenChange:p,links:f,...l})}),t]})}},7305:(e,t,n)=>{n.d(t,{AM:()=>I,hl:()=>K,Wv:()=>V});var r=n(622),o=n(95155),i=n(12115),l=n(70379),a=n(47527),s=n(68599),u=n(98454),c=n(32007),f=n(69885),d=n(89971),p=n(58142),h=n(19040),m=n(83935),g=n(55897),v=n(42442),x=n(98979),y=n(22954),w=n(5174),b="Popover",[k,C]=(0,s.A)(b,[p.Bk]),A=(0,p.Bk)(),[j,S]=k(b),P=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:l,onOpenChange:a,modal:s=!1}=e,u=A(t),c=i.useRef(null),[f,h]=i.useState(!1),[m,g]=(0,x.i)({prop:r,defaultProp:l??!1,onChange:a,caller:b});return(0,o.jsx)(p.bL,{...u,children:(0,o.jsx)(j,{scope:t,contentId:(0,d.B)(),triggerRef:c,open:m,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:f,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:s,children:n})})};P.displayName=b;var R="PopoverAnchor";i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=S(R,n),a=A(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:u}=l;return i.useEffect(()=>(s(),()=>u()),[s,u]),(0,o.jsx)(p.Mz,{...a,...r,ref:t})}).displayName=R;var E="PopoverTrigger",O=i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=S(E,n),s=A(n),u=(0,a.s)(t,i.triggerRef),c=(0,o.jsx)(g.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":B(i.open),...r,ref:u,onClick:(0,l.mK)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,o.jsx)(p.Mz,{asChild:!0,...s,children:c})});O.displayName=E;var T="PopoverPortal",[L,M]=k(T,{forceMount:void 0}),N=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,l=S(T,t);return(0,o.jsx)(L,{scope:t,forceMount:n,children:(0,o.jsx)(m.C,{present:n||l.open,children:(0,o.jsx)(h.Z,{asChild:!0,container:i,children:r})})})};N.displayName=T;var D="PopoverContent",F=i.forwardRef((e,t)=>{let n=M(D,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,l=S(D,e.__scopePopover);return(0,o.jsx)(m.C,{present:r||l.open,children:l.modal?(0,o.jsx)(H,{...i,ref:t}):(0,o.jsx)(W,{...i,ref:t})})});F.displayName=D;var $=(0,v.TL)("PopoverContent.RemoveScroll"),H=i.forwardRef((e,t)=>{let n=S(D,e.__scopePopover),r=i.useRef(null),s=(0,a.s)(t,r),u=i.useRef(!1);return i.useEffect(()=>{let e=r.current;if(e)return(0,y.Eq)(e)},[]),(0,o.jsx)(w.A,{as:$,allowPinchZoom:!0,children:(0,o.jsx)(z,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,l.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=i.forwardRef((e,t)=>{let n=S(D,e.__scopePopover),r=i.useRef(!1),l=i.useRef(!1);return(0,o.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let o=t.target;n.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),z=i.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:m,...g}=e,v=S(D,n),x=A(n);return(0,c.Oh)(),(0,o.jsx)(f.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,o.jsx)(u.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>v.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,o.jsx)(p.UC,{"data-state":B(v.open),role:"dialog",id:v.contentId,...x,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),_="PopoverClose";function B(e){return e?"open":"closed"}i.forwardRef((e,t)=>
1{let{__scopePopover:n,...r}=e,i=S(_,n);return(0,o.jsx)(g.sG.button,{type:"button",...r,ref:t,onClick:(0,l.mK)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=_,i.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A(n);return(0,o.jsx)(p.i3,{...i,...r,ref:t})}).displayName="PopoverArrow";let I=P,V=O;function K({className:e,align:t="center",sideOffset:n=4,...i}){return(0,o.jsx)(N,{children:(0,o.jsx)(F,{align:t,sideOffset:n,side:"bottom",className:(0,r.QP)("z-50 origin-(--radix-popover-content-transform-origin) overflow-y-auto max-h-(--radix-popover-content-available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in",e),...i})})}},12363:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(30772).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},25684:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(30772).A)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]])},38774:(e,t,n)=>{n.d(t,{Image:()=>c,N_:()=>f,Uy:()=>a,a8:()=>s,rd:()=>u});var r=n(12115),o=n(95155);let i=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},l=(0,r.createContext)({useParams:i,useRouter:i,usePathname:i});function a({Link:e,useRouter:t,useParams:n,usePathname:i,Image:s,children:u}){return(0,o.jsx)(l,{value:(0,r.useMemo)(()=>({usePathname:i,useRouter:t,Link:e,Image:s,useParams:n}),[e,i,t,n,s]),children:u})}function s(){return(0,r.use)(l).usePathname()}function u(){return(0,r.use)(l).useRouter()}function c(e){let{Image:t}=(0,r.use)(l);if(!t){let{src:t,alt:n,priority:r,...i}=e;return(0,o.jsx)("img",{alt:n,src:t,fetchPriority:r?"high":"auto",...i})}return(0,o.jsx)(t,{...e})}function f(e){let{Link:t}=(0,r.use)(l);if(!t){let{href:t,prefetch:n,...r}=e;return(0,o.jsx)("a",{href:t,...r})}return(0,o.jsx)(t,{...e})}},40955:(e,t,n)=>{n.d(t,{H:()=>u,K:()=>c});var r=n(622),o=n(60202),i=n(5035),l=n(95155),a=n(65377),s=n(78962);function u({hideIfDisabled:e,size:t="icon-sm",color:n="ghost",...c}){let{setOpenSearch:f,enabled:d}=(0,i.$A)(),p=(0,s.c3)({note:"search trigger"});return e&&!d?null:(0,l.jsx)("button",{type:"button",className:(0,r.QP)((0,o.r)({size:t,color:n}),c.className),"data-search":"","aria-label":p("Open Search",{note:"aria-label"}),onClick:()=>{f(!0)},children:(0,l.jsx)(a.A,{})})}function c({hideIfDisabled:e,...t}){let{enabled:n,hotKey:o,setOpenSearch:u}=(0,i.$A)(),f=(0,s.c3)({note:"search trigger"});return e&&!n?null:(0,l.jsxs)("button",{type:"button","data-search-full":"",...t,className:(0,r.QP)("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",t.className),onClick:()=>{u(!0)},children:[(0,l.jsx)(a.A,{className:"size-4"}),f("Search"),(0,l.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:o.map((e,t)=>(0,l.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}},51011:(e,t,n)=>{n.d(t,{C:()=>c,s:()=>s});var r=n(38774),o=n(95155),i=n(12115),l=n(78962);let a=(0,i.createContext)({});function s(){return(0,i.use)(a)}let u={};function c({locales:e=[],locale:t,onLocaleChange:n,children:s,translations:f=u}){let d=(0,r.rd)(),p=(0,r.a8)(),h=e=>{if(n)return n(e);let r=p.split("/").filter(e=>e.length>0);0===r.length||r[0]!==t?r.unshift(e):r[0]=e,d.push(`/${r.join("/")}`)},m=(0,i.useRef)(h);return m.current=h,(0,o.jsx)(a,{value:(0,i.useMemo)(()=>({locale:t,locales:e,onChange:e=>m.current(e)}),[t,e]),children:(0,o.jsx)(l.Dv,{translations:f,children:s})})}},58142:(e,t,n)=>{let r;n.d(t,{Mz:()=>eq,i3:()=>eX,UC:()=>eG,bL:()=>eY,Bk:()=>eT});var o=n(12115);let i=["top","right","bottom","left"],l=Math.min,a=Math.max,s=Math.round,u=Math.floor,c=e=>({x:e,y:e}
1),f={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],w=["right","left"],b=["top","bottom"],k=["bottom","top"];function C(e){let t=p(e);return f[t]+e.slice(t.length)}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function j(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function S(e,t,n){let r,{reference:o,floating:i}=e,l=v(t),a=m(v(t)),s=g(a),u=p(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,x=o[s]/2-i[s]/2;switch(u){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(h(t)){case"start":r[a]-=x*(n&&c?-1:1);break;case"end":r[a]+=x*(n&&c?-1:1)}return r}async function P(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=A(h),g=a[p?"floating"===f?"reference":"floating":f],v=j(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),x="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=j(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:y,strategy:s}):x);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}let R=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:P},s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=S(u,r,s),d=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:g,fn:v}=m,{x:x,y:y,data:w,reset:b}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=x?x:c,f=null!=y?y:f,h[g]={...h[g],...w},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=S(u,d,s)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:h}};function E(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function O(e){return i.some(t=>e[t]>=0)}let T=new Set(["left","top"]);async function L(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=h(n),s="y"===v(n),u=T.has(l)?-1:1,c=i&&s?-1:1,f=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:x}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof x&&(g="end"===a?-1*x:x),s?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function M(){return"u">typeof window}function N(e){return $(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function F(e){var t;return null==(t=($(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $(e){return!!M()&&(e instanceof Node||e instanceof D(e).Node)}function H(e){return!!M()&&(e instanceof Element||e instanceof D(e).Element)}function W(e){return!!M()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function z(e){return!(!M()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function _(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function B(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let I=/transform|translate|scale|rotate|perspective|filter/,V=/paint|layout|strict|content/,K=e=>!!e&&"none"!==e;function Q(e){let t=H(e)?G(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!Y()&&(K(t.backdropFilter)||K(t.filter))||I.test(t.willChange||"")||V.test(t.contain||"")}function Y(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function q(e){return/^(html|body|#document)$/.test(N(e))}function G(e){return D(e).getComputedStyle(e)}function X(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if("html"===N(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||F(e);return z(t)?t.host:t}function Z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=U(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:W(n)&&_(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=D(o);if(!i)return t.concat(o,Z(o,[],n));{let e=J(l);
1return t.concat(l,l.visualViewport||[],_(o)?o:[],e&&n?Z(e):[])}}function J(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=G(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=W(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=s(n)!==i||s(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function et(e){return H(e)?e:e.contextElement}function en(e){let t=et(e);if(!W(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ee(t),l=(i?s(n.width):n.width)/r,a=(i?s(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let er=c(0);function eo(e){let t=D(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function ei(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=et(e),a=c(1);t&&(r?H(r)&&(a=en(r)):a=en(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===D(l))&&o)?eo(l):c(0),u=(i.left+s.x)/a.x,f=(i.top+s.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=D(l),t=r&&H(r)?D(r):r,n=e,o=J(n);for(;o&&r&&t!==n;){let e=en(o),t=o.getBoundingClientRect(),r=G(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,f*=e.y,d*=e.x,p*=e.y,u+=i,f+=l,o=J(n=D(o))}}return j({width:d,height:p,x:u,y:f})}function el(e,t){let n=X(e).scrollLeft;return t?t.left+n:ei(F(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}
1function es(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=D(e),r=F(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=Y();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let u=el(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else u<=25&&(i+=u);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t){let t,n,i,l,s,u,c;r=F(e),t=F(r),n=X(r),i=r.ownerDocument.body,l=a(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=a(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),u=-n.scrollLeft+el(r),c=-n.scrollTop,"rtl"===G(i).direction&&(u+=a(t.clientWidth,i.clientWidth)-l),o={width:l,height:s,x:u,y:c}}else if(H(t)){let e,r,i,l,a,s;r=(e=ei(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=W(t)?en(t):c(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:a,height:s,x:i*l.x,y:r*l.y}}else{let n=eo(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return j(o)}function eu(e){return"static"===G(e).position}function ec(e,t){if(!W(e)||"fixed"===G(e).position)return null;if(t)return t(e);let n=e.offsetParent;return F(e)===n&&(n=n.ownerDocument.body),n}function ef(e,t){var n;let r=D(e);if(B(e))return r;if(!W(e)){let t=U(e);for(;t&&!q(t);){if(H(t)&&!eu(t))return t;t=U(t)}return r}let o=ec(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(N(n)))&&eu(o);)o=ec(o,t);return o&&q(o)&&eu(o)&&!Q(o)?r:o||function(e){let t=U(e);for(;W(t)&&!q(t);){if(Q(t))return t;if(B(t))break;t=U(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ef,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=W(t),o=F(t),i="fixed"===n,l=ei(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=c(0);if(r||!r&&!i)if(("body"!==N(t)||_(o))&&(a=X(t)),r){let e=ei(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=el(o));i&&!r&&o&&(s.x=el(o));let u=!o||r||i?c(0):ea(o,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=F(r),a=!!t&&B(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},u=c(1),f=c(0),d=W(r);if((d||!d&&!i)&&(("body"!==N(r)||_(l))&&(s=X(r)),d)){let e=ei(r);u=en(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||i?c(0):ea(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-s.scrollTop*u.y+f.y+p.y}},getDocumentElement:F,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?B(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>H(e)&&"body"!==N(e)),o=null,i="fixed"===G(e).position,l=i?U(e):e;for(;H(l)&&!q(l);){let t=G(l),n=Q(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||_(l)&&!n&&function e(t,n){let r=U(t);return!(r===n||!H(r)||q(r))&&("fixed"===G(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=U(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=es(t,i[0],o),u=s.top,c=s.right,f=s.bottom,d=s.left;for(let e=1;e<i.length;e++){let n=es(t,i[e],o);u=a(n.top,u),c=l(n.right,c),f=l(n.bottom,f),d=a(n.left,d)}return{width:c-d,height:f-u,x:d,y:u}},getOffsetParent:ef,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:H,isRTL:function(e){return"rtl"===G(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:s,elements:u,middlewareData:c}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let x=A(p),y={x:n,y:r},w=m(v(o)),b=g(w),k=await s.getDimensions(f),C="y"===w,j=C?"clientHeight":"clientWidth",S=i.reference[b]+i.reference[w]-y[w]-i.floating[b],P=y[w]-i.reference[w],R=await (null==s.getOffsetParent?void 0:s.getOffsetParent(f)),E=R?R[j]:0;E&&await (null==s.isElement?void 0:s.isElement(R))||(E=u.floating[j]||i.floating[b]);let O=E/2-k[b]/2-1,T=l(x[C?"top":"left"],O),L=l(x[C?"bottom":"right"],O),M=E-k[b]-L,N=E/2-k[b]/2+(S/2-P/2),D=a(T,l(N,M)),F=!c.arrow&&null!=h(o)&&N!==D&&i.reference[b]/2-(N<T?T:L)-k[b]/2<0,$=F?N<T?N-T:N-M:0;return{[w]:y[w]+$,data:{[w]:D,centerOffset:N-D-$,...F&&{alignmentOffset:$}},reset:F}}});var eg=n(47650),ev="u">typeof document?o.useLayoutEffect:function(){};function ex(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ex(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ex(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ey(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ew(e,t){let n=ey(e);return Math.round(t*n)/n}function eb(e){let t=o.useRef(e);return ev(()=>{t.current=e}),t}var ek=n(55897),eC=n(95155),eA=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eC.jsx)(ek.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eA.displayName="Arrow";var ej=n(47527),eS=n(68599),eP=n(17347),eR=n(66294),eE="Popper",[eO,eT]=(0,eS.A)(eE),[eL,eM]=eO(eE),eN=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eC.jsx)(eL,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})};eN.displayName=eE;var eD="PopperAnchor",eF=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=eM(eD,n),a=o.useRef(null),s=l.onAnchorChange,u=o.useCallback(e=>{a.current=e,e&&s(e)},[s]),c=(0,ej.s)(t,u),f=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=f.current;f.current=r.current,e!==f.current&&s(f.current)});let d=l.placementState&&eQ(l.placementState),p=d?.[0],h=d?.[1];return r?null:(0,eC.jsx)(ek.sG.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...i,ref:c})});eF.displayName=eD;var e$="PopperContent",[eH,eW]=eO(e$),ez=o.forwardRef((e,t)=>{var n,r,i,s,c,f,A,j,S,P,M,N,D;let $,H,W,z,_,B,{__scopePopper:I,side:V="bottom",sideOffset:K=0,align:Q="center",alignOffset:Y=0,arrowPadding:q=0,avoidCollisions:G=!0,collisionBoundary:X=[],collisionPadding:U=0,sticky:J="partial",hideWhenDetached:ee=!1,updatePositionStrategy:en="optimized",onPlaced:er,...eo}=e,el=eM(e$,I),[ea,es]=o.useState(null),eu=(0,ej.s)(t,e=>es(e)),[ec,ef]=o.useState(null),ed=function(e){let[t,n]=o.useState(void 0);return(0,eR.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(ec),eA=ed?.width??0,eS=ed?.height??0,eE="number"==typeof U?U:{top:0,right:0,bottom:0,left:0,...U},eO=Array.isArray(X)?X:[X],eT=eO.length>0,eL={padding:eE,boundary:eO.filter(eV),altBoundary:eT},{refs:eN,floatingStyles:eD,placement:eF,isPositioned:eW,middlewareData:ez}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);ex(p,r)||h(r);let[m,g]=o.useState(null),[v,x]=o.useState(null),y=o.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),w=o.useCallback(e=>{e!==A.current&&(A.current=e,x(e))},[]),b=l||m,k=a||v,C=o.useRef(null),A=o.useRef(null),j=o.useRef(f),S=null!=u,P=eb(u),E=eb(i),O=eb(c),T=o.useCallback(()=>{var e,r;let o,i,l;if(!C.current||!A.current)return;let a={placement:t,strategy:n,middleware:p};E.current&&(a.platform=E.current),(e=C.current,r=A.current,o=new Map,l={...(i={platform:ep,...a}).platform,_c:o},R(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==O.current};L.current&&!ex(j.current,t)&&(j.current=t,eg.flushSync(()=>{d(t)}))})},[p,t,n,E,O]);ev(()=>{!1===c&&j.current.isPositioned&&(j.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let L=o.useRef(!1);ev(()=>(L.current=!0,()=>{L.current=!1}),[]),ev(()=>{if(b&&(C.current=b),k&&(A.current=k),b&&k){if(P.current)return P.current(b,k,T);T()}},[b,k,T,P,S]);let M=o.useMemo(()=>({reference:C,floating:A,setReference:y,setFloating:w}),[y,w]),N=o.useMemo(()=>({reference:b,floating:k}),[b,k]),D=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=ew(N.floating,f.x),r=ew(N.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ey(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,N.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:T,refs:M,elements:N,floatingStyles:D}),[f,T,M,N,D])}({strategy:"fixed",placement:V+("center"!==Q?"-"+Q:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=et(e),h=i||s?[...p?Z(p):[],...t?Z(t):[]]:[];
1h.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let m=p&&f?function(e,t){let n,r=null,o=F(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),i();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(c||t(),!m||!g)return;let v={rootMargin:-u(h)+"px "+-u(o.clientWidth-(p+m))+"px "+-u(o.clientHeight-(h+g))+"px "+-u(p)+"px",threshold:a(0,l(1,f))||1},x=!0;function y(t){let r=t[0].intersectionRatio;if(r!==f){if(!x)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||eh(d,e.getBoundingClientRect())||s(),x=!1}try{r=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,v)}r.observe(e)}(!0),i}(p,n):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!d&&v.observe(p),t&&v.observe(t));let x=d?ei(e):null;return d&&function t(){let r=ei(e);x&&!eh(x,r)&&n(),x=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{i&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===en}),elements:{reference:el.anchor},middleware:[{name:($={name:"offset",options:r=n={mainAxis:K+eS,alignmentAxis:Y},async fn(e){var t,n;let{x:o,y:i,placement:l,middlewareData:a}=e,s=await L(e,r);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}).name,fn:$.fn,options:[n,void 0]},G&&{name:(H={name:"shift",options:c=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===J?{fn:(i=void 0,{options:i={},fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=d(i,e),c={x:t,y:n},f=v(r),h=m(f),g=c[h],x=c[f],y=d(a,e),w="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+w.mainAxis,n=o.reference[h]+o.reference[e]-w.mainAxis;g<t?g=t:g>n&&(g=n)}if(u){var b,k;let e="y"===h?"width":"height",t=T.has(p(r)),n=o.reference[f]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:w.crossAxis),i=o.reference[f]+o.reference[e]+(t?0:(null==(k=l.offset)?void 0:k[f])||0)-(t?w.crossAxis:0);x<n?x=n:x>i&&(x=i)}return{[h]:g,[f]:x}}}).fn,options:[void 0,void 0]}:void 0,...eL},async fn(e){let{x:t,y:n,placement:r,platform:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=d(c,e),h={x:t,y:n},g=await o.detectOverflow(e,f),x=v(p(r)),y=m(x),w=h[y],b=h[x];if(i){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+g[e],r=w-g[t];w=a(n,l(w,r))}if(s){let e="y"===x?"top":"left",t="y"===x?"bottom":"right",n=b+g[e],r=b-g[t];b=a(n,l(b,r))}let k=u.fn({...e,[y]:w,[x]:b});return{...k,data:{x:k.x-t,y:k.y-n,enabled:{[y]:i,[x]:s}}}}}).name,fn:H.fn,options:[s,void 0]},G&&{name:(W={name:"flip",options:A=f={...eL},async fn(e){var t,n,r,o,i,l,a,s;let u,c,f,{placement:j,middlewareData:S,rects:P,initialPlacement:R,platform:E,elements:O}=e,{mainAxis:T=!0,crossAxis:L=!0,fallbackPlacements:M,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:F=!0,...$}=d(A,e);if(null!=(t=S.arrow)&&t.alignmentOffset)return{};let H=p(j),W=v(R),z=p(R)===R,_=await (null==E.isRTL?void 0:E.isRTL(O.floating)),B=M||(z||!F?[C(R)]:(u=C(R),[x(R),u,x(u)])),I="none"!==D;!M&&I&&B.push(...(c=h(R),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:y;return t?y:w;case"left":case"right":return t?b:k;default:return[]}}(p(R),"start"===D,_),c&&(f=f.map(e=>e+"-"+c),F&&(f=f.concat(f.map(x)))),f));let V=[R,...B],K=await E.detectOverflow(e,$),Q=[],Y=(null==(n=S.flip)?void 0:n.overflows)||[];if(T&&Q.push(K[H]),L){let e,t,n,r,o=(l=j,a=P,void 0===(s=_)&&(s=!1),e=h(l),n=g(t=m(v(l))),r="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=C(r)),[r,C(r)]);Q.push(K[o[0]],K[o[1]])}if(Y=[...Y,{placement:j,overflows:Q}],!Q.every(e=>e<=0)){let e=((null==(r=S.flip)?void 0:r.index)||0)+1,t=V[e];if(t&&("alignment"!==L||W===v(t)||Y.every(e=>v(e.placement)!==W||e.overflows[0]>0)))return{data:{index:e,overflows:Y},reset:{placement:t}};let n=null==(o=Y.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(N){case"bestFit":{let e=null==(i=Y.filter(e=>{if(I){let t=v(e.placement);return t===W||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=R}if(j!==n)return{reset:{placement:n}}}return{}}}).name,fn:W.fn,options:[f,void 0]},{name:(z={name:"size",options:S=j={...eL,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,n;let r,o,{placement:i,rects:s,platform:u,elements:c}=e,{apply:f=()=>{},...m}=d(S,e),g=await u.detectOverflow(e,m),x=p(i),y=h(i),w="y"===v(i),{width:b,height:k}=s.floating;"top"===x||"bottom"===x?(r=x,o=y===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(o=x,r="end"===y?"top":"bottom");let C=k-g.top-g.bottom,A=b-g.left-g.right,j=l(k-g[r],C),P=l(b-g[o],A),R=!e.middlewareData.shift,E=j,O=P;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(O=A),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(E=C),R&&!y){let e=a(g.left,0),t=a(g.right,0),n=a(g.top,0),r=a(g.bottom,0);w?O=b-2*(0!==e||0!==t?e+t:a(g.left,g.right)):E=k-2*(0!==n||0!==r?n+r:a(g.top,g.bottom))}await f({...e,availableWidth:O,availableHeight:E});let T=await u.getDimensions(c.floating);return b!==T.width||k!==T.height?{reset:{rects:!0}}:{}}}).name,fn:z.fn,options:[j,void 0]},ec&&{name:(_={name:"arrow",options:M=P={element:ec,padding:q},fn(e){let{element:t,padding:n}="function"==typeof M?M(e):M;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?em({element:t.current,padding:n}).fn(e):{}:t?em({element:t,padding:n}).fn(e):{}}}).name,fn:_.fn,options:[P,void 0]},eK({arrowWidth:eA,arrowHeight:eS}),ee&&{name:(B={name:"hide",options:D=N={strategy:"referenceHidden",...eL,boundary:eT?eL.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...o}=d(D,e);switch(r){case"referenceHidden":{let r=E(await n.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:O(r)}}}case"escaped":{let r=E(await n.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:O(r)}}}default:return{}}}}).name,fn:B.fn,options:[N,void 0]}]}),e_=el.setPlacementState;(0,eR.N)(()=>(e_(eF),()=>{e_(void 0)}),[eF,e_]);let[eB,eI]=eQ(eF),eY=(0,eP.c)(er);(0,eR.N)(()=>{eW&&eY?.()},[eW,eY]);let eq=ez.arrow?.x,eG=ez.arrow?.y,eX=ez.arrow?.centerOffset!==0,[eU,eZ]=o.useState();return(0,eR.N)(()=>{ea&&eZ(window.getComputedStyle(ea).zIndex)},[ea]),(0,eC.jsx)("div",{ref:eN.setFloating,"data-radix-popper-content-wrapper":"",style:{...eD,transform:eW?eD.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eU,"--radix-popper-transform-origin":[ez.transformOrigin?.x,ez.transformOrigin?.y].join(" "),...ez.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(eH,{scope:I,placedSide:eB,placedAlign:eI,onArrowChange:ef,arrowX:eq,arrowY:eG,shouldHideArrow:eX,children:(0,eC.jsx)(ek.sG.div,{"data-side":eB,"data-align":eI,...eo,ref:eu,style:{...eo.style,animation:eW?void 0:"none"}})})})});ez.displayName=e$;var e_="PopperArrow",eB={top:"bottom",right:"left",bottom:"top",left:"right"},eI=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eW(e_,n),i=eB[o.placedSide];return(0,eC.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eC.jsx)(eA,{...r,ref:t,style:{...r.style,display:"block"}})})});function eV(e){return null!==e}eI.displayName=e_;var eK=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,u]=eQ(n),c={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?c:`${f}px`,h=`${-a}px`):"top"===s?(p=i?c:`${f}px`,h=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?c:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,h=i?c:`${d}px`),{data:{x:p,y:h}}}});function eQ(e){let[t,n="center"]=e.split("-");return[t,n]}var eY=eN,eq=eF,eG=ez,eX=eI},59250:(e,t,n)=>{function r(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function o(e,t,n=!1){return(e=r(e))===(t=r(t))||n&&t.startsWith(`${e}/`)}n.d(t,{$:()=>o,S:()=>r})},61919:(e,t,n)=>{n.d(t,{So:()=>a,Og:()=>u,u2:()=>s});var r=n(59250);n(2993);var o=n(95155),i=n(12115),l=n(86591);function a(e,t){return e.$folder?null!==l.r(e.$folder.children,e=>"page"===e.type&&(0,r.$)(e.url,t)):e.urls?e.urls.has((0,r.S)(t)):(0,r.$)(e.url,t,!0)}function s({githubUrl:e,links:t}){return(0,i.useMemo)(()=>{let n=function({links:e=[],githubUrl:t}){let n=[...e];return t&&n.push({type:"icon",url:t,text:"Github",label:"GitHub",icon:(0,o.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"
1currentColor",children:(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"})}),external:!0}),n}({links:t,githubUrl:e}),r=[],i=[];for(let e of n)switch(e.on){case"menu":i.push(e);break;case"nav":r.push(e);break;default:r.push(e),i.push(e)}return{navItems:r,menuItems:i,all:n}},[t,e])}function u(e,t){return"custom"!==e.type&&!!e.url&&"none"!==e.active&&(0,r.$)(e.url,t,"nested-url"===e.active)}},70460:(e,t,n)=>{n.d(t,{D:()=>u,N:()=>c});var r=n(12115),o=(e,t,n,r,o,i,l,a)=>{let s=document.documentElement,u=["light","dark"];function c(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(s.classList.remove(...r),s.classList.add(i&&i[t]?i[t]:t)):s.setAttribute(e,t)}),n=t,a&&u.includes(n)&&(s.style.colorScheme=n)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},i=["light","dark"],l="(prefers-color-scheme: dark)",a=r.createContext(void 0),s={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=r.useContext(a))?e:s},c=e=>r.useContext(a)?r.createElement(r.Fragment,null,e.children):r.createElement(d,{...e}),f=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:s="theme",themes:u=f,defaultTheme:c=n?"system":"light",attribute:d="data-theme",value:v,children:x,nonce:y,scriptProps:w})=>{let[b,k]=r.useState(()=>h(s,c)),[C,A]=r.useState(()=>"system"===b?g():b),j=v?Object.values(v):u,S=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let l=v?v[r]:r,a=t?m(y):null,s=document.documentElement,u=e=>{"class"===e?(s.classList.remove(...j),l&&s.classList.add(l)):e.startsWith("data-")&&(l?s.setAttribute(e,l):s.removeAttribute(e))};if(Array.isArray(d)?d.forEach(u):u(d),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;s.style.colorScheme=t}null==a||a()},[y]),P=r.useCallback(e=>{let t="function"==typeof e?e(b):e;k(t);try{localStorage.setItem(s,t)}catch(e){}},[b]),R=r.useCallback(t=>{A(g(t)),"system"===b&&n&&!e&&S("system")},[b,e]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(R),R(e),()=>e.removeListener(R)},[R]),r.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?k(e.newValue):P(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[P]),r.useEffect(()=>{S(null!=e?e:b)},[e,b]);let E=r.useMemo(()=>({theme:b,setTheme:P,forcedTheme:e,resolvedTheme:"system"===b?C:b,themes:n?[...u,"system"]:u,systemTheme:n?C:void 0}),[b,P,e,C,n,u]);return r.createElement(a.Provider,{value:E},r.createElement(p,{forcedTheme:e,storageKey:s,attribute:d,enableSystem:n,enableColorScheme:o,defaultTheme:c,value:v,themes:u,nonce:y,scriptProps:w}),x)},p=r.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:i,enableColorScheme:l,defaultTheme:a,value:s,themes:u,nonce:c,scriptProps:f})=>{let d=JSON.stringify([n,t,a,e,u,s,i,l]).slice(1,-1);return r.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:`(${o.toString()})(${d})`}})}),h=(e,t)=>{let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=e=>
1(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},78962:(e,t,n)=>{n.d(t,{Dv:()=>l,T:()=>p,c3:()=>s});var r=n(12115),o=n(95155);let i=(0,r.createContext)({});function l({translations:e,children:t}){let n=(0,r.use)(i);return(0,o.jsx)(i,{value:(0,r.useMemo)(()=>({...n,...e}),[n,e]),children:t})}let a=/\\?\{([^}]+)\}/g;function s({note:e}={}){let t=(0,r.use)(i);return(0,r.useMemo)(()=>u(t,{note:e}),[t,e])}function u(e,{note:t}={}){let n=(n,r={})=>{let{note:o,variables:i}=r,l=[];t&&l.push(t),o&&l.push(o);let s=e[c(n,l)]??n;return i&&(s=s.replaceAll(a,(e,t)=>"\\"===e[0]?e.slice(1):t in i?i[t]:e)),s};return n.jsx=(n,r={})=>{let{note:o,variables:i,tags:l}=r,a=[];t&&a.push(t),o&&a.push(o);let s=e[c(n,a)]??n;return l?function(e,t,n){let r=[{children:[]}],o=0,i=()=>{let e=r.pop();r[r.length-1].children.push(m(e.tag&&n[e.tag]?h(n[e.tag],e.children):e.children,o))};for(let l of e.matchAll(d)){let a=r[r.length-1],[s,u]=l;if(o<l.index){let n=e.slice(o,l.index);a.children.push(t?f(n,t):n)}if(o=l.index+s.length,"\\"===s[0]){let e=s.slice(1);a.children.push(t?f(e,t):e)}else if("/"===u[0]){let e=u.slice(1);a.tag!==e?a.children.push(t?f(s,t):s):i()}else if("/"===u.at(-1)){let e=u.slice(0,-1);n[e]&&a.children.push(m(h(n[e]),o))}else r.push({children:[],tag:u})}if(o<e.length){let n=e.slice(o);r[r.length-1].children.push(t?f(n,t):n)}for(;r.length>1;)i();return r[0].children}(s,i,l):i?f(s,i):s},n.translations=e,n}function c(e,t){return e+t.map(e=>`(${e})`).join("")}function f(e,t){let n=0,r=[];for(let o of e.matchAll(a)){let[i,l]=o;n<o.index&&r.push(e.slice(n,o.index)),n=o.index+i.length,"\\"===i[0]?r.push(i.slice(1)):l in t?r.push(m(t[l],n)):r.push(i)}return r.push(e.slice(n)),r}let d=/\\?<([^>]+)>/g;function p({text:e,note:t,variables:n,tags:o}){let l=(0,r.use)(i);return(0,r.useMemo)(()=>u(l).jsx(e,{note:t,variables:n,tags:o}),[l,e,t,n,o])}function h(e,t){return(0,r.isValidElement)(e)?void 0===t?e:(0,r.cloneElement)(e,void 0,t):e(t)}function m(e,t){return(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{key:t}):e}},84579:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(38774),o=n(12115),i=n(95155);let l=(0,o.forwardRef)(({href:e="#",external:t=e.match(/^\w+:/)||e.startsWith("//"),prefetch:n,children:o,...l},a)=>t?(0,i.jsx)("a",{ref:a,href:e,rel:"noreferrer noopener",target:"_blank",...l,children:o}):(0,i.jsx)(r.N_,{ref:a,href:e,prefetch:n,...l,children:o}));l.displayName="Link"},86591:(e,t,n)=>{function r(e,t,n={}){let{includeSeparator:o=!0}=n;return function e(n){let r;for(let i of n){if(t(i)){let e=[];return r&&e.push(r),e.push(i),e}if("separator"===i.type&&o){r=i;continue}if("folder"===i.type){let n=i.index&&t(i.index)?[i.index]:e(i.children);if(n)return n.unshift(i),r&&n.unshift(r),n}}}(e)??null}n.d(t,{r:()=>r}),Symbol("VisitBreak")},88466:(e,t,n)=>{n.d(t,{u:()=>o});var r=n(12115);function o({enabled:e=!0}){let[t,n]=(0,r.useState)();return(0,r.useEffect)(()=>{if(!e)return;let t=()=>{n(window.scrollY<10)};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),t}}}]);
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.