1import{d as e,f as t,m as n}from"./runtime-CWxkiTMU.js";import{A as r,E as i,M as a,S as o,T as s,_ as c,b as l,c as u,f as d,n as f,r as p,s as m,w as h,y as g}from"./compose-Bt3PI4qo.js";var _=t((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=i.p;try{if(u.T=null,i.p=2,e)return e()}finally{u.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),v=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_()})),y=n(a(),1),b=y.use,x=y.useLayoutEffect;function S(e){let t=r();return y.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function C(e){let t=r(),n=S(),i=y.useRef(null);return x(()=>{i.current!==e&&(n(e),i.current=e)},[t,e,n]),null}function w(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function T(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function E(e){let t=null;return()=>(t??=e(),t)}var D=E(function(){return T(/^Mac/i)}),O=E(function(){return T(/^iPhone/i)}),ee=E(function(){return T(/^iPad/i)||D()&&navigator.maxTouchPoints>1}),k=E(function(){return O()||ee()}),te=E(function(){return D()||k()}
1),A=E(function(){return w(/AppleWebKit/i)&&(k()||!ne())}),ne=E(function(){return w(/Chrome|CriOS|CrMo/i)}),re=E(function(){return w(/Android/i)}),ie=E(function(){return w(/(Firefox|FxiOS)/i)});function j(e){if(ae())e.focus({preventScroll:!0});else{let t=oe(e);e.focus(),se(t)}}var M=null;function ae(){if(M==null){M=!1;try{document.createElement(`div`).focus({get preventScroll(){return M=!0,!0}})}catch{}}return M}function oe(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function se(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var ce=(0,y.createContext)({isNative:!0,open:pe,useHref:e=>e});function le(e){let{children:t,navigate:n,useHref:r}=e,i=(0,y.useMemo)(()=>({isNative:!1,open:(e,t,r,i)=>{fe(e,e=>{de(e,t)?n(r,i):N(e,t)})},useHref:r||(e=>e)}),[n,r]);return y.createElement(ce.Provider,{value:i},t)}function ue(){return(0,y.useContext)(ce)}function de(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function N(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t;!A()&&ie()&&window.event?.type?.startsWith(`key`)&&e.target===`_blank`&&(D()?r=!0:i=!0);let s=A()&&D()&&!ee()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});N.isOpening=n,j(e),e.dispatchEvent(s),N.isOpening=!1}N.isOpening=!1;function fe(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function pe(e,t){fe(e,e=>N(e,t))}function me(e){let t=ue().useHref(e.href??``);return{"data-href":e.href?t:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function he(e){let t=ue().useHref(e?.href??``),n={};if(e)for(let r of[`href`,`target`,`rel`,`download`,`ping`,`referrerPolicy`])r in e&&e[r]!==void 0&&(n[r]=r===`href`?t:e[r]);return n}function ge(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&de(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var P=e=>ve(e)?e.document:ye(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),F=e=>P(e)?.defaultView??(typeof window<`u`?window:void 0);function _e(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function ve(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function ye(e){return _e(e)&&e.nodeType===9}function I(e){return _e(e)&&e.nodeType===11&&`host`in e}function be(e,t,n,r){if(n==null||e==null)return()=>{};let i=Array.isArray(e)?e:[e];for(let e of i)e.addEventListener(t,n,r);return()=>{for(let e of i)e.removeEventListener(t,n,r)}}function xe(e,t,n,r){if(e==null)return()=>{};let i=[],a=Array.isArray(e)?e:[e];for(let e of a){let a=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);e.style.setProperty(t,n,r),i.unshift(()=>{a?e.style.setProperty(t,a,o):e.style.removeProperty(t)})}return()=>{for(let e of i)e()}}var Se=!1;function L(){return Se}function R(e,t){if(!L())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:I(n)?n.host:n.parentNode}return!1}var z=(e=document)=>{if(!L())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function B(e){if(L()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function Ce(e,t){if(t===null)return[];t??=F(e);let n=[t];if(!L()||!e||e===t)return n;let r=`getRootNode`in t?t.getRootNode():null,i=e.getRootNode()??null;for(;I(i)&&i!==r;)n.push(i),i=i.host.getRootNode();return n}function we(e){if(!e)return!1;let t=e.getRootNode(),n=F(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let r=t.activeElement;return r!=null&&e.contains(r)}var Te=new Set([`id`]),Ee=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),De=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),Oe=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),ke=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),Ae=/^(data-.*)$/;function je(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Te.has(t)||n&&Ee.has(t)||r&&De.has(t)||i&&Oe.has(t)||a&&(ke.has(t)||t.endsWith(`Capture`)&&ke.has(t.slice(0,-7)))||o?.has(t)||Ae.test(t))&&(s[t]=e[t]);return s}var V=new Map,Me=new Set;function Ne(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{let r=B(t);if(!e(t)||!r)return;let i=V.get(r);i||(i=new Set,V.set(r,i),r.addEventListener(`transitioncancel`,n,{once:!0})),i.add(t.propertyName)},n=t=>{let r=B(t);if(!e(t)||!r)return;let i=V.get(r);if(i&&(i.delete(t.propertyName),i.size===0&&(r.removeEventListener(`transitioncancel`,n),V.delete(r)),V.size===0)){for(let e of Me)e();Me.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,Ne):Ne());function Pe(){for(let[e]of V)`isConnected`in e&&!e.isConnected&&V.delete(e)}function Fe(e){requestAnimationFrame(()=>{Pe(),V.size===0?e():Me.add(e)})}function Ie(){let e=(0,y.useRef)(new Map),t=(0,y.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,y.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,y.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,y.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}var Le=y.useInsertionEffect??i;function Re(e){let t=(0,y.useRef)(null);return Le(()=>{t.current=e},[e]),(0,y.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function ze(e,t){i(()=>
1{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Be(e){return e.pointerType===``&&e.isTrusted?!0:re()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Ve(e){return!re()&&e.width===0&&e.height===0||re()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}var He=typeof Element<`u`&&`checkVisibility`in Element.prototype;function Ue(e){let t=F(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=F(e),{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function We(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function Ge(e,t){return He?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&Ue(e)&&We(e,t)&&(!e.parentElement||Ge(e.parentElement,e))}
1var Ke=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],qe=Ke.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;Ke.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var Je=Ke.join(`:not([hidden]):not([tabindex="-1"]),`);function Ye(e,t){return e.matches(qe)&&!Ze(e)&&(t?.skipVisibilityCheck||Ge(e))}function Xe(e){return e.matches(Je)&&Ge(e)&&!Ze(e)}function Ze(e){let t=e;for(;t!=null;){if(t instanceof F(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Qe(e,t){let n=F(t),r=P(t);if(r==null||n==null)return;let i,a=`meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`,o=r.querySelector(a);return o&&o instanceof n.HTMLMetaElement&&(e===`csp-nonce`&&o.nonce&&(i??=o.nonce||void 0),o.content&&(i??=o.content||void 0)),e===`csp-nonce`&&(i??=n.__webpack_nonce__||globalThis.__webpack_nonce__||void 0),i}var $e=new WeakMap;function et(e){let t=P(e),n=$e.get(t);return n??=Qe(`csp-nonce`,t),n!==void 0&&$e.set(t,n),n}var tt=c({base:`button`,defaultVariants:{fullWidth:!1,isIconOnly:!1,size:`md`,variant:`primary`},variants:{fullWidth:{false:``,true:`button--full-width`},isIconOnly:{true:`button--icon-only`},size:{lg:`button--lg`,md:`button--md`,sm:`button--sm`},variant:{danger:`button--danger`,"danger-soft":`button--danger-soft`,ghost:`button--ghost`,outline:`button--outline`,primary:`button--primary`,secondary:`button--secondary`,tertiary:`button--tertiary`}}});v();var nt=(0,y.createContext)(null),rt=7e3,H=null;function it(e,t=`assertive`,n=rt){H?H.announce(e,t,n):(H=new ot,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?H.announce(e,t,n):setTimeout(()=>{H?.isAttached()&&H?.announce(e,t,n)},100))}function at(e){H&&H.clear(e)}var ot=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=rt){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function st(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ct(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function lt(e){let t=(0,y.useRef)({isFocused:!1,observer:null});return i(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,y.useCallback)(n=>{let r=B(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=st(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===z()?null:z();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e}
1)),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var U=!1;function ut(e){for(;e&&!Ye(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=z(F(e).document);if(!t||t===e)return;let n=e?.getRootNode(),r=n!=null&&I(n)?n:F(e),i=t=>t===e||t!=null&&R(e,t),a=e=>e===t||t!=null&&e!=null&&R(t,e);U=!0;let o=!1,s=e=>{(a(B(e))||o)&&e.stopImmediatePropagation()},c=n=>{(a(B(n))||o)&&(n.stopImmediatePropagation(),!e&&!o&&(o=!0,j(t),d()))},l=e=>{(i(B(e))||o)&&e.stopImmediatePropagation()},u=e=>{(i(B(e))||o)&&(e.stopImmediatePropagation(),o||(o=!0,j(t),d()))};r.addEventListener(`blur`,s,!0),r.addEventListener(`focusout`,c,!0),r.addEventListener(`focusin`,u,!0),r.addEventListener(`focus`,l,!0);let d=()=>{cancelAnimationFrame(f),r.removeEventListener(`blur`,s,!0),r.removeEventListener(`focusout`,c,!0),r.removeEventListener(`focusin`,u,!0),r.removeEventListener(`focus`,l,!0),U=!1,o=!1},f=requestAnimationFrame(d);return d}var W=null,G=`keyboard`,K=new Set,q=new Map,J=!1,dt=!1,ft={Tab:!0,Escape:!0};function pt(e,t){for(let n of K)n(e,t)}function mt(e){return!(e.metaKey||!D()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function ht(e){J=!0,!N.isOpening&&mt(e)&&(W=`keyboard`,G=`keyboard`,pt(`keyboard`,e))}function Y(e){W=`pointer`,G=`pointerType`in e?e.pointerType:`mouse`,(e.type===`mousedown`||e.type===`pointerdown`)&&(J=!0,pt(`pointer`,e))}function gt(e){!N.isOpening&&Be(e)&&(J=!0,W=`virtual`,G=`virtual`)}function _t(e){if(U)return;let t=B(e),n=F(t),r=P(t);if(t===n){dt=!0;return}t!==r&&e.isTrusted&&(!J&&!dt&&(W=`virtual`,G=`virtual`,pt(`virtual`,e)),J=!1,dt=!1)}function vt(){U||(J=!1,dt=!0)}function yt(e){if(typeof window>`u`||typeof document>`u`)return;let t=F(e),n=P(e);if(q.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){J=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,ht,!0),n.addEventListener(`keyup`,ht,!0),n.addEventListener(`click`,gt,!0),t.addEventListener(`focus`,_t,!0),t.addEventListener(`blur`,vt,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,Y,!0),n.addEventListener(`pointermove`,Y,!0),n.addEventListener(`pointerup`,Y,!0)),t.addEventListener(`beforeunload`,()=>{bt(e)},{once:!0}),q.set(t,{focus:r})}var bt=(e,t)=>{let n=F(e),r=P(e);t&&r.removeEventListener(`DOMContentLoaded`,t),q.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:q.get(n).focus}),r.removeEventListener(`keydown`,ht,!0),r.removeEventListener(`keyup`,ht,!0),r.removeEventListener(`click`,gt,!0),n.removeEventListener(`focus`,_t,!0),n.removeEventListener(`blur`,vt,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,Y,!0),r.removeEventListener(`pointermove`,Y,!0),r.removeEventListener(`pointerup`,Y,!0)),q.delete(n))};function xt(e){let t=P(e),n;return t.readyState===`loading`?(n=()=>{yt(e)},t.addEventListener(`DOMContentLoaded`,n)):yt(e),()=>bt(e,n)}typeof document<`u`&&xt();function X(){return W!==`pointer`}function St(){return W}function Ct(e){W=e,G=e===`pointer`?`mouse`:e,pt(e,null)}function wt(){return G}function Tt(){yt();let[e,t]=(0,y.useState)(W);return(0,y.useEffect)(()=>{let e=()=>{t(W)};return K.add(e),()=>{K.delete(e)}},[]),s()?null:e}var Et=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Dt(e,t,n){let r=n?B(n):void 0,i=P(r),a=F(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=z(i);return e=e||u instanceof o&&!Et.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!ft[n.key])}function Ot(e={}){let{isTextInput:t,autoFocus:n}=e,[r,i]=(0,y.useState)(n||X());return kt(e=>{i(e)},[t],{isTextInput:t}),{isFocusVisible:r}}function kt(e,t,n){yt(),(0,y.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{Dt(!!n?.isTextInput,t,r)&&e(X())};return K.add(t),()=>{K.delete(t)}},t)}function At(e){if(!e.isConnected)return;let t=P(e);
1if(St()===`virtual`){let n=z(t);Fe(()=>{let r=z(t);(r===n||r===t.body)&&e.isConnected&&j(e)})}else j(e)}function jt(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,y.useCallback)(e=>{if(B(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=lt(a),s=(0,y.useCallback)(e=>{let t=B(e),r=P(t),a=r?z(r):z();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function Mt(e){if(e)return t=>{let n=!0;e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1,typeof t.continuePropagation==`function`&&t.continuePropagation()},isPropagationStopped(){return n}}),n&&!(typeof t.isPropagationStopped==`function`&&t.isPropagationStopped())&&t.stopPropagation()}}var Nt=new Set([`shift`,`alt`,`control`,`meta`,`mod`]),Pt=[`Alt`,`Control`,`Meta`,`Shift`];function Ft(e){let t=new Set;return e.alt&&t.add(`Alt`),e.shift&&t.add(`Shift`),e.ctrl&&t.add(`Control`),e.meta&&t.add(`Meta`),e.mod&&t.add(D()?`Meta`:`Control`),t}function It(e){let t=new Set;return e.altKey&&t.add(`Alt`),e.ctrlKey&&t.add(`Control`),e.metaKey&&t.add(`Meta`),e.shiftKey&&t.add(`Shift`),t}function Lt(e){return Pt.filter(t=>e.has(t))}function Rt(e){let t=e.split(`+`).reduce((e,t)=>{let n=t.toLowerCase();return Nt.has(n)?n===`shift`?e.shift=!0:n===`alt`?e.alt=!0:n===`control`?e.ctrl=!0:n===`meta`?e.meta=!0:n===`mod`&&(e.mod=!0):e.key=t,e},{shift:!1,alt:!1,ctrl:!1,meta:!1,mod:!1,key:``});if(t.key===``)throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);return t}function zt(e){return e.toLowerCase()}var Bt={space:` `,esc:`escape`,del:`delete`,ins:`insert`,left:`arrowleft`,right:`arrowright`,up:`arrowup`,down:`arrowdown`,pageup:`pageup`,pagedown:`pagedown`};function Vt(e){let t=zt(e);return Bt[t]??t}function Ht(e){let t=Lt(Ft(e)),n=Vt(e.key);return t.length>0?`${t.join(`+`)}+${n}`:n}function Ut(e){let t=Lt(It(e)),n=zt(e.key);return(t.length>0?`${t.join(`+`)}+`:``)+n}function Wt(e){let t=new Map;for(let[n,r]of Object.entries(e)){let e=Rt(n);t.set(Ht(e),r)}return e=>{let n=Ut(e),r=t.get(n),i=r?.(e);i===void 0&&r!==void 0?i={shouldContinuePropagation:!1,shouldPreventDefault:!0}:typeof i==`boolean`&&(i={shouldContinuePropagation:!i,shouldPreventDefault:i}),i?.shouldPreventDefault&&e.preventDefault(),(!r||i?.shouldContinuePropagation)&&e.continuePropagation()}}function Gt(e){let{shortcuts:t,allowRepeats:n=!1,allowComposing:r=!1}=e,i,a;if(t){let s=Wt(t),c=Mt(e=>{if(!R(e.currentTarget,B(e))){e.continuePropagation();return}if(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r){e.continuePropagation();return}s(e)}),l=Mt(e=>{if(!R(e.currentTarget,B(e))){e.continuePropagation();return}if(e.nativeEvent?.repeat&&!n||e.nativeEvent?.isComposing&&!r){e.continuePropagation();return}e.continuePropagation()});i=e.onKeyDown?o(e.onKeyDown,c):c,a=e.onKeyUp?o(e.onKeyUp,l):l}else i=Mt(e.onKeyDown),a=Mt(e.onKeyUp);return{keyboardProps:e.isDisabled?{}:{onKeyDown:i,onKeyUp:a}}}var Kt=y.createContext(null);function qt(e){let t=(0,y.useContext)(Kt)||{};ze(t,e);let{ref:n,...r}=t;return r}var Jt=y.forwardRef(function(e,t){let{children:n,...r}=e,i=g(t),a={...r,ref:i};return y.createElement(Kt.Provider,{value:a},n)});function Yt(e,t){let{focusProps:n}=jt(e),{keyboardProps:r}=Gt(e),i=l(n,r),a=qt(t),o=e.isDisabled?{}:a,s=(0,y.useRef)(e.autoFocus);(0,y.useEffect)(()=>{s.current&&t.current&&At(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:l({...i,tabIndex:c},o)}}var Z=`default`,Xt=``,Zt=new WeakMap;function Qt(e){if(k()&&A()){if(Z==="default"){let t=P(e);Xt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}Z=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;Zt.set(e,e.style[t]),e.style[t]=`none`}}function $t(e){if(k()&&A()){if(Z!==`disabled`)return;Z=`restoring`,setTimeout(()=>{Fe(()=>{if(Z===`restoring`){let t=P(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=Xt||``),Xt=``,Z=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Zt.has(e)){let t=Zt.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),Zt.delete(e)}}var en=y.createContext({register:()=>{}});en.displayName=`PressResponderContext`;function tn(e){let t=(0,y.useContext)(en);if(t){let{register:n,ref:r,...i}=t;e=l(i,e),n()}return ze(t,e.ref),e}var Q=class{#e;constructor(e,t,n,r){this.#e=!0;let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o,this.key=n.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}
1,nn=Symbol(`linkClicked`),rn=`react-aria-pressable-style`,an=`data-react-aria-pressable`;function on(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:s,isDisabled:c,isPressed:u,preventFocusOnPress:d,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:p,ref:m,...h}=tn(e),[g,_]=(0,y.useState)(!1),v=(0,y.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:x}=Ie(),S=(0,y.useCallback)((e,t)=>{let i=v.current;if(c||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new Q(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,_(!0),a},[c,r,n]),C=(0,y.useCallback)((e,r,a=!0)=>{let o=v.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let s=!0;if(i){let t=new Q(`pressend`,r,e);i(t),s=t.shouldStopPropagation}if(n&&n(!1),_(!1),t&&a&&!c){let n=new Q(`press`,r,e);t(n),s&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,s},[c,i,n,t]),w=Re(C),T=Re((0,y.useCallback)((e,t)=>{let n=v.current;if(c)return!1;if(a){n.isTriggeringEvent=!0;let r=new Q(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[c,a])),E=(0,y.useCallback)(e=>{let t=v.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&C($(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,x(),p||$t(t.target);for(let e of t.disposables)e();t.disposables=[]}},[p,x,C]),O=Re(E);(0,y.useEffect)(()=>{c&&v.current.isPressed&&O({currentTarget:v.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[c]);let ee=(0,y.useCallback)(e=>{f&&E(e)},[f,E]),k=(0,y.useCallback)(e=>{c||s?.(e)},[c,s]),te=(0,y.useCallback)((e,t)=>{if(!c&&s){let n=new MouseEvent(`click`,e);ct(n,t),s(st(n))}},[c,s]),A=(0,y.useMemo)(()=>{let e=v.current,t={onKeyDown(t){if(cn(t.nativeEvent,t.currentTarget)&&R(t.currentTarget,B(t))){un(B(t),t.key)&&t.preventDefault();let r=!0;!e.isPressed&&!t.repeat&&(e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,r=S(t,`keyboard`));let i=t.currentTarget;b(P(t.currentTarget),`keyup`,o(t=>{cn(t,i)&&!t.repeat&&R(i,B(t))&&e.target&&T($(e.target,t),`keyboard`)},n),!0),r&&t.stopPropagation(),t.metaKey&&D()&&e.metaKeyEvents?.set(t.key,t.nativeEvent)}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||R(t.currentTarget,B(t)))&&t&&t.button===0&&!e.isTriggeringEvent&&!N.isOpening){let n=!0;if(c&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||Be(t.nativeEvent))){let e=S(t,`virtual`),r=T(t,`virtual`),i=w(t,`virtual`);k(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=T($(t.currentTarget,t),r),a=w($(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,k(t),O(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&e.target&&cn(t,e.target)){un(B(t),t.key)&&t.preventDefault();let n=B(t),r=R(e.target,n);w($(e.target,t),`keyboard`,r),r&&te(t,e.target),x(),t.key!==`Enter`&&sn(e.target)&&R(e.target,n)&&!t[nn]&&(t[nn]=!0,N(e.target,t,!1)),e.isPressed=!1,e.metaKeyEvents?.delete(t.key)}else if(t.key===`Meta`&&e.metaKeyEvents?.size){let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())e.target?.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!R(t.currentTarget,B(t)))return;if(Ve(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,p||Qt(e.target),i=S(t,e.pointerType);let a=B(t);`releasePointerCapture`in a&&(`hasPointerCapture`in a?a.hasPointerCapture(t.pointerId)&&a.releasePointerCapture(t.pointerId):a.releasePointerCapture(t.pointerId)),b(P(t.currentTarget),`pointerup`,n,!1),b(P(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(R(t.currentTarget,B(t))&&t.button===0){if(d){let n=ut(t.target);n&&e.disposables.push(n)}
1t.stopPropagation()}},t.onPointerUp=t=>{R(t.currentTarget,B(t))&&e.pointerType!==`virtual`&&t.button===0&&!e.isPressed&&T(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,S($(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,w($(e.target,t),e.pointerType,!1),ee(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(R(e.target,B(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?O(t):(j(e.target),e.target.click()))},80);b(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else O(t);e.isOverTarget=!1}},r=e=>{O(e)};t.onDragStart=e=>{R(e.currentTarget,B(e))&&O(e)}}return t},[b,c,d,x,p,ee,S,k,te]);return(0,y.useEffect)(()=>{if(!m)return;let e=P(m.current);if(!e||!e.head||e.getElementById(rn))return;let t=e.createElement(`style`);t.id=rn;let n=et(e);n&&(t.nonce=n),t.textContent=` 2@layer { 3 [${an}] { 4 touch-action: pan-x pan-y pinch-zoom; 5 } 6} 7 `.trim(),e.head.prepend(t)},[m]),(0,y.useEffect)(()=>{let e=v.current;return()=>{p||$t(e.target??void 0);for(let t of e.disposables)t();e.disposables=[]}},[p]),{isPressed:u||g,pressProps:l(h,A,{[an]:!0})}}function sn(e){return e.tagName===`A`&&e.hasAttribute(`href`)}function cn(e,t){let{key:n,code:r}=e,i=t,a=i.getAttribute(`role`);return(n===`Enter`||n===` `||n===`Spacebar`||r===`Space`)&&!(i instanceof F(i).HTMLInputElement&&!fn(i,n)||i instanceof F(i).HTMLTextAreaElement||i.isContentEditable)&&!((a===`link`||!a&&sn(i))&&n!==`Enter`)}function $(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function ln(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!==`submit`&&e.type!==`reset`:!sn(e)}function un(e,t){return D()&&t===`Enter`?!1:e instanceof HTMLInputElement?t===`Enter`&&(e.type===`checkbox`||e.type===`radio`)?!1:!fn(e,t):ln(e)}var dn=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function fn(e,t){return e.type===`checkbox`||e.type===`radio`?t===` `:dn.has(e.type)}function pn(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:p,target:m,rel:h,type:g=`button`}=e,_;_=n===`button`?{type:g,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?p:void 0,target:n===`a`?m:void 0,type:n===`input`?g:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?h:void 0};let{pressProps:v,isPressed:y}=on({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:b}=Yt(e,t);d&&(b.tabIndex=r?-1:b.tabIndex);let x=l(b,v,je(e,{labelable:!0}));return{isPressed:y,buttonProps:l(_,x,{"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`],"aria-disabled":e[`aria-disabled`]})}}function mn(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,y.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Ie(),c=(0,y.useCallback)(e=>{R(e.currentTarget,B(e))&&a.current.isFocusWithin&&!R(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=lt(c),u=(0,y.useCallback)(e=>{if(!R(e.currentTarget,B(e)))return;let t=B(e),n=P(t),s=z(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=B(e);if(a.current.isFocusWithin&&!R(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});ct(e,t);let i=st(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
7:{focusWithinProps:{onFocus:u,onBlur:c}}}function hn(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,y.useRef)({isFocused:!1,isFocusVisible:t||X()}),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,y.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,y.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=X(),o(e),l()},[l]);kt(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=jt({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=mn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var gn=!1,_n=0;function vn(){gn=!0,setTimeout(()=>{gn=!1},500)}function yn(e){e.pointerType===`touch`&&vn()}function bn(){let e=P(null);if(e!==void 0)return _n===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,yn),_n++,()=>{_n--,!(_n>0)&&typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,yn)}}function xn(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,y.useState)(!1),s=(0,y.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,y.useEffect)(bn,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=Ie(),{hoverProps:u,triggerHoverEnd:d}=(0,y.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!R(e.currentTarget,B(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(P(B(e)),`pointerover`,e=>{s.isHovered&&s.target&&!R(s.target,B(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{gn&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&R(e.currentTarget,B(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,y.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var Sn=(0,y.createContext)({}),Cn=p(function(e,t){[e,t]=m(e,t,Sn);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=pn(e,t);i=Tn(i,r);let{focusProps:o,isFocused:s,isFocusVisible:c}=hn(e),{hoverProps:f,isHovered:p}=xn({...e,isDisabled:e.isDisabled||r}),g={isHovered:p,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},_=u({...e,values:g,defaultClassName:`react-aria-Button`}),v=h(i.id),b=h(),x=i[`aria-labelledby`];r&&(x?x=`${x} ${b}`:i[`aria-label`]&&(x=`${v} ${b}`));let S=(0,y.useRef)(r);(0,y.useEffect)(()=>{let e={"aria-labelledby":x||v};(!S.current&&s&&r||S.current&&s&&!r)&&it(e,`assertive`),S.current=r},[r,s,x,v]);let C=je(e,{global:!0});return delete C.onClick,y.createElement(d.button,{...l(C,_,i,o,f),type:i.type===`submit`&&r?`button`:i.type,id:v,ref:t,"aria-labelledby":x,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":g.isPressed||void 0,"data-hovered":p||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},y.createElement(nt.Provider,{value:{id:b}},_.children))}),wn=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Tn(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!wn.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var En=e(),Dn=(0,y.createContext)({}),On=`__button_group_child`,kn=({children:e,className:t,fullWidth:n,isDisabled:r,isIconOnly:i,size:a,slot:o,style:s,variant:c,[On]:l,...u})=>{let d=(0,y.use)(Dn),p=l===!0,m=a??(p?d?.size:void 0),h=c??(p?d?.variant:void 0),g=r??(p?d?.isDisabled:void 0),_=tt({fullWidth:n??(p?d?.fullWidth:void 0),isIconOnly:i,size:m,variant:h});return(0,En.jsx)(Cn,{className:f(t,_),"data-slot":`button`,isDisabled:g,slot:o,style:s,...u,children:t=>typeof e==`function`?e(t):e})},An=Object.assign(kn,{Root:kn});export{O as $,Ge as A,L as B,Ot as C,et as D,tt as E,R as F,be as G,I as H,we as I,he as J,ge as K,z as L,Re as M,Ie as N,Ye as O,je as P,j as Q,Ce as R,X as S,at as T,P as U,xe as V,F as W,ue as X,N as Y,me as Z,At as _,hn as a,k as at,wt as b,on as c,b as ct,$t as d,ne as et,Jt as f,jt as g,Gt as h,xn as i,te as it,ze as j,Xe as k,en as l,x as lt,Kt as m,Sn as n,D as nt,mn as o,C as ot,Yt as p,le as q,Cn as r,re as rt,pn as s,S as st,An as t,A as tt,Qt as u,v as ut,St as v,it as w,Tt as x,Ct as y,B as z}; 8//# sourceMappingURL=button-Dyt-a1nv.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.