(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[560],{7401:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(2115);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:l="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:n,strokeWidth:u?24*Number(s)/Number(i):s,className:o("lucide",l),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:u,...l}=n;return(0,r.createElement)(s,{ref:a,iconNode:t,className:o("lucide-".concat(i(e)),u),...l})});return n.displayName="".concat(e),n}},1719:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7401).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6710:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7401).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},767:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(7401).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},8346:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_d65c78"}},3610:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{m:()=>r})},9741:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(2115),i=n(8166),o=n(8068),a=n(2317),s=n(5155);function u(e){let t=e+"CollectionProvider",[n,u]=(0,i.A)(t),[l,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let f=e+"CollectionSlot",h=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(f,n),u=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(a.DX,{ref:u,children:r})});h.displayName=f;let p=e+"CollectionItemSlot",m="data-radix-collection-item",v=r.forwardRef((e,t)=>{let{scope:n,children:i,...u}=e,l=r.useRef(null),d=(0,o.s)(t,l),f=c(p,n);return r.useEffect(()=>(f.itemMap.set(l,{ref:l,...u}),()=>void f.itemMap.delete(l))),(0,s.jsx)(a.DX,{[m]:"",ref:d,children:i})});return v.displayName=p,[{Provider:d,Slot:h,ItemSlot:v},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},u]}},8166:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,q:()=>o});var r=n(2115),i=n(5155);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,a=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let u=t=>{let{scope:n,children:o,...u}=t,l=n?.[e]?.[s]||a,c=r.useMemo(()=>u,Object.values(u));return(0,i.jsx)(l.Provider,{value:c,children:o})};return u.displayName=t+"Provider",[u,function(n,i){let u=i?.[e]?.[s]||a,l=r.useContext(u);if(l)return l;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},6217:(e,t,n)=>{"use strict";n.d(t,{L3:()=>L,UC:()=>et,VY:()=>er,ZL:()=>Y,bL:()=>X,bm:()=>ei,hE:()=>en,hJ:()=>ee,l9:()=>J});var r=n(2115),i=n(3610),o=n(8068),a=n(8166),s=n(7668),u=n(1488),l=n(9674),c=n(196),d=n(7323),f=n(7028),h=n(3360),p=n(2292),m=n(4065),v=n(5587),y=n(2317),g=n(5155),w="Dialog",[C,b]=(0,a.A)(w),[x,R]=C(w),N=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:l=!0}=e,c=r.useRef(null),d=r.useRef(null),[f=!1,h]=(0,u.i)({prop:i,defaultProp:o,onChange:a});return(0,g.jsx)(x,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:f,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),modal:l,children:n})};N.displayName=w;var E="DialogTrigger",M=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=R(E,n),s=(0,o.s)(t,a.triggerRef);return(0,g.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":W(a.open),...r,ref:s,onClick:(0,i.m)(e.onClick,a.onOpenToggle)})});M.displayName=E;var O="DialogPortal",[j,P]=C(O,{forceMount:void 0}),D=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,a=R(O,t);return(0,g.jsx)(j,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,g.jsx)(f.C,{present:n||a.open,children:(0,g.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};D.displayName=O;var A="DialogOverlay",T=r.forwardRef((e,t)=>{let n=P(A,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=R(A,e.__scopeDialog);return o.modal?(0,g.jsx)(f.C,{present:r||o.open,children:(0,g.jsx)(I,{...i,ref:t})}):null});T.displayName=A;var I=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(A,n);return(0,g.jsx)(m.A,{as:y.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,g.jsx)(h.sG.div,{"data-state":W(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),q="DialogContent",k=r.forwardRef((e,t)=>{let n=P(q,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=R(q,e.__scopeDialog);return(0,g.jsx)(f.C,{present:r||o.open,children:o.modal?(0,g.jsx)(F,{...i,ref:t}):(0,g.jsx)(_,{...i,ref:t})})});k.displayName=q;var F=r.forwardRef((e,t)=>{let n=R(q,e.__scopeDialog),a=r.useRef(null),s=(0,o.s)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Eq)(e)},[]),(0,g.jsx)(S,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),_=r.forwardRef((e,t)=>{let n=R(q,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,g.jsx)(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),S=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,...u}=e,d=R(q,n),f=r.useRef(null),h=(0,o.s)(t,f);return(0,p.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,g.jsx)(l.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":W(d.open),...u,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(z,{titleId:d.titleId}),(0,g.jsx)(Z,{contentRef:f,descriptionId:d.descriptionId})]})]})}),Q="DialogTitle",L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(Q,n);return(0,g.jsx)(h.sG.h2,{id:i.titleId,...r,ref:t})});L.displayName=Q;var K="DialogDescription",G=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(K,n);return(0,g.jsx)(h.sG.p,{id:i.descriptionId,...r,ref:t})});G.displayName=K;var U="DialogClose",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(U,n);return(0,g.jsx)(h.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function W(e){return e?"open":"closed"}H.displayName=U;var V="DialogTitleWarning",[$,B]=(0,a.q)(V,{contentName:q,titleName:Q,docsSlug:"dialog"}),z=e=>{let{titleId:t}=e,n=B(V),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(i)},[i,t]),null},Z=e=>{let{contentRef:t,descriptionId:n}=e,i=B("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},X=N,J=M,Y=D,ee=T,et=k,en=L,er=G,ei=H},4256:(e,t,n)=>{"use strict";n.d(t,{jH:()=>o});var r=n(2115);n(5155);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},7668:(e,t,n)=>{"use strict";n.d(t,{B:()=>u});var r,i=n(2115),o=n(6611),a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function u(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},1119:(e,t,n)=>{"use strict";n.d(t,{B8:()=>ep,C1:()=>eg,KS:()=>I,LM:()=>eC,N_:()=>ey,UC:()=>ew,bL:()=>eh,l9:()=>ev,q7:()=>em});var r=n(2115),i=n(7650),o=n(8166),a=n(3610),s=n(3360),u=n(1488),l=n(8068),c=n(4256),d=n(7028),f=n(7668),h=n(9741),p=n(9674),m=n(858),v=n(6611),y=n(1524),g=n(3543),w=n(5155),C="NavigationMenu",[b,x,R]=(0,h.N)(C),[N,E,M]=(0,h.N)(C),[O,j]=(0,o.A)(C,[R,M]),[P,D]=O(C),[A,T]=O(C),I=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,onValueChange:o,defaultValue:a,delayDuration:d=200,skipDelayDuration:f=300,orientation:h="horizontal",dir:p,...m}=e,[v,y]=r.useState(null),g=(0,l.s)(t,e=>y(e)),C=(0,c.jH)(p),b=r.useRef(0),x=r.useRef(0),R=r.useRef(0),[N,E]=r.useState(!0),[M="",O]=(0,u.i)({prop:i,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(R.current),t&&E(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>E(!0),f)),null==o||o(e)},defaultProp:a}),j=r.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>O(""),150)},[O]),P=r.useCallback(e=>{window.clearTimeout(x.current),O(e)},[O]),D=r.useCallback(e=>{M===e?window.clearTimeout(x.current):b.current=window.setTimeout(()=>{window.clearTimeout(x.current),O(e)},d)},[M,O,d]);return r.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(x.current),window.clearTimeout(R.current)},[]),(0,w.jsx)(k,{scope:n,isRootMenu:!0,value:M,dir:C,orientation:h,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(b.current),N?D(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(b.current),j()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:j,onItemSelect:e=>{O(t=>t===e?"":e)},onItemDismiss:()=>O(""),children:(0,w.jsx)(s.sG.nav,{"aria-label":"Main","data-orientation":h,dir:C,...m,ref:g})})});I.displayName=C;var q="NavigationMenuSub";r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",...l}=e,c=D(q,n),[d="",f]=(0,u.i)({prop:r,onChange:i,defaultProp:o});return(0,w.jsx)(k,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:a,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,w.jsx)(s.sG.div,{"data-orientation":a,...l,ref:t})})}).displayName=q;var k=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:i,dir:o,orientation:a,children:s,value:u,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:h,onContentEnter:p,onContentLeave:v}=e,[g,C]=r.useState(null),[x,R]=r.useState(new Map),[N,E]=r.useState(null);return(0,w.jsx)(P,{scope:t,isRootMenu:n,rootNavigationMenu:i,value:u,previousValue:(0,m.Z)(u),baseId:(0,f.B)(),dir:o,orientation:a,viewport:g,onViewportChange:C,indicatorTrack:N,onIndicatorTrackChange:E,onTriggerEnter:(0,y.c)(d),onTriggerLeave:(0,y.c)(h),onContentEnter:(0,y.c)(p),onContentLeave:(0,y.c)(v),onItemSelect:(0,y.c)(l),onItemDismiss:(0,y.c)(c),onViewportContentChange:r.useCallback((e,t)=>{R(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:r.useCallback(e=>{R(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,w.jsx)(b.Provider,{scope:t,children:(0,w.jsx)(A,{scope:t,items:x,children:s})})})},F="NavigationMenuList",_=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=D(F,n),o=(0,w.jsx)(s.sG.ul,{"data-orientation":i.orientation,...r,ref:t});return(0,w.jsx)(s.sG.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,w.jsx)(b.Slot,{scope:n,children:i.isRootMenu?(0,w.jsx)(er,{asChild:!0,children:o}):o})})});_.displayName=F;var S="NavigationMenuItem",[Q,L]=O(S),K=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,...o}=e,a=(0,f.B)(),u=r.useRef(null),l=r.useRef(null),c=r.useRef(null),d=r.useRef(()=>{}),h=r.useRef(!1),p=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){d.current();let t=ea(u.current);t.length&&es("start"===e?t:t.reverse())}},[]),m=r.useCallback(()=>{if(u.current){let e=ea(u.current);e.length&&(d.current=function(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)})}}(e))}},[]);return(0,w.jsx)(Q,{scope:n,value:i||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:l,contentRef:u,focusProxyRef:c,wasEscapeCloseRef:h,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:m,onContentFocusOutside:m,children:(0,w.jsx)(s.sG.li,{...o,ref:t})})});K.displayName=S;var G="NavigationMenuTrigger",U=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:i,...o}=e,u=D(G,e.__scopeNavigationMenu),c=L(G,e.__scopeNavigationMenu),d=r.useRef(null),f=(0,l.s)(d,c.triggerRef,t),h=ec(u.baseId,c.value),p=ed(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)(b.ItemSlot,{scope:n,value:c.value,children:(0,w.jsx)(eo,{asChild:!0,children:(0,w.jsx)(s.sG.button,{id:h,disabled:i,"data-disabled":i?"":void 0,"data-state":el(y),"aria-expanded":y,"aria-controls":p,...o,ref:f,onPointerEnter:(0,a.m)(e.onPointerEnter,()=>{v.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,a.m)(e.onPointerMove,ef(()=>{i||v.current||c.wasEscapeCloseRef.current||m.current||(u.onTriggerEnter(c.value),m.current=!0)})),onPointerLeave:(0,a.m)(e.onPointerLeave,ef(()=>{i||(u.onTriggerLeave(),m.current=!1)})),onClick:(0,a.m)(e.onClick,()=>{u.onItemSelect(c.value),v.current=y}),onKeyDown:(0,a.m)(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.b,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,i=null==t?void 0:t.contains(n);(r||!i)&&c.onFocusProxyEnter(r?"start":"end")}}),u.viewport&&(0,w.jsx)("span",{"aria-owns":p})]})]})});U.displayName=G;var H="navigationMenu.linkSelect",W=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:i,...o}=e;return(0,w.jsx)(eo,{asChild:!0,children:(0,w.jsx)(s.sG.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...o,ref:t,onClick:(0,a.m)(e.onClick,e=>{let t=e.target,n=new CustomEvent(H,{bubbles:!0,cancelable:!0});if(t.addEventListener(H,e=>null==i?void 0:i(e),{once:!0}),(0,s.hO)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(J,{bubbles:!0,cancelable:!0});(0,s.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});W.displayName="NavigationMenuLink";var V="NavigationMenuIndicator",$=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=D(V,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?i.createPortal((0,w.jsx)(d.C,{present:n||a,children:(0,w.jsx)(B,{...r,ref:t})}),o.indicatorTrack):null});$.displayName=V;var B=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...i}=e,o=D(V,n),a=x(n),[u,l]=r.useState(null),[c,d]=r.useState(null),f="horizontal"===o.orientation,h=!!o.value;r.useEffect(()=>{var e;let t=null===(e=a().find(e=>e.value===o.value))||void 0===e?void 0:e.ref.current;t&&l(t)},[a,o.value]);let p=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return eu(u,p),eu(o.indicatorTrack,p),c?(0,w.jsx)(s.sG.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":o.orientation,...i,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...i.style}}):null}),z="NavigationMenuContent",Z=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=D(z,e.__scopeNavigationMenu),o=L(z,e.__scopeNavigationMenu),s=(0,l.s)(o.contentRef,t),u=o.value===i.value,c={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...r};return i.viewport?(0,w.jsx)(X,{forceMount:n,...c,ref:s}):(0,w.jsx)(d.C,{present:n||u,children:(0,w.jsx)(Y,{"data-state":el(u),...c,ref:s,onPointerEnter:(0,a.m)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ef(i.onContentLeave)),style:{pointerEvents:!u&&i.isRootMenu?"none":void 0,...c.style}})})});Z.displayName=z;var X=r.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=D(z,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}),J="navigationMenu.rootContentDismiss",Y=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:i,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:u,onRootContentClose:c,onContentFocusOutside:d,...f}=e,h=D(z,n),m=r.useRef(null),v=(0,l.s)(m,t),y=ec(h.baseId,i),g=ed(h.baseId,i),C=x(n),b=r.useRef(null),{onItemDismiss:R}=h;r.useEffect(()=>{let e=m.current;if(h.isRootMenu&&e){let t=()=>{var t;R(),c(),e.contains(document.activeElement)&&(null===(t=o.current)||void 0===t||t.focus())};return e.addEventListener(J,t),()=>e.removeEventListener(J,t)}},[h.isRootMenu,e.value,o,R,c]);let N=r.useMemo(()=>{let e=C().map(e=>e.value);"rtl"===h.dir&&e.reverse();let t=e.indexOf(h.value),n=e.indexOf(h.previousValue),r=i===h.value,o=n===e.indexOf(i);if(!r&&!o)return b.current;let a=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(o&&-1!==t)return t>n?"to-start":"to-end"}return null})();return b.current=a,a},[h.previousValue,h.value,h.dir,C,i]);return(0,w.jsx)(er,{asChild:!0,children:(0,w.jsx)(p.qW,{id:g,"aria-labelledby":y,"data-motion":N,"data-orientation":h.orientation,...f,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(J,{bubbles:!0,cancelable:!0});null===(e=m.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null===(t=h.rootNavigationMenu)||void 0===t?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=C().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=h.isRootMenu&&(null===(t=h.viewport)||void 0===t?void 0:t.contains(n));(r||i||!h.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ea(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);if(es(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var n;null===(n=s.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),ee="NavigationMenuViewport",et=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=!!D(ee,e.__scopeNavigationMenu).value;return(0,w.jsx)(d.C,{present:n||i,children:(0,w.jsx)(en,{...r,ref:t})})});et.displayName=ee;var en=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:i,...o}=e,u=D(ee,n),c=(0,l.s)(t,u.onViewportChange),f=T(z,e.__scopeNavigationMenu),[h,p]=r.useState(null),[m,v]=r.useState(null),y=h?(null==h?void 0:h.width)+"px":void 0,g=h?(null==h?void 0:h.height)+"px":void 0,C=!!u.value,b=C?u.value:u.previousValue;return eu(m,()=>{m&&p({width:m.offsetWidth,height:m.offsetHeight})}),(0,w.jsx)(s.sG.div,{"data-state":el(C),"data-orientation":u.orientation,...o,ref:c,style:{pointerEvents:!C&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":g,...o.style},onPointerEnter:(0,a.m)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ef(u.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:n,forceMount:r,...i}]=e,o=b===t;return(0,w.jsx)(d.C,{present:r||o,children:(0,w.jsx)(Y,{...i,ref:(0,l.t)(n,e=>{o&&e&&v(e)})})},t)})})}),er=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=D("FocusGroup",n);return(0,w.jsx)(N.Provider,{scope:n,children:(0,w.jsx)(N.Slot,{scope:n,children:(0,w.jsx)(s.sG.div,{dir:i.dir,...r,ref:t})})})}),ei=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eo=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=E(n),o=D("FocusGroupItem",n);return(0,w.jsx)(N.ItemSlot,{scope:n,children:(0,w.jsx)(s.sG.button,{...r,ref:t,onKeyDown:(0,a.m)(e.onKeyDown,e=>{if(["Home","End",...ei].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ei.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>es(t)),e.preventDefault()}})})})});function ea(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function es(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eu(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 el(e){return e?"open":"closed"}function ec(e,t){return"".concat(e,"-trigger-").concat(t)}function ed(e,t){return"".concat(e,"-content-").concat(t)}function ef(e){return t=>"mouse"===t.pointerType?e(t):void 0}var eh=I,ep=_,em=K,ev=U,ey=W,eg=$,ew=Z,eC=et},7028:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r=n(2115),i=n(8068),o=n(6611),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[i,a]=r.useState(),u=r.useRef({}),l=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(u.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=u.current,n=l.current;if(n!==e){let r=c.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,o.N)(()=>{if(i){var e;let t;let n=null!==(e=i.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=s(u.current).includes(e.animationName);if(e.target===i&&r&&(f("ANIMATION_END"),!l.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=s(u.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(t),u="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),l=(0,i.s)(a.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||a.isPresent?r.cloneElement(u,{ref:l}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},3360:(e,t,n)=>{"use strict";n.d(t,{hO:()=>u,sG:()=>s});var r=n(2115),i=n(7650),o=n(2317),a=n(5155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,s=r?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},1524:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(2115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(2115),i=n(1524);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,a=r.useRef(o),s=(0,i.c)(t);return r.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o,l=(0,i.c)(n);return[u,r.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else a(t)},[s,e,a,l])]}},6611:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(2115),i=globalThis?.document?r.useLayoutEffect:()=>{}},7066:(e,t,n)=>{"use strict";n.d(t,{E:()=>y});var r=n(4403),i=n(7702),o=n(5586),a=n(9323),s=class extends a.Q{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,r.F$)(o,t),s=this.get(a);return s||(s=new i.X({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.j.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.MK)(e,t)):t}notify(e){o.j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.j.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.j.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},u=n(2955),l=n(4267),c=class extends u.k{#t;#n;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){this.#r=(0,l.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let t="pending"===this.state.status,n=!this.#r.canStart();try{if(!t){this.#i({type:"pending",variables:e,isPaused:n}),await this.#n.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#r.start();return await this.#n.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#i({type:"success",data:r}),r}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#i({type:"error",error:t})}}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),o.j.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}},d=class extends a.Q{constructor(e={}){super(),this.config=e,this.#o=new Map,this.#a=Date.now()}#o;#a;build(e,t,n){let r=new c({mutationCache:this,mutationId:++this.#a,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=f(e),n=this.#o.get(t)??[];n.push(e),this.#o.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=f(e);if(this.#o.has(t)){let n=this.#o.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#o.delete(t):this.#o.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#o.get(f(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#o.get(f(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){o.j.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#o.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.nJ)(e,t))}notify(e){o.j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.j.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.lQ))))}};function f(e){return e.options.scope?.id??String(e.mutationId)}var h=n(4017),p=n(8248);function m(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},l=0,c=async()=>{let n=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.ZM)(t.options,t.fetchOptions),f=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};c(a);let s=await d(a),{maxPages:u}=t.options,l=o?r.ZZ:r.y9;return{pages:l(e.pages,s,u),pageParams:l(e.pageParams,i,u)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:v)(i,t);u=await f(t,n,e)}else{let t=e??a.length;do{let e=0===l?s[0]??i.initialPageParam:v(i,u);if(l>0&&null==e)break;u=await f(u,e),l++}while(lt.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function v(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var y=class{#s;#n;#u;#l;#c;#d;#f;#h;constructor(e={}){this.#s=e.queryCache||new s,this.#n=e.mutationCache||new d,this.#u=e.defaultOptions||{},this.#l=new Map,this.#c=new Map,this.#d=0}mount(){this.#d++,1===this.#d&&(this.#f=h.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onFocus())}),this.#h=p.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onOnline())}))}unmount(){this.#d--,0===this.#d&&(this.#f?.(),this.#f=void 0,this.#h?.(),this.#h=void 0)}isFetching(e){return this.#s.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#s.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.d2)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#s.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#s.get(i.queryHash),a=o?.state.data,s=(0,r.Zw)(t,a);if(void 0!==s)return this.#s.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.j.batch(()=>this.#s.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state}removeQueries(e){let t=this.#s;o.j.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#s,r={type:"active",...e};return o.j.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.j.batch(()=>this.#s.findAll(e).map(e=>e.cancel(n)))).then(r.lQ).catch(r.lQ)}invalidateQueries(e,t={}){return o.j.batch(()=>{if(this.#s.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")return Promise.resolve();let n={...e,type:e?.refetchType??e?.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.j.batch(()=>this.#s.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#s.build(this,t);return n.isStaleByTime((0,r.d2)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.lQ).catch(r.lQ)}fetchInfiniteQuery(e){return e.behavior=m(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.lQ).catch(r.lQ)}ensureInfiniteQueryData(e){return e.behavior=m(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return p.t.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#s}getMutationCache(){return this.#n}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#l.set((0,r.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#l.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#c.set((0,r.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#c.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#s.clear(),this.#n.clear()}}},7113:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(2115),i="undefined"==typeof window,o=r.createContext(void 0),a={setTheme:e=>{},themes:[]},s=()=>{var e;return null!=(e=r.useContext(o))?e:a}}}]);