PageSourceSearch

https://ivorysql.org/_next/static/chunks/432-3a71a2771e7b66cb.js

js ivorysql.org collected 2026-10-03 22:42:50 UTC 118,214 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[432],{86:e=>{e.exports={style:{fontFamily:"'dmSans', 'dmSans Fallback'"},className:"__className_8e4737",variable:"__variable_8e4737"}},201:(e,t,n)=>{"use strict";n.d(t,{F:()=>P});var r=n(6841),o=n(3565),i=["shift","alt","meta","mod","ctrl","control"],l={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function a(e){return(l[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function u(e){return i.includes(e)}function s(e,t=","){return e.toLowerCase().split(t)}function c(e,t="+",n=">",r=!1,o,l){let u=[],s=!1;(e=e.trim()).includes(n)?(s=!0,u=e.toLocaleLowerCase().split(n).map(e=>a(e))):u=e.toLocaleLowerCase().split(t).map(e=>a(e));let d={alt:u.includes("alt"),ctrl:u.includes("ctrl")||u.includes("control"),shift:u.includes("shift"),meta:u.includes("meta"),mod:u.includes("mod"),useKey:r},f=u.filter(e=>!i.includes(e));return{...d,keys:f,description:o,isSequence:s,hotkey:e,metadata:l}}"u">typeof document&&(document.addEventListener("keydown",e=>{void 0!==e.code&&p([a(e.code)])}),document.addEventListener("keyup",e=>{void 0!==e.code&&h([a(e.code)])})),"u">typeof window&&(window.addEventListener("blur",()=>{d.clear()}),window.addEventListener("focus",()=>{d.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{d.clear()},0)})),"u">typeof document&&document.addEventListener("visibilitychange",()=>{d.clear()});var d=new Set;function f(e){return Array.isArray(e)}function p(e){let t=Array.isArray(e)?e:[e];d.has("meta")&&d.forEach(e=>{u(e)||d.delete(e.toLowerCase())}),t.forEach(e=>{d.add(e.toLowerCase())})}function h(e){"meta"===e?d.clear():(Array.isArray(e)?e:[e]).forEach(e=>{d.delete(e.toLowerCase())})}var m=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function v(e,t=!1){var n;let{target:r,composed:o}=e,i,l;return(n=r).tagName&&!n.tagName.startsWith("-")&&n.tagName.includes("-")&&o?(i=e.composedPath()[0]&&e.composedPath()[0].tagName,l=e.composedPath()[0]&&e.composedPath()[0].role):(i=r&&r.tagName,l=r&&r.role),f(t)?!!(i&&t?.some(e=>e.toLowerCase()===i.toLowerCase()||e===l)):!!(i&&t&&t)}var y=(0,r.createContext)(void 0),g=(0,r.createContext)({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),w="u">typeof window?r.useLayoutEffect:r.useEffect,b=n(2577),x={UNDO:{keys:"mod+z"},REDO:{keys:"mod+shift+z"},MODE_TOGGLE:{keys:"t"},KIT_SAVE:{keys:"s"},KIT_EXPORT:{keys:"e"},KIT_RANDOMIZE:{keys:"r"},KIT_GENERATE:{keys:"g"}},E=({origin:e})=>Object.values(x).map(({keys:t})=>(0,o.jsx)(C,{keys:t,origin:e},t)),C=({keys:e,origin:t})=>{let n=()=>{if(!(typeof window>"u"))return window.parent.postMessage({action:"hotkey",payload:{keys:e}},t)};return function(e,t,n,o){var i;let l,[b,x]=(0,r.useState)(null),E=((0,r.useCallback)(e=>(x(e),()=>x(null)),[]),(0,r.useRef)(!1)),C=Array.isArray(n)?Array.isArray(void 0)?void 0:void 0:n,S=f(e)?e.join(C?.delimiter):e,k=Array.isArray(n)?n:Array.isArray(o)?o:void 0,R=(0,r.useCallback)(t,k??[]),A=(0,r.useRef)(R);k?A.current=R:A.current=t;let M=(i=function(e){if(!e)return;let{enabled:t,preventDefault:n,ignoreEventWhen:r,...o}=e;return"function"==typeof t?o:{...o,enabled:t}}(C),function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((r,o)=>r&&e(t[o],n[o]),!0):t===n}((l=(0,r.useRef)(void 0)).current,i)||(l.current=i),l.current),T=(0,r.useRef)(C?.enabled);T.current=C?.enabled;let L=(0,r.useRef)(C?.preventDefault);L.current=C?.preventDefault;let P=(0,r.useRef)(C?.ignoreEventWhen);P.current=C?.ignoreEventWhen;let{activeScopes:O}=(0,r.useContext)(g),N=(0,r.useContext)(y);w(()=>{var e;if(!1===T.current||(e=M?.scopes,!((0!==O.length||!e)&&(!e||O.some(t=>e.includes(t))||O.includes("*")))))return;let t=[],n,r=(e,r=!1)=>
1{if(!(v(e,m)&&!v(e,M?.enableOnFormTags))){if(null!==b){let t=b.getRootNode();if((t instanceof Document||t instanceof ShadowRoot)&&t.activeElement!==b&&!b.contains(t.activeElement))return void(e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation())}e.target?.isContentEditable&&!M?.enableOnContentEditable||s(S,M?.delimiter).forEach(o=>{if(o.includes(M?.splitKey??"+")&&o.includes(M?.sequenceSplitKey??">"))return void console.warn(`Hotkey ${o} contains both ${M?.splitKey??"+"} and ${M?.sequenceSplitKey??">"} which is not supported.`);let i=c(o,M?.splitKey,M?.sequenceSplitKey,M?.useKey,M?.description,M?.metadata);if(i.isSequence){n=setTimeout(()=>{t=[]},M?.sequenceTimeoutMs??1e3);let r=i.useKey?e.key:a(e.code);if(u(r.toLowerCase()))return;if(t.push(r),r!==i.keys?.[t.length-1]){t=[],n&&clearTimeout(n);return}t.length===i.keys?.length&&(A.current(e,i),n&&clearTimeout(n),t=[])}else if(((e,t,n=!1)=>{let{alt:r,meta:o,mod:i,shift:l,ctrl:u,keys:s,useKey:c}=t,{code:p,key:h,ctrlKey:m,metaKey:v,shiftKey:y,altKey:g}=e,w=a(p),b="function"==typeof e.getModifierState&&e.getModifierState("AltGraph");if(!c&&!s?.includes(w)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(w))return!1;if(!n){if(r!==g&&"alt"!==w||l!==y&&"shift"!==w)return!1;if(i){if(!(typeof navigator>"u")&&/mac/i.test(navigator.userAgent)&&!/iphone|ipad|ipod/i.test(navigator.userAgent)?!v:!m)return!1}else if(o!==v&&"meta"!==w&&"os"!==w||u!==m&&"ctrl"!==w&&"control"!==w)return!1;if(b&&!r&&!u&&!i&&!["alt","ctrl","control"].includes(w))return!1}return!!(c&&s?.length===1&&s.includes(h.toLowerCase())||s&&1===s.length&&s.includes(w))||(s&&s.length>0?!!s.includes(w)&&function(e,t=","){return(f(e)?e:e.split(t)).every(e=>d.has(e.trim().toLowerCase()))}(s):!s||0===s.length)})(e,i,M?.ignoreModifiers)||i.keys?.includes("*")){var l,s;if(P.current?.(e)||r&&E.current||(("function"==typeof(l=L.current)&&l(e,i)||!0===l)&&e.preventDefault(),"function"==typeof(s=T.current)?!s(e,i):!0!==s&&void 0!==s))return;A.current(e,i),r||(E.current=!0)}})}},o=e=>{void 0!==e.code&&(p(a(e.code)),(M?.keydown===void 0&&M?.keyup!==!0||M?.keydown)&&r(e))},i=e=>{void 0!==e.code&&(h(a(e.code)),E.current=!1,M?.keyup&&r(e,!0))},l=b||C?.document||document;return l.addEventListener("keyup",i,C?.eventListenerOptions),l.addEventListener("keydown",o,C?.eventListenerOptions),N&&s(S,M?.delimiter).forEach(e=>{N.addHotkey(c(e,M?.splitKey,M?.sequenceSplitKey,M?.useKey,M?.description,M?.metadata))}),()=>{l.removeEventListener("keyup",i,C?.eventListenerOptions),l.removeEventListener("keydown",o,C?.eventListenerOptions),N&&s(S,M?.delimiter).forEach(e=>{N.removeHotkey(c(e,M?.splitKey,M?.sequenceSplitKey,M?.useKey,M?.description,M?.metadata))}),t=[],n&&clearTimeout(n)}},[b,M,O,S])}(e,n,[n]),null},S=({origin:e})=>{let{resolvedTheme:t}=(0,b.D)(),n=(0,r.useRef)(t);return(0,r.useEffect)(()=>{typeof window>"u"||n.current===t||(n.current=t,window.parent.postMessage({action:"modeToggled",payload:t},e))},[t,e]),null},k="https://www.styleglide.ai",R=({origin:e})=>{let{setTheme:t}=(0,b.D)();return(0,r.useEffect)(()=>{let n=[e],r=e=>{if(!n.includes(e.origin))return;let r=document.documentElement;if("styleKitUpdated"===e.data.action){let{payload:n}=e.data,{styles:o,textFont:i,displayFont:l,mode:a}=n;t(a),r.style.colorScheme=a,L(r,o),A({font:l.name,weight:l.weight}),A({font:i.name,weight:i.weight})}};return window.addEventListener("message",r,!1),()=>{window.removeEventListener("message",r,!1)}},[t]),null},A=({font:e,weight:t,previewText:n,documentEl:r=document})=>{let o=M({font:e,weight:t,previewText:n});if(T(o,r))return;let i=r.createElement("link");return i.href=o,i.rel="stylesheet",r.head.appendChild(i)},M=({font:e,weight:t,previewText:n})=>{let r=[];return r.push("https://fonts.googleapis.com/css2?family="),r.push(e?.replace(/ /g,"+")),t&&(r.push(":wght@"),r.push(t)),n&&(r.push("&text="),r.push(n.replace(/ /g,""))),r.push("&display=swap"),r.join("")},T=(e,t=document)=>Array.from(t.head.getElementsByTagName("link")).some(t=>t.href===e),L=(e,t)=>{t&&Object.entries(t).forEach(([t,n])=>{e.style.setProperty(t,n)})},P=({origin:e=k})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(R,{origin:e}),(0,o.jsx)(E,{origin:e}),(0,o.jsx)(S,{origin:e})]})},584:(e,t,n)=>{"use strict";n.d(t,{B8:()=>em,C1:()=>ew,LM:()=>ex,N_:()=>eg,UC:()=>eb,bL:()=>eh,l9:()=>ey,q7:()=>ev});var r=n(6841),o=n(300),i=n(4206),l=n(7544),a=n(1500),u=n(4822),s=n(3410),c=n(9855),d=n(5452),f=n(7726),p=n(3776),h=n(8047),m=n(4289),v=n(2597),y=n(1585),g=n(7130),w=n(3565),b=Object.defineProperty,x=(e,t)=>b(e,"name",{value:t,configurable:!0}),E="NavigationMenu",[C,S,k]=(0,p.N)(E),[R,A,M]=(0,p.N)(E),[T,L]=(0,i.A)(E,[k,M]),[P,O]=T(E),[N,j]=T(E),I=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:l,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:h,...m}=e,[v,y]=r.useState(null),g=(0,s.s)(t,y),b=(0,c.jH)(h),C=r.useRef(0),S=r.useRef(0),k=r.useRef(0),[R,A]=r.useState(!0),[M,T]=(0,u.i)({prop:o,onChange:x(e=>{let t=f>0;""!==e?(window.clearTimeout(k.current),t&&A(!1)):(window.clearTimeout(k.current),k.current=window.setTimeout(()=>A(!0),f)),null==i||i(e)}
1,"onChange"),defaultProp:null!=l?l:"",caller:E}),L=r.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>T(""),150)},[T]),P=r.useCallback(e=>{window.clearTimeout(S.current),T(e)},[T]),O=r.useCallback(e=>{M===e?window.clearTimeout(S.current):C.current=window.setTimeout(()=>{window.clearTimeout(S.current),T(e)},d)},[M,T,d]);return r.useEffect(()=>()=>{window.clearTimeout(C.current),window.clearTimeout(S.current),window.clearTimeout(k.current)},[]),(0,w.jsx)(D,{scope:n,isRootMenu:!0,value:M,dir:b,orientation:p,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(C.current),R?O(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(C.current),L()},onContentEnter:()=>window.clearTimeout(S.current),onContentLeave:L,onItemSelect:e=>{T(t=>t===e?"":e)},onItemDismiss:()=>T(""),children:(0,w.jsx)(a.sG.nav,{"aria-label":"Main","data-orientation":p,dir:b,...m,ref:g})})},"NavigationMenu")),D=x(e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:i,orientation:l,children:a,value:u,onItemSelect:s,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:h,onContentLeave:v}=e,[g,b]=r.useState(null),[x,E]=r.useState(new Map),[S,k]=r.useState(null);return(0,w.jsx)(P,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:u,previousValue:(0,m.Z)(u),baseId:(0,f.B)(),dir:i,orientation:l,viewport:g,onViewportChange:b,indicatorTrack:S,onIndicatorTrackChange:k,onTriggerEnter:(0,y.c)(d),onTriggerLeave:(0,y.c)(p),onContentEnter:(0,y.c)(h),onContentLeave:(0,y.c)(v),onItemSelect:(0,y.c)(s),onItemDismiss:(0,y.c)(c),onViewportContentChange:r.useCallback((e,t)=>{E(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:r.useCallback(e=>{E(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,w.jsx)(C.Provider,{scope:t,children:(0,w.jsx)(N,{scope:t,items:x,children:a})})})},"NavigationMenuProvider"),F=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,...r}=e,o=O("NavigationMenuList",n),i=(0,w.jsx)(a.sG.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,w.jsx)(a.sG.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,w.jsx)(C.Slot,{scope:n,children:o.isRootMenu?(0,w.jsx)(er,{asChild:!0,children:i}):i})})},"NavigationMenuList")),[K,_]=T("NavigationMenuItem"),W=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,value:o,...i}=e,l=(0,f.B)(),u=r.useRef(null),s=r.useRef(null),c=r.useRef(null),d=r.useRef(()=>{}),p=r.useRef(!1),h=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){d.current();let t=el(u.current);t.length&&ea("start"===e?t:t.reverse())}},[]),m=r.useCallback(()=>{if(u.current){let e=el(u.current);e.length&&(d.current=eu(e))}},[]);return(0,w.jsx)(K,{scope:n,value:o||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:u,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:m,onContentFocusOutside:m,children:(0,w.jsx)(a.sG.li,{...i,ref:t})})},"NavigationMenuItem")),z="NavigationMenuTrigger",V=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,disabled:o,...i}=e,u=O(z,e.__scopeNavigationMenu),c=_(z,e.__scopeNavigationMenu),d=r.useRef(null),f=(0,s.s)(d,c.triggerRef,t),p=ed(u.baseId,c.value),h=ef(u.baseId,c.value),m=r.useRef(!1),v=r.useRef(!1),y=c.value===u.value;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(C.ItemSlot,{scope:n,value:c.value,children:(0,w.jsx)(ei,{asChild:!0,children:(0,w.jsx)(a.sG.button,{id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":ec(y),"aria-expanded":y,"aria-controls":y?h:void 0,...i,ref:f,onPointerEnter:(0,l.mK)(e.onPointerEnter,()=>{v.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,l.mK)(e.onPointerMove,ep(()=>{o||v.current||c.wasEscapeCloseRef.current||m.current||(u.onTriggerEnter(c.value),m.current=!0)})),onPointerLeave:(0,l.mK)(e.onPointerLeave,ep(()=>{o||(u.onTriggerLeave(),m.current=!1)})),onClick:(0,l.mK)(e.onClick,()=>{u.onItemSelect(c.value),v.current=y}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];y&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(g.bL,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,o=null==t?void 0:t.contains(n);(r||!o)&&c.onFocusProxyEnter(r?"start":"end")}}),u.viewport&&(0,w.jsx)("span",{"aria-owns":h})]})]})},"NavigationMenuTrigger")),H="navigationMenu.linkSelect",B=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return(0,w.jsx)(ei,{asChild:!0,children:(0,w.jsx)(a.sG.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:(0,l.mK)(e.onClick,e=>{let t=e.target,n=new CustomEvent(H,{bubbles:!0,cancelable:!0});if(t.addEventListener(H,e=>null==o?void 0:o(e),{once:!0}),(0,a.hO)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Z,{bubbles:!0,cancelable:!0});(0,a.hO)(t,e)}},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),G="NavigationMenuIndicator",U=r.forwardRef(x(function(e,t){let{forceMount:n,...r}=e,i=O(G,e.__scopeNavigationMenu),l=!!i.value;return i.indicatorTrack?o.createPortal((0,w.jsx)(d.C,{present:n||l,children:(0,w.jsx)(q,{...r,ref:t})}),i.indicatorTrack):null},"NavigationMenuIndicator")),q=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,...o}=e,i=O(G,n),l=S(n),[u,s]=r.useState(null),[c,d]=r.useState(null),f="horizontal"===i.orientation,p=!!i.value;r.useEffect(()=>{var e;let t=null==(e=l().find(e=>e.value===i.value))?void 0:e.ref.current;t&&s(t)},[l,i.value]);let h=x(()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})},"handlePositionChange");return es(u,h),es(i.indicatorTrack,h),c?(0,w.jsx)(a.sG.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)"),"--radix-navigation-menu-indicator-translate-x":"".concat(c.offset,"px")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)"),"--radix-navigation-menu-indicator-translate-y":"".concat(c.offset,"px")},...o.style}}):null},"NavigationMenuIndicatorImpl")),$="NavigationMenuContent",X=r.forwardRef(x(function(e,t){let{forceMount:n,...r}=e,o=O($,e.__scopeNavigationMenu),i=_($,e.__scopeNavigationMenu),a=(0,s.s)(i.contentRef,t),u=i.value===o.value,c={value:i.value,triggerRef:i.triggerRef,focu
1sProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?(0,w.jsx)(Y,{forceMount:n,...c,ref:a}):(0,w.jsx)(d.C,{present:n||u,children:(0,w.jsx)(Q,{"data-state":ec(u),...c,ref:a,onPointerEnter:(0,l.mK)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,l.mK)(e.onPointerLeave,ep(o.onContentLeave)),style:{pointerEvents:!u&&o.isRootMenu?"none":void 0,...c.style}})})},"NavigationMenuContent")),Y=r.forwardRef(x(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:r}=O($,e.__scopeNavigationMenu);return(0,v.N)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,v.N)(()=>()=>r(e.value),[e.value,r]),null},"ViewportContentMounter")),Z="navigationMenu.rootContentDismiss",Q=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,value:o,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:u,onRootContentClose:c,onContentFocusOutside:d,...f}=e,p=O($,n),m=r.useRef(null),v=(0,s.s)(m,t),y=ed(p.baseId,o),g=ef(p.baseId,o),b=S(n),E=r.useRef(null),{onItemDismiss:C}=p;r.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=x(()=>{var t;C(),c(),e.contains(document.activeElement)&&(null==(t=i.current)||t.focus())},"handleClose");return e.addEventListener(Z,t),()=>e.removeEventListener(Z,t)}},[p.isRootMenu,e.value,i,C,c]);let k=r.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=o===p.value,i=n===e.indexOf(o);if(!r&&!i)return E.current;let l=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return E.current=l,l},[p.previousValue,p.value,p.dir,b,o]);return(0,w.jsx)(er,{asChild:!0,children:(0,w.jsx)(h.qW,{id:g,"aria-labelledby":y,"data-motion":k,"data-orientation":p.orientation,...f,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(Z,{bubbles:!0,cancelable:!0});null==(e=m.current)||e.dispatchEvent(t)},onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null==(t=p.rootNavigationMenu)?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,l.mK)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=b().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(n)}),o=p.isRootMenu&&(null==(t=p.viewport)?void 0:t.contains(n));(r||o||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=el(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(ea(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null==(n=a.current)||n.focus()}}}),onEscapeKeyDown:(0,l.mK)(e.onEscapeKeyDown,e=>{u.current=!0})})})},"NavigationMenuContentImpl")),J="NavigationMenuViewport",ee=r.forwardRef(x(function(e,t){let{forceMount:n,...r}=e,o=!!O(J,e.__scopeNavigationMenu).value;return(0,w.jsx)(d.C,{present:n||o,children:(0,w.jsx)(et,{...r,ref:t})})},"NavigationMenuViewport")),et=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,children:o,...i}=e,u=O(J,n),c=(0,s.s)(t,u.onViewportChange),f=j($,e.__scopeNavigationMenu),[p,h]=r.useState(null),[m,v]=r.useState(null),y=p?(null==p?void 0:p.width)+"px":void 0,g=p?(null==p?void 0:p.height)+"px":void 0,b=!!u.value,E=b?u.value:u.previousValue,C=x(()=>{m&&h({width:m.offsetWidth,height:m.offsetHeight})},"handleSizeChange");return es(m,C),(0,w.jsx)(a.sG.div,{"data-state":ec(b),"data-orientation":u.orientation,...i,ref:c,style:{pointerEvents:!b&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":g,...i.style},onPointerEnter:(0,l.mK)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,l.mK)(e.onPointerLeave,ep(u.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,i=E===t;return(0,w.jsx)(d.C,{present:r||i,children:(0,w.jsx)(en,{...o,contentRef:n,isActive:i,onActiveContentChange:v})},t)})})},"NavigationMenuViewportImpl")),en=x(e=>{let{contentRef:t,isActive:n,onActiveContentChange:o,...i}=e,l=r.useCallback(e=>{n&&e&&o(e)},[n,o]),a=(0,s.s)(t,l);return(0,w.jsx)(Q,{...i,ref:a})},"NavigationMenuViewportItem"),er=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,...r}=e,o=O("FocusGroup",n);return(0,w.jsx)(R.Provider,{scope:n,children:(0,w.jsx)(R.Slot,{scope:n,children:(0,w.jsx)(a.sG.div,{dir:o.dir,...r,ref:t})})})},"FocusGroup")),eo=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ei=r.forwardRef(x(function(e,t){let{__scopeNavigationMenu:n,...r}=e,o=A(n),i=O("FocusGroupItem",n);return(0,w.jsx)(R.ItemSlot,{scope:n,children:(0,w.jsx)(a.sG.button,{...r,ref:t,onKeyDown:(0,l.mK)(e.onKeyDown,e=>
1{if(["Home","End",...eo].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.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(()=>ea(t)),e.preventDefault()}})})})},"FocusGroupItem"));function el(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:x(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 ea(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 es(e,t){let n=(0,y.c)(t);(0,v.N)(()=>{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 ec(e){return e?"open":"closed"}function ed(e,t){return"".concat(e,"-trigger-").concat(t)}function ef(e,t){return"".concat(e,"-content-").concat(t)}function ep(e){return t=>"mouse"===t.pointerType?e(t):void 0}x(el,"getTabbableCandidates"),x(ea,"focusFirst"),x(eu,"removeFromTabOrder"),x(es,"useResizeObserver"),x(ec,"getOpenState"),x(ed,"makeTriggerId"),x(ef,"makeContentId"),x(ep,"whenMouse");var eh=I,em=F,ev=W,ey=V,eg=B,ew=U,eb=X,ex=ee},770:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},911:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},1331:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},1500:(e,t,n)=>{"use strict";n.d(t,{hO:()=>s,sG:()=>u});var r=n(6841),o=n(300),i=n(5530),l=n(3565),a=Object.defineProperty,u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}a(s,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0})},1501:(e,t,n)=>{"use strict";n.d(t,{default:()=>o.a});var r=n(9890),o=n.n(r)},1565:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]])},1585:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(6841);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(o,"name",{value:"useCallbackRef",configurable:!0})},1611:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},2577:(e,t,n)=>{"use strict";n.d(t,{D:()=>c,N:()=>d});var r=n(6841),o=(e,t,n,r,o,i,l,a)=>{let u=document.documentElement,s=["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?(u.classList.remove(...r),u.classList.add(i&&i[t]?i[t]:t)):u.setAttribute(e,t)}),n=t,a&&s.includes(n)&&(u.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?"dar
1k":"light":e;c(r)}catch(e){}},i=["light","dark"],l="(prefers-color-scheme: dark)",a="undefined"==typeof window,u=r.createContext(void 0),s={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=r.useContext(u))?e:s},d=e=>r.useContext(u)?r.createElement(r.Fragment,null,e.children):r.createElement(p,{...e}),f=["light","dark"],p=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:a=!0,storageKey:s="theme",themes:c=f,defaultTheme:d=o?"system":"light",attribute:p="data-theme",value:g,children:w,nonce:b,scriptProps:x}=e,[E,C]=r.useState(()=>m(s,d)),[S,k]=r.useState(()=>"system"===E?y():E),R=g?Object.values(g):c,A=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=y());let r=g?g[t]:t,l=n?v(b):null,u=document.documentElement,s=e=>{"class"===e?(u.classList.remove(...R),r&&u.classList.add(r)):e.startsWith("data-")&&(r?u.setAttribute(e,r):u.removeAttribute(e))};if(Array.isArray(p)?p.forEach(s):s(p),a){let e=i.includes(d)?d:null,n=i.includes(t)?t:e;u.style.colorScheme=n}null==l||l()},[b]),M=r.useCallback(e=>{let t="function"==typeof e?e(E):e;C(t);try{localStorage.setItem(s,t)}catch(e){}},[E]),T=r.useCallback(e=>{k(y(e)),"system"===E&&o&&!t&&A("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),r.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?C(e.newValue):M(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),r.useEffect(()=>{A(null!=t?t:E)},[t,E]);let L=r.useMemo(()=>({theme:E,setTheme:M,forcedTheme:t,resolvedTheme:"system"===E?S:E,themes:o?[...c,"system"]:c,systemTheme:o?S:void 0}),[E,M,t,S,o,c]);return r.createElement(u.Provider,{value:L},r.createElement(h,{forcedTheme:t,storageKey:s,attribute:p,enableSystem:o,enableColorScheme:a,defaultTheme:d,value:g,themes:c,nonce:b,scriptProps:x}),w)},h=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:i,enableSystem:l,enableColorScheme:a,defaultTheme:u,value:s,themes:c,nonce:d,scriptProps:f}=e,p=JSON.stringify([i,n,u,t,c,s,l,a]).slice(1,-1);return r.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(p,")")}})}),m=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=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)}},y=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},2597:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(6841),o=globalThis?.document?r.useLayoutEffect:()=>{}},3556:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},3776:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function i(e,t,n){var o=r(e,t,"set");if(o.set)o.set.call(e,n);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=n}return n}n.d(t,{N:()=>m});var l,a,u=n(6841),s=n(4206),c=n(3410),d=n(5530),f=n(3565),p=Object.defineProperty,h=(e,t)=>p(e,"name",{value:t,configurable:!0});function m(e){let t=e+"CollectionProvider",[n,r]=(0,s.A)(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h(e=>{let{scope:t,children:n}=e,r=u.useRef(null),i=u.useRef(new Map).current;return(0,f.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})},"CollectionProvider");l.displayName=t;let a=e+"CollectionSlot",p=(0,d.TL)(a),m=u.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,o=i(a,n),l=(0,c.s)(t,o.collectionRef);return(0,f.jsx)(p,{ref:l,children:r})});m.displayName=a;let v=e+"CollectionItemSlot",y="data-radix-collection-item",g=(0,d.TL)(v),w=u.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,l=u.useRef(null),a=(0,c.s)(t,l),s=i(v,n);return u.useEffect(()=>(s.itemMap.set(l,{ref:l,...o}),()=>void s.itemMap.delete(l))),(0,f.jsx)(g,{...{[y]:""},ref:a,children:r})});function b(t){let n=i(e+"CollectionConsumer",t);return u.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return w.displayName=v,h(b,"useCollection"),[{Provider:l,Slot:m,ItemSlot:w},b,r]}h(m,"createCollection");var v=new WeakMap,y=(l=new WeakMap,h(a=class e extends Map{set(e,t){return v.get(this)&&(this.has(e)?o(this,l)[o(this,l).indexOf(e)]=e:o(this,l).push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),a=o(this,l).length,u=b(e),s=u>=0?u:a+u,c=s<0||s>=a?-1:s;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!i;u<0&&s++;let f=[...o(this,l)],p=!1;for(let e=s;e<d;e++)if(s===e){let o=f[e];f[e]===t&&(o=f[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=o(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=o(this,l).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=o(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=o(this,l).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return i(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&o(this,l).splice(o(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=g(o(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=g(o(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return o(this,l).indexOf(e)}keyAt(e){return g(o(this,l),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++}}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=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}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(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;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}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,l,{writable:!0,value:void 0}),i(this,l,[...super.keys()]),v.set(this,!0)}},"OrderedDict"),a);function g(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=w(e,t);return -1===n?void 0:e[n]}function w(e,t){let n=e.length,r=b(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function b(e){return e!=e||0===e?0:Math.trunc(e)}function x(e,t){if(e===t)return!0;
1if("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 E(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function C(e,t){return e[1].element&&t[1].element?E(e[1].element,t[1].element)?-1:1:0}function S(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}h(g,"at"),h(w,"toSafeIndex"),h(b,"toSafeInteger"),h(function(e){let t=e+"CollectionProvider",[n,r]=(0,s.A)(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new y,setItemMap:h(()=>void 0,"setItemMap")}),l=h(e=>{let{state:t,...n}=e;return t?(0,f.jsx)(p,{...n,state:t}):(0,f.jsx)(a,{...n})},"CollectionProvider");l.displayName=t;let a=h(e=>{let t=k();return(0,f.jsx)(p,{...e,state:t})},"CollectionInit");a.displayName=t+"Init";let p=h(e=>{let{scope:t,children:n,state:r}=e,i=u.useRef(null),[l,a]=u.useState(null),s=(0,c.s)(i,a),[d,p]=r;return u.useEffect(()=>{if(!l)return;let e=S(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,f.jsx)(o,{scope:t,itemMap:d,setItemMap:p,collectionRef:s,collectionRefObject:i,collectionElement:l,children:n})},"CollectionProviderImpl");p.displayName=t+"Impl";let m=e+"CollectionSlot",v=(0,d.TL)(m),g=u.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=i(m,n),l=(0,c.s)(t,o.collectionRef);return(0,f.jsx)(v,{ref:l,children:r})});g.displayName=m;let w=e+"CollectionItemSlot",b=(0,d.TL)(w),E=u.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,l=u.useRef(null),[a,s]=u.useState(null),d=(0,c.s)(t,l,s),{setItemMap:p}=i(w,n),h=u.useRef(o);x(h.current,o)||(h.current=o);let m=h.current;return u.useEffect(()=>(p(e=>a?e.has(a)?e.set(a,{...m,element:a}).toSorted(C):(e.set(a,{...m,element:a}),e.toSorted(C)):e),()=>{p(e=>a&&e.has(a)?(e.delete(a),new y(e)):e)}),[a,m,p]),(0,f.jsx)(b,{"data-radix-collection-item":"",ref:d,children:r})});function k(){return u.useState(new y)}function R(t){let{itemMap:n}=i(e+"CollectionConsumer",t);return n}return E.displayName=w,h(k,"useInitCollection"),h(R,"useCollection"),[{Provider:l,Slot:g,ItemSlot:E},{createCollectionScope:r,useCollection:R,useInitCollection:k}]},"createCollection"),h(x,"shallowEqual"),h(E,"isElementPreceding"),h(C,"sortByDocumentPosition"),h(S,"getChildListObserver")},4206:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6841),o=n(3565),i=Object.defineProperty,l=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t=[]){let n=[];function i(t,i){let a=r.createContext(i);a.displayName=t+"Context";let u=n.length;n=[...n,i];let s=l(t=>{let{scope:n,children:i,...l}=t,s=n?.[e]?.[u]||a,c=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(s.Provider,{value:c,children:i})},"Provider");function c(n,o,l={}){let{optional:s=!1}=l,d=o?.[e]?.[u]||a,f=r.useContext(d);if(f)return f;if(void 0!==i)return i;if(!s)throw Error(`\`${n}\` must be used within \`${t}\``)}return s.displayName=t+"Provider",l(c,"useContext"),[s,c]}l(i,"createContext");let s=l(()=>{let t=n.map(e=>r.createContext(e));return l(function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])},"useScope")},"createScope");return s.scopeName=e,[i,u(s,...t)]}function u(...e){let t=e[0];if(1===e.length)return t;let n=l(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return l(function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}l(function(e,t){let n=r.createContext(t);n.displayName=e+"Context";let i=l(e=>{let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})},"Provider");function a(o,i={}){let{optional:l=!1}=i,u=r.useContext(n);if(u)return u;if(void 0!==t)return t;if(!l)throw Error(`\`${o}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",l(a,"useContext"),[i,a]},"createContext"),l(a,"createContextScope"),l(u,"composeContextScopes")},4271:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])}
1,4289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6841);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(o,"name",{value:"usePrevious",configurable:!0})},4471:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},4494:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]])},4657:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},4822:(e,t,n)=>{"use strict";n.d(t,{i:()=>p});var r=n(6841),o=n.t(r,2),i=n(2597),l=Object.defineProperty,a=o[" useEffectEvent ".trim().toString()],u=o[" useInsertionEffect ".trim().toString()];function s(e){if("function"==typeof a)return a(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof u?u(()=>{t.current=e}):(0,i.N)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}l(s,"name",{value:"useEffectEvent",configurable:!0});var c=Object.defineProperty,d=(e,t)=>c(e,"name",{value:t,configurable:!0}),f=o[" useInsertionEffect ".trim().toString()]||i.N;function p({prop:e,defaultProp:t,onChange:n=d(()=>{},"onChange"),caller:o}){let[i,l,a]=h({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:i;return[s,r.useCallback(t=>{if(u){let n=m(t)?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}function h({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),l=r.useRef(t);return f(()=>{l.current=t},[t]),r.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,o,l]}function m(e){return"function"==typeof e}d(p,"useControllableState"),d(h,"useUncontrolledState"),d(m,"isFunction");var v=Symbol("RADIX:SYNC_STATE");d(function(e,t,n,o){let{prop:i,defaultProp:l,onChange:a,caller:u}=t,c=void 0!==i,d=s(a),f=[{...n,state:l}];o&&f.push(o);let[p,h]=r.useReducer((t,n)=>{if(n.type===v)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&d(r.state),r},...f),m=p.state,y=r.useRef(m);r.useEffect(()=>{y.current!==m&&(y.current=m,c||d(m))},[m,y,c]);let g=r.useMemo(()=>void 0!==i?{...p,state:i}:p,[p,i]);return r.useEffect(()=>{c&&!Object.is(i,p.state)&&h({type:v,state:i})},[i,p.state,c]),[g,h]},"useControllableStateReducer")},4827:(e,t,n)=>{"use strict";let r;n.d(t,{UC:()=>nR,In:()=>nx,q7:()=>nH,VF:()=>nU,p4:()=>nG,ZL:()=>nS,bL:()=>ng,wn:()=>nY,PP:()=>n$,l9:()=>nw,WT:()=>nb,LM:()=>nF});var o,i,l=n(6841),a=n(300);function u(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(u,"name",{value:"clamp",configurable:!0});var s=n(7544),c=n(3776),d=n(3410),f=n(4206),p=n(9855),h=n(8047),m=Object.defineProperty,v=(e,t)=>m(e,"name",{value:t,configurable:!0}),y=0,g=null;function w(){l.useEffect(()=>{g||(g={start:b(),end:b()});let{start:e,end:t}=g;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),y++,()=>{1===y&&(null==g||g.start.remove(),null==g||g.end.remove(),g=null),y=Math.max(0,y-1)}},[])}function b(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}v(function(e){return w(),e.children},"FocusGuards"),v(w,"useFocusGuards"),v(b,"createFocusGuard");var x=n(1500),E=n(1585),C=n(3565),S=Object.defineProperty,k=(e,t)=>S(e,"name",{value:t,configurable:!0}),R="focusScope.autoFocusOnMount",A="focusScope.autoFocusOnUnmount",M={bubbles:!1,cancelable:!0},T=l.forwardRef(k(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,s]=l.useState(null),c=(0,E.c)(o),f=(0,E.c)(i),p=l.useRef(null),h=(0,d.s)(t,s),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(m.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:D(p.current,{select:!0})},t=function(e){if(m.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||D(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(u)};k(e,"handleFocusIn"),k(t,"handleFocusOut"),k(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,u,m.paused]),l.useEffect(()=>{if(u){F.add(m);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(R,M);u.addEventListener(R,c),u.dispatchEvent(t),t.defaultPrevented||(L(W(O(u)),{select:!0}),document.activeElement===e&&D(u))}return()=>{u.removeEventListener(R,c),setTimeout(()=>{let t=new CustomEvent(A,M);u.addEventListener(A,f),u.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),u.removeEventListener(A,f),F.remove(m)},0)}}},[u,c,f,m]);let v=l.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=P(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&D(i,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,C.jsx)(x.sG.div,{tabIndex:-1,...a,ref:h,onKeyDown:v})},"FocusScope"));function L(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}function P(e){let t=O(e);return[N(t,e),N(t.reverse(),e)]}function O(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:k(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 N(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):j(r,{upTo:t})))return r}function j(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function I(e){return e instanceof HTMLInputElement&&"select"in e}function D(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&I(e)&&t&&e.select()}}k(L,"focusFirst"),k(P,"getTabbableEdges"),k(O,"getTabbableCandidates"),k(N,"findVisible"),k(j,"isHidden"),k(I,"isSelectableInput"),k(D,"focus");var F=K();function K(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=_(e,t)).unshift(t)},remove(t){var n;null==(n=(e=_(e,t))[0])||n.resume()}}}function _(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function W(e){return e.filter(e=>"A"!==e.tagName)}k(K,"createFocusScopesStack"),k(_,"arrayRemove"),k(W,"removeLinks");var z=n(7726);let V=["top","right","bottom","left"],H=Math.min,B=Math.max,G=Math.round,U=Math.floor,q=e=>({x:e,y:e}),$={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e,t){return"function"==typeof e?e(t):e}function Y(e){return e.split("-")[0]}function Z(e){return e.split("-")[1]}function Q(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function ee(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function et(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let en=["left","right"],er=["right","left"],eo=["top","bottom"],ei=["bottom","top"];function el(e){let t=Y(e);return $[t]+e.slice(t.length)}function ea(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function eu(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}}
1function es(e,t,n){let r,{reference:o,floating:i}=e,l=ee(t),a=Q(ee(t)),u=J(a),s=Y(t),c=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[u]/2-i[u]/2;switch(s){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,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}}let p=Z(t);return p&&(r[a]+=f*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function ec(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=X(t,e),h=ea(p),m=a[f?"floating"===d?"reference":"floating":d],v=eu(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,g=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(g))&&await (null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},b=eu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:u}):y);return{top:(v.top-b.top+h.top)/w.y,bottom:(b.bottom-v.bottom+h.bottom)/w.y,left:(v.left-b.left+h.left)/w.x,right:(b.right-v.right+h.right)/w.x}}let ed=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:ec},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=es(s,r,u),f=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:v,fn:y}=m,{x:g,y:w,data:b,reset:x}=await y({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=w?w:d,h[v]={...h[v],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(s=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:c,y:d}=es(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:h}};function ef(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ep(e){return V.some(t=>e[t]>=0)}let eh=new Set(["left","top"]);async function em(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=Y(n),a=Z(n),u="y"===ee(n),s=eh.has(l)?-1:1,c=i&&u?-1:1,d=X(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}function ev(){return"undefined"!=typeof window}function ey(e){return eb(e)?(e.nodeName||"").toLowerCase():"#document"}function eg(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ew(e){var t;return null==(t=(eb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eb(e){return!!ev()&&(e instanceof Node||e instanceof eg(e).Node)}function ex(e){return!!ev()&&(e instanceof Element||e instanceof eg(e).Element)}function eE(e){return!!ev()&&(e instanceof HTMLElement||e instanceof eg(e).HTMLElement)}function eC(e){return!!ev()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eg(e).ShadowRoot)}function eS(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eO(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ek(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eR=/transform|translate|scale|rotate|perspective|filter/,eA=/paint|layout|strict|content/,eM=e=>!!e&&"none"!==e;function eT(e){let t=ex(e)?eO(e):e;return eM(t.transform)||eM(t.translate)||eM(t.scale)||eM(t.rotate)||eM(t.perspective)||!eL()&&(eM(t.backdropFilter)||eM(t.filter))||eR.test(t.willChange||"")||eA.test(t.contain||"")}function eL(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function eP(e){return/^(html|body|#document)$/.test(ey(e))}function eO(e){return eg(e).getComputedStyle(e)}function eN(e){return ex(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ej(e){if("html"===ey(e))return e;let t=e.assignedSlot||e.parentNode||eC(e)&&e.host||ew(e);return eC(t)?t.host:t}function eI(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ej(t);return eP(n)?(t.ownerDocument||t).body:eE(n)&&eS(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=eg(o);if(!i)return t.concat(o,eI(o,[],n));{let e=eD(l);
1return t.concat(l,l.visualViewport||[],eS(o)?o:[],e&&n?eI(e):[])}}function eD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eF(e){let t=eO(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eE(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=G(n)!==i||G(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eK(e){return ex(e)?e:e.contextElement}function e_(e){let t=eK(e);if(!eE(t))return q(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eF(t),l=(i?G(n.width):n.width)/r,a=(i?G(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eW=q(0);function ez(e){let t=eg(e);return eL()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eW}function eV(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eK(e),a=q(1);t&&(r?ex(r)&&(a=e_(r)):a=e_(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===eg(l))?ez(l):q(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l&&r){let e=eg(l),t=ex(r)?eg(r):r,n=e,o=eD(n);for(;o&&t!==n;){let e=e_(o),t=o.getBoundingClientRect(),r=eO(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,f*=e.y,s+=i,c+=l,o=eD(n=eg(o))}}return eu({width:d,height:f,x:s,y:c})}function eH(e,t){let n=eN(e).scrollLeft;return t?t.left+n:eV(ew(e)).left+n}function eB(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eH(e,n),y:n.top+t.scrollTop}}function eG(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=eg(e),i=ew(e),l=o.visualViewport,a=i.clientWidth,u=i.clientHeight,s=0,c=0;if(l){let e=!eL()||"fixed"===t;r?e||(s=-l.offsetLeft,c=-l.offsetTop):(a=l.width,u=l.height,e&&(s=l.offsetLeft,c=l.offsetTop))}if(0>=eH(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:u,x:s,y:c}}(e,n,t);else if("document"===t)r=function(e){let t=eN(e),n=e.ownerDocument.body,r=B(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=B(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+eH(e),l=-t.scrollTop;return"rtl"===eO(n).direction&&(i+=B(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(ew(e));else if(ex(t))r=function(e,t){let n=eV(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=e_(e),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=ez(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eu(r)}function eU(e){return"static"===eO(e).position}function eq(e,t){if(!eE(e)||"fixed"===eO(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ew(e)===n&&(n=n.ownerDocument.body),n}function e$(e,t){var n;let r=eg(e);if(ek(e))return r;if(!eE(e)){let t=ej(e);for(;t&&!eP(t);){if(ex(t)&&!eU(t))return t;t=ej(t)}return r}let o=eq(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(ey(n)))&&eU(o);)o=eq(o,t);return o&&eP(o)&&eU(o)&&!eT(o)?r:o||function(e){let t=ej(e);for(;eE(t)&&!eP(t);){if(eT(t))return t;if(ek(t))break;t=ej(t)}return null}(e)||r}let eX=async function(e){let t=this.getOffsetParent||e$,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eE(t),o=ew(t),i="fixed"===n,l=eV(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=q(0);if((r||!i)&&(("body"!==ey(t)||eS(o))&&(a=eN(t)),r)){let e=eV(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=eH(o));let s=!o||r||i?q(0):eB(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.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}}},eY={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ew(r),a=!!t&&ek(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=q(1),c=q(0),d=eE(r);
1if((d||!i)&&(("body"!==ey(r)||eS(l))&&(u=eN(r)),d)){let e=eV(r);s=e_(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?q(0):eB(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:n.y*s.y-u.scrollTop*s.y+c.y+f.y}},getDocumentElement:ew,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ek(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eI(e,[],!1).filter(e=>ex(e)&&"body"!==ey(e)),o=null,i="fixed"===eO(e).position,l=i?ej(e):e;for(;ex(l)&&!eP(l);){let e=eO(l),t=eT(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=ej(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eG(t,i[0],o),a=l.top,u=l.right,s=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=eG(t,i[e],o);a=B(n.top,a),u=H(n.right,u),s=H(n.bottom,s),c=B(n.left,c)}return{width:u-c,height:s-a,x:c,y:a}},getOffsetParent:e$,getElementRects:eX,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eF(e);return{width:t,height:n}},getScale:e_,isElement:ex,isRTL:function(e){return"rtl"===eO(e).direction}};function eZ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eQ=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=X(e,t)||{};if(null==s)return{};let d=ea(c),f={x:n,y:r},p=Q(ee(o)),h=J(p),m=await l.getDimensions(s),v="y"===p,y=v?"clientHeight":"clientWidth",g=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),x=b?b[y]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=a.floating[y]||i.floating[h]);let E=x/2-m[h]/2-1,C=H(d[v?"top":"left"],E),S=H(d[v?"bottom":"right"],E),k=x-m[h]-S,R=x/2-m[h]/2+(g/2-w/2),A=B(C,H(R,k)),M=!u.arrow&&null!=Z(o)&&R!==A&&i.reference[h]/2-(R<C?C:S)-m[h]/2<0,T=M?R<C?R-C:R-k:0;return{[p]:f[p]+T,data:{[p]:A,centerOffset:R-A-T,...M&&{alignmentOffset:T}},reset:M}}});var eJ="undefined"!=typeof document?l.useLayoutEffect:function(){};function e0(e,t){let n,r,o;if(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(!e0(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)&&!e0(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e1(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e2(e,t){let n=e1(e);return Math.round(t*n)/n}function e5(e){let t=l.useRef(e);return eJ(()=>{t.current=e}),t}var e4=n(2597);function e8(e){let[t,n]=l.useState(void 0);return(0,e4.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}(0,Object.defineProperty)(e8,"name",{value:"useSize",configurable:!0});var e6=Object.defineProperty,e3=(e,t)=>e6(e,"name",{value:t,configurable:!0}),e7="Popper",[e9,te]=(0,f.A)(e7),[tt,tn]=e9(e7),tr=e3(e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null),[i,a]=l.useState(void 0);return(0,C.jsx)(tt,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:a,children:n})},"Popper"),to=l.forwardRef(e3(function(e,t){let{__scopePopper:n,virtualRef:r,...o}=e,i=tn("PopperAnchor",n),a=l.useRef(null),u=i.onAnchorChange,s=l.useCallback(e=>{a.current=e,e&&u(e)},[u]),c=(0,d.s)(t,s),f=l.useRef(null);l.useEffect(()=>{if(!r)return;let e=f.current;f.current=r.current,e!==f.current&&u(f.current)});let p=i.placementState&&td(i.placementState),h=null==p?void 0:p[0],m=null==p?void 0:p[1];return r?null:(0,C.jsx)(x.sG.div,{"data-radix-popper-side":h,"data-radix-popper-align":m,...o,ref:c})},"PopperAnchor")),ti="PopperContent",[tl,ta]=e9(ti),tu=l.forwardRef(e3(function(e,t){var n,r,o,i,u,s,c,f,p,h,m,v;let{__scopePopper:y,side:g="bottom",sideOffset:w=0,align:b="center",alignOffset:S=0,arrowPadding:k=0,avoidCollisions:R=!0,collisionBoundary:A=[],collisionPadding:M=0,sticky:T="partial",hideWhenDetached:L=!1,updatePositionStrategy:P="optimized",onPlaced:O,...N}=e,j=tn(ti,y),[I,D]=l.useState(null),F=(0,d.s)(t,D),[K,_]=l.useState(null),W=e8(K),z=null!=(f=null==W?void 0:W.width)?f:0,V=null!=(p=null==W?void 0:W.height)?p:0,G="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},q=Array.isArray(A)?A:[A],$=q.length>0,ea={padding:G,boundary:q.filter(ts),altBoundary:$},{refs:eu,floatingStyles:es,placement:ec,isPositioned:ev,middlewareData:ey}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:u}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(r);e0(h,r)||m(r);let[v,y]=l.useState(null),[g,w]=l.useState(null),b=l.useCallback(e=>
1{e!==S.current&&(S.current=e,y(e))},[]),x=l.useCallback(e=>{e!==k.current&&(k.current=e,w(e))},[]),E=i||v,C=u||g,S=l.useRef(null),k=l.useRef(null),R=l.useRef(f),A=null!=c,M=e5(c),T=e5(o),L=e5(d),P=l.useCallback(()=>{if(!S.current||!k.current)return;let e={placement:t,strategy:n,middleware:h};T.current&&(e.platform=T.current),((e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...eY,...o.platform,_c:r};return ed(e,t,{...o,platform:i})})(S.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};O.current&&!e0(R.current,t)&&(R.current=t,a.flushSync(()=>{p(t)}))})},[h,t,n,T,L]);eJ(()=>{!1===d&&R.current.isPositioned&&(R.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let O=l.useRef(!1);eJ(()=>(O.current=!0,()=>{O.current=!1}),[]),eJ(()=>{if(E&&(S.current=E),C&&(k.current=C),E&&C){if(M.current)return M.current(E,C,P);P()}},[E,C,P,M,A]);let N=l.useMemo(()=>({reference:S,floating:k,setReference:b,setFloating:x}),[b,x]),j=l.useMemo(()=>({reference:E,floating:C}),[E,C]),I=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=e2(j.floating,f.x),r=e2(j.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...e1(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,j.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:P,refs:N,elements:j,floatingStyles:I}),[f,P,N,j,I])}({strategy:"fixed",placement:g+("center"!==b?"-"+b:""),whileElementsMounted:e3(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=eK(e),d=i||l?[...c?eI(c):[],...t?eI(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let f=c&&u?function(e,t,n){let r,o=null,i=ew(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),l();let s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=s;if(n||t(),!f||!p)return;let h=U(d),m=U(i.clientWidth-(c+f)),v={rootMargin:-h+"px "+-m+"px "+-U(i.clientHeight-(d+p))+"px "+-U(c)+"px",threshold:B(0,H(1,u))||1},y=!0;function g(t){let n=t[0].intersectionRatio;if(!eZ(s,e.getBoundingClientRect()))return a();if(n!==u){if(!y)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{o=new IntersectionObserver(g,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,v)}o.observe(e)}let u=eg(e),s=()=>a(n);return u.addEventListener("resize",s),a(!0),()=>{u.removeEventListener("resize",s),l()}}(c,n,l):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),t&&h.observe(t));let m=s?eV(e):null;return s&&function t(){let r=eV(e);m&&!eZ(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},"whileElementsMounted"),elements:{reference:j.anchor},middleware:[((e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await em(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:w+V,alignmentAxis:S}),R&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=X(n,e),c={x:t,y:r},d=await i.detectOverflow(e,s),f=ee(o),p=Q(f),h=c[p],m=c[f],v=(e,t)=>B(t+d["y"===e?"top":"left"],H(t,t-d["y"===e?"bottom":"right"]));l&&(h=v(p,h)),a&&(m=v(f,m));let y=u.fn({...e,[p]:h,[f]:m});return{...y,data:{x:y.x-t,y:y.y-r,enabled:{[p]:l,[f]:a}}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===T?{fn:(void 0===(v=h)&&(v={}),{options:v,fn(e){var t,n,r,o;let{x:i,y:l,placement:a,rects:u,middlewareData:s}=e,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=X(v,e),p={x:i,y:l},h=ee(a),m=Q(h),y=p[m],g=p[h],w=X(c,e),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(t=w.mainAxis)?t:0,crossAxis:null!=(n=w.crossAxis)?n:0};if(d){let e="y"===m?"height":"width",t=u.reference[m]-u.floating[e]+b.mainAxis,n=u.reference[m]+u.reference[e]-b.mainAxis;y<t?y=t:y>n&&(y=n)}if(f){let e="y"===m?"width":"height",t=eh.has(Y(a)),n=u.reference[h]-u.floating[e]+(t&&(null==(r=s.offset)?void 0:r[h])||0)+(t?0:b.crossAxis),i=u.reference[h]+u.reference[e]+(t?0:(null==(o=s.offset)?void 0:o[h])||0)-(t?b.crossAxis:0);g<n?g=n:g>i&&(g=i)}return{[m]:y,[h]:g}}}).fn,options:[h,m]}:void 0,...ea}),R&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=X(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let b=Y(a),x=ee(c),E=Y(c)===c,C=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=m||(E||!g?[el(c)]:function(e){let t=el(e);return[et(e),t,et(t)]}(c)),k="none"!==y;
1!m&&k&&S.push(...function(e,t,n,r){let o=Z(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?er:en;return t?en:er;case"left":case"right":return t?eo:ei;default:return[]}}(Y(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(et)))),i}(c,g,y,C));let R=[c,...S],A=await d.detectOverflow(e,w),M=[],T=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&M.push(A[b]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=Z(e),o=Q(ee(e)),i=J(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=el(l)),[l,el(l)]}(a,s,C);M.push(A[e[0]],A[e[1]])}if(T=[...T,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=R[e];if(t&&("alignment"!==h||x===ee(t)||T.every(e=>ee(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(i=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=T.filter(e=>{if(k){let t=ee(e.placement);return t===x||"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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}})({...ea}),((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r,{placement:o,rects:i,platform:l,elements:a}=e,{apply:u=()=>{},...s}=X(n,e),c=await l.detectOverflow(e,s),d=Y(o),f=Z(o),p="y"===ee(o),{width:h,height:m}=i.floating;"top"===d||"bottom"===d?(t=d,r=f===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let v=m-c.top-c.bottom,y=h-c.left-c.right,g=H(m-c[t],v),w=H(h-c[r],y),b=e.middlewareData.shift,x=!b,E=g,C=w;null!=b&&b.enabled.x&&(C=y),null!=b&&b.enabled.y&&(E=v),x&&!f&&(p?C=h-2*B(c.left,c.right):E=m-2*B(c.top,c.bottom)),await u({...e,availableWidth:C,availableHeight:E});let S=await l.getDimensions(a.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}})({...ea,apply:e3(e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))},"apply")}),K&&((e,t)=>{let n,r={name:"arrow",options:n=e,fn(e){let{element:t,padding:r}="function"==typeof n?n(e):n;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eQ({element:t.current,padding:r}).fn(e):{}:t?eQ({element:t,padding:r}).fn(e):{}}};return{name:r.name,fn:r.fn,options:[e,t]}})({element:K,padding:k}),tc({arrowWidth:z,arrowHeight:V}),L&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=X(n,e);switch(o){case"referenceHidden":{let n=ef(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:ep(n)}}}case"escaped":{let n=ef(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:ep(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({strategy:"referenceHidden",...ea,boundary:$?ea.boundary:void 0})]}),eb=j.setPlacementState;(0,e4.N)(()=>(eb(ec),()=>{eb(void 0)}),[ec,eb]);let[ex,eE]=td(ec),eC=(0,E.c)(O);(0,e4.N)(()=>{ev&&(null==eC||eC())},[ev,eC]);let eS=null==(n=ey.arrow)?void 0:n.x,ek=null==(r=ey.arrow)?void 0:r.y,eR=(null==(o=ey.arrow)?void 0:o.centerOffset)!==0,[eA,eM]=l.useState();return(0,e4.N)(()=>{I&&eM(window.getComputedStyle(I).zIndex)},[I]),(0,C.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ev?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eA,"--radix-popper-transform-origin":[null==(i=ey.transformOrigin)?void 0:i.x,null==(u=ey.transformOrigin)?void 0:u.y].join(" "),...(null==(s=ey.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,C.jsx)(tl,{scope:y,placedSide:ex,placedAlign:eE,onArrowChange:_,arrowX:eS,arrowY:ek,shouldHideArrow:eR,children:(0,C.jsx)(x.sG.div,{"data-side":ex,"data-align":eE,...N,ref:F,style:{...N.style,animation:ev?null==(c=N.style)?void 0:c.animation:"none"}})})})},"PopperContent"));function ts(e){return null!==e}e3(ts,"isNotNull");var tc=e3(e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=td(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+d/2,y=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+f/2,g="",w="";return"bottom"===p?(g=c?m:"".concat(v,"px"),w="".concat(-f,"px")):"top"===p?(g=c?m:"".concat(v,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),w=c?m:"".concat(y,"px")):"left"===p&&(g="".concat(u.floating.width+f,"px"),w=c?m:"".concat(y,"px")),{data:{x:g,y:w}}}}),"transformOrigin");function td(e){let[t,n="center"]=e.split("-");return[t,n]}e3(td,"getSideAndAlignFromPlacement");var tf=Object.defineProperty,tp=l.forwardRef(tf(function(e,t){var n,r;let{container:o,...i}=e,[u,s]=l.useState(!1);(0,e4.N)(()=>s(!0),[]);let c=o||u&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);
1return c?a.createPortal((0,C.jsx)(x.sG.div,{...i,ref:t}),c):null},"name",{value:"Portal",configurable:!0})),th=n(5452),tm=n(5530),tv=n(4822),ty=n(4289),tg=n(7130),tw=new WeakMap,tb=new WeakMap,tx={},tE=0,tC=function(e){return e&&(e.host||tC(e.parentNode))},tS=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tC(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tx[n]||(tx[n]=new WeakMap);var i=tx[n],l=[],a=new Set,u=new Set(o),s=function(e){!e||a.has(e)||(a.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(tw.get(e)||0)+1,s=(i.get(e)||0)+1;tw.set(e,u),i.set(e,s),l.push(e),1===u&&o&&tb.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),a.clear(),tE++,function(){l.forEach(function(e){var t=tw.get(e)-1,o=i.get(e)-1;tw.set(e,t),i.set(e,o),t||(tb.has(e)||e.removeAttribute(r),tb.delete(e)),o||e.removeAttribute(n)}),--tE||(tw=new WeakMap,tw=new WeakMap,tb=new WeakMap,tx={})}},tk=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tS(r,o,n,"aria-hidden")):function(){return null}},tR=function(){return(tR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tA(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;Object.create;var tM=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tT="width-before-scroll-bar";function tL(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tP="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,tO=new WeakMap;function tN(e){return e}var tj=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=tN),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return o.options=tR({async:!0,ssr:!1},e),o}(),tI=function(){},tD=l.forwardRef(function(e,t){var n,r,o,i,a=l.useRef(null),u=l.useState({onScrollCapture:tI,onWheelCapture:tI,onTouchMoveCapture:tI}),s=u[0],c=u[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,C=e.gapMode,S=tA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[a,t],r=function(e){return n.forEach(function(t){return tL(t,e)})},(o=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,tP(function(){var e=tO.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tL(e,null)}),r.forEach(function(e){t.has(e)||tL(e,o)})}tO.set(i,n)},[n]),i),R=tR(tR({},S),s);return l.createElement(l.Fragment,null,m&&l.createElement(y,{sideCar:tj,removeScrollBar:h,shards:v,noRelative:g,noIsolation:w,inert:b,setCallbacks:c,allowPinchZoom:!!x,lockRef:a,gapMode:C}),d?l.cloneElement(l.Children.only(f),tR(tR({},R),{ref:k})):l.createElement(void 0===E?"div":E,tR({},R,{className:p,ref:k}),f))});tD.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tD.classNames={fullWidth:tT,zeroRight:tM};var tF=function(e){var t=e.sideCar,n=tA(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,tR({},n))};
1tF.isSideCarExport=!0;var tK=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},t_=function(){var e=tK();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tW=function(){var e=t_();return function(t){return e(t.styles,t.dynamic),null}},tz={left:0,top:0,right:0,gap:0},tV=function(e){return parseInt(e||"",10)||0},tH=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tV(n),tV(r),tV(o)]},tB=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tz;var t=tH(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tG=tW(),tU="data-scroll-locked",tq=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(tU,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(l,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tM," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tT," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tM," .").concat(tM," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tT," .").concat(tT," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tU,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},t$=function(){var e=parseInt(document.body.getAttribute(tU)||"0",10);return isFinite(e)?e:0},tX=function(){l.useEffect(function(){return document.body.setAttribute(tU,(t$()+1).toString()),function(){var e=t$()-1;e<=0?document.body.removeAttribute(tU):document.body.setAttribute(tU,e.toString())}},[])},tY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tX();var i=l.useMemo(function(){return tB(o)},[o]);return l.createElement(tG,{styles:tq(i,!t,o,n?"":"!important")})},tZ=!1;if("undefined"!=typeof window)try{var tQ=Object.defineProperty({},"passive",{get:function(){return tZ=!0,!0}});window.addEventListener("test",tQ,tQ),window.removeEventListener("test",tQ,tQ)}catch(e){tZ=!1}var tJ=!!tZ&&{passive:!1},t0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},t1=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t2(e,r)){var o=t5(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t2=function(e,t){return"v"===e?t0(t,"overflowY"):t0(t,"overflowX")},t5=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t4=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{if(!u)break;var h=t5(e,u),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&t2(e,u)&&(f+=v,p+=m);var y=u.parentNode;u=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},t8=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t6=function(e){return[e.deltaX,e.deltaY]},t3=function(e){return e&&"current"in e?e.current:e},t7=0,t9=[];let ne=(o=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(t7++)[0],i=l.useState(tW)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(t3),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=t8(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],s="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=t1(d,c);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=t1(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var m=r.current||o;return t4(m,t,e,"h"===m?u:s,!0)},[]),s=l.useCallback(function(e){if(t9.length&&t9[t9.length-1]===i){var n="deltaY"in e?t6(e):t8(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(t3).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=t8(e),r.current=void 0},[]),f=l.useCallback(function(t){c(t.type,t6(t),t.target,u(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,t8(t),t.target,u(t,e.lockRef.current))},[]);l.useEffect(function(){return t9.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,tJ),document.addEventListener("touchmove",s,tJ),document.addEventListener("touchstart",d,tJ),function(){t9=t9.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,tJ),document.removeEventListener("touchmove",s,tJ),document.removeEventListener("touchstart",d,tJ)}},[]);var h=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?l.createElement(tY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tj.useMedium(o),tF);var nt=l.forwardRef(function(e,t){return l.createElement(tD,tR({},e,{ref:t,sideCar:ne}))});nt.classNames=tD.classNames;var nn=Object.defineProperty,nr=(e,t)=>
1nn(e,"name",{value:t,configurable:!0}),no=[" ","Enter","ArrowUp","ArrowDown"],ni=[" ","Enter"],nl="Select",[na,nu,ns]=(0,c.N)(nl),[nc,nd]=(0,f.A)(nl,[ns,te]),nf=te(),[np,nh]=nc(nl),[nm,nv]=nc(nl);function ny(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:s,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:v,internal_do_not_use_render:y}=e,g=nf(t),[w,b]=l.useState(null),[x,E]=l.useState(null),[S,k]=l.useState(!1),R=(0,p.jH)(c),[A,M]=(0,tv.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:nl}),[T,L]=(0,tv.i)({prop:a,defaultProp:u,onChange:s,caller:nl}),P=l.useRef(null),O=l.useRef(T);l.useEffect(()=>{let e=v?null==w?void 0:w.ownerDocument.getElementById(v):null==w?void 0:w.form;if(e instanceof HTMLFormElement){let t=nr(()=>L(O.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,w,L]);let N=!w||!!v||!!w.closest("form"),[j,I]=l.useState(new Set),D=(0,z.B)(),F=Array.from(j).map(e=>e.props.value).join(";"),K=l.useCallback(e=>{I(t=>new Set(t).add(e))},[]),_=l.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),W={required:m,trigger:w,onTriggerChange:b,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:D,value:T,onValueChange:L,open:A,onOpenChange:M,dir:R,triggerPointerDownPosRef:P,disabled:h,name:d,autoComplete:f,form:v,nativeOptions:j,nativeSelectKey:F,isFormControl:N};return(0,C.jsx)(tr,{...g,children:(0,C.jsx)(np,{scope:t,...W,children:(0,C.jsx)(na.Provider,{scope:t,children:(0,C.jsx)(nm,{scope:t,onNativeOptionAdd:K,onNativeOptionRemove:_,children:nJ(y)?y(W):n})})})})}nr(ny,"SelectProvider");var ng=nr(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,C.jsx)(ny,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,C.jsxs)(C.Fragment,{children:[n,r?(0,C.jsx)(nQ,{__scopeSelect:t}):null]})}})},"Select"),nw=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,disabled:r=!1,...o}=e,i=nf(n),a=nh("SelectTrigger",n),u=a.disabled||r,c=(0,d.s)(t,a.onTriggerChange),f=nu(n),p=l.useRef("touch"),[h,m,v]=n1(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=n2(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=nr(e=>{u||(a.onOpenChange(!0),v()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,C.jsx)(to,{asChild:!0,...i,children:(0,C.jsx)(x.sG.button,{type:"button",role:"combobox","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":n0(a.value)?"":void 0,...o,ref:c,onClick:(0,s.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:(0,s.mK)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,s.mK)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&no.includes(e.key)&&(y(),e.preventDefault())})})})},"SelectTrigger")),nb=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...u}=e,s=nh("SelectValue",n),{onValueNodeHasChildrenChange:c}=s,f=void 0!==i,p=(0,d.s)(t,s.onValueNodeChange);(0,e4.N)(()=>{c(f)},[c,f]);let h=n0(s.value);return(0,C.jsx)(x.sG.span,{...u,asChild:!h&&u.asChild,ref:p,style:{pointerEvents:"none"},children:(0,C.jsx)(l.Fragment,{children:h?a:i},h?"placeholder":"value")})},"SelectValue")),nx=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,children:r,...o}=e;return(0,C.jsx)(x.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})},"SelectIcon")),[nE,nC]=nc("SelectPortal",{forceMount:void 0}),nS=nr(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,C.jsx)(nE,{scope:e.__scopeSelect,forceMount:n,children:(0,C.jsx)(tp,{asChild:!0,...r})})},"SelectPortal"),nk="SelectContent",nR=l.forwardRef(nr(function(e,t){let n=nC(nk,e.__scopeSelect),{forceMount:r=n.forceMount,...o}=e,i=nh(nk,e.__scopeSelect),[a,u]=l.useState();return(0,e4.N)(()=>{u(new DocumentFragment)},[]),(0,C.jsx)(th.C,{present:r||i.open,children:e=>{let{present:n}=e;return n?(0,C.jsx)(nP,{...o,ref:t}):(0,C.jsx)(nA,{...o,fragment:a})}})},"SelectContent")),nA=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,children:r,fragment:o}=e;return o?a.createPortal((0,C.jsx)(nM,{scope:n,children:(0,C.jsx)(na.Slot,{scope:n,children:(0,C.jsx)("div",{ref:t,children:r})})}),o):null},"SelectContentFragment")),[nM,nT]=nc(nk),nL=(0,tm.TL)("SelectContent.RemoveScroll"),nP=l.forwardRef(nr(function(e,t){let{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:u,sideOffset:c,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:y,sticky:g,hideWhenDetached:b,avoidCollisions:x,...E}=e,S=nh(nk,n),[k,R]=l.useState(null),[A,M]=l.useState(null),L=(0,d.s)(t,R),[P,O]=l.useState(null),[N,j]=l.useState(null),I=nu(n),[D,F]=l.useState(!1),K=l.useRef(!1);l.useEffect(()=>{if(k)return tk(k)},[k]),w();let _=l.useCallback(e=>{let[t,...n]=I().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&A&&(A.scrollTop=0),n===r&&A&&(A.scrollTop=A.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[I,A]),W=l.useCallback(()=>_([P,k]),[_,P,k]);l.useEffect(()=>{D&&W()},[D,W]);let{onOpenChange:z,triggerPointerDownPosRef:V}=S;l.useEffect(()=>{if(k){let e={x:0,y:0},t=nr(t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=V.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(r=V.current)?void 0:r.y
1)?i:0))}},"handlePointerMove"),n=nr(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(k)||z(!1),document.removeEventListener("pointermove",t),V.current=null},"handlePointerUp");return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[k,z,V]),l.useEffect(()=>{let e=nr(()=>z(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[H,B]=n1(e=>{let t=I().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=n2(t,e,n);r&&setTimeout(()=>{var e;return null==(e=r.ref.current)?void 0:e.focus()})}),G=l.useCallback((e,t,n)=>{let r=!K.current&&!n;(void 0!==S.value&&S.value===t||r)&&(O(e),r&&(K.current=!0))},[S.value]),U=l.useCallback(()=>null==k?void 0:k.focus(),[k]),q=l.useCallback((e,t,n)=>{let r=!K.current&&!n;(void 0!==S.value&&S.value===t||r)&&j(e)},[S.value]),$="popper"===r?nN:nO;return(0,C.jsx)(nM,{scope:n,content:k,viewport:A,onViewportChange:M,itemRefCallback:G,selectedItem:P,onItemLeave:U,itemTextRefCallback:q,focusSelectedItem:W,selectedItemText:N,position:r,isPositioned:D,searchRef:H,children:(0,C.jsx)(nt,{as:nL,allowPinchZoom:!0,children:(0,C.jsx)(T,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.mK)(o,e=>{var t;null==(t=S.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,C.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,C.jsx)($,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...E,...$===nN?{side:u,sideOffset:c,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:y,sticky:g,hideWhenDetached:b,avoidCollisions:x}:{},onPlaced:()=>F(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,s.mK)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||B(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>_(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),nO=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,onPlaced:r,...o}=e,i=nh(nk,n),a=nT(nk,n),[s,c]=l.useState(null),[f,p]=l.useState(null),h=(0,d.s)(t,p),m=nu(n),v=l.useRef(!1),y=l.useRef(!0),{viewport:g,selectedItem:w,selectedItemText:b,focusSelectedItem:E}=a,S=l.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&f&&g&&w&&b){let e=i.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=b.getBoundingClientRect();if("rtl"!==i.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,a=e.width+l,c=Math.max(a,t.width),d=u(i,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=a+"px",s.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,a=e.width+l,c=Math.max(a,t.width),d=u(i,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=a+"px",s.style.right=d+"px"}let l=m(),a=window.innerHeight-20,c=g.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),x=p+h+c+parseInt(d.paddingBottom,10)+y,E=Math.min(5*w.offsetHeight,x),C=window.getComputedStyle(g),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),R=e.top+e.height/2-10,A=w.offsetHeight/2,M=p+h+(w.offsetTop+A);if(M<=R){let e=l.length>0&&w===l[l.length-1].ref.current;s.style.bottom="0px";let t=Math.max(a-R,A+(e?k:0)+(f.clientHeight-g.offsetTop-g.offsetHeight)+y);s.style.height=M+t+"px"}else{let e=l.length>0&&w===l[0].ref.current;s.style.top="0px";let t=Math.max(R,p+g.offsetTop+(e?S:0)+A);s.style.height=t+(x-M)+"px",g.scrollTop=M-R+g.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=E+"px",s.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>v.current=!0)}},[m,i.trigger,i.valueNode,s,f,g,w,b,i.dir,r]);(0,e4.N)(()=>S(),[S]);let[k,R]=l.useState();(0,e4.N)(()=>{f&&R(window.getComputedStyle(f).zIndex)},[f]);let A=l.useCallback(e=>{e&&!0===y.current&&(S(),null==E||E(),y.current=!1)},[S,E]);return(0,C.jsx)(nj,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:A,children:(0,C.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,C.jsx)(x.sG.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})},"SelectItemAlignedPosition")),nN=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=nf(n);return(0,C.jsx)(tu,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[nj,nI]=nc(nk,{}),nD="SelectViewport",nF=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,nonce:r,...o}=e,i=nT(nD,n),a=nI(nD,n),u=(0,d.s)(t,i.onViewportChange),c=l.useRef(0);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,C.jsx)(na.Slot,{scope:n,children:(0,C.jsx)(x.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,s.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})},"SelectViewport")),[nK,n_]=nc("SelectGroup"),nW="SelectItem",[nz,nV]=nc(nW),nH=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,u=nh(nW,n),c=nT(nW,n),f=u.value===r,[p,h]=l.useState(null!=i?i:""),[m,v]=l.useState(!1),y=(0,E.c)(e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,r,o)}),g=(0,d.s)(t,y),w=(0,z.B)(),b=l.useRef("touch"),S=nr(()=>{o||(u.onValueChange(r),u.onOpenChange(!1))},"handleSelect");return(0,C.jsx)(nz,{scope:n,value:r,disabled:o,textId:w,isSelected:f,onItemTextChange:l.useCallback(e=>{h(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,C.jsx)(na.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:(0,C.jsx)(x.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:(0,s.mK)(a.onFocus,()=>v(!0)),onBlur:(0,s.mK)(a.onBlur,()=>v(!1)),onClick:(0,s.mK)(a.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,s.mK)(a.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,s.mK)(a.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,s.mK)(a.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null==(t=c.onItemLeave)||t.call(c)}
1else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.mK)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,s.mK)(a.onKeyDown,e=>{var t;o||e.target!==e.currentTarget||((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(ni.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),nB="SelectItemText",nG=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,className:r,style:o,...i}=e,u=nh(nB,n),s=nT(nB,n),c=nV(nB,n),f=nv(nB,n),[p,h]=l.useState(null),m=(0,E.c)(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,c.value,c.disabled)}),v=(0,d.s)(t,h,c.onItemTextChange,m),y=null==p?void 0:p.textContent,g=l.useMemo(()=>(0,C.jsx)("option",{value:c.value,disabled:c.disabled,children:y},c.value),[c.disabled,c.value,y]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return(0,e4.N)(()=>(w(g),()=>b(g)),[w,b,g]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(x.sG.span,{id:c.textId,...i,ref:v}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren&&!n0(u.value)?a.createPortal(i.children,u.valueNode):null]})},"SelectItemText")),nU=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,...r}=e;return nV("SelectItemIndicator",n).isSelected?(0,C.jsx)(x.sG.span,{"aria-hidden":!0,...r,ref:t}):null},"SelectItemIndicator")),nq="SelectScrollUpButton",n$=l.forwardRef(nr(function(e,t){let n=nT(nq,e.__scopeSelect),r=nI(nq,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,d.s)(t,r.onScrollButtonChange);return(0,e4.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)};nr(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,C.jsx)(nZ,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),nX="SelectScrollDownButton",nY=l.forwardRef(nr(function(e,t){let n=nT(nX,e.__scopeSelect),r=nI(nX,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,d.s)(t,r.onScrollButtonChange);return(0,e4.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)};nr(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,C.jsx)(nZ,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null},"SelectScrollDownButton")),nZ=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=nT("SelectScrollButton",n),a=l.useRef(null),u=nu(n),c=l.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),(0,e4.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,C.jsx)(x.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.mK)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,s.mK)(o.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,s.mK)(o.onPointerLeave,()=>{c()})})},"SelectScrollButtonImpl")),nQ=l.forwardRef(nr(function(e,t){let{__scopeSelect:n,...r}=e,o=nh("SelectBubbleInput",n),{value:i,onValueChange:a,required:u,disabled:s,name:c,autoComplete:f,form:p}=o,{nativeOptions:h,nativeSelectKey:m}=o,v=l.useRef(null),y=(0,d.s)(t,v),g=null!=i?i:"",w=(0,ty.Z)(g),b=Array.from(h).some(e=>{var t;return(null!=(t=e.props.value)?t:"")===""});return l.useEffect(()=>{let e=v.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(w!==g&&t){let n=new Event("change",{bubbles:!0});t.call(e,g),e.dispatchEvent(n)}},[w,g]),(0,C.jsxs)(x.sG.select,{"aria-hidden":!0,required:u,tabIndex:-1,name:c,autoComplete:f,disabled:s,form:p,onChange:e=>a(e.target.value),...r,style:{...tg.Qg,...r.style},ref:y,defaultValue:g,children:[n0(i)&&!b?(0,C.jsx)("option",{value:""}):null,Array.from(h)]},m)},"SelectBubbleInput"));function nJ(e){return"function"==typeof e}function n0(e){return""===e||void 0===e}function n1(e){let t=(0,E.c)(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(e=>{t(n.current+e)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function n2(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,i=n5(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function n5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}nr(nJ,"isFunction"),nr(n0,"shouldShowPlaceholder"),nr(n1,"useTypeaheadSearch"),nr(n2,"findNextItem"),nr(n5,"wrapArray")},5190:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])}
1,5452:(e,t,n)=>{"use strict";n.d(t,{C:()=>u});var r=n(6841),o=n(2597),i=Object.defineProperty,l=(e,t)=>i(e,"name",{value:t,configurable:!0});function a(e,t){return r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},e)}l(a,"useStateMachine");var u=l(e=>{let{present:t,children:n}=e,o=s(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=d(o.ref,p(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:l}):null},"Presence");function s(e){let[t,n]=r.useState(),i=r.useRef(null),u=r.useRef(e),s=r.useRef("none"),c=r.useRef(void 0),[d,p]=a(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{if("mounted"===d){var e;s.current=null!=(e=c.current)?e:f(i.current),c.current=void 0}else s.current="none"},[d]),(0,o.N)(()=>{let t=i.current,n=u.current;if(n!==e){let r=s.current,o=f(t);e?(c.current=o,p("MOUNT")):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,o.N)(()=>{if(t){var e;let n,r=null!=(e=t.ownerDocument.defaultView)?e:window,o=l(e=>{let o=f(i.current).includes(CSS.escape(e.animationName));if(e.target===t&&o&&(p("ANIMATION_END"),!u.current)){let e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},"handleAnimationEnd"),a=l(e=>{e.target===t&&(s.current=f(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{r.clearTimeout(n),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);i.current=t,c.current=f(t)}else i.current=null;n(e)},[])}}function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=r.useRef(t);return o.current=t,r.useCallback(e=>{let t=o.current,n=!1,r=t.map(t=>{let r=c(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():c(t[e],null)}}},[])}function f(e){return(null==e?void 0:e.animationName)||"none"}function p(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}l(s,"usePresence"),l(c,"setRef"),l(d,"useStableComposedRefs"),l(f,"getAnimationName"),l(p,"getElementRef")},5894:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},6607:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6768:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("newspaper",[["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"}]])},6832:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).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"}]])},6965:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).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"}]])},7130:(e,t,n)=>{"use strict";n.d(t,{Qg:()=>a,bL:()=>u});var r=n(6841),o=n(1500),i=n(3565),l=Object.defineProperty,a=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"}),u=r.forwardRef(l(function(e,t){return(0,i.jsx)(o.sG.span,{...e,ref:t,style:{...a,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0}))},7544:(e,t,n)=>{"use strict";n.d(t,{mK:()=>l});var r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0}),i=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return o(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function a(e){if(!i)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function u(e){return"IFRAME"===e.tagName}o(l,"composeEventHandlers"),o(function(e){if(!i)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),o(a,"getOwnerDocument"),o(function e(t,n=!1){let{activeElement:r}=a(t);if(!r?.nodeName)return null;if(u(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=a(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),o(u,"isFrame")},7726:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r,o=n(6841),i=n(2597),l=Object.defineProperty,a=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),u=0;function s(e){let[t,n]=o.useState(a());return(0,i.N)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}l(s,"name",{value:"useId",configurable:!0})},7877:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("message-square-quote",[["path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",key:"1r06pg"}],["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M8 14a2 2 0 0 0 2-2V8H8",key:"1jzu5j"}]])}
1,7974:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("monitor-play",[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]])},8047:(e,t,n)=>{"use strict";n.d(t,{qW:()=>h});var r,o=n(6841),i=n(7544),l=n(1500),a=n(3410),u=n(1585),s=n(3565),c=Object.defineProperty,d=(e,t)=>c(e,"name",{value:t,configurable:!0}),f="dismissableLayer.update",p=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=o.forwardRef(d(function(e,t){var n,c;let{disableOutsidePointerEvents:h=!1,deferPointerDownOutside:m=!1,onEscapeKeyDown:w,onPointerDownOutside:b,onFocusOutside:x,onInteractOutside:E,onDismiss:C,...S}=e,k=o.useContext(p),[R,A]=o.useState(null),M=null!=(c=null==R?void 0:R.ownerDocument)?c:null==(n=globalThis)?void 0:n.document,[,T]=o.useState({}),L=(0,a.s)(t,A),P=Array.from(k.layers),[O]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),N=O?P.indexOf(O):-1,j=R?P.indexOf(R):-1,I=k.layersWithOutsidePointerEventsDisabled.size>0,D=j>=N,F=o.useRef(!1),K=v(e=>{null==b||b(e),null==E||E(e),e.defaultPrevented||null==C||C()},{ownerDocument:M,deferPointerDownOutside:m,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:k.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...k.branches].some(t=>t.contains(e));return D&&!t},[k.branches,D])}),_=y(e=>{if(m&&F.current)return;let t=e.target;![...k.branches].some(e=>e.contains(t))&&(null==x||x(e),null==E||E(e),e.defaultPrevented||null==C||C())},M),W=!!R&&j===P.length-1,z=(0,u.c)(e=>{"Escape"===e.key&&(null==w||w(e),!e.defaultPrevented&&C&&(e.preventDefault(),C()))});return o.useEffect(()=>{if(W)return M.addEventListener("keydown",z,{capture:!0}),()=>M.removeEventListener("keydown",z,{capture:!0})},[M,W,z]),o.useEffect(()=>{if(R)return h&&(0===k.layersWithOutsidePointerEventsDisabled.size&&(r=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(R)),k.layers.add(R),g(),()=>{h&&(k.layersWithOutsidePointerEventsDisabled.delete(R),0===k.layersWithOutsidePointerEventsDisabled.size&&(M.body.style.pointerEvents=r))}},[R,M,h,k]),o.useEffect(()=>()=>{R&&(k.layers.delete(R),k.layersWithOutsidePointerEventsDisabled.delete(R),g())},[R,k]),o.useEffect(()=>{let e=d(()=>T({}),"handleUpdate");return document.addEventListener(f,e),()=>document.removeEventListener(f,e)},[]),(0,s.jsx)(l.sG.div,{...S,ref:L,style:{pointerEvents:I?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,_.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,K.onPointerDownCapture)})},"DismissableLayer"));d(function(){let e=o.useContext(p),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var m=d(()=>!0,"IS_TRUE");function v(e,t){var n;let{ownerDocument:r=null==(n=globalThis)?void 0:n.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=m}=t,c=(0,u.c)(e),f=o.useRef(!1),p=o.useRef(!1),h=o.useRef(new Map),v=o.useRef(()=>{});return o.useEffect(()=>{function e(){p.current=!1,l.current=!1,h.current.clear()}function t(){return Array.from(h.current.values()).some(Boolean)}function n(e){if(!p.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||h.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{p.current&&v.current()},0)}function o(e){p.current&&h.current.set(e.type,!1)}d(e,"resetOutsideInteraction"),d(t,"isOutsideInteractionIntercepted"),d(n,"handleInteractionCapture"),d(o,"handleInteractionBubble");let u=d(n=>{if(n.target&&!f.current){let o=function(){r.removeEventListener("click",v.current);let n=t();e(),n||w("dismissableLayer.pointerDownOutside",c,a,{discrete:!0})};if(d(o,"handleAndDispatchPointerDownOutsideEvent"),!s(n.target)){r.removeEventListener("click",v.current),e(
1),f.current=!1;return}let a={originalEvent:n};p.current=!0,l.current=i&&0===n.button,h.current.clear(),i&&0===n.button?(r.removeEventListener("click",v.current),v.current=o,r.addEventListener("click",v.current,{once:!0})):o()}else r.removeEventListener("click",v.current),e();f.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)r.addEventListener(e,n,!0),r.addEventListener(e,o);let y=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{for(let e of(window.clearTimeout(y),r.removeEventListener("pointerdown",u),r.removeEventListener("click",v.current),m))r.removeEventListener(e,n,!0),r.removeEventListener(e,o)}},[r,c,i,l,a,s]),{onPointerDownCapture:d(()=>f.current=!0,"onPointerDownCapture")}}function y(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=d(e=>{e.target&&!i.current&&w("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:d(()=>i.current=!0,"onFocusCapture"),onBlurCapture:d(()=>i.current=!1,"onBlurCapture")}}function g(){let e=new CustomEvent(f);document.dispatchEvent(e)}function w(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.hO)(i,a):i.dispatchEvent(a)}d(v,"usePointerDownOutside"),d(y,"useFocusOutside"),d(g,"dispatchUpdate"),d(w,"handleAndDispatchCustomEvent")},8353:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},8497:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]])},8971:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},9846:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2152).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},9855:(e,t,n)=>{"use strict";n.d(t,{jH:()=>l});var r=n(6841);n(3565);var o=Object.defineProperty,i=r.createContext(void 0);function l(e){let t=r.useContext(i);return e||t||"ltr"}o(l,"name",{value:"useDirection",configurable:!0})},9890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},getImageProps:function(){return a}});let r=n(7444),o=n(9786),i=n(3138),l=r._(n(2954));function a(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let u=i.Image}}]);

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.