import{U as j,r as c}from"./index-Cw8Yqngl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0b7e2d93-f6ab-4327-9c72-abba08769a0b",e._sentryDebugIdIdentifier="sentry-dbid-0b7e2d93-f6ab-4327-9c72-abba08769a0b")}catch{}})();const U=typeof document<"u"?j.useLayoutEffect:()=>{};function re(e){const n=c.useRef(null);return U(()=>{n.current=e},[e]),c.useCallback((...t)=>{const r=n.current;return r==null?void 0:r(...t)},[])}const w=e=>{var n;return(n=e==null?void 0:e.ownerDocument)!==null&&n!==void 0?n:document},h=e=>e&&"window"in e&&e.window===e?e:w(e).defaultView||window;function oe(e){var n;return typeof window>"u"||window.navigator==null?!1:((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function ie(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function K(e){let n=null;return()=>(n==null&&(n=e()),n)}const ue=K(function(){return ie(/^Mac/i)}),ae=K(function(){return oe(/Android/i)});function se(e){return e.mozInputSource===0&&e.isTrusted?!0:ae()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class le{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(n,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=n}}function V(e){let n=c.useRef({isFocused:!1,observer:null});U(()=>{const r=n.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let t=re(r=>{e==null||e(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){n.current.isFocused=!0;let o=r.target,i=u=>{n.current.isFocused=!1,o.disabled&&t(new le("blur",u)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&o.disabled){var u;(u=n.current.observer)===null||u===void 0||u.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),n.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[t])}function ce(e){let{isDisabled:n,onFocus:t,onBlur:r,onFocusChange:o}=e;const i=c.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),u=V(i),s=c.useCallback(a=>{const d=w(a.target);a.target===a.currentTarget&&d.activeElement===a.target&&(t&&t(a),o&&o(!0),u(a))},[o,t,u]);return{focusProps:{onFocus:!n&&(t||o||r)?s:void 0,onBlur:!n&&(r||o)?i:void 0}}}let F=null,k=new Set,y=new Map,$=!1,O=!1;const de={Tab:!0,Escape:!0};function _(e,n){for(let t of k)t(e,n)}function fe(e){return!(e.metaKey||!ue()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function S(e){$=!0,fe(e)&&(F="keyboard",_("keyboard",e))}function m(e){F="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&($=!0,_("pointer",e))}function G(e){se(e)&&($=!0,F="virtual")}function q(e){e.target===window||e.target===document||(!$&&!O&&(F="virtual",_("virtual",e)),$=!1,O=!1)}function X(){$=!1,O=!0}function N(e){if(typeof window>"u"||y.get(h(e)))return;const n=h(e),t=w(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){$=!0,r.apply(this,arguments)},t.addEventListener("keydown",S,!0),t.addEventListener("keyup",S,!0),t.addEventListener("click",G,!0),n.addEventListener("focus",q,!0),n.addEventListener("blur",X,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",m,!0),t.addEventListener("pointermove",m,!0),t.addEventListener("pointerup",m,!0)):(t.addEventListener("mousedown",m,!0),t.addEventListener("mousemove",m,!0),t.addEventListener("mouseup",m,!0)),n.addEventListener("beforeunload",()=>{Y(e)},{once:!0}),y.set(n,{focus:r})}const Y=(e,n)=>{const t=h(e),r=w(e);n&&r.removeEventListener("DOMContentLoaded",n),y.has(t)&&(t.HTMLElement.prototype.focus=y.get(t).focus,r.removeEventListener("keydown",S,!0),r.removeEventListener("keyup",S,!0),r.removeEventListener("click",G,!0),t.removeEventListener("focus",q,!0),t.removeEventListener("blur",X,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",m,!0),r.removeEventListener("pointermove",m,!0),r.removeEventListener("pointerup",m,!0)):(r.removeEventListener("mousedown",m,!0),r.removeEventListener("mousemove",m,!0),r.removeEventListener("mouseup",m,!0)),y.delete(t))};function pe(e){const n=w(e);let t;return n.readyState!=="loading"?N(e):(t=()=>{N(e)},n.addEventListener("DOMContentLoaded",t)),()=>Y(e,t)}typeof document<"u"&&pe();function z(){return F!=="pointer"}const ve=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function be(e,n,t){var r;const o=typeof window<"u"?h(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?h(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,u=typeof window<"u"?h(t==null?void 0:t.target).HTMLElement:HTMLElement,s=typeof window<"u"?h(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||(t==null?void 0:t.target)instanceof o&&!ve.has(t==null||(r=t.target)===null||r===void 0?void 0:r.type)||(t==null?void 0:t.target)instanceof i||(t==null?void 0:t.target)instanceof u&&(t==null?void 0:t.target.isContentEditable),!(e&&n==="keyboard"&&t instanceof s&&!de[t.key])}function me(e,n,t){N(),c.useEffect(()=>{let r=(o,i)=>{be(!!(t!=null&&t.isTextInput),o,i)&&e(z())};return k.add(r),()=>{k.delete(r)}},n)}function ge(e){let{isDisabled:n,onBlurWithin:t,onFocusWithin:r,onFocusWithinChange:o}=e,i=c.useRef({isFocusWithin:!1}),u=c.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,t&&t(d),o&&o(!1))},[t,o,i]),s=V(u),a=c.useCallback(d=>{!i.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[r,o,s]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:u}}}let x=!1,A=0;function D(){x=!0,setTimeout(()=>{x=!1},50)}function W(e){e.pointerType==="touch"&&D()}function he(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",W):document.addEventListener("touchend",D),A++,()=>{A--,!(A>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",W):document.removeEventListener("touchend",D))}}function Ze(e){let{onHoverStart:n,onHoverChange:t,onHoverEnd:r,isDisabled:o}=e,[i,u]=c.useState(!1),s=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(he,[]);let{hoverProps:a,triggerHoverEnd:d}=c.useMemo(()=>{let f=(l,b)=>{if(s.pointerType=b,o||b==="touch"||s.isHovered||!l.currentTarget.contains(l.target))return;s.isHovered=!0;let g=l.currentTarget;s.target=g,n&&n({type:"hoverstart",target:g,pointerType:b}),t&&t(!0),u(!0)},v=(l,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let g=l.currentTarget;r&&r({type:"hoverend",target:g,pointerType:b}),t&&t(!1),u(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=l=>{x&&l.pointerType==="mouse"||f(l,l.pointerType)},p.onPointerLeave=l=>{!o&&l.currentTarget.contains(l.target)&&v(l,l.pointerType)}):(p.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=l=>{!s.ignoreEmulatedMouseEvents&&!x&&f(l,"mouse"),s.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=l=>{!o&&l.currentTarget.contains(l.target)&&v(l,"mouse")}),{hoverProps:p,triggerHoverEnd:v}},[n,t,r,o,s]);return c.useEffect(()=>{o&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function Je(e={}){let{autoFocus:n=!1,isTextInput:t,within:r}=e,o=c.useRef({isFocused:!1,isFocusVisible:n||z()}),[i,u]=c.useState(!1),[s,a]=c.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=c.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),f=c.useCallback(l=>{o.current.isFocused=l,u(l),d()},[d]);me(l=>{o.current.isFocusVisible=l,d()},[],{isTextInput:t});let{focusProps:v}=ce({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=ge({isDisabled:!r,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:s,focusProps:r?p:v}}var $e=Object.defineProperty,Ee=(e,n,t)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,M=(e,n,t)=>(Ee(e,typeof n!="symbol"?n+"":n,t),t);let ye=class{constructor(){M(this,"current",this.detect()),M(this,"handoffState","pending"),M(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Z=new ye;function J(e){return Z.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function we(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function Q(){let e=[],n={addEventListener(t,r,o,i){return t.addEventListener(r,o,i),n.add(()=>t.removeEventListener(r,o,i))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(r))},nextFrame(...t){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(...t){let r=setTimeout(...t);return n.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return we(()=>{r.current&&t[0]()}),n.add(()=>{r.current=!1})},style(t,r,o){let i=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:o}),this.add(()=>{Object.assign(t.style,{[r]:i})})},group(t){let r=Q();return t(r),this.add(()=>r.dispose())},add(t){return e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let t of e.splice(0))t()}};return n}function Fe(){let[e]=c.useState(Q);return c.useEffect(()=>()=>e.dispose(),[e]),e}let ee=(e,n)=>{Z.isServer?c.useEffect(e,n):c.useLayoutEffect(e,n)};function Te(e){let n=c.useRef(e);return ee(()=>{n.current=e},[e]),n}let I=function(e){let n=Te(e);return j.useCallback((...t)=>n.current(...t),[n])};function Le(e){let n=e.width/2,t=e.height/2;return{top:e.clientY-t,right:e.clientX+n,bottom:e.clientY+t,left:e.clientX-n}}function Pe(e,n){return!(!e||!n||e.right<n.left||e.left>n.right||e.bottom<n.top||e.top>n.bottom)}function et({disabled:e=!1}={}){let n=c.useRef(null),[t,r]=c.useState(!1),o=Fe(),i=I(()=>{n.current=null,r(!1),o.dispose()}),u=I(s=>{if(o.dispose(),n.current===null){n.current=s.currentTarget,r(!0);{let a=J(s.currentTarget);o.addEventListener(a,"pointerup",i,!1),o.addEventListener(a,"pointermove",d=>{if(n.current){let f=Le(d);r(Pe(f,n.current.getBoundingClientRect()))}},!1),o.addEventListener(a,"pointercancel",i,!1)}}});return{pressed:t,pressProps:e?{}:{onPointerDown:u,onPointerUp:i,onClick:i}}}function B(...e){return Array.from(new Set(e.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}function R(e,n,...t){if(e in n){let o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,R),r}var Se=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Se||{}),xe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(xe||{});function Ae(){let e=He();return c.useCallback(n=>Me({mergeRefs:e,...n}),[e])}function Me({ourProps:e,theirProps:n,slot:t,defaultTag:r,features:o,visible:i=!0,name:u,mergeRefs:s}){s=s??ke;let a=te(n,e);if(i)return P(a,t,r,u,s);let d=o??0;if(d&2){let{static:f=!1,...v}=a;if(f)return P(v,t,r,u,s)}if(d&1){let{unmount:f=!0,...v}=a;return R(f?0:1,{0(){return null},1(){return P({...v,hidden:!0,style:{display:"none"}},t,r,u,s)}})}return P(a,t,r,u,s)}function P(e,n={},t,r,o){let{as:i=t,children:u,refName:s="ref",...a}=H(e,["unmount","static"]),d=e.ref!==void 0?{[s]:e.ref}:{},f=typeof u=="function"?u(n):u;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(n)),a["aria-labelledby"]&&a["aria-labelledby"]===a.id&&(a["aria-labelledby"]=void 0);let v={};if(n){let p=!1,l=[];for(let[b,g]of Object.entries(n))typeof g=="boolean"&&(p=!0),g===!0&&l.push(b.replace(/([A-Z])/g,T=>`-${T.toLowerCase()}`));if(p){v["data-headlessui-state"]=l.join(" ");for(let b of l)v[`data-${b}`]=""}}if(i===c.Fragment&&(Object.keys(E(a)).length>0||Object.keys(E(v)).length>0))if(!c.isValidElement(f)||Array.isArray(f)&&f.length>1){if(Object.keys(E(a)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(E(a)).concat(Object.keys(E(v))).map(p=>`  - ${p}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>`  - ${p}`).join(`
`)].join(`
`))}else{let p=f.props,l=p==null?void 0:p.className,b=typeof l=="function"?(...L)=>B(l(...L),a.className):B(l,a.className),g=b?{className:b}:{},T=te(f.props,E(H(a,["ref"])));for(let L in v)L in T&&delete v[L];return c.cloneElement(f,Object.assign({},T,v,d,{ref:o(Ne(f),d.ref)},g))}return c.createElement(i,Object.assign({},H(a,["ref"]),i!==c.Fragment&&d,i!==c.Fragment&&v),f)}function He(){let e=c.useRef([]),n=c.useCallback(t=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(t):r.current=t)},[]);return(...t)=>{if(!t.every(r=>r==null))return e.current=t,n}}function ke(...e){return e.every(n=>n==null)?void 0:n=>{for(let t of e)t!=null&&(typeof t=="function"?t(n):t.current=n)}}function te(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];if(n.disabled||n["aria-disabled"])for(let r in t)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(t[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in t)Object.assign(n,{[r](o,...i){let u=t[r];for(let s of u){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return n}function tt(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];for(let r in t)Object.assign(n,{[r](...o){let i=t[r];for(let u of i)u==null||u(...o)}});return n}function Oe(e){var n;return Object.assign(c.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function E(e){let n=Object.assign({},e);for(let t in n)n[t]===void 0&&delete n[t];return n}function H(e,n=[]){let t=Object.assign({},e);for(let r of n)r in t&&delete t[r];return t}function Ne(e){return j.version.split(".")[0]>="19"?e.props.ref:e.ref}let De="span";var Ie=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ie||{});function Ce(e,n){var t;let{features:r=1,...o}=e,i={ref:n,"aria-hidden":(r&2)===2?!0:(t=o["aria-hidden"])!=null?t:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ae()({ourProps:i,theirProps:o,slot:{},defaultTag:De,name:"Hidden"})}let nt=Oe(Ce),ne=Symbol();function rt(e,n=!0){return Object.assign(e,{[ne]:n})}function ot(...e){let n=c.useRef(e);c.useEffect(()=>{n.current=e},[e]);let t=I(r=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[ne]))?void 0:t}var je=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(je||{});let C=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),_e=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Re=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Re||{}),We=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(We||{}),Be=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Be||{});function Ue(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(C)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}function Ke(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(_e)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ve=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ve||{});function it(e,n=0){var t;return e===((t=J(e))==null?void 0:t.body)?!1:R(n,{0(){return e.matches(C)},1(){let r=e;for(;r!==null;){if(r.matches(C))return!0;r=r.parentElement}return!1}})}var Ge=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ge||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ut(e){e==null||e.focus({preventScroll:!0})}let qe=["textarea","input"].join(",");function Xe(e){var n,t;return(t=(n=e==null?void 0:e.matches)==null?void 0:n.call(e,qe))!=null?t:!1}function Ye(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),i=n(r);if(o===null||i===null)return 0;let u=o.compareDocumentPosition(i);return u&Node.DOCUMENT_POSITION_FOLLOWING?-1:u&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function at(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?t?Ye(e):e:n&64?Ke(e):Ue(e);o.length>0&&u.length>1&&(u=u.filter(l=>!o.some(b=>b!=null&&"current"in b?(b==null?void 0:b.current)===l:b===l))),r=r??i.activeElement;let s=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,u.indexOf(r))-1;if(n&4)return Math.max(0,u.indexOf(r))+1;if(n&8)return u.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=n&32?{preventScroll:!0}:{},f=0,v=u.length,p;do{if(f>=v||f+v<=0)return 0;let l=a+f;if(n&16)l=(l+v)%v;else{if(l<0)return 3;if(l>=v)return 1}p=u[l],p==null||p.focus(d),f+=s}while(p!==i.activeElement);return n&6&&Xe(p)&&p.select(),2}function st(e,n){return c.useMemo(()=>{var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(n==null?void 0:n.tagName)==="BUTTON"&&!n.hasAttribute("type"))return"button"},[e.type,e.as,n])}function lt(){let e=c.useRef(!1);return ee(()=>(e.current=!0,()=>{e.current=!1}),[]),e}export{Je as $,it as A,Re as F,ut as I,Oe as K,Ae as L,Se as O,at as P,We as T,tt as _,nt as a,Te as b,Ze as c,Ye as d,st as e,lt as f,J as g,je as h,Q as i,Ve as j,C as k,Z as l,rt as m,ee as n,I as o,Fe as p,xe as q,E as r,Ie as s,we as t,R as u,B as v,et as w,Ue as x,ot as y};
//# sourceMappingURL=use-is-mounted-CGGKbEP0.js.map