p;p++)l.push(o);return l}function hl(o,l,p){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-di(l),o[l]=p}function Bh(o,l){var p=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var v=o.eventTimes;for(o=o.expirationTimes;0=oo),tm=" ",nm=!1;function rm(o,l){switch(o){case"keyup":return Pr.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function im(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ha=!1;function ma(o,l){switch(o){case"compositionend":return im(l);case"keypress":return l.which!==32?null:(nm=!0,tm);case"textInput":return o=l.data,o===tm&&nm?null:o;default:return null}}function Jv(o,l){if(ha)return o==="compositionend"||!bl&&rm(o,l)?(o=ed(),Ri=yl=Ht=null,ha=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:p,offset:l-o};o=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=rt(p)}}function pn(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?pn(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function $t(){for(var o=window,l=mt();l instanceof o.HTMLIFrameElement;){try{var p=typeof l.contentWindow.location.href=="string"}catch{p=!1}if(p)o=l.contentWindow;else break;l=mt(o.document)}return l}function xl(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function iy(o){var l=$t(),p=o.focusedElem,v=o.selectionRange;if(l!==p&&p&&p.ownerDocument&&pn(p.ownerDocument.documentElement,p)){if(v!==null&&xl(p)){if(l=v.start,o=v.end,o===void 0&&(o=l),"selectionStart"in p)p.selectionStart=l,p.selectionEnd=Math.min(o,p.value.length);else if(o=(l=p.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var w=p.textContent.length,C=Math.min(v.start,w);v=v.end===void 0?C:Math.min(v.end,w),!o.extend&&C>v&&(w=v,v=C,C=w),w=wt(p,C);var A=wt(p,v);w&&A&&(o.rangeCount!==1||o.anchorNode!==w.node||o.anchorOffset!==w.offset||o.focusNode!==A.node||o.focusOffset!==A.offset)&&(l=l.createRange(),l.setStart(w.node,w.offset),o.removeAllRanges(),C>v?(o.addRange(l),o.extend(A.node,A.offset)):(l.setEnd(A.node,A.offset),o.addRange(l)))}}for(l=[],o=p;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,so=null,pd=null,Li=null,va=!1;function wl(o,l,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;va||so==null||so!==mt(v)||(v=so,"selectionStart"in v&&xl(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Li&&Ae(Li,v)||(Li=v,v=oc(pd,"onSelect"),0Ea||(o.current=yd[Ea],yd[Ea]=null,Ea--)}function Mt(o,l){Ea++,yd[Ea]=o.current,o.current=l}var Uo={},Hn=hr(Uo),mr=hr(!1),ir=Uo;function Pa(o,l){var p=o.type.contextTypes;if(!p)return Uo;var v=o.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===l)return v.__reactInternalMemoizedMaskedChildContext;var w={},C;for(C in p)w[C]=l[C];return v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=w),w}function gr(o){return o=o.childContextTypes,o!=null}function cc(){zt(mr),zt(Hn)}function hm(o,l,p){if(Hn.current!==Uo)throw Error(n(168));Mt(Hn,l),Mt(mr,p)}function mm(o,l,p){var v=o.stateNode;if(l=l.childContextTypes,typeof v.getChildContext!="function")return p;v=v.getChildContext();for(var w in v)if(!(w in l))throw Error(n(108,Fe(o)||"Unknown",w));return R({},p,v)}function Vr(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Uo,ir=Hn.current,Mt(Hn,o),Mt(mr,mr.current),!0}function gm(o,l,p){var v=o.stateNode;if(!v)throw Error(n(169));p?(o=mm(o,l,ir),v.__reactInternalMemoizedMergedChildContext=o,zt(mr),zt(Hn),Mt(Hn,o)):zt(mr),Mt(mr,p)}var uo=null,fc=!1,bd=!1;function vm(o){uo===null?uo=[o]:uo.push(o)}function Ps(o){fc=!0,vm(o)}function Ko(){if(!bd&&uo!==null){bd=!0;var o=0,l=Et;try{var p=uo;for(Et=1;o>=A,w-=A,Ni=1<<32-di(l)+w|p<Qe?(An=Ke,Ke=null):An=Ke.sibling;var kt=be(ae,Ke,ue[Qe],Ee);if(kt===null){Ke===null&&(Ke=An);break}o&&Ke&&kt.alternate===null&&l(ae,Ke),ee=C(kt,ee,Qe),He===null?Be=kt:He.sibling=kt,He=kt,Ke=An}if(Qe===ue.length)return p(ae,Ke),jt&&_s(ae,Qe),Be;if(Ke===null){for(;QeQe?(An=Ke,Ke=null):An=Ke.sibling;var ns=be(ae,Ke,kt.value,Ee);if(ns===null){Ke===null&&(Ke=An);break}o&&Ke&&ns.alternate===null&&l(ae,Ke),ee=C(ns,ee,Qe),He===null?Be=ns:He.sibling=ns,He=ns,Ke=An}if(kt.done)return p(ae,Ke),jt&&_s(ae,Qe),Be;if(Ke===null){for(;!kt.done;Qe++,kt=ue.next())kt=ke(ae,kt.value,Ee),kt!==null&&(ee=C(kt,ee,Qe),He===null?Be=kt:He.sibling=kt,He=kt);return jt&&_s(ae,Qe),Be}for(Ke=v(ae,Ke);!kt.done;Qe++,kt=ue.next())kt=Re(Ke,ae,Qe,kt.value,Ee),kt!==null&&(o&&kt.alternate!==null&&Ke.delete(kt.key===null?Qe:kt.key),ee=C(kt,ee,Qe),He===null?Be=kt:He.sibling=kt,He=kt);return o&&Ke.forEach(function(Py){return l(ae,Py)}),jt&&_s(ae,Qe),Be}function cn(ae,ee,ue,Ee){if(typeof ue=="object"&&ue!==null&&ue.type===J&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case K:e:{for(var Be=ue.key,He=ee;He!==null;){if(He.key===Be){if(Be=ue.type,Be===J){if(He.tag===7){p(ae,He.sibling),ee=w(He,ue.props.children),ee.return=ae,ae=ee;break e}}else if(He.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===Z&&wm(Be)===He.type){p(ae,He.sibling),ee=w(He,ue.props),ee.ref=Rl(ae,He,ue),ee.return=ae,ae=ee;break e}p(ae,He);break}else l(ae,He);He=He.sibling}ue.type===J?(ee=Bs(ue.props.children,ae.mode,Ee,ue.key),ee.return=ae,ae=ee):(Ee=Yc(ue.type,ue.key,ue.props,null,ae.mode,Ee),Ee.ref=Rl(ae,ee,ue),Ee.return=ae,ae=Ee)}return A(ae);case D:e:{for(He=ue.key;ee!==null;){if(ee.key===He)if(ee.tag===4&&ee.stateNode.containerInfo===ue.containerInfo&&ee.stateNode.implementation===ue.implementation){p(ae,ee.sibling),ee=w(ee,ue.children||[]),ee.return=ae,ae=ee;break e}else{p(ae,ee);break}else l(ae,ee);ee=ee.sibling}ee=lp(ue,ae.mode,Ee),ee.return=ae,ae=ee}return A(ae);case Z:return He=ue._init,cn(ae,ee,He(ue._payload),Ee)}if(an(ue))return Me(ae,ee,ue,Ee);if(se(ue))return Ne(ae,ee,ue,Ee);$s(ae,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,ee!==null&&ee.tag===6?(p(ae,ee.sibling),ee=w(ee,ue),ee.return=ae,ae=ee):(p(ae,ee),ee=ap(ue,ae.mode,Ee),ee.return=ae,ae=ee),A(ae)):p(ae,ee)}return cn}var rn=wd(!0),mc=wd(!1),Ll=hr(null),$r=null,Wo=null,_a=null;function fo(){_a=Wo=$r=null}function gc(o){var l=Ll.current;zt(Ll),o._currentValue=l}function Nn(o,l,p){for(;o!==null;){var v=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,v!==null&&(v.childLanes|=l)):v!==null&&(v.childLanes&l)!==l&&(v.childLanes|=l),o===p)break;o=o.return}}function Ho(o,l){$r=o,_a=Wo=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&l)!==0&&(sr=!0),o.firstContext=null)}function Wr(o){var l=o._currentValue;if(_a!==o)if(o={context:o,memoizedValue:l,next:null},Wo===null){if($r===null)throw Error(n(308));Wo=o,$r.dependencies={lanes:0,firstContext:o}}else Wo=Wo.next=o;return l}var As=null;function Sd(o){As===null?As=[o]:As.push(o)}function vc(o,l,p,v){var w=l.interleaved;return w===null?(p.next=p,Sd(l)):(p.next=w.next,w.next=p),l.interleaved=p,po(o,v)}function po(o,l){o.lanes|=l;var p=o.alternate;for(p!==null&&(p.lanes|=l),p=o,o=o.return;o!==null;)o.childLanes|=l,p=o.alternate,p!==null&&(p.childLanes|=l),p=o,o=o.return;return p.tag===3?p.stateNode:null}var Hr=!1;function yc(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ho(o,l){return{eventTime:o,lane:l,tag:0,payload:null,callback:null,next:null}}function Gr(o,l,p){var v=o.updateQueue;if(v===null)return null;if(v=v.shared,(bt&2)!==0){var w=v.pending;return w===null?l.next=l:(l.next=w.next,w.next=l),v.pending=l,po(o,p)}return w=v.interleaved,w===null?(l.next=l,Sd(v)):(l.next=w.next,w.next=l),v.interleaved=l,po(o,p)}function bc(o,l,p){if(l=l.updateQueue,l!==null&&(l=l.shared,(p&4194240)!==0)){var v=l.lanes;v&=o.pendingLanes,p|=v,l.lanes=p,ml(o,p)}}function km(o,l){var p=o.updateQueue,v=o.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var w=null,C=null;if(p=p.firstBaseUpdate,p!==null){do{var A={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};C===null?w=C=A:C=C.next=A,p=p.next}while(p!==null);C===null?w=C=l:C=C.next=l}else w=C=l;p={baseState:v.baseState,firstBaseUpdate:w,lastBaseUpdate:C,shared:v.shared,effects:v.effects},o.updateQueue=p;return}o=p.lastBaseUpdate,o===null?p.firstBaseUpdate=l:o.next=l,p.lastBaseUpdate=l}function Ia(o,l,p,v){var w=o.updateQueue;Hr=!1;var C=w.firstBaseUpdate,A=w.lastBaseUpdate,W=w.shared.pending;if(W!==null){w.shared.pending=null;var X=W,de=X.next;X.next=null,A===null?C=de:A.next=de,A=X;var xe=o.alternate;xe!==null&&(xe=xe.updateQueue,W=xe.lastBaseUpdate,W!==A&&(W===null?xe.firstBaseUpdate=de:W.next=de,xe.lastBaseUpdate=X))}if(C!==null){var ke=w.baseState;A=0,xe=de=X=null,W=C;do{var be=W.lane,Re=W.eventTime;if((v&be)===be){xe!==null&&(xe=xe.next={eventTime:Re,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var Me=o,Ne=W;switch(be=l,Re=p,Ne.tag){case 1:if(Me=Ne.payload,typeof Me=="function"){ke=Me.call(Re,ke,be);break e}ke=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Ne.payload,be=typeof Me=="function"?Me.call(Re,ke,be):Me,be==null)break e;ke=R({},ke,be);break e;case 2:Hr=!0}}W.callback!==null&&W.lane!==0&&(o.flags|=64,be=w.effects,be===null?w.effects=[W]:be.push(W))}else Re={eventTime:Re,lane:be,tag:W.tag,payload:W.payload,callback:W.callback,next:null},xe===null?(de=xe=Re,X=ke):xe=xe.next=Re,A|=be;if(W=W.next,W===null){if(W=w.shared.pending,W===null)break;be=W,W=be.next,be.next=null,w.lastBaseUpdate=be,w.shared.pending=null}}while(!0);if(xe===null&&(X=ke),w.baseState=X,w.firstBaseUpdate=de,w.lastBaseUpdate=xe,l=w.shared.interleaved,l!==null){w=l;do A|=w.lane,w=w.next;while(w!==l)}else C===null&&(w.shared.lanes=0);Qo|=A,o.lanes=A,o.memoizedState=ke}}function kd(o,l,p){if(o=l.effects,l.effects=null,o!==null)for(l=0;lp?p:4,o(!0);var v=Td.transition;Td.transition={};try{o(!1),l()}finally{Et=p,Td.transition=v}}function Dd(){return qr().memoizedState}function sy(o,l,p){var v=es(o);if(p={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null},Nd(o))or(l,p);else if(p=vc(o,l,p,v),p!==null){var w=ur();xi(p,o,v,w),mi(p,l,v)}}function Im(o,l,p){var v=es(o),w={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null};if(Nd(o))or(l,w);else{var C=o.alternate;if(o.lanes===0&&(C===null||C.lanes===0)&&(C=l.lastRenderedReducer,C!==null))try{var A=l.lastRenderedState,W=C(A,p);if(w.hasEagerState=!0,w.eagerState=W,fe(W,A)){var X=l.interleaved;X===null?(w.next=w,Sd(l)):(w.next=X.next,X.next=w),l.interleaved=w;return}}catch{}finally{}p=vc(o,l,w,v),p!==null&&(w=ur(),xi(p,o,v,w),mi(p,l,v))}}function Nd(o){var l=o.alternate;return o===Zt||l!==null&&l===Zt}function or(o,l){Fl=Aa=!0;var p=o.pending;p===null?l.next=l:(l.next=p.next,p.next=l),o.pending=l}function mi(o,l,p){if((p&4194240)!==0){var v=l.lanes;v&=o.pendingLanes,p|=v,l.lanes=p,ml(o,p)}}var Tc={readContext:Wr,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useInsertionEffect:Yn,useLayoutEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useMutableSource:Yn,useSyncExternalStore:Yn,useId:Yn,unstable_isNewReconciler:!1},ay={readContext:Wr,useCallback:function(o,l){return Vi().memoizedState=[o,l===void 0?null:l],o},useContext:Wr,useEffect:Pc,useImperativeHandle:function(o,l,p){return p=p!=null?p.concat([o]):null,zl(4194308,4,Ld.bind(null,l,o),p)},useLayoutEffect:function(o,l){return zl(4194308,4,o,l)},useInsertionEffect:function(o,l){return zl(4,2,o,l)},useMemo:function(o,l){var p=Vi();return l=l===void 0?null:l,o=o(),p.memoizedState=[o,l],o},useReducer:function(o,l,p){var v=Vi();return l=p!==void 0?p(l):l,v.memoizedState=v.baseState=l,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:l},v.queue=o,o=o.dispatch=sy.bind(null,Zt,o),[v.memoizedState,o]},useRef:function(o){var l=Vi();return o={current:o},l.memoizedState=o},useState:Ol,useDebugValue:jl,useDeferredValue:function(o){return Vi().memoizedState=o},useTransition:function(){var o=Ol(!1),l=o[0];return o=_m.bind(null,o[1]),Vi().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,p){var v=Zt,w=Vi();if(jt){if(p===void 0)throw Error(n(407));p=p()}else{if(p=l(),$n===null)throw Error(n(349));(qo&30)!==0||Ad(v,l,p)}w.memoizedState=p;var C={value:p,getSnapshot:l};return w.queue=C,Pc(go.bind(null,v,C,o),[o]),v.flags|=2048,La(9,yr.bind(null,v,C,p,l),void 0,null),p},useId:function(){var o=Vi(),l=$n.identifierPrefix;if(jt){var p=Fi,v=Ni;p=(v&~(1<<32-di(v)-1)).toString(32)+p,l=":"+l+"R"+p,p=Ls++,0<\/script>",o=o.removeChild(o.firstChild)):typeof v.is=="string"?o=A.createElement(p,{is:v.is}):(o=A.createElement(p),p==="select"&&(A=o,v.multiple?A.multiple=!0:v.size&&(A.size=v.size))):o=A.createElementNS(o,p),o[Mi]=l,o[Vo]=v,On(o,l,!1,!1),l.stateNode=o;e:{switch(A=tr(p,v),p){case"dialog":Ot("cancel",o),Ot("close",o),w=v;break;case"iframe":case"object":case"embed":Ot("load",o),w=v;break;case"video":case"audio":for(w=0;wFs&&(l.flags|=128,v=!0,Gl(C,!1),l.lanes=4194304)}else{if(!v)if(o=Rs(A),o!==null){if(l.flags|=128,v=!0,p=o.updateQueue,p!==null&&(l.updateQueue=p,l.flags|=4),Gl(C,!0),C.tail===null&&C.tailMode==="hidden"&&!A.alternate&&!jt)return zn(l),null}else 2*Wt()-C.renderingStartTime>Fs&&p!==1073741824&&(l.flags|=128,v=!0,Gl(C,!1),l.lanes=4194304);C.isBackwards?(A.sibling=l.child,l.child=A):(p=C.last,p!==null?p.sibling=A:l.child=A,C.last=A)}return C.tail!==null?(l=C.tail,C.rendering=l,C.tail=l.sibling,C.renderingStartTime=Wt(),l.sibling=null,p=Gt.current,Mt(Gt,v?p&1|2:p&1),l):(zn(l),null);case 22:case 23:return op(),v=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==v&&(l.flags|=8192),v&&(l.mode&1)!==0?(Rr&1073741824)!==0&&(zn(l),l.subtreeFlags&6&&(l.flags|=8192)):zn(l),null;case 24:return null;case 25:return null}throw Error(n(156,l.tag))}function uy(o,l){switch(Is(l),l.tag){case 1:return gr(l.type)&&cc(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return Go(),zt(mr),zt(Hn),wc(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 5:return xc(l),null;case 13:if(zt(Gt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(n(340));zi()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return zt(Gt),null;case 4:return Go(),null;case 10:return gc(l.type._context),null;case 22:case 23:return op(),null;case 24:return null;default:return null}}var Nc=!1,qt=!1,ar=typeof WeakSet=="function"?WeakSet:Set,Le=null;function za(o,l){var p=o.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(v){en(o,l,v)}else p.current=null}function ql(o,l,p){try{p()}catch(v){en(o,l,v)}}var Nm=!1;function cy(o,l){if(Tl=Vu,o=$t(),xl(o)){if("selectionStart"in o)var p={start:o.selectionStart,end:o.selectionEnd};else e:{p=(p=o.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var w=v.anchorOffset,C=v.focusNode;v=v.focusOffset;try{p.nodeType,C.nodeType}catch{p=null;break e}var A=0,W=-1,X=-1,de=0,xe=0,ke=o,be=null;t:for(;;){for(var Re;ke!==p||w!==0&&ke.nodeType!==3||(W=A+w),ke!==C||v!==0&&ke.nodeType!==3||(X=A+v),ke.nodeType===3&&(A+=ke.nodeValue.length),(Re=ke.firstChild)!==null;)be=ke,ke=Re;for(;;){if(ke===o)break t;if(be===p&&++de===w&&(W=A),be===C&&++xe===v&&(X=A),(Re=ke.nextSibling)!==null)break;ke=be,be=ke.parentNode}ke=Re}p=W===-1||X===-1?null:{start:W,end:X}}else p=null}p=p||{start:0,end:0}}else p=null;for(Es={focusedElem:o,selectionRange:p},Vu=!1,Le=l;Le!==null;)if(l=Le,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Le=o;else for(;Le!==null;){l=Le;try{var Me=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(Me!==null){var Ne=Me.memoizedProps,cn=Me.memoizedState,ae=l.stateNode,ee=ae.getSnapshotBeforeUpdate(l.elementType===l.type?Ne:Yr(l.type,Ne),cn);ae.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ue=l.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ee){en(l,l.return,Ee)}if(o=l.sibling,o!==null){o.return=l.return,Le=o;break}Le=l.return}return Me=Nm,Nm=!1,Me}function bo(o,l,p){var v=l.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var w=v=v.next;do{if((w.tag&o)===o){var C=w.destroy;w.destroy=void 0,C!==void 0&&ql(l,p,C)}w=w.next}while(w!==v)}}function Yl(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&o)===o){var v=p.create;p.destroy=v()}p=p.next}while(p!==l)}}function Fc(o){var l=o.ref;if(l!==null){var p=o.stateNode;switch(o.tag){case 5:o=p;break;default:o=p}typeof l=="function"?l(o):l.current=o}}function Fm(o){var l=o.alternate;l!==null&&(o.alternate=null,Fm(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Mi],delete l[Vo],delete l[lc],delete l[N],delete l[Ca])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Om(o){return o.tag===5||o.tag===3||o.tag===4}function zm(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Om(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function qd(o,l,p){var v=o.tag;if(v===5||v===6)o=o.stateNode,l?p.nodeType===8?p.parentNode.insertBefore(o,l):p.insertBefore(o,l):(p.nodeType===8?(l=p.parentNode,l.insertBefore(o,p)):(l=p,l.appendChild(o)),p=p._reactRootContainer,p!=null||l.onclick!==null||(l.onclick=sc));else if(v!==4&&(o=o.child,o!==null))for(qd(o,l,p),o=o.sibling;o!==null;)qd(o,l,p),o=o.sibling}function Oc(o,l,p){var v=o.tag;if(v===5||v===6)o=o.stateNode,l?p.insertBefore(o,l):p.appendChild(o);else if(v!==4&&(o=o.child,o!==null))for(Oc(o,l,p),o=o.sibling;o!==null;)Oc(o,l,p),o=o.sibling}var In=null,vi=!1;function Hi(o,l,p){for(p=p.child;p!==null;)Yd(o,l,p),p=p.sibling}function Yd(o,l,p){if(Ai&&typeof Ai.onCommitFiberUnmount=="function")try{Ai.onCommitFiberUnmount(Nu,p)}catch{}switch(p.tag){case 5:qt||za(p,l);case 6:var v=In,w=vi;In=null,Hi(o,l,p),In=v,vi=w,In!==null&&(vi?(o=In,p=p.stateNode,o.nodeType===8?o.parentNode.removeChild(p):o.removeChild(p)):In.removeChild(p.stateNode));break;case 18:In!==null&&(vi?(o=In,p=p.stateNode,o.nodeType===8?vd(o.parentNode,p):o.nodeType===1&&vd(o,p),Tt(o)):vd(In,p.stateNode));break;case 4:v=In,w=vi,In=p.stateNode.containerInfo,vi=!0,Hi(o,l,p),In=v,vi=w;break;case 0:case 11:case 14:case 15:if(!qt&&(v=p.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){w=v=v.next;do{var C=w,A=C.destroy;C=C.tag,A!==void 0&&((C&2)!==0||(C&4)!==0)&&ql(p,l,A),w=w.next}while(w!==v)}Hi(o,l,p);break;case 1:if(!qt&&(za(p,l),v=p.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=p.memoizedProps,v.state=p.memoizedState,v.componentWillUnmount()}catch(W){en(p,l,W)}Hi(o,l,p);break;case 21:Hi(o,l,p);break;case 22:p.mode&1?(qt=(v=qt)||p.memoizedState!==null,Hi(o,l,p),qt=v):Hi(o,l,p);break;default:Hi(o,l,p)}}function ja(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var p=o.stateNode;p===null&&(p=o.stateNode=new ar),l.forEach(function(v){var w=vy.bind(null,o,v);p.has(v)||(p.add(v),v.then(w,w))})}}function Ar(o,l){var p=l.deletions;if(p!==null)for(var v=0;vw&&(w=A),v&=~C}if(v=w,v=Wt()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*Bm(v/1960))-v,10o?16:o,Zo===null)var v=!1;else{if(o=Zo,Zo=null,lr=0,(bt&6)!==0)throw Error(n(331));var w=bt;for(bt|=4,Le=o.current;Le!==null;){var C=Le,A=C.child;if((Le.flags&16)!==0){var W=C.deletions;if(W!==null){for(var X=0;XWt()-Zd?zs(o,0):Bc|=p),xr(o,l)}function Gm(o,l){l===0&&((o.mode&1)===0?l=1:(l=Fu,Fu<<=1,(Fu&130023424)===0&&(Fu=4194304)));var p=ur();o=po(o,l),o!==null&&(hl(o,l,p),xr(o,p))}function gy(o){var l=o.memoizedState,p=0;l!==null&&(p=l.retryLane),Gm(o,p)}function vy(o,l){var p=0;switch(o.tag){case 13:var v=o.stateNode,w=o.memoizedState;w!==null&&(p=w.retryLane);break;case 19:v=o.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(l),Gm(o,p)}var qm;qm=function(o,l,p){if(o!==null)if(o.memoizedProps!==l.pendingProps||mr.current)sr=!0;else{if((o.lanes&p)===0&&(l.flags&128)===0)return sr=!1,Mm(o,l,p);sr=(o.flags&131072)!==0}else sr=!1,jt&&(l.flags&1048576)!==0&&ym(l,pc,l.index);switch(l.lanes=0,l.tag){case 2:var v=l.type;Dc(o,l),o=l.pendingProps;var w=Pa(l,Hn.current);Ho(l,p),w=Ms(null,l,v,o,w,p);var C=Sc();return l.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,gr(v)?(C=!0,Vr(l)):C=!1,l.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,yc(l),w.updater=$c,l.stateNode=w,w._reactInternals=l,Od(l,v,o,p),l=Wd(null,l,v,!0,C,p)):(l.tag=0,jt&&C&&$l(l),Fn(null,l,w,p),l=l.child),l;case 16:v=l.elementType;e:{switch(Dc(o,l),o=l.pendingProps,w=v._init,v=w(v._payload),l.type=v,w=l.tag=by(v),o=Yr(v,o),w){case 0:l=Ud(null,l,v,o,p);break e;case 1:l=Kd(null,l,v,o,p);break e;case 11:l=Rm(null,l,v,o,p);break e;case 14:l=jd(null,l,v,Yr(v.type,o),p);break e}throw Error(n(306,v,""))}return l;case 0:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Yr(v,w),Ud(o,l,v,w,p);case 1:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Yr(v,w),Kd(o,l,v,w,p);case 3:e:{if(Lm(l),o===null)throw Error(n(387));v=l.pendingProps,C=l.memoizedState,w=C.element,Sm(o,l),Ia(l,v,null,p);var A=l.memoizedState;if(v=A.element,C.isDehydrated)if(C={element:v,isDehydrated:!1,cache:A.cache,pendingSuspenseBoundaries:A.pendingSuspenseBoundaries,transitions:A.transitions},l.updateQueue.baseState=C,l.memoizedState=C,l.flags&256){w=Ns(Error(n(423)),l),l=Wi(o,l,v,p,w);break e}else if(v!==w){w=Ns(Error(n(424)),l),l=Wi(o,l,v,p,w);break e}else for(Ir=Bo(l.stateNode.containerInfo.firstChild),qn=l,jt=!0,hi=null,p=mc(l,null,v,p),l.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(zi(),v===w){l=gi(o,l,p);break e}Fn(o,l,v,p)}l=l.child}return l;case 5:return Ed(l),o===null&&vr(l),v=l.type,w=l.pendingProps,C=o!==null?o.memoizedProps:null,A=w.children,_l(v,w)?A=null:C!==null&&_l(v,C)&&(l.flags|=32),Vd(o,l),Fn(o,l,A,p),l.child;case 6:return o===null&&vr(l),null;case 13:return Mc(o,l,p);case 4:return Cd(l,l.stateNode.containerInfo),v=l.pendingProps,o===null?l.child=rn(l,null,v,p):Fn(o,l,v,p),l.child;case 11:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Yr(v,w),Rm(o,l,v,w,p);case 7:return Fn(o,l,l.pendingProps,p),l.child;case 8:return Fn(o,l,l.pendingProps.children,p),l.child;case 12:return Fn(o,l,l.pendingProps.children,p),l.child;case 10:e:{if(v=l.type._context,w=l.pendingProps,C=l.memoizedProps,A=w.value,Mt(Ll,v._currentValue),v._currentValue=A,C!==null)if(fe(C.value,A)){if(C.children===w.children&&!mr.current){l=gi(o,l,p);break e}}else for(C=l.child,C!==null&&(C.return=l);C!==null;){var W=C.dependencies;if(W!==null){A=C.child;for(var X=W.firstContext;X!==null;){if(X.context===v){if(C.tag===1){X=ho(-1,p&-p),X.tag=2;var de=C.updateQueue;if(de!==null){de=de.shared;var xe=de.pending;xe===null?X.next=X:(X.next=xe.next,xe.next=X),de.pending=X}}C.lanes|=p,X=C.alternate,X!==null&&(X.lanes|=p),Nn(C.return,p,l),W.lanes|=p;break}X=X.next}}else if(C.tag===10)A=C.type===l.type?null:C.child;else if(C.tag===18){if(A=C.return,A===null)throw Error(n(341));A.lanes|=p,W=A.alternate,W!==null&&(W.lanes|=p),Nn(A,p,l),A=C.sibling}else A=C.child;if(A!==null)A.return=C;else for(A=C;A!==null;){if(A===l){A=null;break}if(C=A.sibling,C!==null){C.return=A.return,A=C;break}A=A.return}C=A}Fn(o,l,w.children,p),l=l.child}return l;case 9:return w=l.type,v=l.pendingProps.children,Ho(l,p),w=Wr(w),v=v(w),l.flags|=1,Fn(o,l,v,p),l.child;case 14:return v=l.type,w=Yr(v,l.pendingProps),w=Yr(v.type,w),jd(o,l,v,w,p);case 15:return Ki(o,l,l.type,l.pendingProps,p);case 17:return v=l.type,w=l.pendingProps,w=l.elementType===v?w:Yr(v,w),Dc(o,l),l.tag=1,gr(v)?(o=!0,Vr(l)):o=!1,Ho(l,p),Ds(l,v,w),Od(l,v,w,p),Wd(null,l,v,!0,o,p);case 19:return Yo(o,l,p);case 22:return Bd(o,l,p)}throw Error(n(156,l.tag))};function Ym(o,l){return Lh(o,l)}function yy(o,l,p,v){this.tag=o,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qr(o,l,p,v){return new yy(o,l,p,v)}function qc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function by(o){if(typeof o=="function")return qc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Y)return 11;if(o===ce)return 14}return 2}function wi(o,l){var p=o.alternate;return p===null?(p=Qr(o.tag,l,o.key,o.mode),p.elementType=o.elementType,p.type=o.type,p.stateNode=o.stateNode,p.alternate=o,o.alternate=p):(p.pendingProps=l,p.type=o.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=o.flags&14680064,p.childLanes=o.childLanes,p.lanes=o.lanes,p.child=o.child,p.memoizedProps=o.memoizedProps,p.memoizedState=o.memoizedState,p.updateQueue=o.updateQueue,l=o.dependencies,p.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},p.sibling=o.sibling,p.index=o.index,p.ref=o.ref,p}function Yc(o,l,p,v,w,C){var A=2;if(v=o,typeof o=="function")qc(o)&&(A=1);else if(typeof o=="string")A=5;else e:switch(o){case J:return Bs(p.children,w,C,l);case re:A=8,w|=8;break;case le:return o=Qr(12,p,l,w|2),o.elementType=le,o.lanes=C,o;case te:return o=Qr(13,p,l,w),o.elementType=te,o.lanes=C,o;case G:return o=Qr(19,p,l,w),o.elementType=G,o.lanes=C,o;case q:return Xc(p,w,C,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:A=10;break e;case B:A=9;break e;case Y:A=11;break e;case ce:A=14;break e;case Z:A=16,v=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return l=Qr(A,p,l,w),l.elementType=o,l.type=v,l.lanes=C,l}function Bs(o,l,p,v){return o=Qr(7,o,v,l),o.lanes=p,o}function Xc(o,l,p,v){return o=Qr(22,o,v,l),o.elementType=q,o.lanes=p,o.stateNode={isHidden:!1},o}function ap(o,l,p){return o=Qr(6,o,null,l),o.lanes=p,o}function lp(o,l,p){return l=Qr(4,o.children!==null?o.children:[],o.key,l),l.lanes=p,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function xy(o,l,p,v,w){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pl(0),this.expirationTimes=pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pl(0),this.identifierPrefix=v,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function up(o,l,p,v,w,C,A,W,X){return o=new xy(o,l,p,W,X),l===1?(l=1,C===!0&&(l|=8)):l=0,C=Qr(3,null,null,l),o.current=C,C.stateNode=o,C.memoizedState={element:v,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},yc(C),o}function wy(o,l,p){var v=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),jy.exports=oL(),jy.exports}var f1;function sL(){if(f1)return og;f1=1;var e=fE();return og.createRoot=e.createRoot,og.hydrateRoot=e.hydrateRoot,og}var aL=sL();function dv(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=S.createContext(void 0);i.displayName=r;function s(){var a;const c=S.useContext(i);if(!c&&t){const d=new Error(n);throw d.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,d,s),d}return c}return[i.Provider,s,i]}function lL(e){return{UNSAFE_getDOMNode(){return e.current}}}function Zi(e){const t=S.useRef(null);return S.useImperativeHandle(e,()=>t.current),t}function ix(e){return Array.isArray(e)}function uL(e){return ix(e)&&e.length===0}function ox(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!ix(e)}function cL(e){return ox(e)&&Object.keys(e).length===0}function fL(e){return ix(e)?uL(e):ox(e)?cL(e):e==null||e===""}function dL(e){return typeof e=="function"}var $e=e=>e?"true":void 0;function dE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tox(e)?e instanceof Array?[...e]:e[t]:e,pE=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t},pL=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function d1(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function hL(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function NG(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function ta(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function mL(e,t,n){return Math.min(Math.max(e,t),n)}function gL(e,t=100){return Math.min(Math.max(e,0),t)}var p1={};function vL(e,t,...n){const i=`[Hero UI] : ${e}`;typeof console>"u"||p1[i]||(p1[i]=!0)}function Ja(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var h1=new Map;function yL(e,t){if(e===t)return e;let n=h1.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=h1.get(t);return r?(r.forEach(i=>i.current=e),e):t}function on(...e){let t={...e[0]};for(let n=1;n=65&&i.charCodeAt(2)<=90?t[i]=Ja(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=tn(s,a):i==="id"&&s&&a?t.id=yL(s,a):t[i]=a!==void 0?a:s}}return t}function hE(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const s=m1(i,t);return n||(n=typeof s=="function"),s});if(n)return()=>{r.forEach((i,s)=>{typeof i=="function"?i?.():m1(e[s],null)})}}}function m1(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function bL(e,t){if(e!=null){if(dL(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function mE(...e){return t=>{e.forEach(n=>bL(n,t))}}function xL(){const e=()=>()=>{};return S.useSyncExternalStore(e,()=>!0,()=>!1)}var wL=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),SL=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),g1=/^(data-.*)$/,kL=/^(aria-.*)$/,sg=/^(on[A-Z].*)$/;function Cf(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:i,omitPropNames:s,omitEventNames:a,omitDataProps:c,omitEventProps:d}=t,h={};if(!r)return e;for(const m in e)s?.has(m)||a?.has(m)&&sg.test(m)||sg.test(m)&&!SL.has(m)||c&&g1.test(m)||d&&sg.test(m)||(Object.prototype.hasOwnProperty.call(e,m)&&(wL.has(m)||n&&kL.test(m)||i?.has(m)||g1.test(m))||sg.test(m))&&(h[m]=e[m]);return h}var[CL,si]=dv({name:"ProviderContext",strict:!1});const EL=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),PL=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function gE(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return EL.has(n.script)}let t=e.split("-")[0];return PL.has(t)}const vE={prefix:String(Math.round(Math.random()*1e10)),current:0},yE=We.createContext(vE),TL=We.createContext(!1);let Uy=new WeakMap;function _L(e=!1){let t=S.useContext(yE),n=S.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let a=Uy.get(s);a==null?Uy.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,Uy.delete(s))}n.current=++t.current}return n.current}function IL(e){let t=S.useContext(yE),n=_L(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function $L(e){let t=We.useId(),[n]=S.useState(ph()),r=n?"react-aria":`react-aria${vE.prefix}`;return e||`${r}-${t}`}const AL=typeof We.useId=="function"?$L:IL;function RL(){return!1}function LL(){return!0}function ML(e){return()=>{}}function ph(){return typeof We.useSyncExternalStore=="function"?We.useSyncExternalStore(ML,RL,LL):S.useContext(TL)}const DL=Symbol.for("react-aria.i18n.locale");function bE(){let e=typeof window<"u"&&window[DL]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gE(e)?"rtl":"ltr"}}let U0=bE(),_p=new Set;function v1(){U0=bE();for(let e of _p)e(U0)}function xE(){let e=ph(),[t,n]=S.useState(U0);return S.useEffect(()=>(_p.size===0&&window.addEventListener("languagechange",v1),_p.add(n),()=>{_p.delete(n),_p.size===0&&window.removeEventListener("languagechange",v1)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const wE=We.createContext(null);function NL(e){let{locale:t,children:n}=e,r=xE(),i=We.useMemo(()=>t?{locale:t,direction:gE(t)?"rtl":"ltr"}:r,[r,t]);return We.createElement(wE.Provider,{value:i},n)}function hh(){let e=xE();return S.useContext(wE)||e}const FL=Symbol.for("react-aria.i18n.locale"),OL=Symbol.for("react-aria.i18n.strings");let of;class pv{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=zL(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[FL];if(of===void 0){let i=window[OL];if(!i)return null;of={};for(let s in i)of[s]=new pv({[n]:i[s]},n)}let r=of?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function zL(e,t,n="en-US"){if(t[e])return t[e];let r=jL(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function jL(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const y1=new Map,b1=new Map;class BL{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,a=y1.get(s);a||(a=new Intl.PluralRules(this.locale,{type:r}),y1.set(s,a));let c=a.select(t);return i=n[c]||n.other,typeof i=="function"?i():i}number(t){let n=b1.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),b1.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const x1=new WeakMap;function VL(e){let t=x1.get(e);return t||(t=new pv(e),x1.set(e,t)),t}function UL(e,t){return t&&pv.getGlobalDictionaryForPackage(t)||VL(e)}function KL(e,t){let{locale:n}=hh(),r=UL(e,t);return S.useMemo(()=>new BL(n,r),[n,r])}function WL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function HL(e,t,n){WL(e,t),t.set(e,n)}const sn=typeof document<"u"?We.useLayoutEffect:()=>{};function Bn(e){const t=S.useRef(null);return sn(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function GL(e){let[t,n]=S.useState(e),r=S.useRef(null),i=Bn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});sn(()=>{r.current&&i()});let s=Bn(a=>{r.current=a(t),i()});return[t,s]}let qL=!!(typeof window<"u"&&window.document&&window.document.createElement),bf=new Map,Ip;typeof FinalizationRegistry<"u"&&(Ip=new FinalizationRegistry(e=>{bf.delete(e)}));function Ef(e){let[t,n]=S.useState(e),r=S.useRef(null),i=AL(t),s=S.useRef(null);if(Ip&&Ip.register(s,i),qL){const a=bf.get(i);a&&!a.includes(r)?a.push(r):bf.set(i,[r])}return sn(()=>{let a=i;return()=>{Ip&&Ip.unregister(s),bf.delete(a)}},[i]),S.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function YL(e,t){if(e===t)return e;let n=bf.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=bf.get(t);return r?(r.forEach(i=>i.current=e),e):t}function K0(e=[]){let t=Ef(),[n,r]=GL(t),i=S.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return sn(i,[t,i,...e]),n}function Pf(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Dt=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},eo=e=>e&&"window"in e&&e.window===e?e:Dt(e).defaultView||window;function XL(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function QL(e){return XL(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let JL=!1,ZL=!1;function FG(){return JL}function hv(){return ZL}function ii(e,t){if(!hv())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:QL(n)?n=n.host:n=n.parentNode}return!1}const Or=(e=document)=>{var t;if(!hv())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function En(e){return hv()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class eM{get currentNode(){return this._currentNode}set currentNode(t){if(!ii(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,c=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(c),c.currentNode=i,this._currentSetFor.add(c),r=i=a.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ii(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const d=a.shadowRoot;if(d){const h=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(h),NodeFilter.FILTER_ACCEPT}else{var c;if(typeof this.filter=="function")return this.filter(a);if(!((c=this.filter)===null||c===void 0)&&c.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function tM(e,t,n,r){return hv()?new eM(e,t,n,r):e.createTreeWalker(t,n,r)}function SE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=Pf(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=nM(s,a):i==="id"&&s&&a?t.id=YL(s,a):t[i]=a!==void 0?a:s}}return t}const rM=new Set(["id"]),iM=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),oM=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),sM=/^(data-.*)$/;function Iu(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(rM.has(a)||n&&iM.has(a)||r&&oM.has(a)||i?.has(a)||sM.test(a))&&(s[a]=e[a]);return s}function Za(e){if(aM())e.focus({preventScroll:!0});else{let t=lM(e);e.focus(),uM(t)}}let ag=null;function aM(){if(ag==null){ag=!1;try{document.createElement("div").focus({get preventScroll(){return ag=!0,!0}})}catch{}}return ag}function lM(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function sx(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function na(e){let t=null;return()=>(t==null&&(t=e()),t)}const xu=na(function(){return sx(/^Mac/i)}),cM=na(function(){return sx(/^iPhone/i)}),kE=na(function(){return sx(/^iPad/i)||xu()&&navigator.maxTouchPoints>1}),gv=na(function(){return cM()||kE()}),fM=na(function(){return xu()||gv()}),CE=na(function(){return mv(/AppleWebKit/i)&&!EE()}),EE=na(function(){return mv(/Chrome/i)}),ax=na(function(){return mv(/Android/i)}),dM=na(function(){return mv(/Firefox/i)}),PE=S.createContext({isNative:!0,open:mM,useHref:e=>e});function pM(e){let{children:t,navigate:n,useHref:r}=e,i=S.useMemo(()=>({isNative:!1,open:(s,a,c,d)=>{TE(s,h=>{hM(h,a)?n(c,d):wu(h,a)})},useHref:r||(s=>s)}),[n,r]);return We.createElement(PE.Provider,{value:i},t)}function lx(){return S.useContext(PE)}function hM(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 wu(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:a,altKey:c,shiftKey:d}=t;dM()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(xu()?s=!0:a=!0);let h=CE()&&xu()&&!kE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});wu.isOpening=n,Za(e),e.dispatchEvent(h),wu.isOpening=!1}wu.isOpening=!1;function TE(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 mM(e,t){TE(e,n=>wu(n,t))}function OG(e){let t=lx();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function zG(e){let t=lx();var n;const r=t.useHref((n=e?.href)!==null&&n!==void 0?n:"");return{href:e?.href?r:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let Ga=new Map,W0=new Set;function w1(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ga.get(r.target);i||(i=new Set,Ga.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ga.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ga.delete(r.target)),Ga.size===0)){for(let s of W0)s();W0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?w1():document.addEventListener("DOMContentLoaded",w1));function gM(){for(const[e]of Ga)"isConnected"in e&&!e.isConnected&&Ga.delete(e)}function _E(e){requestAnimationFrame(()=>{gM(),Ga.size===0?e():W0.add(e)})}function ux(){let e=S.useRef(new Map),t=S.useCallback((i,s,a,c)=>{let d=c?.once?(...h)=>{e.current.delete(a),a(...h)}:a;e.current.set(a,{type:s,eventTarget:i,fn:d,options:c}),i.addEventListener(s,d,c)},[]),n=S.useCallback((i,s,a,c)=>{var d;let h=((d=e.current.get(a))===null||d===void 0?void 0:d.fn)||a;i.removeEventListener(s,h,c),e.current.delete(a)},[]),r=S.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return S.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function IE(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Ef(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function S1(e,t){const n=S.useRef(!0),r=S.useRef(null);sn(()=>(n.current=!0,()=>{n.current=!1}),[]),sn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function vM(){return typeof window.ResizeObserver<"u"}function k1(e){const{ref:t,box:n,onResize:r}=e;S.useEffect(()=>{let i=t?.current;if(i)if(vM()){const s=new window.ResizeObserver(a=>{a.length&&r()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function $E(e,t){sn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function qp(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function AE(e,t){let n=e;for(qp(n,t)&&(n=n.parentElement);n&&!qp(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yM(e,t){const n=[];for(;e&&e!==document.documentElement;)qp(e,t)&&n.push(e),e=e.parentElement;return n}function lg(e,t,n,r){let i=Bn(n),s=n==null;S.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,s,i])}function RE(e,t){let n=C1(e,t,"left"),r=C1(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,c=e.scrollTop,{borderTopWidth:d,borderLeftWidth:h,scrollPaddingTop:m,scrollPaddingRight:g,scrollPaddingBottom:b,scrollPaddingLeft:x}=getComputedStyle(e),k=a+parseInt(h,10),P=c+parseInt(d,10),_=k+e.clientWidth,T=P+e.clientHeight,$=parseInt(m,10)||0,L=parseInt(b,10)||0,z=parseInt(g,10)||0,K=parseInt(x,10)||0;n<=a+K?a=n-parseInt(h,10)-K:n+i>_-z&&(a+=n+i-_+z),r<=P+$?c=r-parseInt(d,10)-$:r+s>T-L&&(c+=r+s-T+L),e.scrollLeft=a,e.scrollTop=c}function C1(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function E1(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let d=yM(e);for(let h of d)RE(h,e)}else{var n;let{left:d,top:h}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:m,top:g}=e.getBoundingClientRect();if(Math.abs(d-m)>1||Math.abs(h-g)>1){var r,i,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function LE(e){return e.mozInputSource===0&&e.isTrusted?!0:ax()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function bM(e){return!ax()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ME(e,t,n){let r=S.useRef(t),i=Bn(()=>{n&&n(r.current)});S.useEffect(()=>{var s;let a=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return a?.addEventListener("reset",i),()=>{a?.removeEventListener("reset",i)}},[e,i])}const xM="react-aria-clear-focus",wM="react-aria-focus";function hp(e){return xu()?e.metaKey:e.ctrlKey}var DE=fE();const NE=fv(DE),cx=["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"])'],SM=cx.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";cx.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const kM=cx.join(':not([hidden]):not([tabindex="-1"]),');function FE(e){return e.matches(SM)}function CM(e){return e.matches(kM)}function $u(e,t,n){let[r,i]=S.useState(e||t),s=S.useRef(e!==void 0),a=e!==void 0;S.useEffect(()=>{s.current,s.current=a},[a]);let c=a?e:r,d=S.useCallback((h,...m)=>{let g=(b,...x)=>{n&&(Object.is(c,b)||n(b,...x)),a||(c=b)};typeof h=="function"?i((x,...k)=>{let P=h(a?c:x,...k);return g(P,...m),a?x:P}):(a||i(h),g(h,...m))},[a,c,n]);return[c,d]}function jg(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let Ky=new Map,H0=!1;try{H0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Bg=!1;try{Bg=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const OE={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class EM{format(t){let n="";if(!H0&&this.options.signDisplay!=null?n=TM(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Bg){var r;let{unit:i,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!i)return n;let c=(r=OE[i])===null||r===void 0?void 0:r[s];n+=c[a]||c.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!H0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Bg&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=PM(t,n),this.options=n}}function PM(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Bg){var r;let{unit:a,unitDisplay:c="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=OE[a])===null||r===void 0)&&r[c]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,c)=>a[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),s=e.format(n),a=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(n)}}function _M(e={}){let{locale:t}=hh();return S.useMemo(()=>new EM(t,e),[t,e])}let Wy=new Map;function IM(e){let{locale:t}=hh(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]-1&&e.splice(n,1)}const Js=(e,t,n)=>n>t?t:n{};const fs={},zE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function jE(e){return typeof e=="object"&&e!==null}const BE=e=>/^0[^.\s]+$/u.test(e);function gx(e){let t;return()=>(t===void 0&&(t=e()),t)}const to=e=>e,$M=(e,t)=>n=>t(e(n)),gh=(...e)=>e.reduce($M),Xp=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class vx{constructor(){this.subscriptions=[]}add(t){return px(this.subscriptions,t),()=>hx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,us=e=>e/1e3;function VE(e,t){return t?e*(1e3/t):0}const UE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,AM=1e-7,RM=12;function LM(e,t,n,r,i){let s,a,c=0;do a=t+(n-t)/2,s=UE(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>AM&&++cLM(s,0,1,e,n);return s=>s===0||s===1?s:UE(i(s),t,r)}const KE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,WE=e=>t=>1-e(1-t),HE=vh(.33,1.53,.69,.99),yx=WE(HE),GE=KE(yx),qE=e=>(e*=2)<1?.5*yx(e):.5*(2-Math.pow(2,-10*(e-1))),bx=e=>1-Math.sin(Math.acos(e)),YE=WE(bx),XE=KE(bx),MM=vh(.42,0,1,1),DM=vh(0,0,.58,1),QE=vh(.42,0,.58,1),NM=e=>Array.isArray(e)&&typeof e[0]!="number",JE=e=>Array.isArray(e)&&typeof e[0]=="number",FM={linear:to,easeIn:MM,easeInOut:QE,easeOut:DM,circIn:bx,circInOut:XE,circOut:YE,backIn:yx,backInOut:GE,backOut:HE,anticipate:qE},OM=e=>typeof e=="string",P1=e=>{if(JE(e)){mx(e.length===4);const[t,n,r,i]=e;return vh(t,n,r,i)}else if(OM(e))return FM[e];return e},ug=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function zM(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){a.has(m)&&(h.schedule(m),e()),m(c)}const h={schedule:(m,g=!1,b=!1)=>{const k=b&&i?n:r;return g&&a.add(m),k.has(m)||k.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),n.clear(),i=!1,s&&(s=!1,h.process(m))}};return h}const jM=40;function ZE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=ug.reduce((L,z)=>(L[z]=zM(s),L),{}),{setup:c,read:d,resolveKeyframes:h,preUpdate:m,update:g,preRender:b,render:x,postRender:k}=a,P=()=>{const L=fs.useManualTiming?i.timestamp:performance.now();n=!1,fs.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(L-i.timestamp,jM),1)),i.timestamp=L,i.isProcessing=!0,c.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),x.process(i),k.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(P))},_=()=>{n=!0,r=!0,i.isProcessing||e(P)};return{schedule:ug.reduce((L,z)=>{const K=a[z];return L[z]=(D,J=!1,re=!1)=>(n||_(),K.schedule(D,J,re)),L},{}),cancel:L=>{for(let z=0;z(_g===void 0&&oi.set(fr.isProcessing||fs.useManualTiming?fr.timestamp:performance.now()),_g),set:e=>{_g=e,queueMicrotask(BM)}},eP=e=>t=>typeof t=="string"&&t.startsWith(e),xx=eP("--"),VM=eP("var(--"),wx=e=>VM(e)?UM.test(e.split("/*")[0].trim()):!1,UM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qp={...Nf,transform:e=>Js(0,1,e)},cg={...Nf,default:1},Dp=e=>Math.round(e*1e5)/1e5,Sx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function KM(e){return e==null}const WM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kx=(e,t)=>n=>!!(typeof n=="string"&&WM.test(n)&&n.startsWith(e)||t&&!KM(n)&&Object.prototype.hasOwnProperty.call(n,t)),tP=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,c]=r.match(Sx);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},HM=e=>Js(0,255,e),Gy={...Nf,transform:e=>Math.round(HM(e))},pu={test:kx("rgb","red"),parse:tP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Gy.transform(e)+", "+Gy.transform(t)+", "+Gy.transform(n)+", "+Dp(Qp.transform(r))+")"};function GM(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const G0={test:kx("#"),parse:GM,transform:pu.transform},yh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ha=yh("deg"),cs=yh("%"),tt=yh("px"),qM=yh("vh"),YM=yh("vw"),T1={...cs,parse:e=>cs.parse(e)/100,transform:e=>cs.transform(e*100)},pf={test:kx("hsl","hue"),parse:tP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cs.transform(Dp(t))+", "+cs.transform(Dp(n))+", "+Dp(Qp.transform(r))+")"},Ln={test:e=>pu.test(e)||G0.test(e)||pf.test(e),parse:e=>pu.test(e)?pu.parse(e):pf.test(e)?pf.parse(e):G0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pu.transform(e):pf.transform(e),getAnimatableNone:e=>{const t=Ln.parse(e);return t.alpha=0,Ln.transform(t)}},XM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QM(e){return isNaN(e)&&typeof e=="string"&&(e.match(Sx)?.length||0)+(e.match(XM)?.length||0)>0}const nP="number",rP="color",JM="var",ZM="var(",_1="${}",eD=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Jp(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const c=t.replace(eD,d=>(Ln.test(d)?(r.color.push(s),i.push(rP),n.push(Ln.parse(d))):d.startsWith(ZM)?(r.var.push(s),i.push(JM),n.push(d)):(r.number.push(s),i.push(nP),n.push(parseFloat(d))),++s,_1)).split(_1);return{values:n,split:c,indexes:r,types:i}}function iP(e){return Jp(e).values}function oP(e){const{split:t,types:n}=Jp(e),r=t.length;return i=>{let s="";for(let a=0;atypeof e=="number"?0:Ln.test(e)?Ln.getAnimatableNone(e):e;function nD(e){const t=iP(e);return oP(e)(t.map(tD))}const tl={test:QM,parse:iP,createTransformer:oP,getAnimatableNone:nD};function qy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rD({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,d=2*n-c;i=qy(d,c,e+1/3),s=qy(d,c,e),a=qy(d,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Vg(e,t){return n=>n>0?t:e}const dn=(e,t,n)=>e+(t-e)*n,Yy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},iD=[G0,pu,pf],oD=e=>iD.find(t=>t.test(e));function I1(e){const t=oD(e);if(!t)return!1;let n=t.parse(e);return t===pf&&(n=rD(n)),n}const $1=(e,t)=>{const n=I1(e),r=I1(t);if(!n||!r)return Vg(e,t);const i={...n};return s=>(i.red=Yy(n.red,r.red,s),i.green=Yy(n.green,r.green,s),i.blue=Yy(n.blue,r.blue,s),i.alpha=dn(n.alpha,r.alpha,s),pu.transform(i))},q0=new Set(["none","hidden"]);function sD(e,t){return q0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function aD(e,t){return n=>dn(e,t,n)}function Cx(e){return typeof e=="number"?aD:typeof e=="string"?wx(e)?Vg:Ln.test(e)?$1:cD:Array.isArray(e)?sP:typeof e=="object"?Ln.test(e)?$1:lD:Vg}function sP(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>Cx(s)(s,t[a]));return s=>{for(let a=0;a{for(const s in r)n[s]=r[s](i);return n}}function uD(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=tl.createTransformer(t),r=Jp(e),i=Jp(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?q0.has(e)&&!i.values.length||q0.has(t)&&!r.values.length?sD(e,t):gh(sP(uD(r,i),i.values),n):Vg(e,t)};function aP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?dn(e,t,n):Cx(e)(e,t)}const fD=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>nn.update(t,n),stop:()=>el(t),now:()=>fr.isProcessing?fr.timestamp:oi.now()}},lP=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=Ug?1/0:t}function dD(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Ex(r),Ug);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:us(i)}}const pD=5;function uP(e,t,n){const r=Math.max(t-pD,0);return VE(n-e(r),t-r)}const vn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xy=.001;function hD({duration:e=vn.duration,bounce:t=vn.bounce,velocity:n=vn.velocity,mass:r=vn.mass}){let i,s,a=1-t;a=Js(vn.minDamping,vn.maxDamping,a),e=Js(vn.minDuration,vn.maxDuration,us(e)),a<1?(i=h=>{const m=h*a,g=m*e,b=m-n,x=Y0(h,a),k=Math.exp(-g);return Xy-b/x*k},s=h=>{const g=h*a*e,b=g*n+n,x=Math.pow(a,2)*Math.pow(h,2)*e,k=Math.exp(-g),P=Y0(Math.pow(h,2),a);return(-i(h)+Xy>0?-1:1)*((b-x)*k)/P}):(i=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-Xy+m*g},s=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,d=gD(i,s,c);if(e=ls(e),isNaN(d))return{stiffness:vn.stiffness,damping:vn.damping,duration:e};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:a*2*Math.sqrt(r*h),duration:e}}}const mD=12;function gD(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function bD(e){let t={velocity:vn.velocity,stiffness:vn.stiffness,damping:vn.damping,mass:vn.mass,isResolvedFromDuration:!1,...e};if(!A1(e,yD)&&A1(e,vD))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Js(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:vn.mass,stiffness:i,damping:s}}else{const n=hD(e);t={...t,...n,mass:vn.mass},t.isResolvedFromDuration=!0}return t}function Kg(e=vn.visualDuration,t=vn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:d,damping:h,mass:m,duration:g,velocity:b,isResolvedFromDuration:x}=bD({...n,velocity:-us(n.velocity||0)}),k=b||0,P=h/(2*Math.sqrt(d*m)),_=a-s,T=us(Math.sqrt(d/m)),$=Math.abs(_)<5;r||(r=$?vn.restSpeed.granular:vn.restSpeed.default),i||(i=$?vn.restDelta.granular:vn.restDelta.default);let L;if(P<1){const K=Y0(T,P);L=D=>{const J=Math.exp(-P*T*D);return a-J*((k+P*T*_)/K*Math.sin(K*D)+_*Math.cos(K*D))}}else if(P===1)L=K=>a-Math.exp(-T*K)*(_+(k+T*_)*K);else{const K=T*Math.sqrt(P*P-1);L=D=>{const J=Math.exp(-P*T*D),re=Math.min(K*D,300);return a-J*((k+P*T*_)*Math.sinh(re)+K*_*Math.cosh(re))/K}}const z={calculatedDuration:x&&g||null,next:K=>{const D=L(K);if(x)c.done=K>=g;else{let J=K===0?k:0;P<1&&(J=K===0?ls(k):uP(L,K,D));const re=Math.abs(J)<=r,le=Math.abs(a-D)<=i;c.done=re&&le}return c.value=c.done?a:D,c},toString:()=>{const K=Math.min(Ex(z),Ug),D=lP(J=>z.next(K*J).value,K,30);return K+"ms "+D},toTransition:()=>{}};return z}Kg.applyToOptions=e=>{const t=dD(e,100,Kg);return e.ease=t.ease,e.duration=ls(t.duration),e.type="keyframes",e};function X0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:d,restDelta:h=.5,restSpeed:m}){const g=e[0],b={done:!1,value:g},x=re=>c!==void 0&&red,k=re=>c===void 0?d:d===void 0||Math.abs(c-re)-P*Math.exp(-re/r),L=re=>T+$(re),z=re=>{const le=$(re),j=L(re);b.done=Math.abs(le)<=h,b.value=b.done?T:j};let K,D;const J=re=>{x(b.value)&&(K=re,D=Kg({keyframes:[b.value,k(b.value)],velocity:uP(L,re,b.value),damping:i,stiffness:s,restDelta:h,restSpeed:m}))};return J(0),{calculatedDuration:null,next:re=>{let le=!1;return!D&&K===void 0&&(le=!0,z(re),J(re)),K!==void 0&&re>=K?D.next(re-K):(!le&&z(re),b)}}}function xD(e,t,n){const r=[],i=n||fs.mix||aP,s=e.length-1;for(let a=0;at[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=xD(t,r,i),d=c.length,h=m=>{if(a&&m1)for(;gh(Js(e[0],e[s-1],m)):h}function SD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Xp(0,t,r);e.push(dn(n,1,i))}}function kD(e){const t=[0];return SD(t,e.length-1),t}function CD(e,t){return e.map(n=>n*t)}function ED(e,t){return e.map(()=>t||QE).splice(0,e.length-1)}function Np({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=NM(r)?r.map(P1):P1(r),s={done:!1,value:t[0]},a=CD(n&&n.length===t.length?n:kD(t),e),c=wD(a,t,{ease:Array.isArray(i)?i:ED(t,i)});return{calculatedDuration:e,next:d=>(s.value=c(d),s.done=d>=e,s)}}const PD=e=>e!==null;function Px(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(PD),c=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||r===void 0?s[c]:r}const TD={decay:X0,inertia:X0,tween:Np,keyframes:Np,spring:Kg};function cP(e){typeof e.type=="string"&&(e.type=TD[e.type])}class Tx{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const _D=e=>e/100;class _x extends Tx{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==oi.now()&&this.tick(oi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;cP(t);const{type:n=Np,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:c}=t;const d=n||Np;d!==Np&&typeof c[0]!="number"&&(this.mixKeyframes=gh(_D,aP(c[0],c[1])),c=[0,100]);const h=d({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...c].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=Ex(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:c,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:m,repeat:g,repeatType:b,repeatDelay:x,type:k,onUpdate:P,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-h*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let L=this.currentTime,z=r;if(g){const re=Math.min(this.currentTime,i)/c;let le=Math.floor(re),j=re%1;!j&&re>=1&&(j=1),j===1&&le--,le=Math.min(le,g+1),!!(le%2)&&(b==="reverse"?(j=1-j,x&&(j-=x/c)):b==="mirror"&&(z=a)),L=Js(0,1,j)*c}const K=$?{done:!1,value:m[0]}:z.next(L);s&&(K.value=s(K.value));let{done:D}=K;!$&&d!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return J&&k!==X0&&(K.value=Px(m,this.options,_,this.speed)),P&&P(K.value),J&&this.finish(),K}then(t,n){return this.finished.then(t,n)}get duration(){return us(this.calculatedDuration)}get time(){return us(this.currentTime)}set time(t){t=ls(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=us(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=fD,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function ID(e){for(let t=1;te*180/Math.PI,Q0=e=>{const t=hu(Math.atan2(e[1],e[0]));return J0(t)},$D={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Q0,rotateZ:Q0,skewX:e=>hu(Math.atan(e[1])),skewY:e=>hu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},J0=e=>(e=e%360,e<0&&(e+=360),e),R1=Q0,L1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),M1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),AD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:L1,scaleY:M1,scale:e=>(L1(e)+M1(e))/2,rotateX:e=>J0(hu(Math.atan2(e[6],e[5]))),rotateY:e=>J0(hu(Math.atan2(-e[2],e[0]))),rotateZ:R1,rotate:R1,skewX:e=>hu(Math.atan(e[4])),skewY:e=>hu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Z0(e){return e.includes("scale")?1:0}function eb(e,t){if(!e||e==="none")return Z0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=AD,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=$D,i=c}if(!i)return Z0(t);const s=r[t],a=i[1].split(",").map(LD);return typeof s=="function"?s(a):a[s]}const RD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return eb(n,t)};function LD(e){return parseFloat(e.trim())}const Ff=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Au=new Set(Ff),D1=e=>e===Nf||e===tt,MD=new Set(["x","y","z"]),DD=Ff.filter(e=>!MD.has(e));function ND(e){const t=[];return DD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eb(t,"x"),y:(e,{transform:t})=>eb(t,"y")};vu.translateX=vu.x;vu.translateY=vu.y;const yu=new Set;let tb=!1,nb=!1,rb=!1;function fP(){if(nb){const e=Array.from(yu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=ND(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}nb=!1,tb=!1,yu.forEach(e=>e.complete(rb)),yu.clear()}function dP(){yu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nb=!0)})}function FD(){rb=!0,dP(),fP(),rb=!1}class Ix{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(yu.add(this),tb||(tb=!0,nn.read(dP),nn.resolveKeyframes(fP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}ID(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),yu.delete(this)}cancel(){this.state==="scheduled"&&(yu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const OD=e=>e.startsWith("--");function zD(e,t,n){OD(t)?e.style.setProperty(t,n):e.style[t]=n}const jD=gx(()=>window.ScrollTimeline!==void 0),BD={};function VD(e,t){const n=gx(e);return()=>BD[t]??n()}const pP=VD(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$p=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,N1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$p([0,.65,.55,1]),circOut:$p([.55,0,1,.45]),backIn:$p([.31,.01,.66,-.59]),backOut:$p([.33,1.53,.69,.99])};function hP(e,t){if(e)return typeof e=="function"?pP()?lP(e,t):"ease-out":JE(e)?$p(e):Array.isArray(e)?e.map(n=>hP(n,t)||N1.easeOut):N1[e]}function UD(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:c="easeOut",times:d}={},h=void 0){const m={[t]:n};d&&(m.offset=d);const g=hP(c,i);Array.isArray(g)&&(m.easing=g);const b={delay:r,duration:i,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(m,b)}function mP(e){return typeof e=="function"&&"applyToOptions"in e}function KD({type:e,...t}){return mP(e)&&pP()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class WD extends Tx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:c,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,mx(typeof t.type!="string");const h=KD(t);this.animation=UD(n,r,i,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=Px(i,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):zD(n,r,m),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return us(Number(t))}get time(){return us(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ls(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&jD()?(this.animation.timeline=t,to):n(this)}}const gP={anticipate:qE,backInOut:GE,circInOut:XE};function HD(e){return e in gP}function GD(e){typeof e.ease=="string"&&HD(e.ease)&&(e.ease=gP[e.ease])}const F1=10;class qD extends WD{constructor(t){GD(t),cP(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new _x({...a,autoplay:!1}),d=ls(this.finishedTime??this.time);n.setWithVelocity(c.sample(d-F1).value,c.sample(d).value,F1),c.stop()}}const O1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(tl.test(e)||e==="0")&&!e.startsWith("url("));function YD(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function ZD(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=t.owner.getProps();return JD()&&n&&QD.has(n)&&(n!=="transform"||!h)&&!d&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const e3=40;class t3 extends Tx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:c,name:d,motionValue:h,element:m,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=oi.now();const b={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:d,motionValue:h,element:m,...g},x=m?.KeyframeResolver||Ix;this.keyframeResolver=new x(c,(k,P,_)=>this.onKeyframesResolved(k,P,b,!_),d,h,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:c,delay:d,isHandoff:h,onUpdate:m}=r;this.resolvedAt=oi.now(),XD(t,s,a,c)||((fs.instantAnimations||!d)&&m?.(Px(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const b={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>e3?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!h&&ZD(b)?new qD({...b,element:b.motionValue.owner.current}):new _x(b);x.finished.then(()=>this.notifyFinished()).catch(to),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),FD()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const n3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function r3(e){const t=n3.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function vP(e,t,n=1){const[r,i]=r3(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return zE(a)?parseFloat(a):a}return wx(i)?vP(i,t,n+1):i}function $x(e,t){return e?.[t]??e?.default??e}const yP=new Set(["width","height","top","left","right","bottom",...Ff]),i3={test:e=>e==="auto",parse:e=>e},bP=e=>t=>t.test(e),xP=[Nf,tt,cs,Ha,YM,qM,i3],z1=e=>xP.find(bP(e));function o3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||BE(e):!0}const s3=new Set(["brightness","contrast","saturate","opacity"]);function a3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sx)||[];if(!r)return e;const i=n.replace(r,"");let s=s3.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const l3=/\b([a-z-]*)\(.*?\)/gu,ib={...tl,getAnimatableNone:e=>{const t=e.match(l3);return t?t.map(a3).join(" "):e}},j1={...Nf,transform:Math.round},u3={rotate:Ha,rotateX:Ha,rotateY:Ha,rotateZ:Ha,scale:cg,scaleX:cg,scaleY:cg,scaleZ:cg,skew:Ha,skewX:Ha,skewY:Ha,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:Qp,originX:T1,originY:T1,originZ:tt},Ax={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,radius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,top:tt,right:tt,bottom:tt,left:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,backgroundPositionX:tt,backgroundPositionY:tt,...u3,zIndex:j1,fillOpacity:Qp,strokeOpacity:Qp,numOctaves:j1},c3={...Ax,color:Ln,backgroundColor:Ln,outlineColor:Ln,fill:Ln,stroke:Ln,borderColor:Ln,borderTopColor:Ln,borderRightColor:Ln,borderBottomColor:Ln,borderLeftColor:Ln,filter:ib,WebkitFilter:ib},wP=e=>c3[e];function SP(e,t){let n=wP(e);return n!==ib&&(n=tl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const f3=new Set(["auto","none","0"]);function d3(e,t,n){let r=0,i;for(;r{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const h3=new Set(["opacity","clipPath","filter","transform"]);function m3(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const kP=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function CP(e){return jE(e)&&"offsetHeight"in e}const B1=30,g3=e=>!isNaN(parseFloat(e));class EP{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=oi.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=g3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new vx);const r=this.events[t].add(n);return t==="change"?()=>{r(),nn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>B1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,B1);return VE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tf(e,t){return new EP(e,t)}const{schedule:Rx}=ZE(queueMicrotask,!1),ko={x:!1,y:!1};function PP(){return ko.x||ko.y}function v3(e){return e==="x"||e==="y"?ko[e]?null:(ko[e]=!0,()=>{ko[e]=!1}):ko.x||ko.y?null:(ko.x=ko.y=!0,()=>{ko.x=ko.y=!1})}function TP(e,t){const n=m3(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function V1(e){return!(e.pointerType==="touch"||PP())}function y3(e,t,n={}){const[r,i,s]=TP(e,n),a=c=>{if(!V1(c))return;const{target:d}=c,h=t(d,c);if(typeof h!="function"||!d)return;const m=g=>{V1(g)&&(h(g),d.removeEventListener("pointerleave",m))};d.addEventListener("pointerleave",m,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),s}const _P=(e,t)=>t?e===t?!0:_P(e,t.parentElement):!1,Lx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,b3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function x3(e){return b3.has(e.tagName)||e.tabIndex!==-1}const Ig=new WeakSet;function U1(e){return t=>{t.key==="Enter"&&e(t)}}function Qy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const w3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=U1(()=>{if(Ig.has(n))return;Qy(n,"down");const i=U1(()=>{Qy(n,"up")}),s=()=>Qy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function K1(e){return Lx(e)&&!PP()}function S3(e,t,n={}){const[r,i,s]=TP(e,n),a=c=>{const d=c.currentTarget;if(!K1(c))return;Ig.add(d);const h=t(d,c),m=(x,k)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),Ig.has(d)&&Ig.delete(d),K1(x)&&typeof h=="function"&&h(x,{success:k})},g=x=>{m(x,d===window||d===document||n.useGlobalTarget||_P(d,x.target))},b=x=>{m(x,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",b,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),CP(c)&&(c.addEventListener("focus",h=>w3(h,i)),!x3(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function IP(e){return jE(e)&&"ownerSVGElement"in e}function k3(e){return IP(e)&&e.tagName==="svg"}const wr=e=>!!(e&&e.getVelocity),C3=[...xP,Ln,tl],E3=e=>C3.find(bP(e)),Zp=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class P3 extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=CP(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function T3({children:e,isPresent:t,anchorX:n,root:r}){const i=S.useId(),s=S.useRef(null),a=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=S.useContext(Zp);return S.useInsertionEffect(()=>{const{width:d,height:h,top:m,left:g,right:b}=a.current;if(t||!s.current||!d||!h)return;const x=n==="left"?`left: ${g}`:`right: ${b}`;s.current.dataset.motionPopId=i;const k=document.createElement("style");c&&(k.nonce=c);const P=r??document.head;return P.appendChild(k),k.sheet&&k.sheet.insertRule(`
+ [data-motion-pop-id="${i}"] {
+ position: absolute !important;
+ width: ${d}px !important;
+ height: ${h}px !important;
+ ${x}px !important;
+ top: ${m}px !important;
+ }
+ `),()=>{P.removeChild(k),P.contains(k)&&P.removeChild(k)}},[t]),M.jsx(P3,{isPresent:t,childRef:s,sizeRef:a,children:S.cloneElement(e,{ref:s})})}const _3=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:c,root:d})=>{const h=mh(I3),m=S.useId();let g=!0,b=S.useMemo(()=>(g=!1,{id:m,initial:t,isPresent:n,custom:i,onExitComplete:x=>{h.set(x,!0);for(const k of h.values())if(!k)return;r&&r()},register:x=>(h.set(x,!1),()=>h.delete(x))}),[n,h,r]);return s&&g&&(b={...b}),S.useMemo(()=>{h.forEach((x,k)=>h.set(k,!1))},[n]),S.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),a==="popLayout"&&(e=M.jsx(T3,{isPresent:n,anchorX:c,root:d,children:e})),M.jsx(vv.Provider,{value:b,children:e})};function I3(){return new Map}function $P(e=!0){const t=S.useContext(vv);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{if(e)return i(s)},[e]);const a=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const fg=e=>e.key||"";function W1(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Ru=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:c="left",root:d})=>{const[h,m]=$P(a),g=S.useMemo(()=>W1(e),[e]),b=a&&!h?[]:g.map(fg),x=S.useRef(!0),k=S.useRef(g),P=mh(()=>new Map),[_,T]=S.useState(g),[$,L]=S.useState(g);dx(()=>{x.current=!1,k.current=g;for(let D=0;D<$.length;D++){const J=fg($[D]);b.includes(J)?P.delete(J):P.get(J)!==!0&&P.set(J,!1)}},[$,b.length,b.join("-")]);const z=[];if(g!==_){let D=[...g];for(let J=0;J<$.length;J++){const re=$[J],le=fg(re);b.includes(le)||(D.splice(J,0,re),z.push(re))}return s==="wait"&&z.length&&(D=z),L(W1(D)),T(g),null}const{forceRender:K}=S.useContext(Yp);return M.jsx(M.Fragment,{children:$.map(D=>{const J=fg(D),re=a&&!h?!1:g===$||b.includes(J),le=()=>{if(P.has(J))P.set(J,!0);else return;let j=!0;P.forEach(B=>{B||(j=!1)}),j&&(K?.(),L(k.current),a&&m?.(),r&&r())};return M.jsx(_3,{isPresent:re,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:d,onExitComplete:re?void 0:le,anchorX:c,children:D},J)})})},$3=S.createContext(null);function A3(){const e=S.useRef(!1);return dx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function R3(){const e=A3(),[t,n]=S.useState(0),r=S.useCallback(()=>{e.current&&n(t+1)},[t]);return[S.useCallback(()=>nn.postRender(r),[r]),t]}const L3=e=>!e.isLayoutDirty&&e.willUpdate(!1);function H1(){const e=new Set,t=new WeakMap,n=()=>e.forEach(L3);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}const AP=e=>e===!0,M3=e=>AP(e===!0)||e==="id",D3=({children:e,id:t,inherit:n=!0})=>{const r=S.useContext(Yp),i=S.useContext($3),[s,a]=R3(),c=S.useRef(null),d=r.id||i;c.current===null&&(M3(n)&&d&&(t=t?d+"-"+t:d),c.current={id:t,group:AP(n)&&r.group||H1()});const h=S.useMemo(()=>({...c.current,forceRender:s}),[a]);return M.jsx(Yp.Provider,{value:h,children:e})},Mx=S.createContext({strict:!1}),G1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_f={};for(const e in G1)_f[e]={isEnabled:t=>G1[e].some(n=>!!t[n])};function ob(e){for(const t in e)_f[t]={..._f[t],...e[t]}}function If({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Jy(t)),i=S.useRef(void 0);if(!Jy(t)){const{renderer:s,...a}=t;i.current=s,ob(a)}return S.useEffect(()=>{Jy(t)&&t().then(({renderer:s,...a})=>{ob(a),i.current=s,r(!0)})},[]),M.jsx(Mx.Provider,{value:{renderer:i.current,strict:n},children:e})}function Jy(e){return typeof e=="function"}const N3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||N3.has(e)}let RP=e=>!Wg(e);function LP(e){typeof e=="function"&&(RP=t=>t.startsWith("on")?!Wg(t):e(t))}try{LP(require("@emotion/is-prop-valid").default)}catch{}function F3(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(RP(i)||n===!0&&Wg(i)||!t&&!Wg(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function O3({children:e,isValidProp:t,...n}){t&&LP(t),n={...S.useContext(Zp),...n},n.isStatic=mh(()=>n.isStatic);const r=S.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return M.jsx(Zp.Provider,{value:r,children:e})}const yv=S.createContext({});function bv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function eh(e){return typeof e=="string"||Array.isArray(e)}const Dx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nx=["initial",...Dx];function xv(e){return bv(e.animate)||Nx.some(t=>eh(e[t]))}function MP(e){return!!(xv(e)||e.variants)}function z3(e,t){if(xv(e)){const{initial:n,animate:r}=e;return{initial:n===!1||eh(n)?n:void 0,animate:eh(r)?r:void 0}}return e.inherit!==!1?t:{}}function j3(e){const{initial:t,animate:n}=z3(e,S.useContext(yv));return S.useMemo(()=>({initial:t,animate:n}),[q1(t),q1(n)])}function q1(e){return Array.isArray(e)?e.join(" "):e}const th={};function B3(e){for(const t in e)th[t]=e[t],xx(t)&&(th[t].isCSSVariable=!0)}function DP(e,{layout:t,layoutId:n}){return Au.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!th[e]||e==="opacity")}const V3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U3=Ff.length;function K3(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function NP(e,t,n){for(const r in t)!wr(t[r])&&!DP(r,n)&&(e[r]=t[r])}function W3({transformTemplate:e},t){return S.useMemo(()=>{const n=Ox();return Fx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function H3(e,t){const n=e.style||{},r={};return NP(r,n,e),Object.assign(r,W3(e,t)),r}function G3(e,t){const n={},r=H3(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const q3={offset:"stroke-dashoffset",array:"stroke-dasharray"},Y3={offset:"strokeDashoffset",array:"strokeDasharray"};function X3(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?q3:Y3;e[s.offset]=tt.transform(-r);const a=tt.transform(t),c=tt.transform(n);e[s.array]=`${a} ${c}`}function FP(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...c},d,h,m){if(Fx(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b}=e;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=m?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),i!==void 0&&X3(g,i,s,a,!1)}const OP=()=>({...Ox(),attrs:{}}),zP=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q3(e,t,n,r){const i=S.useMemo(()=>{const s=OP();return FP(s,t,zP(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};NP(s,e.style,e),i.style={...s,...i.style}}return i}const J3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zx(e){return typeof e!="string"||e.includes("-")?!1:!!(J3.indexOf(e)>-1||/[A-Z]/u.test(e))}function Z3(e,t,n,{latestValues:r},i,s=!1){const c=(zx(e)?Q3:G3)(t,r,i,e),d=F3(t,typeof e=="string",s),h=e!==S.Fragment?{...d,...c,ref:n}:{},{children:m}=t,g=S.useMemo(()=>wr(m)?m.get():m,[m]);return S.createElement(e,{...h,children:g})}function Y1(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function jx(e,t,n,r){if(typeof t=="function"){const[i,s]=Y1(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Y1(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function $g(e){return wr(e)?e.get():e}function e4({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:t4(n,r,i,e),renderState:t()}}function t4(e,t,n,r){const i={},s=r(e,{});for(const b in s)i[b]=$g(s[b]);let{initial:a,animate:c}=e;const d=xv(e),h=MP(e);t&&h&&!d&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||a===!1;const g=m?c:a;if(g&&typeof g!="boolean"&&!bv(g)){const b=Array.isArray(g)?g:[g];for(let x=0;x(t,n)=>{const r=S.useContext(yv),i=S.useContext(vv),s=()=>e4(e,t,r,i);return n?s():mh(s)};function Bx(e,t,n){const{style:r}=e,i={};for(const s in r)(wr(r[s])||t.style&&wr(t.style[s])||DP(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const n4=jP({scrapeMotionValuesFromProps:Bx,createRenderState:Ox});function BP(e,t,n){const r=Bx(e,t,n);for(const i in e)if(wr(e[i])||wr(t[i])){const s=Ff.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const r4=jP({scrapeMotionValuesFromProps:BP,createRenderState:OP}),i4=Symbol.for("motionComponentSymbol");function hf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function o4(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):hf(n)&&(n.current=r))},[t])}const Vx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),s4="framerAppearId",VP="data-"+Vx(s4),UP=S.createContext({});function a4(e,t,n,r,i){const{visualElement:s}=S.useContext(yv),a=S.useContext(Mx),c=S.useContext(vv),d=S.useContext(Zp).reducedMotion,h=S.useRef(null);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,g=S.useContext(UP);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&l4(h.current,n,i,g);const b=S.useRef(!1);S.useInsertionEffect(()=>{m&&b.current&&m.update(n,c)});const x=n[VP],k=S.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return dx(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),k.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!k.current&&m.animationState&&m.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),k.current=!1))}),m}function l4(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:c,layoutScroll:d,layoutRoot:h,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:KP(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||c&&hf(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:d,layoutRoot:h})}function KP(e){if(e)return e.options.allowProjection!==!1?e.projection:KP(e.parent)}function Zy(e,{forwardMotionProps:t=!1}={},n,r){n&&ob(n);const i=zx(e)?r4:n4;function s(c,d){let h;const m={...S.useContext(Zp),...c,layoutId:u4(c)},{isStatic:g}=m,b=j3(c),x=i(c,g);if(!g&&fx){c4();const k=f4(m);h=k.MeasureLayout,b.visualElement=a4(e,x,m,r,k.ProjectionNode)}return M.jsxs(yv.Provider,{value:b,children:[h&&b.visualElement?M.jsx(h,{visualElement:b.visualElement,...m}):null,Z3(e,c,o4(x,b.visualElement,d),x,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=S.forwardRef(s);return a[i4]=e,a}function u4({layoutId:e}){const t=S.useContext(Yp).id;return t&&e!==void 0?t+"-"+e:e}function c4(e,t){S.useContext(Mx).strict}function f4(e){const{drag:t,layout:n}=_f;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function WP(e,t){if(typeof Proxy>"u")return Zy;const n=new Map,r=(s,a)=>Zy(s,a,e,t),i=(s,a)=>r(s,a);return new Proxy(i,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,Zy(a,void 0,e,t)),n.get(a))})}const $f=WP();function HP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function d4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function p4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function e0(e){return e===void 0||e===1}function sb({scale:e,scaleX:t,scaleY:n}){return!e0(e)||!e0(t)||!e0(n)}function fu(e){return sb(e)||GP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function GP(e){return X1(e.x)||X1(e.y)}function X1(e){return e&&e!=="0%"}function Hg(e,t,n){const r=e-n,i=t*r;return n+i}function Q1(e,t,n,r,i){return i!==void 0&&(e=Hg(e,i,r)),Hg(e,n,r)+t}function ab(e,t=0,n=1,r,i){e.min=Q1(e.min,t,n,r,i),e.max=Q1(e.max,t,n,r,i)}function qP(e,{x:t,y:n}){ab(e.x,t.translate,t.scale,t.originPoint),ab(e.y,n.translate,n.scale,n.originPoint)}const J1=.999999999999,Z1=1.0000000000001;function h4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let c=0;cJ1&&(t.x=1),t.yJ1&&(t.y=1)}function mf(e,t){e.min=e.min+t,e.max=e.max+t}function eS(e,t,n,r,i=.5){const s=dn(e.min,e.max,i);ab(e,t,n,s,r)}function gf(e,t){eS(e.x,t.x,t.scaleX,t.scale,t.originX),eS(e.y,t.y,t.scaleY,t.scale,t.originY)}function YP(e,t){return HP(p4(e.getBoundingClientRect(),t))}function m4(e,t,n){const r=YP(e,n),{scroll:i}=t;return i&&(mf(r.x,i.offset.x),mf(r.y,i.offset.y)),r}const tS=()=>({translate:0,scale:1,origin:0,originPoint:0}),vf=()=>({x:tS(),y:tS()}),nS=()=>({min:0,max:0}),Cn=()=>({x:nS(),y:nS()}),lb={current:null},XP={current:!1};function g4(){if(XP.current=!0,!!fx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lb.current=e.matches;e.addEventListener("change",t),t()}else lb.current=!1}const v4=new WeakMap;function y4(e,t,n){for(const r in t){const i=t[r],s=n[r];if(wr(i))e.addValue(r,i);else if(wr(s))e.addValue(r,Tf(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Tf(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class b4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ix,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=oi.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),XP.current||g4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:lb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),el(this.notifyUpdate),el(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Au.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&nn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in _f){const n=_f[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Tf(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(zE(r)||BE(r))?r=parseFloat(r):!E3(r)&&tl.test(n)&&(r=SP(t,n)),this.setBaseTarget(t,wr(r)?r.get():r)),wr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=jx(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!wr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new vx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Rx.render(this.render)}}class QP extends b4{constructor(){super(...arguments),this.KeyframeResolver=p3}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;wr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function JP(e,{style:t,vars:n},r,i){const s=e.style;let a;for(a in t)s[a]=t[a];i?.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function x4(e){return window.getComputedStyle(e)}class w4 extends QP{constructor(){super(...arguments),this.type="html",this.renderInstance=JP}readValueFromInstance(t,n){if(Au.has(n))return this.projection?.isProjecting?Z0(n):RD(t,n);{const r=x4(t),i=(xx(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return YP(t,n)}build(t,n,r){Fx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Bx(t,n,r)}}const ZP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function S4(e,t,n,r){JP(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ZP.has(i)?i:Vx(i),t.attrs[i])}class k4 extends QP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Au.has(n)){const r=wP(n);return r&&r.default||0}return n=ZP.has(n)?n:Vx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return BP(t,n,r)}build(t,n,r){FP(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){S4(t,n,r,i)}mount(t){this.isSVGTag=zP(t.tagName),super.mount(t)}}const C4=(e,t)=>zx(e)?new k4(t):new w4(t,{allowProjection:e!==S.Fragment});function nh(e,t,n){const r=e.getProps();return jx(r,t,n!==void 0?n:r.custom,e)}const ub=e=>Array.isArray(e);function E4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tf(n))}function P4(e){return ub(e)?e[e.length-1]||0:e}function T4(e,t){const n=nh(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const c=P4(s[a]);E4(e,a,c)}}function _4(e){return!!(wr(e)&&e.add)}function cb(e,t){const n=e.getValue("willChange");if(_4(n))return n.add(t);if(!n&&fs.WillChange){const r=new fs.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function eT(e){return e.props[VP]}const I4=e=>e!==null;function $4(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(I4),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const A4={type:"spring",stiffness:500,damping:25,restSpeed:10},R4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),L4={type:"keyframes",duration:.8},M4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},D4=(e,{keyframes:t})=>t.length>2?L4:Au.has(e)?e.startsWith("scale")?R4(t[1]):A4:M4;function N4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:c,from:d,elapsed:h,...m}){return!!Object.keys(m).length}const Ux=(e,t,n,r={},i,s)=>a=>{const c=$x(r,e)||{},d=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-ls(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:b=>{t.set(b),c.onUpdate&&c.onUpdate(b)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:i};N4(c)||Object.assign(m,D4(e,m)),m.duration&&(m.duration=ls(m.duration)),m.repeatDelay&&(m.repeatDelay=ls(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),(fs.instantAnimations||fs.skipAnimations)&&(g=!0,m.duration=0,m.delay=0),m.allowFlatten=!c.type&&!c.ease,g&&!s&&t.get()!==void 0){const b=$4(m.keyframes,c);if(b!==void 0){nn.update(()=>{m.onUpdate(b),m.onComplete()});return}}return c.isSync?new _x(m):new t3(m)};function F4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(s=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in c){const g=e.getValue(m,e.latestValues[m]??null),b=c[m];if(b===void 0||h&&F4(h,m))continue;const x={delay:n,...$x(s||{},m)},k=g.get();if(k!==void 0&&!g.isAnimating&&!Array.isArray(b)&&b===k&&!x.velocity)continue;let P=!1;if(window.MotionHandoffAnimation){const T=eT(e);if(T){const $=window.MotionHandoffAnimation(T,m,nn);$!==null&&(x.startTime=$,P=!0)}}cb(e,m),g.start(Ux(m,g,b,e.shouldReduceMotion&&yP.has(m)?{type:!1}:x,e,P));const _=g.animation;_&&d.push(_)}return a&&Promise.all(d).then(()=>{nn.update(()=>{a&&T4(e,a)})}),d}function fb(e,t,n={}){const r=nh(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(tT(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return O4(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[d,h]=c==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function O4(e,t,n=0,r=0,i=0,s=1,a){const c=[],d=e.variantChildren.size,h=(d-1)*i,m=typeof r=="function",g=m?b=>r(b,d):s===1?(b=0)=>b*i:(b=0)=>h-b*i;return Array.from(e.variantChildren).sort(z4).forEach((b,x)=>{b.notify("AnimationStart",t),c.push(fb(b,t,{...a,delay:n+(m?0:r)+g(x)}).then(()=>b.notify("AnimationComplete",t)))}),Promise.all(c)}function z4(e,t){return e.sortNodePosition(t)}function j4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>fb(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=fb(e,t,n);else{const i=typeof t=="function"?nh(e,t,n.custom):t;r=Promise.all(tT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function nT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>j4(e,n,r)))}function W4(e){let t=K4(e),n=iS(),r=!0;const i=d=>(h,m)=>{const g=nh(e,m,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:b,transitionEnd:x,...k}=g;h={...h,...k,...x}}return h};function s(d){t=d(e)}function a(d){const{props:h}=e,m=rT(e.parent)||{},g=[],b=new Set;let x={},k=1/0;for(let _=0;_k&&z,le=!1;const j=Array.isArray(L)?L:[L];let B=j.reduce(i(T),{});K===!1&&(B={});const{prevResolvedValues:Y={}}=$,te={...Y,...B},G=q=>{re=!0,b.has(q)&&(le=!0,b.delete(q)),$.needsAnimating[q]=!0;const V=e.getValue(q);V&&(V.liveStyle=!1)};for(const q in te){const V=B[q],se=Y[q];if(x.hasOwnProperty(q))continue;let R=!1;ub(V)&&ub(se)?R=!nT(V,se):R=V!==se,R?V!=null?G(q):b.add(q):V!==void 0&&b.has(q)?G(q):$.protectedKeys[q]=!0}$.prevProp=L,$.prevResolvedValues=B,$.isActive&&(x={...x,...B}),r&&e.blockInitialAnimation&&(re=!1),re&&(!(D&&J)||le)&&g.push(...j.map(q=>({animation:q,options:{type:T}})))}if(b.size){const _={};if(typeof h.initial!="boolean"){const T=nh(e,Array.isArray(h.initial)?h.initial[0]:h.initial);T&&T.transition&&(_.transition=T.transition)}b.forEach(T=>{const $=e.getBaseTarget(T),L=e.getValue(T);L&&(L.liveStyle=!0),_[T]=$??null}),g.push({animation:_})}let P=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?t(g):Promise.resolve()}function c(d,h){if(n[d].isActive===h)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,h)),n[d].isActive=h;const m=a(d);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=iS(),r=!0}}}function H4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nT(t,e):!1}function iu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iS(){return{animate:iu(!0),whileInView:iu(),whileHover:iu(),whileTap:iu(),whileDrag:iu(),whileFocus:iu(),exit:iu()}}class nl{constructor(t){this.isMounted=!1,this.node=t}update(){}}class G4 extends nl{constructor(t){super(t),t.animationState||(t.animationState=W4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let q4=0;class Y4 extends nl{constructor(){super(...arguments),this.id=q4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const X4={animation:{Feature:G4},exit:{Feature:Y4}};function rh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bh(e){return{point:{x:e.pageX,y:e.pageY}}}const Q4=e=>t=>Lx(t)&&e(t,bh(t));function Fp(e,t,n,r){return rh(e,t,Q4(n),r)}const iT=1e-4,J4=1-iT,Z4=1+iT,oT=.01,eN=0-oT,tN=0+oT;function Fr(e){return e.max-e.min}function nN(e,t,n){return Math.abs(e-t)<=n}function oS(e,t,n,r=.5){e.origin=r,e.originPoint=dn(t.min,t.max,e.origin),e.scale=Fr(n)/Fr(t),e.translate=dn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=J4&&e.scale<=Z4||isNaN(e.scale))&&(e.scale=1),(e.translate>=eN&&e.translate<=tN||isNaN(e.translate))&&(e.translate=0)}function Op(e,t,n,r){oS(e.x,t.x,n.x,r?r.originX:void 0),oS(e.y,t.y,n.y,r?r.originY:void 0)}function sS(e,t,n){e.min=n.min+t.min,e.max=e.min+Fr(t)}function rN(e,t,n){sS(e.x,t.x,n.x),sS(e.y,t.y,n.y)}function aS(e,t,n){e.min=t.min-n.min,e.max=e.min+Fr(t)}function zp(e,t,n){aS(e.x,t.x,n.x),aS(e.y,t.y,n.y)}function Xi(e){return[e("x"),e("y")]}const sT=({current:e})=>e?e.ownerDocument.defaultView:null,lS=(e,t)=>Math.abs(e-t);function iN(e,t){const n=lS(e.x,t.x),r=lS(e.y,t.y);return Math.sqrt(n**2+r**2)}class aT{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=n0(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,k=iN(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!k)return;const{point:P}=b,{timestamp:_}=fr;this.history.push({...P,timestamp:_});const{onStart:T,onMove:$}=this.handlers;x||(T&&T(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,b)},this.handlePointerMove=(b,x)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=t0(x,this.transformPagePoint),nn.update(this.updatePoint,!0)},this.handlePointerUp=(b,x)=>{this.end();const{onEnd:k,onSessionEnd:P,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=n0(b.type==="pointercancel"?this.lastMoveEventInfo:t0(x,this.transformPagePoint),this.history);this.startEvent&&k&&k(b,T),P&&P(b,T)},!Lx(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const c=bh(t),d=t0(c,this.transformPagePoint),{point:h}=d,{timestamp:m}=fr;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=n;g&&g(t,n0(d,this.history)),this.removeListeners=gh(Fp(this.contextWindow,"pointermove",this.handlePointerMove),Fp(this.contextWindow,"pointerup",this.handlePointerUp),Fp(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),el(this.updatePoint)}}function t0(e,t){return t?{point:t(e.point)}:e}function uS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function n0({point:e},t){return{point:e,delta:uS(e,lT(t)),offset:uS(e,oN(t)),velocity:sN(t,.1)}}function oN(e){return e[0]}function lT(e){return e[e.length-1]}function sN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=lT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ls(t)));)n--;if(!r)return{x:0,y:0};const s=us(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function aN(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?dn(n,e,r.max):Math.min(e,n)),e}function cS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function lN(e,{top:t,left:n,bottom:r,right:i}){return{x:cS(e.x,n,i),y:cS(e.y,t,r)}}function fS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Xp(t.min,t.max-r,e.min):r>i&&(n=Xp(e.min,e.max-i,t.min)),Js(0,1,n)}function fN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const db=.35;function dN(e=db){return e===!1?e=0:e===!0&&(e=db),{x:dS(e,"left","right"),y:dS(e,"top","bottom")}}function dS(e,t,n){return{min:pS(e,t),max:pS(e,n)}}function pS(e,t){return typeof e=="number"?e:e[t]||0}const pN=new WeakMap;class hN{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Cn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bh(g).point)},a=(g,b)=>{const{drag:x,dragPropagation:k,onDragStart:P}=this.getProps();if(x&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=v3(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xi(T=>{let $=this.getAxisMotionValue(T).get()||0;if(cs.test($)){const{projection:L}=this.visualElement;if(L&&L.layout){const z=L.layout.layoutBox[T];z&&($=Fr(z)*(parseFloat($)/100))}}this.originPoint[T]=$}),P&&nn.postRender(()=>P(g,b)),cb(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},c=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:k,onDirectionLock:P,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:T}=b;if(k&&this.currentDirection===null){this.currentDirection=mN(T),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",b.point,T),this.updateAxis("y",b.point,T),this.visualElement.render(),_&&_(g,b)},d=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Xi(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new aT(t,{onSessionStart:s,onStart:a,onMove:c,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:sT(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:c}=this.getProps();c&&nn.postRender(()=>c(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!dg(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=aN(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&hf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=lN(r.layoutBox,t):this.constraints=!1,this.elastic=dN(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Xi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=fN(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!hf(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=m4(r,i.root,this.visualElement.getTransformPagePoint());let a=uN(i.layout.layoutBox,s);if(n){const c=n(d4(a));this.hasMutatedConstraints=!!c,c&&(a=HP(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},h=Xi(m=>{if(!dg(m,n,this.currentDirection))return;let g=d&&d[m]||{};a&&(g={min:0,max:0});const b=i?200:1e6,x=i?40:1e7,k={type:"inertia",velocity:r?t[m]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(m,k)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return cb(this.visualElement,t),r.start(Ux(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xi(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xi(n=>{const{drag:r}=this.getProps();if(!dg(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];s.set(t[n]-dn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!hf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Xi(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const d=c.get();i[a]=cN({min:d,max:d},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xi(a=>{if(!dg(a,t,null))return;const c=this.getAxisMotionValue(a),{min:d,max:h}=this.constraints[a];c.set(dn(d,h,i[a]))})}addListeners(){if(!this.visualElement.current)return;pN.set(this.visualElement,this);const t=this.visualElement.current,n=Fp(t,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();hf(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),nn.read(r);const a=rh(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Xi(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=d[m].translate,g.set(g.get()+d[m].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=db,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function dg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gN extends nl{constructor(t){super(t),this.removeGroupControls=to,this.removeListeners=to,this.controls=new hN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to}unmount(){this.removeGroupControls(),this.removeListeners()}}const hS=e=>(t,n)=>{e&&nn.postRender(()=>e(t,n))};class vN extends nl{constructor(){super(...arguments),this.removePointerDownListener=to}onPointerDown(t){this.session=new aT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hS(t),onStart:hS(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&nn.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Fp(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ag={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function mS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mp={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(tt.test(e))e=parseFloat(e);else return e;const n=mS(e,t.target.x),r=mS(e,t.target.y);return`${n}% ${r}%`}},yN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=tl.parse(e);if(i.length>5)return r;const s=tl.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,d=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=d;const h=dn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=h),typeof i[3+a]=="number"&&(i[3+a]/=h),s(i)}};let gS=!1;class bN extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;B3(xN),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),gS&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ag.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,gS=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||nn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function uT(e){const[t,n]=$P(),r=S.useContext(Yp);return M.jsx(bN,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(UP),isPresent:t,safeToRemove:n})}const xN={borderRadius:{...mp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mp,borderTopRightRadius:mp,borderBottomLeftRadius:mp,borderBottomRightRadius:mp,boxShadow:yN};function wN(e,t,n){const r=wr(e)?e:Tf(e);return r.start(Ux("",r,t,n)),r.animation}const SN=(e,t)=>e.depth-t.depth;class kN{constructor(){this.children=[],this.isDirty=!1}add(t){px(this.children,t),this.isDirty=!0}remove(t){hx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SN),this.isDirty=!1,this.children.forEach(t)}}function CN(e,t){const n=oi.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(el(r),e(s-t))};return nn.setup(r,!0),()=>el(r)}const cT=["TopLeft","TopRight","BottomLeft","BottomRight"],EN=cT.length,vS=e=>typeof e=="string"?parseFloat(e):e,yS=e=>typeof e=="number"||tt.test(e);function PN(e,t,n,r,i,s){i?(e.opacity=dn(0,n.opacity??1,TN(r)),e.opacityExit=dn(t.opacity??1,0,_N(r))):s&&(e.opacity=dn(t.opacity??1,n.opacity??1,r));for(let a=0;art?1:n(Xp(e,t,r))}function xS(e,t){e.min=t.min,e.max=t.max}function qi(e,t){xS(e.x,t.x),xS(e.y,t.y)}function wS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function SS(e,t,n,r,i){return e-=t,e=Hg(e,1/n,r),i!==void 0&&(e=Hg(e,1/i,r)),e}function IN(e,t=0,n=1,r=.5,i,s=e,a=e){if(cs.test(t)&&(t=parseFloat(t),t=dn(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=dn(s.min,s.max,r);e===s&&(c-=t),e.min=SS(e.min,t,n,c,i),e.max=SS(e.max,t,n,c,i)}function kS(e,t,[n,r,i],s,a){IN(e,t[n],t[r],t[i],t.scale,s,a)}const $N=["x","scaleX","originX"],AN=["y","scaleY","originY"];function CS(e,t,n,r){kS(e.x,t,$N,n?n.x:void 0,r?r.x:void 0),kS(e.y,t,AN,n?n.y:void 0,r?r.y:void 0)}function ES(e){return e.translate===0&&e.scale===1}function dT(e){return ES(e.x)&&ES(e.y)}function PS(e,t){return e.min===t.min&&e.max===t.max}function RN(e,t){return PS(e.x,t.x)&&PS(e.y,t.y)}function TS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pT(e,t){return TS(e.x,t.x)&&TS(e.y,t.y)}function _S(e){return Fr(e.x)/Fr(e.y)}function IS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class LN{constructor(){this.members=[]}add(t){px(this.members,t),t.scheduleRender()}remove(t){if(hx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function MN(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:b,skewX:x,skewY:k}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),b&&(r+=`rotateY(${b}deg) `),x&&(r+=`skewX(${x}deg) `),k&&(r+=`skewY(${k}deg) `)}const c=e.x.scale*t.x,d=e.y.scale*t.y;return(c!==1||d!==1)&&(r+=`scale(${c}, ${d})`),r||"none"}const r0=["","X","Y","Z"],DN=1e3;let NN=0;function i0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",nn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hT(r)}function mT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t?.()){this.id=NN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(zN),this.nodes.forEach(UN),this.nodes.forEach(KN),this.nodes.forEach(jN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;nn.read(()=>{g=window.innerWidth}),e(a,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,m&&m(),m=CN(b,250),Ag.hasAnimatedSinceResize&&(Ag.hasAnimatedSinceResize=!1,this.nodes.forEach(RS)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||h.getDefaultTransition()||YN,{onLayoutAnimationStart:P,onLayoutAnimationComplete:_}=h.getProps(),T=!this.targetLayout||!pT(this.targetLayout,x),$=!g&&b;if(this.options.layoutRoot||this.resumeFrom||$||g&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...$x(k,"layout"),onPlay:P,onComplete:_};(h.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(m,$)}else g||RS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),el(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(WN),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Fr(this.snapshot.measuredBox.x)&&!Fr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const K=z/1e3;LS(g.x,a.x,K),LS(g.y,a.y,K),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zp(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GN(this.relativeTarget,this.relativeTargetOrigin,b,K),L&&RN(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=Cn()),qi(L,this.relativeTarget)),P&&(this.animationValues=m,PN(m,h,this.latestValues,K,$,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(el(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nn.update(()=>{Ag.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Tf(0)),this.currentAnimation=wN(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(DN),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:h,latestValues:m}=a;if(!(!c||!d||!h)){if(this!==a&&this.layout&&h&&gT(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||Cn();const g=Fr(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+g;const b=Fr(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+b}qi(c,d),gf(c,m),Op(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new LN),this.sharedNodes.get(a).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const h={};d.z&&i0("z",a,h,this.animationValues);for(let m=0;ma.currentAnimation?.stop()),this.root.nodes.forEach($S),this.root.sharedNodes.clear()}}}function FN(e){e.updateLayout()}function ON(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?Xi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Fr(g);g.min=n[m].min,g.max=g.min+b}):gT(i,t.layoutBox,n)&&Xi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Fr(n[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const a=vf();Op(a,n,t.layoutBox);const c=vf();s?Op(c,e.applyTransform(r,!0),t.measuredBox):Op(c,n,t.layoutBox);const d=!dT(a);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const x=Cn();zp(x,t.layoutBox,g.layoutBox);const k=Cn();zp(k,n,b.layoutBox),pT(x,k)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function zN(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function BN(e){e.clearSnapshot()}function $S(e){e.clearMeasurements()}function AS(e){e.isLayoutDirty=!1}function VN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function RS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UN(e){e.resolveTargetDelta()}function KN(e){e.calcProjection()}function WN(e){e.resetSkewAndRotation()}function HN(e){e.removeLeadSnapshot()}function LS(e,t,n){e.translate=dn(t.translate,0,n),e.scale=dn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function MS(e,t,n,r){e.min=dn(t.min,n.min,r),e.max=dn(t.max,n.max,r)}function GN(e,t,n,r){MS(e.x,t.x,n.x,r),MS(e.y,t.y,n.y,r)}function qN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const YN={duration:.45,ease:[.4,0,.1,1]},DS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),NS=DS("applewebkit/")&&!DS("chrome/")?Math.round:to;function FS(e){e.min=NS(e.min),e.max=NS(e.max)}function XN(e){FS(e.x),FS(e.y)}function gT(e,t,n){return e==="position"||e==="preserve-aspect"&&!nN(_S(t),_S(n),.2)}function QN(e){return e!==e.root&&e.scroll?.wasRoot}const JN=mT({attachResizeListener:(e,t)=>rh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),o0={current:void 0},vT=mT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!o0.current){const e=new JN({});e.mount(window),e.setOptions({layoutScroll:!0}),o0.current=e}return o0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ZN={pan:{Feature:vN},drag:{Feature:gN,ProjectionNode:vT,MeasureLayout:uT}};function OS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&nn.postRender(()=>s(t,bh(t)))}class e5 extends nl{mount(){const{current:t}=this.node;t&&(this.unmount=y3(t,(n,r)=>(OS(this.node,r,"Start"),i=>OS(this.node,i,"End"))))}unmount(){}}class t5 extends nl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gh(rh(this.node.current,"focus",()=>this.onFocus()),rh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zS(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&nn.postRender(()=>s(t,bh(t)))}class n5 extends nl{mount(){const{current:t}=this.node;t&&(this.unmount=S3(t,(n,r)=>(zS(this.node,r,"Start"),(i,{success:s})=>zS(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pb=new WeakMap,s0=new WeakMap,r5=e=>{const t=pb.get(e.target);t&&t(e)},i5=e=>{e.forEach(r5)};function o5({root:e,...t}){const n=e||document;s0.has(n)||s0.set(n,{});const r=s0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(i5,{root:e,...t})),r[i]}function s5(e,t,n){const r=o5(t);return pb.set(e,n),r.observe(e),()=>{pb.delete(e),r.unobserve(e)}}const a5={some:0,all:1};class l5 extends nl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:a5[i]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),b=h?m:g;b&&b(d)};return s5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(u5(t,n))&&this.startObserver()}unmount(){}}function u5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const c5={inView:{Feature:l5},tap:{Feature:n5},focus:{Feature:t5},hover:{Feature:e5}},f5={layout:{ProjectionNode:vT,MeasureLayout:uT}},d5={...X4,...c5,...ZN,...f5},bu=WP(d5,C4);class p5 extends EP{constructor(){super(...arguments),this.isEnabled=!1}add(t){(Au.has(t)||h3.has(t))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}}function h5(){return mh(()=>new p5("auto"))}const as={top:"top",bottom:"top",left:"left",right:"left"},Gg={top:"bottom",bottom:"top",left:"right",right:"left"},m5={top:"left",left:"top"},hb={top:"height",left:"width"},yT={width:"totalWidth",height:"totalHeight"},pg={};let Jn=typeof document<"u"?window.visualViewport:null;function jS(e){let t=0,n=0,r=0,i=0,s=0,a=0,c={};var d;let h=((d=Jn?.scale)!==null&&d!==void 0?d:1)>1;if(e.tagName==="BODY"){let k=document.documentElement;r=k.clientWidth,i=k.clientHeight;var m;t=(m=Jn?.width)!==null&&m!==void 0?m:r;var g;n=(g=Jn?.height)!==null&&g!==void 0?g:i,c.top=k.scrollTop||e.scrollTop,c.left=k.scrollLeft||e.scrollLeft,Jn&&(s=Jn.offsetTop,a=Jn.offsetLeft)}else({width:t,height:n,top:s,left:a}=xf(e)),c.top=e.scrollTop,c.left=e.scrollLeft,r=t,i=n;if(CE()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){c.top=0,c.left=0;var b;s=(b=Jn?.pageTop)!==null&&b!==void 0?b:0;var x;a=(x=Jn?.pageLeft)!==null&&x!==void 0?x:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:c,top:s,left:a}}function g5(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function BS(e,t,n,r,i,s,a){var c;let d=(c=i.scroll[e])!==null&&c!==void 0?c:0,h=r[hb[e]],m=r.scroll[as[e]]+s,g=h+r.scroll[as[e]]-s,b=t-d+a[e]-r[as[e]],x=t-d+n+a[e]-r[as[e]];return bg?Math.max(g-x,m-b):0}function v5(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function VS(e){if(pg[e])return pg[e];let[t,n]=e.split(" "),r=as[t]||"right",i=m5[r];as[n]||(n="center");let s=hb[r],a=hb[i];return pg[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:a},pg[e]}function a0(e,t,n,r,i,s,a,c,d,h){let{placement:m,crossPlacement:g,axis:b,crossAxis:x,size:k,crossSize:P}=r,_={};var T;_[x]=(T=e[x])!==null&&T!==void 0?T:0;var $,L,z,K;g==="center"?_[x]+=((($=e[P])!==null&&$!==void 0?$:0)-((L=n[P])!==null&&L!==void 0?L:0))/2:g!==x&&(_[x]+=((z=e[P])!==null&&z!==void 0?z:0)-((K=n[P])!==null&&K!==void 0?K:0)),_[x]+=s;const D=e[x]-n[P]+d+h,J=e[x]+e[P]-d-h;if(_[x]=jg(_[x],D,J),m===b){const re=c?a[k]:t[yT[k]];_[Gg[b]]=Math.floor(re-e[b]+i)}else _[b]=Math.floor(e[b]+e[k]+i);return _}function y5(e,t,n,r,i,s,a,c){const d=r?n.height:t[yT.height];var h;let m=e.top!=null?n.top+e.top:n.top+(d-((h=e.bottom)!==null&&h!==void 0?h:0)-a);var g,b,x,k,P,_;let T=c!=="top"?Math.max(0,t.height+t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0)-m-(((b=i.top)!==null&&b!==void 0?b:0)+((x=i.bottom)!==null&&x!==void 0?x:0)+s)):Math.max(0,m+a-(t.top+((k=t.scroll.top)!==null&&k!==void 0?k:0))-(((P=i.top)!==null&&P!==void 0?P:0)+((_=i.bottom)!==null&&_!==void 0?_:0)+s));return Math.min(t.height-s*2,T)}function US(e,t,n,r,i,s){let{placement:a,axis:c,size:d}=s;var h,m;if(a===c)return Math.max(0,n[c]-e[c]-((h=e.scroll[c])!==null&&h!==void 0?h:0)+t[c]-((m=r[c])!==null&&m!==void 0?m:0)-r[Gg[c]]-i);var g;return Math.max(0,e[d]+e[c]+e.scroll[c]-t[c]-n[c]-n[d]-((g=r[c])!==null&&g!==void 0?g:0)-r[Gg[c]]-i)}function b5(e,t,n,r,i,s,a,c,d,h,m,g,b,x,k,P){let _=VS(e),{size:T,crossAxis:$,crossSize:L,placement:z,crossPlacement:K}=_,D=a0(t,c,n,_,m,g,h,b,k,P),J=m,re=US(c,h,t,i,s+m,_);if(a&&r[T]>re){let me=VS(`${Gg[z]} ${K}`),Ce=a0(t,c,n,me,m,g,h,b,k,P);US(c,h,t,i,s+m,me)>re&&(_=me,D=Ce,J=m)}let le="bottom";_.axis==="top"?_.placement==="top"?le="top":_.placement==="bottom"&&(le="bottom"):_.crossAxis==="top"&&(_.crossPlacement==="top"?le="bottom":_.crossPlacement==="bottom"&&(le="top"));let j=BS($,D[$],n[L],c,d,s,h);D[$]+=j;let B=y5(D,c,h,b,i,s,n.height,le);x&&x{if(!n||r===null)return;let i=s=>{let a=s.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let c=r||S5.get(t.current);c&&c()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let kn=typeof document<"u"?window.visualViewport:null;function C5(e){let{direction:t}=hh(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:a="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:x=!0,onClose:k,maxHeight:P,arrowBoundaryOffset:_=0}=e,[T,$]=S.useState(null),L=[b,a,i.current,r.current,s.current,c,d,h,m,g,x,t,P,_,n],z=S.useRef(kn?.scale);S.useEffect(()=>{x&&(z.current=kn?.scale)},[x]);let K=S.useCallback(()=>{if(b===!1||!x||!i.current||!r.current||!h||kn?.scale!==z.current)return;let j=null;if(s.current&&s.current.contains(document.activeElement)){var B;let V=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),se=s.current.getBoundingClientRect();var Y;if(j={type:"top",offset:((Y=V?.top)!==null&&Y!==void 0?Y:0)-se.top},j.offset>se.height/2){j.type="bottom";var te;j.offset=((te=V?.bottom)!==null&&te!==void 0?te:0)-se.bottom}}let G=i.current;if(!P&&i.current){var ce;G.style.top="0px",G.style.bottom="";var Z;G.style.maxHeight=((Z=(ce=window.visualViewport)===null||ce===void 0?void 0:ce.height)!==null&&Z!==void 0?Z:window.innerHeight)+"px"}let q=x5({placement:P5(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:c,shouldFlip:d,boundaryElement:h,offset:m,crossOffset:g,maxHeight:P,arrowSize:n,arrowBoundaryOffset:_});if(q.position){if(G.style.top="",G.style.bottom="",G.style.left="",G.style.right="",Object.keys(q.position).forEach(V=>G.style[V]=q.position[V]+"px"),G.style.maxHeight=q.maxHeight!=null?q.maxHeight+"px":"",j&&document.activeElement&&s.current){let V=document.activeElement.getBoundingClientRect(),se=s.current.getBoundingClientRect(),R=V[j.type]-se[j.type];s.current.scrollTop+=R-j.offset}$(q)}},L);sn(K,L),E5(K),k1({ref:i,onResize:K}),k1({ref:r,onResize:K});let D=S.useRef(!1);sn(()=>{let j,B=()=>{D.current=!0,clearTimeout(j),j=setTimeout(()=>{D.current=!1},500),K()},Y=()=>{D.current&&B()};return kn?.addEventListener("resize",B),kn?.addEventListener("scroll",Y),()=>{kn?.removeEventListener("resize",B),kn?.removeEventListener("scroll",Y)}},[K]);let J=S.useCallback(()=>{D.current||k?.()},[k,D]);k5({triggerRef:r,isOpen:x,onClose:k&&J});var re,le;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...T?.position,maxHeight:(re=T?.maxHeight)!==null&&re!==void 0?re:"100vh"}},placement:(le=T?.placement)!==null&&le!==void 0?le:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:T?.arrowOffsetLeft,top:T?.arrowOffsetTop}},updatePosition:K}}function E5(e){sn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function P5(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function T5(e){const t=eo(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){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:a,visibility:c}=s(e);i=a!=="none"&&c!=="hidden"&&c!=="collapse"}return i}function _5(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 bT(e,t){return e.nodeName!=="#comment"&&T5(e)&&_5(e,t)&&(!e.parentElement||bT(e.parentElement,e))}function Kx(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function xT(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function wT(e){let t=S.useRef({isFocused:!1,observer:null});sn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Bn(r=>{e?.(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=a=>{if(t.current.isFocused=!1,i.disabled){let c=Kx(a);n(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let c=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let qg=!1;function I5(e){for(;e&&!FE(e);)e=e.parentElement;let t=eo(e),n=t.document.activeElement;if(!n||n===e)return;qg=!0;let r=!1,i=m=>{(m.target===n||r)&&m.stopImmediatePropagation()},s=m=>{(m.target===n||r)&&(m.stopImmediatePropagation(),!e&&!r&&(r=!0,Za(n),d()))},a=m=>{(m.target===e||r)&&m.stopImmediatePropagation()},c=m=>{(m.target===e||r)&&(m.stopImmediatePropagation(),r||(r=!0,Za(n),d()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",c,!0),t.addEventListener("focus",a,!0);let d=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",c,!0),t.removeEventListener("focus",a,!0),qg=!1,r=!1},h=requestAnimationFrame(d);return d}let yf="default",mb="",Rg=new WeakMap;function $5(e){if(gv()){if(yf==="default"){const t=Dt(e);mb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}yf="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Rg.set(e,e.style[t]),e.style[t]="none"}}function HS(e){if(gv()){if(yf!=="disabled")return;yf="restoring",setTimeout(()=>{_E(()=>{if(yf==="restoring"){const t=Dt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=mb||""),mb="",yf="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Rg.has(e)){let t=Rg.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Rg.delete(e)}}const Wx=We.createContext({register:()=>{}});Wx.displayName="PressResponderContext";function A5(e,t){return t.get?t.get.call(e):t.value}function ST(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function R5(e,t){var n=ST(e,t,"get");return A5(e,n)}function L5(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function GS(e,t,n){var r=ST(e,t,"set");return L5(e,r,n),n}function M5(e){let t=S.useContext(Wx);if(t){let{register:n,...r}=t;e=Tn(r,e),n()}return $E(t,e.ref),e}var hg=new WeakMap;class mg{continuePropagation(){GS(this,hg,!1)}get shouldStopPropagation(){return R5(this,hg)}constructor(t,n,r,i){HL(this,hg,{writable:!0,value:void 0}),GS(this,hg,!0);var s;let a=(s=i?.target)!==null&&s!==void 0?s:r.currentTarget;const c=a?.getBoundingClientRect();let d,h=0,m,g=null;r.clientX!=null&&r.clientY!=null&&(m=r.clientX,g=r.clientY),c&&(m!=null&&g!=null?(d=m-c.left,h=g-c.top):(d=c.width/2,h=c.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=d,this.y=h}}const qS=Symbol("linkClicked"),YS="react-aria-pressable-style",XS="data-react-aria-pressable";function Su(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:a,isDisabled:c,isPressed:d,preventFocusOnPress:h,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:g,ref:b,...x}=M5(e),[k,P]=S.useState(!1),_=S.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:T,removeAllGlobalListeners:$}=ux(),L=Bn((B,Y)=>{let te=_.current;if(c||te.didFirePressStart)return!1;let G=!0;if(te.isTriggeringEvent=!0,r){let ce=new mg("pressstart",Y,B);r(ce),G=ce.shouldStopPropagation}return n&&n(!0),te.isTriggeringEvent=!1,te.didFirePressStart=!0,P(!0),G}),z=Bn((B,Y,te=!0)=>{let G=_.current;if(!G.didFirePressStart)return!1;G.didFirePressStart=!1,G.isTriggeringEvent=!0;let ce=!0;if(i){let Z=new mg("pressend",Y,B);i(Z),ce=Z.shouldStopPropagation}if(n&&n(!1),P(!1),t&&te&&!c){let Z=new mg("press",Y,B);t(Z),ce&&(ce=Z.shouldStopPropagation)}return G.isTriggeringEvent=!1,ce}),K=Bn((B,Y)=>{let te=_.current;if(c)return!1;if(s){te.isTriggeringEvent=!0;let G=new mg("pressup",Y,B);return s(G),te.isTriggeringEvent=!1,G.shouldStopPropagation}return!0}),D=Bn(B=>{let Y=_.current;if(Y.isPressed&&Y.target){Y.didFirePressStart&&Y.pointerType!=null&&z(ou(Y.target,B),Y.pointerType,!1),Y.isPressed=!1,Y.isOverTarget=!1,Y.activePointerId=null,Y.pointerType=null,$(),g||HS(Y.target);for(let te of Y.disposables)te();Y.disposables=[]}}),J=Bn(B=>{m&&D(B)}),re=Bn(B=>{a?.(B)}),le=Bn((B,Y)=>{if(a){let te=new MouseEvent("click",B);xT(te,Y),a(Kx(te))}}),j=S.useMemo(()=>{let B=_.current,Y={onKeyDown(G){if(l0(G.nativeEvent,G.currentTarget)&&ii(G.currentTarget,En(G.nativeEvent))){var ce;QS(En(G.nativeEvent),G.key)&&G.preventDefault();let Z=!0;if(!B.isPressed&&!G.repeat){B.target=G.currentTarget,B.isPressed=!0,B.pointerType="keyboard",Z=L(G,"keyboard");let q=G.currentTarget,V=se=>{l0(se,q)&&!se.repeat&&ii(q,En(se))&&B.target&&K(ou(B.target,se),"keyboard")};T(Dt(G.currentTarget),"keyup",Pf(V,te),!0)}Z&&G.stopPropagation(),G.metaKey&&xu()&&((ce=B.metaKeyEvents)===null||ce===void 0||ce.set(G.key,G.nativeEvent))}else G.key==="Meta"&&(B.metaKeyEvents=new Map)},onClick(G){if(!(G&&!ii(G.currentTarget,En(G.nativeEvent)))&&G&&G.button===0&&!B.isTriggeringEvent&&!wu.isOpening){let ce=!0;if(c&&G.preventDefault(),!B.ignoreEmulatedMouseEvents&&!B.isPressed&&(B.pointerType==="virtual"||LE(G.nativeEvent))){let Z=L(G,"virtual"),q=K(G,"virtual"),V=z(G,"virtual");re(G),ce=Z&&q&&V}else if(B.isPressed&&B.pointerType!=="keyboard"){let Z=B.pointerType||G.nativeEvent.pointerType||"virtual",q=K(ou(G.currentTarget,G),Z),V=z(ou(G.currentTarget,G),Z,!0);ce=q&&V,B.isOverTarget=!1,re(G),D(G)}B.ignoreEmulatedMouseEvents=!1,ce&&G.stopPropagation()}}},te=G=>{var ce;if(B.isPressed&&B.target&&l0(G,B.target)){var Z;QS(En(G),G.key)&&G.preventDefault();let V=En(G),se=ii(B.target,En(G));z(ou(B.target,G),"keyboard",se),se&&le(G,B.target),$(),G.key!=="Enter"&&Hx(B.target)&&ii(B.target,V)&&!G[qS]&&(G[qS]=!0,wu(B.target,G,!1)),B.isPressed=!1,(Z=B.metaKeyEvents)===null||Z===void 0||Z.delete(G.key)}else if(G.key==="Meta"&&(!((ce=B.metaKeyEvents)===null||ce===void 0)&&ce.size)){var q;let V=B.metaKeyEvents;B.metaKeyEvents=void 0;for(let se of V.values())(q=B.target)===null||q===void 0||q.dispatchEvent(new KeyboardEvent("keyup",se))}};if(typeof PointerEvent<"u"){Y.onPointerDown=Z=>{if(Z.button!==0||!ii(Z.currentTarget,En(Z.nativeEvent)))return;if(bM(Z.nativeEvent)){B.pointerType="virtual";return}B.pointerType=Z.pointerType;let q=!0;if(!B.isPressed){B.isPressed=!0,B.isOverTarget=!0,B.activePointerId=Z.pointerId,B.target=Z.currentTarget,g||$5(B.target),q=L(Z,B.pointerType);let V=En(Z.nativeEvent);"releasePointerCapture"in V&&V.releasePointerCapture(Z.pointerId),T(Dt(Z.currentTarget),"pointerup",G,!1),T(Dt(Z.currentTarget),"pointercancel",ce,!1)}q&&Z.stopPropagation()},Y.onMouseDown=Z=>{if(ii(Z.currentTarget,En(Z.nativeEvent))&&Z.button===0){if(h){let q=I5(Z.target);q&&B.disposables.push(q)}Z.stopPropagation()}},Y.onPointerUp=Z=>{!ii(Z.currentTarget,En(Z.nativeEvent))||B.pointerType==="virtual"||Z.button===0&&!B.isPressed&&K(Z,B.pointerType||Z.pointerType)},Y.onPointerEnter=Z=>{Z.pointerId===B.activePointerId&&B.target&&!B.isOverTarget&&B.pointerType!=null&&(B.isOverTarget=!0,L(ou(B.target,Z),B.pointerType))},Y.onPointerLeave=Z=>{Z.pointerId===B.activePointerId&&B.target&&B.isOverTarget&&B.pointerType!=null&&(B.isOverTarget=!1,z(ou(B.target,Z),B.pointerType,!1),J(Z))};let G=Z=>{if(Z.pointerId===B.activePointerId&&B.isPressed&&Z.button===0&&B.target){if(ii(B.target,En(Z))&&B.pointerType!=null){let q=!1,V=setTimeout(()=>{B.isPressed&&B.target instanceof HTMLElement&&(q?D(Z):(Za(B.target),B.target.click()))},80);T(Z.currentTarget,"click",()=>q=!0,!0),B.disposables.push(()=>clearTimeout(V))}else D(Z);B.isOverTarget=!1}},ce=Z=>{D(Z)};Y.onDragStart=Z=>{ii(Z.currentTarget,En(Z.nativeEvent))&&D(Z)}}return Y},[T,c,h,$,g,D,J,z,L,K,re,le]);return S.useEffect(()=>{if(!b)return;const B=Dt(b.current);if(!B||!B.head||B.getElementById(YS))return;const Y=B.createElement("style");Y.id=YS,Y.textContent=`
+@layer {
+ [${XS}] {
+ touch-action: pan-x pan-y pinch-zoom;
+ }
+}
+ `.trim(),B.head.prepend(Y)},[b]),S.useEffect(()=>{let B=_.current;return()=>{var Y;g||HS((Y=B.target)!==null&&Y!==void 0?Y:void 0);for(let te of B.disposables)te();B.disposables=[]}},[g]),{isPressed:d||k,pressProps:Tn(x,j,{[XS]:!0})}}function Hx(e){return e.tagName==="A"&&e.hasAttribute("href")}function l0(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof eo(i).HTMLInputElement&&!kT(i,n)||i instanceof eo(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&Hx(i))&&n!=="Enter")}function ou(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}}function D5(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Hx(e)}function QS(e,t){return e instanceof HTMLInputElement?!kT(e,t):D5(e)}const N5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kT(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":N5.has(e.type)}let Zs=null,ih=new Set,jp=new Map,ku=!1,gb=!1;const F5={Tab:!0,Escape:!0};function wv(e,t){for(let n of ih)n(e,t)}function O5(e){return!(e.metaKey||!xu()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yg(e){ku=!0,O5(e)&&(Zs="keyboard",wv("keyboard",e))}function wf(e){Zs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ku=!0,wv("pointer",e))}function CT(e){LE(e)&&(ku=!0,Zs="virtual")}function ET(e){e.target===window||e.target===document||qg||!e.isTrusted||(!ku&&!gb&&(Zs="virtual",wv("virtual",e)),ku=!1,gb=!1)}function PT(){qg||(ku=!1,gb=!0)}function Xg(e){if(typeof window>"u"||typeof document>"u"||jp.get(eo(e)))return;const t=eo(e),n=Dt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ku=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yg,!0),n.addEventListener("keyup",Yg,!0),n.addEventListener("click",CT,!0),t.addEventListener("focus",ET,!0),t.addEventListener("blur",PT,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",wf,!0),n.addEventListener("pointermove",wf,!0),n.addEventListener("pointerup",wf,!0)),t.addEventListener("beforeunload",()=>{TT(e)},{once:!0}),jp.set(t,{focus:r})}const TT=(e,t)=>{const n=eo(e),r=Dt(e);t&&r.removeEventListener("DOMContentLoaded",t),jp.has(n)&&(n.HTMLElement.prototype.focus=jp.get(n).focus,r.removeEventListener("keydown",Yg,!0),r.removeEventListener("keyup",Yg,!0),r.removeEventListener("click",CT,!0),n.removeEventListener("focus",ET,!0),n.removeEventListener("blur",PT,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",wf,!0),r.removeEventListener("pointermove",wf,!0),r.removeEventListener("pointerup",wf,!0)),jp.delete(n))};function z5(e){const t=Dt(e);let n;return t.readyState!=="loading"?Xg(e):(n=()=>{Xg(e)},t.addEventListener("DOMContentLoaded",n)),()=>TT(e,n)}typeof document<"u"&&z5();function Gx(){return Zs!=="pointer"}function oh(){return Zs}function j5(e){Zs=e,wv(e,null)}function BG(){Xg();let[e,t]=S.useState(Zs);return S.useEffect(()=>{let n=()=>{t(Zs)};return ih.add(n),()=>{ih.delete(n)}},[]),ph()?null:e}const B5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function V5(e,t,n){let r=Dt(n?.target);const i=typeof window<"u"?eo(n?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?eo(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?eo(n?.target).HTMLElement:HTMLElement,c=typeof window<"u"?eo(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!B5.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!F5[n.key])}function U5(e,t,n){Xg(),S.useEffect(()=>{let r=(i,s)=>{V5(!!n?.isTextInput,i,s)&&e(Gx())};return ih.add(r),()=>{ih.delete(r)}},t)}function Cu(e){const t=Dt(e),n=Or(t);if(oh()==="virtual"){let r=n;_E(()=>{Or(t)===r&&e.isConnected&&Za(e)})}else Za(e)}function _T(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=S.useCallback(d=>{if(d.target===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),a=wT(s),c=S.useCallback(d=>{const h=Dt(d.target),m=h?Or(h):Or();d.target===d.currentTarget&&m===En(d.nativeEvent)&&(n&&n(d),i&&i(!0),a(d))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?c:void 0,onBlur:!t&&(r||i)?s:void 0}}}function JS(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function K5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:JS(e.onKeyDown),onKeyUp:JS(e.onKeyUp)}}}let W5=We.createContext(null);function H5(e){let t=S.useContext(W5)||{};$E(t,e);let{ref:n,...r}=t;return r}function xh(e,t){let{focusProps:n}=_T(e),{keyboardProps:r}=K5(e),i=Tn(n,r),s=H5(t),a=e.isDisabled?{}:s,c=S.useRef(e.autoFocus);S.useEffect(()=>{c.current&&t.current&&Cu(t.current),c.current=!1},[t]);let d=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(d=void 0),{focusableProps:Tn({...i,tabIndex:d},a)}}function G5({children:e}){let t=S.useMemo(()=>({register:()=>{}}),[]);return We.createElement(Wx.Provider,{value:t},e)}function Sv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=S.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:c}=ux(),d=S.useCallback(g=>{g.currentTarget.contains(g.target)&&s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,c(),n&&n(g),i&&i(!1))},[n,i,s,c]),h=wT(d),m=S.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const b=Dt(g.target),x=Or(b);if(!s.current.isFocusWithin&&x===En(g.nativeEvent)){r&&r(g),i&&i(!0),s.current.isFocusWithin=!0,h(g);let k=g.currentTarget;a(b,"focus",P=>{if(s.current.isFocusWithin&&!ii(k,P.target)){let _=new b.defaultView.FocusEvent("blur",{relatedTarget:P.target});xT(_,k);let T=Kx(_);d(T)}},{capture:!0})}},[r,i,h,a,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:d}}}let vb=!1,u0=0;function q5(){vb=!0,setTimeout(()=>{vb=!1},50)}function ZS(e){e.pointerType==="touch"&&q5()}function Y5(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",ZS),u0++,()=>{u0--,!(u0>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",ZS)}}function Eu(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,a]=S.useState(!1),c=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(Y5,[]);let{addGlobalListener:d,removeAllGlobalListeners:h}=ux(),{hoverProps:m,triggerHoverEnd:g}=S.useMemo(()=>{let b=(P,_)=>{if(c.pointerType=_,i||_==="touch"||c.isHovered||!P.currentTarget.contains(P.target))return;c.isHovered=!0;let T=P.currentTarget;c.target=T,d(Dt(P.target),"pointerover",$=>{c.isHovered&&c.target&&!ii(c.target,$.target)&&x($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:T,pointerType:_}),n&&n(!0),a(!0)},x=(P,_)=>{let T=c.target;c.pointerType="",c.target=null,!(_==="touch"||!c.isHovered||!T)&&(c.isHovered=!1,h(),r&&r({type:"hoverend",target:T,pointerType:_}),n&&n(!1),a(!1))},k={};return typeof PointerEvent<"u"&&(k.onPointerEnter=P=>{vb&&P.pointerType==="mouse"||b(P,P.pointerType)},k.onPointerLeave=P=>{!i&&P.currentTarget.contains(P.target)&&x(P,P.pointerType)}),{hoverProps:k,triggerHoverEnd:x}},[t,n,r,i,c,d,h]);return S.useEffect(()=>{i&&g({currentTarget:c.target},c.pointerType)},[i]),{hoverProps:m,isHovered:s}}function X5(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Bn(d=>{n&&ek(d,t)&&(i&&i(d),s.current.isPointerDown=!0)}),c=Bn(d=>{n&&n(d)});S.useEffect(()=>{let d=s.current;if(r)return;const h=t.current,m=Dt(h);if(typeof PointerEvent<"u"){let g=b=>{d.isPointerDown&&ek(b,t)&&c(b),d.isPointerDown=!1};return m.addEventListener("pointerdown",a,!0),m.addEventListener("click",g,!0),()=>{m.removeEventListener("pointerdown",a,!0),m.removeEventListener("click",g,!0)}}},[t,r,a,c])}function ek(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const tk=We.createContext(null),yb="react-aria-focus-scope-restore";let Xt=null;function Q5(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=S.useRef(null),a=S.useRef(null),c=S.useRef([]),{parentNode:d}=S.useContext(tk)||{},h=S.useMemo(()=>new xb({scopeRef:c}),[c]);sn(()=>{let b=d||Mn.root;if(Mn.getTreeNode(b.scopeRef)&&Xt&&!Qg(Xt,b.scopeRef)){let x=Mn.getTreeNode(Xt);x&&(b=x)}b.addChild(h),Mn.addNode(h)},[h,d]),sn(()=>{let b=Mn.getTreeNode(c);b&&(b.contain=!!n)},[n]),sn(()=>{var b;let x=(b=s.current)===null||b===void 0?void 0:b.nextSibling,k=[],P=_=>_.stopPropagation();for(;x&&x!==a.current;)k.push(x),x.addEventListener(yb,P),x=x.nextSibling;return c.current=k,()=>{for(let _ of k)_.removeEventListener(yb,P)}},[t]),nF(c,r,n),Z5(c,n),rF(c,r,n),tF(c,i),S.useEffect(()=>{const b=Or(Dt(c.current?c.current[0]:void 0));let x=null;if(no(b,c.current)){for(let k of Mn.traverse())k.scopeRef&&no(b,k.scopeRef.current)&&(x=k);x===Mn.getTreeNode(c)&&(Xt=x.scopeRef)}},[c]),sn(()=>()=>{var b,x,k;let P=(k=(x=Mn.getTreeNode(c))===null||x===void 0||(b=x.parent)===null||b===void 0?void 0:b.scopeRef)!==null&&k!==void 0?k:null;(c===Xt||Qg(c,Xt))&&(!P||Mn.getTreeNode(P))&&(Xt=P),Mn.removeTreeNode(c)},[c]);let m=S.useMemo(()=>J5(c),[]),g=S.useMemo(()=>({focusManager:m,parentNode:h}),[h,m]);return We.createElement(tk.Provider,{value:g},We.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,We.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function J5(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var c;let d=r||Or(Dt((c=n[0])!==null&&c!==void 0?c:void 0)),h=n[0].previousElementSibling,m=mu(n),g=Xs(m,{tabbable:i,accept:a},n);g.currentNode=no(d,n)?d:h;let b=g.nextNode();return!b&&s&&(g.currentNode=h,b=g.nextNode()),b&&Ys(b,!0),b},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var c;let d=r||Or(Dt((c=n[0])!==null&&c!==void 0?c:void 0)),h=n[n.length-1].nextElementSibling,m=mu(n),g=Xs(m,{tabbable:i,accept:a},n);g.currentNode=no(d,n)?d:h;let b=g.previousNode();return!b&&s&&(g.currentNode=h,b=g.previousNode()),b&&Ys(b,!0),b},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=mu(n),a=Xs(s,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let c=a.nextNode();return c&&Ys(c,!0),c},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=mu(n),a=Xs(s,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let c=a.previousNode();return c&&Ys(c,!0),c}}}function mu(e){return e[0].parentElement}function Ap(e){let t=Mn.getTreeNode(Xt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Z5(e,t){let n=S.useRef(void 0),r=S.useRef(void 0);sn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=Dt(i?i[0]:void 0);let a=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!Ap(e)||h.isComposing)return;let m=Or(s),g=e.current;if(!g||!no(m,g))return;let b=mu(g),x=Xs(b,{tabbable:!0},g);if(!m)return;x.currentNode=m;let k=h.shiftKey?x.previousNode():x.nextNode();k||(x.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,k=h.shiftKey?x.previousNode():x.nextNode()),h.preventDefault(),k&&Ys(k,!0)},c=h=>{(!Xt||Qg(Xt,e))&&no(En(h),e.current)?(Xt=e,n.current=En(h)):Ap(e)&&!qa(En(h),e)?n.current?n.current.focus():Xt&&Xt.current&&bb(Xt.current):Ap(e)&&(n.current=En(h))},d=h=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let m=oh(),g=(m==="virtual"||m===null)&&ax()&&EE(),b=Or(s);if(!g&&b&&Ap(e)&&!qa(b,e)){Xt=e;let k=En(h);if(k&&k.isConnected){var x;n.current=k,(x=n.current)===null||x===void 0||x.focus()}else Xt.current&&bb(Xt.current)}})};return s.addEventListener("keydown",a,!1),s.addEventListener("focusin",c,!1),i?.forEach(h=>h.addEventListener("focusin",c,!1)),i?.forEach(h=>h.addEventListener("focusout",d,!1)),()=>{s.removeEventListener("keydown",a,!1),s.removeEventListener("focusin",c,!1),i?.forEach(h=>h.removeEventListener("focusin",c,!1)),i?.forEach(h=>h.removeEventListener("focusout",d,!1))}},[e,t]),sn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function IT(e){return qa(e)}function no(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function qa(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Mn.traverse(Mn.getTreeNode(t)))if(n&&no(e,n.current))return!0;return!1}function eF(e){return qa(e,Xt)}function Qg(e,t){var n;let r=(n=Mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ys(e,t=!1){if(e!=null&&!t)try{Cu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function $T(e,t=!0){let n=e[0].previousElementSibling,r=mu(e),i=Xs(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=mu(e),i=Xs(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function bb(e,t=!0){Ys($T(e,t))}function tF(e,t){const n=We.useRef(t);S.useEffect(()=>{if(n.current){Xt=e;const r=Dt(e.current?e.current[0]:void 0);!no(Or(r),Xt.current)&&e.current&&bb(e.current)}n.current=!1},[e])}function nF(e,t,n){sn(()=>{if(t||n)return;let r=e.current;const i=Dt(r?r[0]:void 0);let s=a=>{let c=En(a);no(c,e.current)?Xt=e:IT(c)||(Xt=null)};return i.addEventListener("focusin",s,!1),r?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,t,n])}function nk(e){let t=Mn.getTreeNode(Xt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function rF(e,t,n){const r=S.useRef(typeof document<"u"?Or(Dt(e.current?e.current[0]:void 0)):null);sn(()=>{let i=e.current;const s=Dt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Xt||Qg(Xt,e))&&no(Or(s),e.current)&&(Xt=e)};return s.addEventListener("focusin",a,!1),i?.forEach(c=>c.addEventListener("focusin",a,!1)),()=>{s.removeEventListener("focusin",a,!1),i?.forEach(c=>c.removeEventListener("focusin",a,!1))}},[e,n]),sn(()=>{const i=Dt(e.current?e.current[0]:void 0);if(!t)return;let s=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ap(e)||a.isComposing)return;let c=i.activeElement;if(!qa(c,e)||!nk(e))return;let d=Mn.getTreeNode(e);if(!d)return;let h=d.nodeToRestore,m=Xs(i.body,{tabbable:!0});m.currentNode=c;let g=a.shiftKey?m.previousNode():m.nextNode();if((!h||!h.isConnected||h===i.body)&&(h=void 0,d.nodeToRestore=void 0),(!g||!qa(g,e))&&h){m.currentNode=h;do g=a.shiftKey?m.previousNode():m.nextNode();while(qa(g,e));a.preventDefault(),a.stopPropagation(),g?Ys(g,!0):IT(h)?Ys(h,!0):c.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),sn(()=>{const i=Dt(e.current?e.current[0]:void 0);if(!t)return;let s=Mn.getTreeNode(e);if(s){var a;return s.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let c=Mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,h=Or(i);if(t&&d&&(h&&qa(h,e)||h===i.body&&nk(e))){let m=Mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let g=m.getTreeNode(e);for(;g;){if(g.nodeToRestore&&g.nodeToRestore.isConnected){rk(g.nodeToRestore);return}g=g.parent}for(g=m.getTreeNode(e);g;){if(g.scopeRef&&g.scopeRef.current&&Mn.getTreeNode(g.scopeRef)){let b=$T(g.scopeRef.current,!0);rk(b);return}g=g.parent}}})}}}},[e,t])}function rk(e){e.dispatchEvent(new CustomEvent(yb,{bubbles:!0,cancelable:!0}))&&Ys(e)}function Xs(e,t,n){let r=t?.tabbable?CM:FE,i=e?.nodeType===Node.ELEMENT_NODE?e:null,s=Dt(i),a=tM(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(c){var d;return!(t==null||(d=t.from)===null||d===void 0)&&d.contains(c)?NodeFilter.FILTER_REJECT:r(c)&&bT(c)&&(!n||no(c,n))&&(!t?.accept||t.accept(c))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}class qx{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let s=new xb({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&no(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new qx;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new xb({scopeRef:null}),this.fastMap.set(null,this.root)}}class xb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Mn=new qx;function Af(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=S.useRef({isFocused:!1,isFocusVisible:t||Gx()}),[s,a]=S.useState(!1),[c,d]=S.useState(()=>i.current.isFocused&&i.current.isFocusVisible),h=S.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),m=S.useCallback(x=>{i.current.isFocused=x,a(x),h()},[h]);U5(x=>{i.current.isFocusVisible=x,h()},[],{isTextInput:n});let{focusProps:g}=_T({isDisabled:r,onFocusChange:m}),{focusWithinProps:b}=Sv({isDisabled:!r,onFocusWithinChange:m});return{isFocused:s,isFocusVisible:c,focusProps:r?b:g}}function iF(e){let t=aF(Dt(e));t!==e&&(t&&oF(t,e),e&&sF(e,t))}function oF(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function sF(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function aF(e){let t=Or(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const c0=typeof document<"u"&&window.visualViewport,lF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let gg=0,f0;function uF(e={}){let{isDisabled:t}=e;sn(()=>{if(!t)return gg++,gg===1&&(gv()?f0=fF():f0=cF()),()=>{gg--,gg===0&&f0()}},[t])}function cF(){let e=window.innerWidth-document.documentElement.clientWidth;return Pf(e>0&&("scrollbarGutter"in document.documentElement.style?gu(document.documentElement,"scrollbarGutter","stable"):gu(document.documentElement,"paddingRight",`${e}px`)),gu(document.documentElement,"overflow","hidden"))}function fF(){let e,t,n=h=>{e=AE(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=gu(e,"overscrollBehavior","contain"))},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},i=()=>{t&&t()},s=h=>{let m=h.target;dF(m)&&(c(),m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",c0&&(c0.height{ik(m)}):c0.addEventListener("resize",()=>ik(m),{once:!0}))}))},a=null,c=()=>{if(a)return;let h=()=>{window.scrollTo(0,0)},m=window.pageXOffset,g=window.pageYOffset;a=Pf(gp(window,"scroll",h),gu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),gu(document.documentElement,"overflow","hidden"),gu(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(m,g)}),window.scrollTo(0,0)},d=Pf(gp(document,"touchstart",n,{passive:!1,capture:!0}),gp(document,"touchmove",r,{passive:!1,capture:!0}),gp(document,"touchend",i,{passive:!1,capture:!0}),gp(document,"focus",s,!0));return()=>{t?.(),a?.(),d()}}function gu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function gp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ik(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=AE(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>i+n.clientHeight&&(r.scrollTop+=s-i)}n=r.parentElement}}function dF(e){return e instanceof HTMLInputElement&&!lF.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const pF=S.createContext({});function AT(){var e;return(e=S.useContext(pF))!==null&&e!==void 0?e:{}}const wb=We.createContext(null);function hF(e){let{children:t}=e,n=S.useContext(wb),[r,i]=S.useState(0),s=S.useMemo(()=>({parent:n,modalCount:r,addModal(){i(a=>a+1),n&&n.addModal()},removeModal(){i(a=>a-1),n&&n.removeModal()}}),[n,r]);return We.createElement(wb.Provider,{value:s},t)}function mF(){let e=S.useContext(wb);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function gF(e){let{modalProviderProps:t}=mF();return We.createElement("div",{"data-overlay-container":!0,...e,...t})}function RT(e){return We.createElement(hF,null,We.createElement(gF,e))}function ok(e){let t=ph(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=AT();if(!e.portalContainer&&i&&(n=i()),We.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let s=We.createElement(RT,r);return NE.createPortal(s,n)}var LT={};LT={dismiss:"تجاهل"};var MT={};MT={dismiss:"Отхвърляне"};var DT={};DT={dismiss:"Odstranit"};var NT={};NT={dismiss:"Luk"};var FT={};FT={dismiss:"Schließen"};var OT={};OT={dismiss:"Απόρριψη"};var zT={};zT={dismiss:"Dismiss"};var jT={};jT={dismiss:"Descartar"};var BT={};BT={dismiss:"Lõpeta"};var VT={};VT={dismiss:"Hylkää"};var UT={};UT={dismiss:"Rejeter"};var KT={};KT={dismiss:"התעלם"};var WT={};WT={dismiss:"Odbaci"};var HT={};HT={dismiss:"Elutasítás"};var GT={};GT={dismiss:"Ignora"};var qT={};qT={dismiss:"閉じる"};var YT={};YT={dismiss:"무시"};var XT={};XT={dismiss:"Atmesti"};var QT={};QT={dismiss:"Nerādīt"};var JT={};JT={dismiss:"Lukk"};var ZT={};ZT={dismiss:"Negeren"};var e_={};e_={dismiss:"Zignoruj"};var t_={};t_={dismiss:"Descartar"};var n_={};n_={dismiss:"Dispensar"};var r_={};r_={dismiss:"Revocare"};var i_={};i_={dismiss:"Пропустить"};var o_={};o_={dismiss:"Zrušiť"};var s_={};s_={dismiss:"Opusti"};var a_={};a_={dismiss:"Odbaci"};var l_={};l_={dismiss:"Avvisa"};var u_={};u_={dismiss:"Kapat"};var c_={};c_={dismiss:"Скасувати"};var f_={};f_={dismiss:"取消"};var d_={};d_={dismiss:"關閉"};var p_={};p_={"ar-AE":LT,"bg-BG":MT,"cs-CZ":DT,"da-DK":NT,"de-DE":FT,"el-GR":OT,"en-US":zT,"es-ES":jT,"et-EE":BT,"fi-FI":VT,"fr-FR":UT,"he-IL":KT,"hr-HR":WT,"hu-HU":HT,"it-IT":GT,"ja-JP":qT,"ko-KR":YT,"lt-LT":XT,"lv-LV":QT,"nb-NO":JT,"nl-NL":ZT,"pl-PL":e_,"pt-BR":t_,"pt-PT":n_,"ro-RO":r_,"ru-RU":i_,"sk-SK":o_,"sl-SI":s_,"sr-SP":a_,"sv-SE":l_,"tr-TR":u_,"uk-UA":c_,"zh-CN":f_,"zh-TW":d_};const sk={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"};function vF(e={}){let{style:t,isFocusable:n}=e,[r,i]=S.useState(!1),{focusWithinProps:s}=Sv({isDisabled:!n,onFocusWithinChange:c=>i(c)}),a=S.useMemo(()=>r?t:t?{...sk,...t}:sk,[r]);return{visuallyHiddenProps:{...s,style:a}}}function yF(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:a}=vF(e);return We.createElement(n,Tn(s,a),t)}function bF(e){return e&&e.__esModule?e.default:e}function ak(e){let{onDismiss:t,...n}=e,r=KL(bF(p_),"@react-aria/overlays"),i=IE(n,r.format("dismiss")),s=()=>{t&&t()};return We.createElement(yF,null,We.createElement("button",{...i,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}let vp=new WeakMap,Yi=[];function xF(e,t=document.body){let n=new Set(e),r=new Set,i=d=>{for(let b of d.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(b);let h=b=>{if(n.has(b)||b.parentElement&&r.has(b.parentElement)&&b.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of n)if(b.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},m=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT,{acceptNode:h}),g=h(d);if(g===NodeFilter.FILTER_ACCEPT&&s(d),g!==NodeFilter.FILTER_REJECT){let b=m.nextNode();for(;b!=null;)s(b),b=m.nextNode()}},s=d=>{var h;let m=(h=vp.get(d))!==null&&h!==void 0?h:0;d.getAttribute("aria-hidden")==="true"&&m===0||(m===0&&d.setAttribute("aria-hidden","true"),r.add(d),vp.set(d,m+1))};Yi.length&&Yi[Yi.length-1].disconnect(),i(t);let a=new MutationObserver(d=>{for(let h of d)if(!(h.type!=="childList"||h.addedNodes.length===0)&&![...n,...r].some(m=>m.contains(h.target))){for(let m of h.removedNodes)m instanceof Element&&(n.delete(m),r.delete(m));for(let m of h.addedNodes)(m instanceof HTMLElement||m instanceof SVGElement)&&(m.dataset.liveAnnouncer==="true"||m.dataset.reactAriaTopLayer==="true")?n.add(m):m instanceof Element&&i(m)}});a.observe(t,{childList:!0,subtree:!0});let c={visibleNodes:n,hiddenNodes:r,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yi.push(c),()=>{a.disconnect();for(let d of r){let h=vp.get(d);h!=null&&(h===1?(d.removeAttribute("aria-hidden"),vp.delete(d)):vp.set(d,h-1))}c===Yi[Yi.length-1]?(Yi.pop(),Yi.length&&Yi[Yi.length-1].observe()):Yi.splice(Yi.indexOf(c),1)}}const h_=We.createContext(null);function wF(e){let t=ph(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=S.useState(!1),a=S.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:c}=AT();if(!e.portalContainer&&c&&(n=c()),!n)return null;let d=e.children;return e.disableFocusManagement||(d=We.createElement(Q5,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},d)),d=We.createElement(h_.Provider,{value:a},We.createElement(G5,null,d)),NE.createPortal(d,n)}function m_(){let e=S.useContext(h_),t=e?.setContain;sn(()=>{t?.(!0)},[t])}var SF=({children:e,navigate:t,disableAnimation:n,useHref:r,disableRipple:i=!1,skipFramerMotionAnimations:s=n,reducedMotion:a="never",validationBehavior:c,locale:d="en-US",labelPlacement:h,defaultDates:m,createCalendar:g,spinnerVariant:b,...x})=>{let k=e;t&&(k=M.jsx(pM,{navigate:t,useHref:r,children:k}));const P=S.useMemo(()=>(n&&s&&(fs.skipAnimations=!0),{createCalendar:g,defaultDates:m,disableAnimation:n,disableRipple:i,validationBehavior:c,labelPlacement:h,spinnerVariant:b}),[g,m?.maxDate,m?.minDate,n,i,c,h,b]);return M.jsx(CL,{value:P,children:M.jsx(NL,{locale:d,children:M.jsx(O3,{reducedMotion:a,children:M.jsx(RT,{...x,children:k})})})})};function VG(e){const t=si(),n=t?.labelPlacement;return S.useMemo(()=>{var r,i;const s=(i=(r=e.labelPlacement)!=null?r:n)!=null?i:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,n,e.label])}function kF(e){const t=si(),n=t?.labelPlacement;return S.useMemo(()=>{var r,i;const s=(i=(r=e.labelPlacement)!=null?r:n)!=null?i:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,n,e.label])}function ai(e){return S.forwardRef(e)}var rl=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((i,s)=>s in e?{...i,[s]:e[s]}:i,{});return n?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,a)=>({...s,[a]:e[a]}),{}),r]:[e,r]},CF={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},EF={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},PF={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},TF={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},_F={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},IF={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},$F={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},et={solid:CF,shadow:EF,bordered:PF,flat:TF,faded:_F,light:IF,ghost:$F},AF={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},RF={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},LF={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},MF={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},rs="250ms",DF={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":rs},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":rs},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":rs},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":rs},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":rs},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":rs},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":rs},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":rs},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":rs},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":rs}},NF={...RF,...DF,...LF,...MF,...AF},vg=["small","medium","large"],Sb={theme:{spacing:["divider"],radius:vg},classGroups:{shadow:[{shadow:vg}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...vg]}],"border-w":[{border:vg}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(NF).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},lk=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ni=e=>!e||typeof e!="object"||Object.keys(e).length===0,FF=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function g_(e,t){e.forEach(function(n){Array.isArray(n)?g_(n,t):t.push(n)})}function v_(e){let t=[];return g_(e,t),t}var y_=(...e)=>v_(e).filter(Boolean),b_=(e,t)=>{let n={},r=Object.keys(e),i=Object.keys(t);for(let s of r)if(i.includes(s)){let a=e[s],c=t[s];Array.isArray(a)||Array.isArray(c)?n[s]=y_(c,a):typeof a=="object"&&typeof c=="object"?n[s]=b_(a,c):n[s]=c+" "+a}else n[s]=e[s];for(let s of i)r.includes(s)||(n[s]=t[s]);return n},uk=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const Yx="-",OF=e=>{const t=jF(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const c=a.split(Yx);return c[0]===""&&c.length!==1&&c.shift(),x_(c,t)||zF(a)},getConflictingClassGroupIds:(a,c)=>{const d=n[a]||[];return c&&r[a]?[...d,...r[a]]:d}}},x_=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?x_(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Yx);return t.validators.find(({validator:a})=>a(s))?.classGroupId},ck=/^\[(.+)\]$/,zF=e=>{if(ck.test(e)){const t=ck.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},jF=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)kb(n[i],r,i,t);return r},kb=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:fk(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(BF(i)){kb(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,a])=>{kb(a,fk(t,s),n,r)})})},fk=(e,t)=>{let n=e;return t.split(Yx).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},BF=e=>e.isThemeGetter,VF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set(s,a){n.has(s)?n.set(s,a):i(s,a)}}},Cb="!",Eb=":",UF=Eb.length,KF=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let a=0,c=0,d=0,h;for(let k=0;kd?h-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:x}};if(t){const i=t+Eb,s=r;r=a=>a.startsWith(i)?s(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},WF=e=>e.endsWith(Cb)?e.substring(0,e.length-1):e.startsWith(Cb)?e.substring(1):e,HF=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(i.push(...s.sort(),a),s=[]):s.push(a)}),i.push(...s.sort()),i}},GF=e=>({cache:VF(e.cacheSize),parseClassName:KF(e),sortModifiers:HF(e),...OF(e)}),qF=/\s+/,YF=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],c=e.trim().split(qF);let d="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:g,modifiers:b,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:P}=n(m);if(g){d=m+(d.length>0?" "+d:d);continue}let _=!!P,T=r(_?k.substring(0,P):k);if(!T){if(!_){d=m+(d.length>0?" "+d:d);continue}if(T=r(k),!T){d=m+(d.length>0?" "+d:d);continue}_=!1}const $=s(b).join(":"),L=x?$+Cb:$,z=L+T;if(a.includes(z))continue;a.push(z);const K=i(T,_);for(let D=0;D0?" "+d:d)}return d};function XF(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rg(m),e());return n=GF(h),r=n.cache.get,i=n.cache.set,s=c,c(d)}function c(d){const h=r(d);if(h)return h;const m=YF(d,n);return i(d,m),m}return function(){return s(XF.apply(null,arguments))}}const Zn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},S_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QF=/^\d+\/\d+$/,JF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sf=e=>QF.test(e),yt=e=>!!e&&!Number.isNaN(Number(e)),su=e=>!!e&&Number.isInteger(Number(e)),dk=e=>e.endsWith("%")&&yt(e.slice(0,-1)),Ka=e=>JF.test(e),rO=()=>!0,iO=e=>ZF.test(e)&&!eO.test(e),Xx=()=>!1,oO=e=>tO.test(e),sO=e=>nO.test(e),aO=e=>!ze(e)&&!je(e),lO=e=>Of(e,P_,Xx),ze=e=>S_.test(e),au=e=>Of(e,T_,iO),d0=e=>Of(e,bO,yt),uO=e=>Of(e,C_,Xx),cO=e=>Of(e,E_,sO),fO=e=>Of(e,Xx,oO),je=e=>k_.test(e),yg=e=>zf(e,T_),dO=e=>zf(e,xO),pO=e=>zf(e,C_),hO=e=>zf(e,P_),mO=e=>zf(e,E_),gO=e=>zf(e,wO,!0),Of=(e,t,n)=>{const r=S_.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zf=(e,t,n=!1)=>{const r=k_.exec(e);return r?r[1]?t(r[1]):n:!1},C_=e=>e==="position",vO=new Set(["image","url"]),E_=e=>vO.has(e),yO=new Set(["length","size","percentage"]),P_=e=>yO.has(e),T_=e=>e==="length",bO=e=>e==="number",xO=e=>e==="family-name",wO=e=>e==="shadow",Tb=()=>{const e=Zn("color"),t=Zn("font"),n=Zn("text"),r=Zn("font-weight"),i=Zn("tracking"),s=Zn("leading"),a=Zn("breakpoint"),c=Zn("container"),d=Zn("spacing"),h=Zn("radius"),m=Zn("shadow"),g=Zn("inset-shadow"),b=Zn("drop-shadow"),x=Zn("blur"),k=Zn("perspective"),P=Zn("aspect"),_=Zn("ease"),T=Zn("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],D=()=>[je,ze,d],J=()=>[sf,"full","auto",...D()],re=()=>[su,"none","subgrid",je,ze],le=()=>["auto",{span:["full",su,je,ze]},je,ze],j=()=>[su,"auto",je,ze],B=()=>["auto","min","max","fr",je,ze],Y=()=>["start","end","center","between","around","evenly","stretch","baseline"],te=()=>["start","end","center","stretch"],G=()=>["auto",...D()],ce=()=>[sf,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],Z=()=>[e,je,ze],q=()=>[dk,au],V=()=>["","none","full",h,je,ze],se=()=>["",yt,yg,au],R=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>["","none",x,je,ze],O=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",je,ze],me=()=>["none",yt,je,ze],Ce=()=>["none",yt,je,ze],ye=()=>[yt,je,ze],Fe=()=>[sf,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ka],breakpoint:[Ka],color:[rO],container:[Ka],"drop-shadow":[Ka],ease:["in","out","in-out"],font:[aO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ka],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ka],shadow:[Ka],spacing:["px",yt],text:[Ka],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",sf,ze,je,P]}],container:["container"],columns:[{columns:[yt,ze,je,c]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),ze,je]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[su,"auto",je,ze]}],basis:[{basis:[sf,"full","auto",c,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[yt,sf,"auto","initial","none",ze]}],grow:[{grow:["",yt,je,ze]}],shrink:[{shrink:["",yt,je,ze]}],order:[{order:[su,"first","last","none",je,ze]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...te(),"baseline"]}],"align-self":[{self:["auto",...te(),"baseline"]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],w:[{w:[c,"screen",...ce()]}],"min-w":[{"min-w":[c,"screen","none",...ce()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...ce()]}],h:[{h:["screen",...ce()]}],"min-h":[{"min-h":["screen","none",...ce()]}],"max-h":[{"max-h":["screen",...ce()]}],"font-size":[{text:["base",n,yg,au]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,je,d0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dk,ze]}],"font-family":[{font:[dO,ze,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,je,ze]}],"line-clamp":[{"line-clamp":[yt,"none",je,d0]}],leading:[{leading:[s,...D()]}],"list-image":[{"list-image":["none",je,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:[yt,"from-font","auto",je,au]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[yt,"auto",je,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",je,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),pO,uO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",hO,lO]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},su,je,ze],radial:["",je,ze],conic:[su,je,ze]},mO,cO]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...R(),"hidden","none"]}],"divide-style":[{divide:[...R(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...R(),"none","hidden"]}],"outline-offset":[{"outline-offset":[yt,je,ze]}],"outline-w":[{outline:["",yt,yg,au]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,gO,fO]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",je,ze,g]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[yt,au]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":Z()}],opacity:[{opacity:[yt,je,ze]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none",je,ze]}],blur:[{blur:ie()}],brightness:[{brightness:[yt,je,ze]}],contrast:[{contrast:[yt,je,ze]}],"drop-shadow":[{"drop-shadow":["","none",b,je,ze]}],grayscale:[{grayscale:["",yt,je,ze]}],"hue-rotate":[{"hue-rotate":[yt,je,ze]}],invert:[{invert:["",yt,je,ze]}],saturate:[{saturate:[yt,je,ze]}],sepia:[{sepia:["",yt,je,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",je,ze]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[yt,je,ze]}],"backdrop-contrast":[{"backdrop-contrast":[yt,je,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",yt,je,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[yt,je,ze]}],"backdrop-invert":[{"backdrop-invert":["",yt,je,ze]}],"backdrop-opacity":[{"backdrop-opacity":[yt,je,ze]}],"backdrop-saturate":[{"backdrop-saturate":[yt,je,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",yt,je,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",je,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[yt,"initial",je,ze]}],ease:[{ease:["linear","initial",_,je,ze]}],delay:[{delay:[yt,je,ze]}],animate:[{animate:["none",T,je,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,je,ze]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[je,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fe()}],"translate-x":[{"translate-x":Fe()}],"translate-y":[{"translate-y":Fe()}],"translate-z":[{"translate-z":Fe()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",je,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",je,ze]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[yt,yg,au,d0]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},SO=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:s={}})=>(Rp(e,"cacheSize",t),Rp(e,"prefix",n),Rp(e,"experimentalParseClassName",r),bg(e.theme,s.theme),bg(e.classGroups,s.classGroups),bg(e.conflictingClassGroups,s.conflictingClassGroups),bg(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Rp(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),xg(e.theme,i.theme),xg(e.classGroups,i.classGroups),xg(e.conflictingClassGroups,i.conflictingClassGroups),xg(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),__(e,i,"orderSensitiveModifiers"),e),Rp=(e,t,n)=>{n!==void 0&&(e[t]=n)},bg=(e,t)=>{if(t)for(const n in t)Rp(e,n,t[n])},xg=(e,t)=>{if(t)for(const n in t)__(e,t,n)},__=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},I_=(e,...t)=>typeof e=="function"?Pb(Tb,e,...t):Pb(()=>SO(Tb(),e),...t),kO=Pb(Tb);var CO={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},$_=e=>e||void 0,sh=(...e)=>$_(v_(e).filter(Boolean).join(" ")),p0=null,qs={},_b=!1,yp=(...e)=>t=>t.twMerge?((!p0||_b)&&(_b=!1,p0=ni(qs)?kO:I_({...qs,extend:{theme:qs.theme,classGroups:qs.classGroups,conflictingClassGroupModifiers:qs.conflictingClassGroupModifiers,conflictingClassGroups:qs.conflictingClassGroups,...qs.extend}})),$_(p0(sh(e)))):sh(e),pk=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=sh(e[n],t[n]):e[n]=t[n];return e},EO=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:s=[],compoundSlots:a=[],defaultVariants:c={}}=e,d={...CO,...t},h=n!=null&&n.base?sh(n.base,e?.base):e?.base,m=n!=null&&n.variants&&!ni(n.variants)?b_(i,n.variants):i,g=n!=null&&n.defaultVariants&&!ni(n.defaultVariants)?{...n.defaultVariants,...c}:c;!ni(d.twMergeConfig)&&!FF(d.twMergeConfig,qs)&&(_b=!0,qs=d.twMergeConfig);let b=ni(n?.slots),x=ni(r)?{}:{base:sh(e?.base,b&&n?.base),...r},k=b?x:pk({...n?.slots},ni(x)?{base:e?.base}:x),P=ni(n?.compoundVariants)?s:y_(n?.compoundVariants,s),_=$=>{if(ni(m)&&ni(r)&&b)return yp(h,$?.class,$?.className)(d);if(P&&!Array.isArray(P))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof P}`);if(a&&!Array.isArray(a))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof a}`);let L=(Y,te,G=[],ce)=>{let Z=G;if(typeof te=="string")Z=Z.concat(uk(te).split(" ").map(q=>`${Y}:${q}`));else if(Array.isArray(te))Z=Z.concat(te.reduce((q,V)=>q.concat(`${Y}:${V}`),[]));else if(typeof te=="object"&&typeof ce=="string"){for(let q in te)if(te.hasOwnProperty(q)&&q===ce){let V=te[q];if(V&&typeof V=="string"){let se=uk(V);Z[ce]?Z[ce]=Z[ce].concat(se.split(" ").map(R=>`${Y}:${R}`)):Z[ce]=se.split(" ").map(R=>`${Y}:${R}`)}else Array.isArray(V)&&V.length>0&&(Z[ce]=V.reduce((se,R)=>se.concat(`${Y}:${R}`),[]))}}return Z},z=(Y,te=m,G=null,ce=null)=>{var Z;let q=te[Y];if(!q||ni(q))return null;let V=(Z=ce?.[Y])!=null?Z:$?.[Y];if(V===null)return null;let se=lk(V),R=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,U=g?.[Y],ie=[];if(typeof se=="object"&&R)for(let[Ce,ye]of Object.entries(se)){let Fe=q[ye];if(Ce==="initial"){U=ye;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(Ce)||(ie=L(Ce,Fe,ie,G))}let O=se!=null&&typeof se!="object"?se:lk(U),me=q[O||"false"];return typeof ie=="object"&&typeof G=="string"&&ie[G]?pk(ie,me):ie.length>0?(ie.push(me),G==="base"?ie.join(" "):ie):me},K=()=>m?Object.keys(m).map(Y=>z(Y,m)):null,D=(Y,te)=>{if(!m||typeof m!="object")return null;let G=new Array;for(let ce in m){let Z=z(ce,m,Y,te),q=Y==="base"&&typeof Z=="string"?Z:Z&&Z[Y];q&&(G[G.length]=q)}return G},J={};for(let Y in $)$[Y]!==void 0&&(J[Y]=$[Y]);let re=(Y,te)=>{var G;let ce=typeof $?.[Y]=="object"?{[Y]:(G=$[Y])==null?void 0:G.initial}:{};return{...g,...J,...ce,...te}},le=(Y=[],te)=>{let G=[];for(let{class:ce,className:Z,...q}of Y){let V=!0;for(let[se,R]of Object.entries(q)){let U=re(se,te)[se];if(Array.isArray(R)){if(!R.includes(U)){V=!1;break}}else{let ie=O=>O==null||O===!1;if(ie(R)&&ie(U))continue;if(U!==R){V=!1;break}}}V&&(ce&&G.push(ce),Z&&G.push(Z))}return G},j=Y=>{let te=le(P,Y);if(!Array.isArray(te))return te;let G={};for(let ce of te)if(typeof ce=="string"&&(G.base=yp(G.base,ce)(d)),typeof ce=="object")for(let[Z,q]of Object.entries(ce))G[Z]=yp(G[Z],q)(d);return G},B=Y=>{if(a.length<1)return null;let te={};for(let{slots:G=[],class:ce,className:Z,...q}of a){if(!ni(q)){let V=!0;for(let se of Object.keys(q)){let R=re(se,Y)[se];if(R===void 0||(Array.isArray(q[se])?!q[se].includes(R):q[se]!==R)){V=!1;break}}if(!V)continue}for(let V of G)te[V]=te[V]||[],te[V].push([ce,Z])}return te};if(!ni(r)||!b){let Y={};if(typeof k=="object"&&!ni(k))for(let te of Object.keys(k))Y[te]=G=>{var ce,Z;return yp(k[te],D(te,G),((ce=j(G))!=null?ce:[])[te],((Z=B(G))!=null?Z:[])[te],G?.class,G?.className)(d)};return Y}return yp(h,K(),le(P),$?.class,$?.className)(d)},T=()=>{if(!(!m||typeof m!="object"))return Object.keys(m)};return _.variantKeys=T(),_.extend=n,_.base=h,_.slots=k,_.variants=m,_.defaultVariants=g,_.compoundSlots=a,_.compoundVariants=P,_},dr=(e,t)=>{var n,r,i;return EO(e,{...t,twMerge:(n=t?.twMerge)!=null?n:!0,twMergeConfig:{...t?.twMergeConfig,theme:{...(r=t?.twMergeConfig)==null?void 0:r.theme,...Sb.theme},classGroups:{...(i=t?.twMergeConfig)==null?void 0:i.classGroups,...Sb.classGroups}}})},hk=dr({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),wh=["outline-hidden","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],A_=["outline-hidden","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],af={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},PO=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],mk=dr({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...wh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-hidden","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:et.solid.foreground},primary:{base:"before:bg-primary",content:et.solid.primary},secondary:{base:"before:bg-secondary",content:et.solid.secondary},success:{base:"before:bg-success",content:et.solid.success},warning:{base:"before:bg-warning",content:et.solid.warning},danger:{base:"before:bg-danger",content:et.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]});dr({slots:{base:"flex flex-col gap-2 w-full",label:"",labelWrapper:"flex justify-between",value:"",track:"z-0 relative bg-default-300/50 overflow-hidden rtl:rotate-180",indicator:"h-full"},variants:{color:{default:{indicator:"bg-default-400"},primary:{indicator:"bg-primary"},secondary:{indicator:"bg-secondary"},success:{indicator:"bg-success"},warning:{indicator:"bg-warning"},danger:{indicator:"bg-danger"}},size:{sm:{label:"text-small",value:"text-small",track:"h-1"},md:{label:"text-medium",value:"text-medium",track:"h-3"},lg:{label:"text-large",value:"text-large",track:"h-5"}},radius:{none:{track:"rounded-none",indicator:"rounded-none"},sm:{track:"rounded-small",indicator:"rounded-small"},md:{track:"rounded-medium",indicator:"rounded-medium"},lg:{track:"rounded-large",indicator:"rounded-large"},full:{track:"rounded-full",indicator:"rounded-full"}},isStriped:{true:{indicator:"bg-stripe-gradient-default bg-stripe-size"}},isIndeterminate:{true:{indicator:["absolute","w-full","origin-left","animate-indeterminate-bar"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:{},false:{indicator:"transition-transform !duration-500"}}},defaultVariants:{color:"primary",size:"md",radius:"full",isStriped:!1,isIndeterminate:!1,isDisabled:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{indicator:"!transition-none motion-reduce:transition-none"}},{color:"primary",isStriped:!0,class:{indicator:"bg-stripe-gradient-primary bg-stripe-size"}},{color:"secondary",isStriped:!0,class:{indicator:"bg-stripe-gradient-secondary bg-stripe-size"}},{color:"success",isStriped:!0,class:{indicator:"bg-stripe-gradient-success bg-stripe-size"}},{color:"warning",isStriped:!0,class:{indicator:"bg-stripe-gradient-warning bg-stripe-size"}},{color:"danger",isStriped:!0,class:{indicator:"bg-stripe-gradient-danger bg-stripe-size"}}]},{twMerge:!0});var gk=dr({slots:{base:"flex flex-col justify-center gap-1 max-w-fit items-center",label:"",svgWrapper:"relative block",svg:"z-0 relative overflow-hidden",track:"h-full stroke-default-300/50",indicator:"h-full stroke-current",value:"absolute font-normal inset-0 flex items-center justify-center"},variants:{color:{default:{svg:"text-default-400"},primary:{svg:"text-primary"},secondary:{svg:"text-secondary"},success:{svg:"text-success"},warning:{svg:"text-warning"},danger:{svg:"text-danger"}},size:{sm:{svg:"w-8 h-8",label:"text-small",value:"text-[0.5rem]"},md:{svg:"w-10 h-10",label:"text-small",value:"text-[0.55rem]"},lg:{svg:"w-12 h-12",label:"text-medium",value:"text-[0.6rem]"}},isIndeterminate:{true:{svg:"animate-spinner-ease-spin"}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:{},false:{indicator:"transition-all !duration-500"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{svg:"!transition-none motion-reduce:transition-none"}}]}),TO=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],_O=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],vk=dr({base:[],variants:{orientation:{vertical:["overflow-y-auto",...TO],horizontal:["overflow-x-auto",..._O]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),yk=dr({slots:{base:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","pointer-events-none","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2","data-[loaded=true]:pointer-events-auto","data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent","data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0"],content:["opacity-0","group-data-[loaded=true]:opacity-100"]},variants:{disableAnimation:{true:{base:"before:animate-none before:transition-none after:transition-none",content:"transition-none"},false:{base:"transition-background !duration-300",content:"transition-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{}}),bk=dr({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-hidden placeholder:text-foreground-500 focus-visible:outline-hidden","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-hidden","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...wh],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity,translate,scale]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...A_]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),xk=dr({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-hidden","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-hidden","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...wh]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),IO=dr({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),$O=dr({base:"flex flex-col gap-2 items-start"}),wk=dr({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),AO=dr({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-hidden","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...wh],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:et.solid.default},{variant:"solid",color:"primary",class:et.solid.primary},{variant:"solid",color:"secondary",class:et.solid.secondary},{variant:"solid",color:"success",class:et.solid.success},{variant:"solid",color:"warning",class:et.solid.warning},{variant:"solid",color:"danger",class:et.solid.danger},{variant:"shadow",color:"default",class:et.shadow.default},{variant:"shadow",color:"primary",class:et.shadow.primary},{variant:"shadow",color:"secondary",class:et.shadow.secondary},{variant:"shadow",color:"success",class:et.shadow.success},{variant:"shadow",color:"warning",class:et.shadow.warning},{variant:"shadow",color:"danger",class:et.shadow.danger},{variant:"bordered",color:"default",class:et.bordered.default},{variant:"bordered",color:"primary",class:et.bordered.primary},{variant:"bordered",color:"secondary",class:et.bordered.secondary},{variant:"bordered",color:"success",class:et.bordered.success},{variant:"bordered",color:"warning",class:et.bordered.warning},{variant:"bordered",color:"danger",class:et.bordered.danger},{variant:"flat",color:"default",class:et.flat.default},{variant:"flat",color:"primary",class:et.flat.primary},{variant:"flat",color:"secondary",class:et.flat.secondary},{variant:"flat",color:"success",class:et.flat.success},{variant:"flat",color:"warning",class:et.flat.warning},{variant:"flat",color:"danger",class:et.flat.danger},{variant:"faded",color:"default",class:et.faded.default},{variant:"faded",color:"primary",class:et.faded.primary},{variant:"faded",color:"secondary",class:et.faded.secondary},{variant:"faded",color:"success",class:et.faded.success},{variant:"faded",color:"warning",class:et.faded.warning},{variant:"faded",color:"danger",class:et.faded.danger},{variant:"light",color:"default",class:[et.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[et.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[et.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[et.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[et.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[et.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[et.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[et.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[et.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[et.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[et.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[et.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:af.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:af.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:af.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:af.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:af.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:af.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});dr({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var RO=dr({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...A_],hiddenInput:PO,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});dr({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var LO=dr({base:"px-2",variants:{variant:{light:"",shadow:"px-4 shadow-medium rounded-medium bg-content1",bordered:"px-4 border-medium border-divider rounded-medium",splitted:"flex flex-col gap-2"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"light",fullWidth:!0}}),MO=dr({slots:{base:"",heading:"",trigger:["flex py-4 w-full h-full gap-3 outline-hidden items-center tap-highlight-transparent",...wh],startContent:"shrink-0",indicator:"text-default-400",titleWrapper:"flex-1 flex flex-col text-start",title:"text-foreground text-medium",subtitle:"text-small text-foreground-500 font-normal",content:"py-2"},variants:{variant:{splitted:{base:"px-4 bg-content1 shadow-medium rounded-medium"}},isCompact:{true:{trigger:"py-2",title:"text-medium",subtitle:"text-small",indicator:"text-medium",content:"py-1"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},hideIndicator:{true:{indicator:"hidden"}},disableAnimation:{true:{content:"hidden data-[open=true]:block"},false:{indicator:"transition-transform",trigger:"transition-opacity"}},disableIndicatorAnimation:{true:{indicator:"transition-none"},false:{indicator:"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"}}},defaultVariants:{size:"md",radius:"lg",isDisabled:!1,hideIndicator:!1,disableIndicatorAnimation:!1}});function R_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");i=d(n.map(h=>{if(h=OO(h),h in Sk)return;Sk[h]=!0;const m=h.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":FO,m||(b.as="script"),b.crossOrigin="",b.href=h,c&&b.setAttribute("nonce",c),document.head.appendChild(b),m)return new Promise((x,k)=>{b.addEventListener("load",x),b.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return i.then(a=>{for(const c of a||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};function zO(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:a,onPressUp:c,onPressChange:d,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:b,target:x,rel:k,type:P="button"}=e,_;n==="button"?_={type:P,disabled:r}:_={role:"button",href:n==="a"&&!r?b:void 0,target:n==="a"?x:void 0,type:n==="input"?P:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?k:void 0};let{pressProps:T,isPressed:$}=Su({onPressStart:s,onPressEnd:a,onPressChange:d,onPress:i,onPressUp:c,onClick:g,isDisabled:r,preventFocusOnPress:h,ref:t}),{focusableProps:L}=xh(e,t);m&&(L.tabIndex=r?-1:L.tabIndex);let z=Tn(L,T,Iu(e,{labelable:!0}));return{isPressed:$,buttonProps:Tn(_,z,{"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"]})}}function jO(e,t,n){let{item:r,isDisabled:i}=e,s=r.key,a=t.selectionManager,c=S.useId(),d=S.useId(),h=t.disabledKeys.has(r.key)||i;S.useEffect(()=>{s===t.focusedKey&&document.activeElement!==n.current&&n.current&&Cu(n.current)},[n,s,t.focusedKey]);let m=S.useCallback(P=>{a.canSelectItem(s)&&(a.select(s,P),t.toggleKey(s))},[s,a]);const g=S.useCallback(P=>{a.selectionBehavior==="replace"&&a.extendSelection(P),a.setFocusedKey(P)},[a]),b=S.useCallback(P=>{const T={ArrowDown:()=>{const $=t.collection.getKeyAfter(s);if($&&t.disabledKeys.has($)){const L=t.collection.getKeyAfter($);L&&g(L)}else $&&g($)},ArrowUp:()=>{const $=t.collection.getKeyBefore(s);if($&&t.disabledKeys.has($)){const L=t.collection.getKeyBefore($);L&&g(L)}else $&&g($)},Home:()=>{const $=t.collection.getFirstKey();$&&g($)},End:()=>{const $=t.collection.getLastKey();$&&g($)}}[P.key];T&&(P.preventDefault(),a.canSelectItem(s)&&T(P))},[s,a]);let{buttonProps:x}=zO({id:c,elementType:"button",isDisabled:h,onKeyDown:b,onPress:m},n),k=t.selectionManager.isSelected(r.key);return{buttonProps:{...x,"aria-expanded":k,"aria-controls":k?d:void 0},regionProps:{id:d,role:"region","aria-labelledby":c}}}function kk(e){return fM()?e.altKey:e.ctrlKey}function Lg(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const L_=new WeakMap;function BO(e){let t=Ef();return L_.set(e,t),t}function UG(e){return L_.get(e)}const VO=1e3;function UO(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=S.useRef({search:"",timeout:void 0}).current,s=a=>{let c=KO(a.key);if(!(!c||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(c===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=c,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=t.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},VO)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function KO(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function WO(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:c=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:h=t.selectionBehavior==="replace",disallowTypeAhead:m=!1,shouldUseVirtualFocus:g,allowsTabNavigation:b=!1,isVirtualized:x,scrollRef:k=r,linkBehavior:P="action"}=e,{direction:_}=hh(),T=lx(),$=q=>{var V;if(q.altKey&&q.key==="Tab"&&q.preventDefault(),!(!((V=r.current)===null||V===void 0)&&V.contains(q.target)))return;const se=(_e,mt)=>{if(_e!=null){if(t.isLink(_e)&&P==="selection"&&h&&!kk(q)){DE.flushSync(()=>{t.setFocusedKey(_e,mt)});let pt=Lg(r,_e),Vt=t.getItemProps(_e);pt&&T.open(pt,q,Vt.href,Vt.routerOptions);return}if(t.setFocusedKey(_e,mt),t.isLink(_e)&&P==="override")return;q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_e):h&&!kk(q)&&t.replaceSelection(_e)}};switch(q.key){case"ArrowDown":if(n.getKeyBelow){var R,U,ie;let _e=t.focusedKey!=null?(R=n.getKeyBelow)===null||R===void 0?void 0:R.call(n,t.focusedKey):(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n);_e==null&&s&&(_e=(ie=n.getFirstKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey)),_e!=null&&(q.preventDefault(),se(_e))}break;case"ArrowUp":if(n.getKeyAbove){var O,me,Ce;let _e=t.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,t.focusedKey):(me=n.getLastKey)===null||me===void 0?void 0:me.call(n);_e==null&&s&&(_e=(Ce=n.getLastKey)===null||Ce===void 0?void 0:Ce.call(n,t.focusedKey)),_e!=null&&(q.preventDefault(),se(_e))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ye,Fe,De;let _e=t.focusedKey!=null?(ye=n.getKeyLeftOf)===null||ye===void 0?void 0:ye.call(n,t.focusedKey):null;_e==null&&s&&(_e=_==="rtl"?(Fe=n.getFirstKey)===null||Fe===void 0?void 0:Fe.call(n,t.focusedKey):(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey)),_e!=null&&(q.preventDefault(),se(_e,_==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Te,Xe,at;let _e=t.focusedKey!=null?(Te=n.getKeyRightOf)===null||Te===void 0?void 0:Te.call(n,t.focusedKey):null;_e==null&&s&&(_e=_==="rtl"?(Xe=n.getLastKey)===null||Xe===void 0?void 0:Xe.call(n,t.focusedKey):(at=n.getFirstKey)===null||at===void 0?void 0:at.call(n,t.focusedKey)),_e!=null&&(q.preventDefault(),se(_e,_==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let _e=n.getFirstKey(t.focusedKey,hp(q));t.setFocusedKey(_e),_e!=null&&(hp(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_e):h&&t.replaceSelection(_e))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let _e=n.getLastKey(t.focusedKey,hp(q));t.setFocusedKey(_e),_e!=null&&(hp(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_e):h&&t.replaceSelection(_e))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let _e=n.getKeyPageBelow(t.focusedKey);_e!=null&&(q.preventDefault(),se(_e))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let _e=n.getKeyPageAbove(t.focusedKey);_e!=null&&(q.preventDefault(),se(_e))}break;case"a":hp(q)&&t.selectionMode==="multiple"&&c!==!0&&(q.preventDefault(),t.selectAll());break;case"Escape":d==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(q.stopPropagation(),q.preventDefault(),t.clearSelection());break;case"Tab":if(!b){if(q.shiftKey)r.current.focus();else{let _e=Xs(r.current,{tabbable:!0}),mt,pt;do pt=_e.lastChild(),pt&&(mt=pt);while(pt);mt&&!mt.contains(document.activeElement)&&Za(mt)}break}}},L=S.useRef({top:0,left:0});lg(k,"scroll",x?void 0:()=>{var q,V,se,R;L.current={top:(se=(q=k.current)===null||q===void 0?void 0:q.scrollTop)!==null&&se!==void 0?se:0,left:(R=(V=k.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&R!==void 0?R:0}});let z=q=>{if(t.isFocused){q.currentTarget.contains(q.target)||t.setFocused(!1);return}if(q.currentTarget.contains(q.target)){if(t.setFocused(!0),t.focusedKey==null){var V,se;let ie=me=>{me!=null&&(t.setFocusedKey(me),h&&!t.isSelected(me)&&t.replaceSelection(me))},O=q.relatedTarget;var R,U;O&&q.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?ie((R=t.lastSelectedKey)!==null&&R!==void 0?R:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):ie((U=t.firstSelectedKey)!==null&&U!==void 0?U:(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n))}else!x&&k.current&&(k.current.scrollTop=L.current.top,k.current.scrollLeft=L.current.left);if(t.focusedKey!=null&&k.current){let ie=Lg(r,t.focusedKey);ie instanceof HTMLElement&&(!ie.contains(document.activeElement)&&!g&&Za(ie),oh()==="keyboard"&&E1(ie,{containingElement:r.current}))}}},K=q=>{q.currentTarget.contains(q.relatedTarget)||t.setFocused(!1)},D=S.useRef(!1);lg(r,wM,g?q=>{let{detail:V}=q;q.stopPropagation(),t.setFocused(!0),V?.focusStrategy==="first"&&(D.current=!0)}:void 0);let J=Bn(()=>{var q,V;let se=(V=(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n))!==null&&V!==void 0?V:null;se==null?(iF(r.current),t.collection.size>0&&(D.current=!1)):(t.setFocusedKey(se),D.current=!1)});S1(()=>{D.current&&J()},[t.collection,J]);let re=Bn(()=>{t.collection.size>0&&(D.current=!1)});S1(()=>{re()},[t.focusedKey,re]),lg(r,xM,g?q=>{var V;q.stopPropagation(),t.setFocused(!1),!((V=q.detail)===null||V===void 0)&&V.clearFocusKey&&t.setFocusedKey(null)}:void 0);const le=S.useRef(i),j=S.useRef(!1);S.useEffect(()=>{if(le.current){var q,V;let U=null;var se;i==="first"&&(U=(se=(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n))!==null&&se!==void 0?se:null);var R;i==="last"&&(U=(R=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&R!==void 0?R:null);let ie=t.selectedKeys;if(ie.size){for(let O of ie)if(t.canSelectItem(O)){U=O;break}}t.setFocused(!0),t.setFocusedKey(U),U==null&&!g&&r.current&&Cu(r.current),t.collection.size>0&&(le.current=!1,j.current=!0)}});let B=S.useRef(t.focusedKey),Y=S.useRef(null);S.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==B.current||j.current)&&k.current&&r.current){let q=oh(),V=Lg(r,t.focusedKey);if(!(V instanceof HTMLElement))return;(q==="keyboard"||j.current)&&(Y.current&&cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{k.current&&(RE(k.current,V),q!=="virtual"&&E1(V,{containingElement:r.current}))}))}!g&&t.isFocused&&t.focusedKey==null&&B.current!=null&&r.current&&Cu(r.current),B.current=t.focusedKey,j.current=!1}),S.useEffect(()=>()=>{Y.current&&cancelAnimationFrame(Y.current)},[]),lg(r,"react-aria-focus-scope-restore",q=>{q.preventDefault(),t.setFocused(!0)});let te={onKeyDown:$,onFocus:z,onBlur:K,onMouseDown(q){k.current===q.target&&q.preventDefault()}},{typeSelectProps:G}=UO({keyboardDelegate:n,selectionManager:t});m||(te=Tn(G,te));let ce;g||(ce=t.focusedKey==null?0:-1);let Z=BO(t.collection);return{collectionProps:Tn(te,{tabIndex:ce,"data-collection":Z})}}class Ck{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?Lg(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t?.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,s;return{x:(n=t?.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t?.scrollTop)!==null&&r!==void 0?r:0,width:(i=t?.offsetWidth)!==null&&i!==void 0?i:0,height:(s=t?.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class HO{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if(i?.type==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,s=this.layoutDelegate.getItemRect(i);if(!s||i==null)return null;let a=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(a,s)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!qp(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!qp(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.xs||new HO({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:c,layoutDelegate:a}),[s,a,n,r,i,c,d]),{collectionProps:m}=WO({...e,ref:i,selectionManager:t,keyboardDelegate:h});return{listProps:m}}function qO(e,t,n){let{listProps:r}=GO({...e,...t,allowsTabNavigation:!0,disallowSelectAll:!0,ref:n});return delete r.onKeyDownCapture,{accordionProps:{...r,tabIndex:void 0}}}function YO(e){var t,n;const r=si(),{ref:i,as:s,item:a,onFocusChange:c}=e,{state:d,className:h,indicator:m,children:g,title:b,subtitle:x,startContent:k,motionProps:P,focusedKey:_,variant:T,isCompact:$=!1,classNames:L={},isDisabled:z=!1,hideIndicator:K=!1,disableAnimation:D=(t=r?.disableAnimation)!=null?t:!1,keepContentMounted:J=!1,disableIndicatorAnimation:re=!1,HeadingComponent:le=s||"h2",onPress:j,onPressStart:B,onPressEnd:Y,onPressChange:te,onPressUp:G,onClick:ce,...Z}=e,q=s||"div",V=typeof q=="string",se=Zi(i),R=d.disabledKeys.has(a.key)||z,U=d.selectionManager.isSelected(a.key),{buttonProps:ie,regionProps:O}=jO({item:a,isDisabled:R},{...d,focusedKey:_},se),{onFocus:me,onBlur:Ce,...ye}=ie,{isFocused:Fe,isFocusVisible:De,focusProps:Te}=Af({autoFocus:(n=a.props)==null?void 0:n.autoFocus}),{isHovered:Xe,hoverProps:at}=Eu({isDisabled:R}),{pressProps:_e,isPressed:mt}=Su({ref:se,isDisabled:R,onPress:j,onPressStart:B,onPressEnd:Y,onPressChange:te,onPressUp:G}),pt=S.useCallback(()=>{c?.(!0,a.key)},[]),Vt=S.useCallback(()=>{c?.(!1,a.key)},[]),Ve=S.useMemo(()=>({...L}),[ta(L)]),it=S.useMemo(()=>MO({isCompact:$,isDisabled:R,hideIndicator:K,disableAnimation:D,disableIndicatorAnimation:re,variant:T}),[$,R,K,D,re,T]),Ut=tn(Ve?.base,h),er=S.useCallback((pe={})=>({"data-open":$e(U),"data-disabled":$e(R),"data-slot":"base",className:it.base({class:Ut}),...on(Cf(Z,{enabled:V}),pe)}),[Ut,V,Z,it,a.props,U,R]),an=(pe={})=>{var Se,Oe;return{ref:se,"data-open":$e(U),"data-focus":$e(Fe),"data-focus-visible":$e(De),"data-disabled":$e(R),"data-hover":$e(Xe),"data-pressed":$e(mt),"data-slot":"trigger",className:it.trigger({class:Ve?.trigger}),onFocus:d1(pt,me,Te.onFocus,Z.onFocus,(Se=a.props)==null?void 0:Se.onFocus),onBlur:d1(Vt,Ce,Te.onBlur,Z.onBlur,(Oe=a.props)==null?void 0:Oe.onBlur),...on(ye,at,_e,pe,{onClick:Ja(_e.onClick,ce)})}},_t=S.useCallback((pe={})=>({"data-open":$e(U),"data-disabled":$e(R),"data-slot":"content",className:it.content({class:Ve?.content}),...on(O,pe)}),[it,Ve,O,U,R,Ve?.content]),Rt=S.useCallback((pe={})=>({"aria-hidden":$e(!0),"data-open":$e(U),"data-disabled":$e(R),"data-slot":"indicator",className:it.indicator({class:Ve?.indicator}),...pe}),[it,Ve?.indicator,U,R,Ve?.indicator]),_n=S.useCallback((pe={})=>({"data-open":$e(U),"data-disabled":$e(R),"data-slot":"heading",className:it.heading({class:Ve?.heading}),...pe}),[it,Ve?.heading,U,R,Ve?.heading]),Cr=S.useCallback((pe={})=>({"data-open":$e(U),"data-disabled":$e(R),"data-slot":"title",className:it.title({class:Ve?.title}),...pe}),[it,Ve?.title,U,R,Ve?.title]),Nt=S.useCallback((pe={})=>({"data-open":$e(U),"data-disabled":$e(R),"data-slot":"subtitle",className:it.subtitle({class:Ve?.subtitle}),...pe}),[it,Ve,U,R,Ve?.subtitle]);return{Component:q,HeadingComponent:le,item:a,slots:it,classNames:Ve,domRef:se,indicator:m,children:g,title:b,subtitle:x,startContent:k,isOpen:U,isDisabled:R,hideIndicator:K,keepContentMounted:J,disableAnimation:D,motionProps:P,getBaseProps:er,getHeadingProps:_n,getButtonProps:an,getContentProps:_t,getIndicatorProps:Rt,getTitleProps:Cr,getSubtitleProps:Nt}}var Ek=e=>M.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:M.jsx("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),XO=e=>M.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:M.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),QO=e=>{const{isSelected:t,isIndeterminate:n,disableAnimation:r,...i}=e;return M.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...i,children:M.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},Bp={ease:[.36,.66,.4,1]},Jg={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Bp.ease}},exit:{opacity:0,transition:{duration:.3,ease:Bp.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},Pk=()=>li(()=>import("./index-DMDdYI9d.js"),[]).then(e=>e.default),M_=ai((e,t)=>{const{Component:n,HeadingComponent:r,classNames:i,slots:s,indicator:a,children:c,title:d,subtitle:h,startContent:m,isOpen:g,isDisabled:b,hideIndicator:x,keepContentMounted:k,disableAnimation:P,motionProps:_,getBaseProps:T,getHeadingProps:$,getButtonProps:L,getTitleProps:z,getSubtitleProps:K,getContentProps:D,getIndicatorProps:J}=YO({...e,ref:t}),re=h5(),j=S.useMemo(()=>typeof a=="function"?a({indicator:M.jsx(Ek,{}),isOpen:g,isDisabled:b}):a||null,[a,g,b])||M.jsx(Ek,{}),B=S.useMemo(()=>{if(P)return k?M.jsx("div",{...D(),children:c}):g&&M.jsx("div",{...D(),children:c});const Y={exit:{...Jg.collapse.exit,overflowY:"hidden"},enter:{...Jg.collapse.enter,overflowY:"unset"}};return k?M.jsx(If,{features:Pk,children:M.jsx($f.section,{animate:g?"enter":"exit",exit:"exit",initial:"exit",style:{willChange:re},variants:Y,onKeyDown:te=>{te.stopPropagation()},..._,children:M.jsx("div",{...D(),children:c})},"accordion-content")}):M.jsx(Ru,{initial:!1,children:g&&M.jsx(If,{features:Pk,children:M.jsx($f.section,{animate:"enter",exit:"exit",initial:"exit",style:{willChange:re},variants:Y,onKeyDown:te=>{te.stopPropagation()},..._,children:M.jsx("div",{...D(),children:c})},"accordion-content")})})},[g,P,k,c,_]);return M.jsxs(n,{...T(),children:[M.jsx(r,{...$(),children:M.jsxs("button",{...L(),children:[m&&M.jsx("div",{className:s.startContent({class:i?.startContent}),children:m}),M.jsxs("div",{className:s.titleWrapper({class:i?.titleWrapper}),children:[d&&M.jsx("span",{...z(),children:d}),h&&M.jsx("span",{...K(),children:h})]}),!x&&j&&M.jsx("span",{...J(),children:j})]})}),B]})});M_.displayName="HeroUI.AccordionItem";var JO=M_;class ZO{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=c=>{if(this.keyMap.set(c.key,c),c.childNodes&&(c.type==="section"||n.has(c.key)))for(let d of c.childNodes)r(d)};for(let c of t)r(c);let i=null,s=0;for(let[c,d]of this.keyMap)i?(i.nextKey=c,d.prevKey=i.key):(this.firstKey=c,d.prevKey=void 0),d.type==="item"&&(d.index=s++),i=d,i.nextKey=void 0;var a;this.lastKey=(a=i?.key)!==null&&a!==void 0?a:null}}class Co extends Set{constructor(t,n,r){super(t),t instanceof Co?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function e6(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function t6(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,a=S.useRef(!1),[,c]=S.useState(!1),d=S.useRef(null),h=S.useRef(null),[,m]=S.useState(null),g=S.useMemo(()=>Tk(e.selectedKeys),[e.selectedKeys]),b=S.useMemo(()=>Tk(e.defaultSelectedKeys,new Co),[e.defaultSelectedKeys]),[x,k]=$u(g,b,e.onSelectionChange),P=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[_,T]=S.useState(i);i==="replace"&&_==="toggle"&&typeof x=="object"&&x.size===0&&T("replace");let $=S.useRef(i);return S.useEffect(()=>{i!==$.current&&(T(i),$.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:_,setSelectionBehavior:T,get isFocused(){return a.current},setFocused(L){a.current=L,c(L)},get focusedKey(){return d.current},get childFocusStrategy(){return h.current},setFocusedKey(L,z="first"){d.current=L,h.current=z,m(L)},selectedKeys:x,setSelectedKeys(L){(r||!e6(L,x))&&k(L)},disabledKeys:P,disabledBehavior:s}}function Tk(e,t){return e?e==="all"?"all":new Co(e):t}function D_(e){return null}D_.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,a=t.title||t.children,c=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!c&&n?.suppressTextValueWarning,yield{type:"item",props:t,rendered:a,textValue:c,"aria-label":t["aria-label"],hasChildNodes:n6(t),*childNodes(){if(r)for(let d of r)yield{type:"item",value:d};else if(i){let d=[];We.Children.forEach(s,h=>{d.push({type:"item",element:h})}),yield*d}}}};function n6(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&We.Children.count(e.children)>0)}let r6=D_;class i6{build(t,n){return this.context=n,_k(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(We.isValidElement(n)&&n.type===We.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];We.Children.forEach(n,a=>{a&&i.push(a)});let s=0;for(let a of i){let c=this.getFullNode({element:a,index:s},{});for(let d of c)s++,yield d}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let s=n.value;if(s!=null){var a;let c=(a=s.key)!==null&&a!==void 0?a:s.id;if(c==null)throw new Error("No key found for item");return c}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(We.isValidElement(t.element)&&t.element.type===We.Fragment){let _=[];We.Children.forEach(t.element.props.children,$=>{_.push($)});var s;let T=(s=t.index)!==null&&s!==void 0?s:0;for(const $ of _)yield*this.getFullNode({element:$,index:T++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let _=this.cache.get(t.value);if(_&&(!_.shouldInvalidate||!_.shouldInvalidate(this.context))){_.index=t.index,_.parentKey=i?i.key:null,yield _;return}a=n.renderer(t.value)}if(We.isValidElement(a)){let _=a.type;if(typeof _!="function"&&typeof _.getCollectionNode!="function"){let z=a.type;throw new Error(`Unknown element <${z}> in collection.`)}let T=_.getCollectionNode(a.props,this.context);var c;let $=(c=t.index)!==null&&c!==void 0?c:0,L=T.next();for(;!L.done&&L.value;){let z=L.value;t.index=$;var d;let K=(d=z.key)!==null&&d!==void 0?d:null;K==null&&(K=z.element?null:this.getKey(a,t,n,r));let J=[...this.getFullNode({...z,key:K,index:$,wrapper:o6(t.wrapper,z.wrapper)},this.getChildState(n,z),r?`${r}${a.key}`:a.key,i)];for(let re of J){var h,m;re.value=(m=(h=z.value)!==null&&h!==void 0?h:t.value)!==null&&m!==void 0?m:null,re.value&&this.cache.set(re.value,re);var g;if(t.type&&re.type!==t.type)throw new Error(`Unsupported type <${h0(re.type)}> in <${h0((g=i?.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${h0(t.type)}> is supported.`);$++,yield re}L=T.next(J)}return}if(t.key==null||t.type==null)return;let b=this;var x,k;let P={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(x=t.value)!==null&&x!==void 0?x:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(k=t.textValue)!==null&&k!==void 0?k:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:_k(function*(){if(!t.hasChildNodes||!t.childNodes)return;let _=0;for(let T of t.childNodes()){T.key!=null&&(T.key=`${P.key}${T.key}`);let $=b.getFullNode({...T,index:_},b.getChildState(n,T),P.key,P);for(let L of $)_++,yield L}})};yield P}constructor(){this.cache=new WeakMap}}function _k(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function o6(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function h0(e){return e[0].toUpperCase()+e.slice(1)}function s6(e,t,n){let r=S.useMemo(()=>new i6,[]),{children:i,items:s,collection:a}=e;return S.useMemo(()=>{if(a)return a;let d=r.build({children:i,items:s},n);return t(d)},[r,i,s,a,n,t])}function a6(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function l6(e){return u6(e,0)}function u6(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function KG(e){let t;for(let n of e)t=n;return t}function m0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Ik(e,t),t],i=[...Ik(e,n),n],s=r.slice(0,i.length).findIndex((a,c)=>a!==i[c]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function Ik(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}class Qx{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&m0(this.collection,i,t)<0)&&(t=i)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&m0(this.collection,i,t)>0)&&(t=i)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Co([n],n,n);else{let a=this.state.selectedKeys;var i;let c=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new Co(a,c,n);var s;for(let d of this.getKeyRange(c,(s=a.currentKey)!==null&&s!==void 0?s:n))r.delete(d);for(let d of this.getKeyRange(n,c))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?m0(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],s=t;for(;s!=null;){let a=this.collection.getItem(s);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Co(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Co([n],n,n):new Co;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Co;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);a?.type==="item"&&t.push(r);var s;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((s=(i=l6(a6(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Co)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Qx(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null}}function c6(e){let{onExpandedChange:t}=e,[n,r]=$u(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=t6(e),s=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=s6(e,S.useCallback(d=>new ZO(d,{expandedKeys:n}),[n]),null);return S.useEffect(()=>{i.focusedKey!=null&&!a.getItem(i.focusedKey)&&i.setFocusedKey(null)},[a,i.focusedKey]),{collection:a,expandedKeys:n,disabledKeys:s,toggleKey:d=>{r(f6(n,d))},setExpandedKeys:r,selectionManager:new Qx(a,i)}}function f6(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function d6(e){var t;const n=si(),{ref:r,as:i,className:s,items:a,variant:c,motionProps:d,expandedKeys:h,disabledKeys:m,selectedKeys:g,children:b,defaultExpandedKeys:x,selectionMode:k="single",selectionBehavior:P="toggle",keepContentMounted:_=!1,disallowEmptySelection:T,defaultSelectedKeys:$,onExpandedChange:L,onSelectionChange:z,dividerProps:K={},isCompact:D=!1,isDisabled:J=!1,showDivider:re=!0,hideIndicator:le=!1,disableAnimation:j=(t=n?.disableAnimation)!=null?t:!1,disableIndicatorAnimation:B=!1,itemClasses:Y,...te}=e,[G,ce]=S.useState(null),Z=i||"div",q=typeof Z=="string",V=Zi(r),se=S.useMemo(()=>LO({variant:c,className:s}),[c,s]),U={children:S.useMemo(()=>{let Te=[];return We.Children.map(b,Xe=>{var at;if(We.isValidElement(Xe)&&typeof((at=Xe.props)==null?void 0:at.children)!="string"){const _e=We.cloneElement(Xe,{hasChildItems:!1});Te.push(_e)}else Te.push(Xe)}),Te},[b]),items:a},ie={expandedKeys:h,defaultExpandedKeys:x,onExpandedChange:L},O={disabledKeys:m,selectedKeys:g,selectionMode:k,selectionBehavior:P,disallowEmptySelection:T,defaultSelectedKeys:$??x,onSelectionChange:z,...U,...ie},me=c6(O);me.selectionManager.setFocusedKey=Te=>{ce(Te)};const{accordionProps:Ce}=qO({...U,...ie},me,V),ye=S.useMemo(()=>({state:me,focusedKey:G,motionProps:d,isCompact:D,isDisabled:J,hideIndicator:le,disableAnimation:j,keepContentMounted:_,disableIndicatorAnimation:B}),[G,D,J,le,g,j,_,me?.expandedKeys.values,B,me.expandedKeys.size,me.disabledKeys.size,d]),Fe=S.useCallback((Te={})=>({ref:V,className:se,"data-orientation":"vertical",...on(Ce,Cf(te,{enabled:q}),Te)}),[]),De=S.useCallback((Te,Xe)=>{Te&&ce(Xe)},[]);return{Component:Z,values:ye,state:me,focusedKey:G,getBaseProps:Fe,isSplitted:c==="splitted",classNames:se,showDivider:re,dividerProps:K,disableAnimation:j,handleFocusChanged:De,itemClasses:Y}}function p6(e){let t=Cf(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function h6(e){const{as:t,className:n,orientation:r,...i}=e;let s=t||"hr";s==="hr"&&r==="vertical"&&(s="div");const{separatorProps:a}=p6({elementType:typeof s=="string"?s:"hr",orientation:r}),c=S.useMemo(()=>IO({orientation:r,className:n}),[r,n]),d=S.useCallback((h={})=>({className:c,role:"separator","data-orientation":r,...a,...i,...h}),[c,r,a,i]);return{Component:s,getDividerProps:d}}var N_=ai((e,t)=>{const{Component:n,getDividerProps:r}=h6({...e});return M.jsx(n,{ref:t,...r()})});N_.displayName="HeroUI.Divider";var m6=N_,F_=ai((e,t)=>{const{Component:n,values:r,state:i,isSplitted:s,showDivider:a,getBaseProps:c,disableAnimation:d,handleFocusChanged:h,itemClasses:m,dividerProps:g}=d6({...e,ref:t}),b=S.useCallback((k,P)=>h(k,P),[h]),x=S.useMemo(()=>[...i.collection].map((k,P)=>{const _={...m,...k.props.classNames||{}};return M.jsxs(S.Fragment,{children:[M.jsx(JO,{item:k,variant:e.variant,onFocusChange:b,...r,...k.props,classNames:_}),!k.props.hidden&&!s&&a&&P{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},v6=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],WG=(e,t)=>{if(t.includes("-")){const[n]=t.split("-");if(n.includes(e))return!1}return!0},Ak=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},y6=r6,bp=y6,Sh=globalThis?.document?S.useLayoutEffect:S.useEffect;function b6(e={}){const{onLoad:t,onError:n,ignoreFallback:r,src:i,crossOrigin:s,srcSet:a,sizes:c,loading:d,shouldBypassImageLoad:h=!1}=e,m=xL(),g=S.useRef(m?new Image:null),[b,x]=S.useState("pending");S.useEffect(()=>{g.current&&(g.current.onload=_=>{k(),x("loaded"),t?.(_)},g.current.onerror=_=>{k(),x("failed"),n?.(_)})},[g.current]);const k=()=>{g.current&&(g.current.onload=null,g.current.onerror=null,g.current=null)},P=S.useCallback(()=>{if(!i)return"pending";if(r||h)return"loaded";const _=new Image;return _.src=i,s&&(_.crossOrigin=s),a&&(_.srcset=a),c&&(_.sizes=c),d&&(_.loading=d),g.current=_,_.complete&&_.naturalWidth?"loaded":"loading"},[i,s,a,c,t,n,d,h]);return Sh(()=>{m&&x(P())},[m,P]),r?"loaded":b}var[HG,x6]=dv({name:"ButtonGroupContext",strict:!1});function O_(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:a,onPressUp:c,onPressChange:d,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:b,target:x,rel:k,type:P="button",allowTextSelectionOnPress:_}=e,T;n==="button"?T={type:P,disabled:r}:T={role:"button",href:n==="a"&&!r?b:void 0,target:n==="a"?x:void 0,type:n==="input"?P:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?k:void 0};let{pressProps:$,isPressed:L}=Su({onClick:g,onPressStart:s,onPressEnd:a,onPressUp:c,onPressChange:d,onPress:i,isDisabled:r,preventFocusOnPress:h,allowTextSelectionOnPress:_,ref:t}),{focusableProps:z}=xh(e,t);m&&(z.tabIndex=r?-1:z.tabIndex);let K=Tn(z,$,Iu(e,{labelable:!0}));return{isPressed:L,buttonProps:Tn(T,K,{"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"]})}}var w6=()=>li(()=>import("./index-DMDdYI9d.js"),[]).then(e=>e.default),z_=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:i,onClear:s}=e;return M.jsx(M.Fragment,{children:t.map(a=>{const c=mL(.01*a.size,.2,a.size>100?.75:.5);return M.jsx(If,{features:w6,children:M.jsx(Ru,{mode:"popLayout",children:M.jsx($f.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:a.y,left:a.x,width:`${a.size}px`,height:`${a.size}px`,...i},transition:{duration:c},onAnimationComplete:()=>{s(a.key)},...n})})},a.key)})})};z_.displayName="HeroUI.Ripple";var S6=z_;function k6(e={}){const[t,n]=S.useState([]),r=S.useCallback(s=>{const a=s.target,c=Math.max(a.clientWidth,a.clientHeight);n(d=>[...d,{key:hL(d.length.toString()),size:c,x:s.x-c/2,y:s.y-c/2}])},[]),i=S.useCallback(s=>{n(a=>a.filter(c=>c.key!==s))},[]);return{ripples:t,onClear:i,onPress:r,...e}}function C6(e){var t,n,r,i,s,a,c,d,h;const m=x6(),g=si(),b=!!m,{ref:x,as:k,children:P,startContent:_,endContent:T,autoFocus:$,className:L,spinner:z,isLoading:K=!1,disableRipple:D=!1,fullWidth:J=(t=m?.fullWidth)!=null?t:!1,radius:re=m?.radius,size:le=(n=m?.size)!=null?n:"md",color:j=(r=m?.color)!=null?r:"default",variant:B=(i=m?.variant)!=null?i:"solid",disableAnimation:Y=(a=(s=m?.disableAnimation)!=null?s:g?.disableAnimation)!=null?a:!1,isDisabled:te=(c=m?.isDisabled)!=null?c:!1,isIconOnly:G=(d=m?.isIconOnly)!=null?d:!1,spinnerPlacement:ce="start",onPress:Z,onClick:q,...V}=e,se=k||"button",R=typeof se=="string",U=Zi(x),ie=(h=D||g?.disableRipple)!=null?h:Y,{isFocusVisible:O,isFocused:me,focusProps:Ce}=Af({autoFocus:$}),ye=te||K,Fe=S.useMemo(()=>AO({size:le,color:j,variant:B,radius:re,fullWidth:J,isDisabled:ye,isInGroup:b,disableAnimation:Y,isIconOnly:G,className:L}),[le,j,B,re,J,ye,b,G,Y,L]),{onPress:De,onClear:Te,ripples:Xe}=k6(),at=S.useCallback(Rt=>{ie||ye||Y||U.current&&De(Rt)},[ie,ye,Y,U,De]),{buttonProps:_e,isPressed:mt}=O_({elementType:k,isDisabled:ye,onPress:Ja(Z,at),onClick:q,...V},U),{isHovered:pt,hoverProps:Vt}=Eu({isDisabled:ye}),Ve=S.useCallback((Rt={})=>({"data-disabled":$e(ye),"data-focus":$e(me),"data-pressed":$e(mt),"data-focus-visible":$e(O),"data-hover":$e(pt),"data-loading":$e(K),...on(_e,Ce,Vt,Cf(V,{enabled:R}),Cf(Rt)),className:Fe}),[K,ye,me,mt,R,O,pt,_e,Ce,Vt,V,Fe]),it=Rt=>S.isValidElement(Rt)?S.cloneElement(Rt,{"aria-hidden":!0,focusable:!1}):null,Ut=it(_),er=it(T),an=S.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[le],[le]),_t=S.useCallback(()=>({ripples:Xe,onClear:Te}),[Xe,Te]);return{Component:se,children:P,domRef:U,spinner:z,styles:Fe,startContent:Ut,endContent:er,isLoading:K,spinnerPlacement:ce,spinnerSize:an,disableRipple:ie,getButtonProps:Ve,getRippleProps:_t,isIconOnly:G}}function E6(e){var t,n;const[r,i]=rl(e,hk.variantKeys),s=si(),a=(n=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?n:"default",{children:c,className:d,classNames:h,label:m,...g}=r,b=S.useMemo(()=>hk({...i}),[ta(i)]),x=tn(h?.base,d),k=m||c,P=S.useMemo(()=>k&&typeof k=="string"?k:g["aria-label"]?"":"Loading",[c,k,g["aria-label"]]),_=S.useCallback(()=>({"aria-label":P,className:b.base({class:x}),...g}),[P,b,x,g]);return{label:k,slots:b,classNames:h,variant:a,getSpinnerProps:_}}var j_=ai((e,t)=>{const{slots:n,classNames:r,label:i,variant:s,getSpinnerProps:a}=E6({...e});return s==="wave"||s==="dots"?M.jsxs("div",{ref:t,...a(),children:[M.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(3)].map((c,d)=>M.jsx("i",{className:n.dots({class:r?.dots}),style:{"--dot-index":d}},`dot-${d}`))}),i&&M.jsx("span",{className:n.label({class:r?.label}),children:i})]}):s==="simple"?M.jsxs("div",{ref:t,...a(),children:[M.jsxs("svg",{className:n.wrapper({class:r?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[M.jsx("circle",{className:n.circle1({class:r?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),M.jsx("path",{className:n.circle2({class:r?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),i&&M.jsx("span",{className:n.label({class:r?.label}),children:i})]}):s==="spinner"?M.jsxs("div",{ref:t,...a(),children:[M.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(12)].map((c,d)=>M.jsx("i",{className:n.spinnerBars({class:r?.spinnerBars}),style:{"--bar-index":d}},`star-${d}`))}),i&&M.jsx("span",{className:n.label({class:r?.label}),children:i})]}):M.jsxs("div",{ref:t,...a(),children:[M.jsxs("div",{className:n.wrapper({class:r?.wrapper}),children:[M.jsx("i",{className:n.circle1({class:r?.circle1})}),M.jsx("i",{className:n.circle2({class:r?.circle2})})]}),i&&M.jsx("span",{className:n.label({class:r?.label}),children:i})]})});j_.displayName="HeroUI.Spinner";var P6=j_,B_=ai((e,t)=>{const{Component:n,domRef:r,children:i,spinnerSize:s,spinner:a=M.jsx(P6,{color:"current",size:s}),spinnerPlacement:c,startContent:d,endContent:h,isLoading:m,disableRipple:g,getButtonProps:b,getRippleProps:x,isIconOnly:k}=C6({...e,ref:t});return M.jsxs(n,{ref:r,...b(),children:[d,m&&c==="start"&&a,m&&k?null:i,m&&c==="end"&&a,h,!g&&M.jsx(S6,{...x()})]})});B_.displayName="HeroUI.Button";var To=B_;const V_={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},U_={...V_,customError:!0,valid:!1},ff={isInvalid:!1,validationDetails:V_,validationErrors:[]},K_=S.createContext({}),Zg="__formValidationState"+Date.now();function Jx(e){if(e[Zg]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[Zg];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return T6(e)}function T6(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:a,validationBehavior:c="aria"}=e;n&&(t||(t=n==="invalid"));let d=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:U_}:null,h=S.useMemo(()=>{if(!a||i==null)return null;let j=_6(a,i);return Rk(j)},[a,i]);s?.validationDetails.valid&&(s=void 0);let m=S.useContext(K_),g=S.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>Ib(m[j])):Ib(m[r]):[],[m,r]),[b,x]=S.useState(m),[k,P]=S.useState(!1);m!==b&&(x(m),P(!1));let _=S.useMemo(()=>Rk(k?[]:g),[k,g]),T=S.useRef(ff),[$,L]=S.useState(ff),z=S.useRef(ff),K=()=>{if(!D)return;J(!1);let j=h||s||T.current;g0(j,z.current)||(z.current=j,L(j))},[D,J]=S.useState(!1);return S.useEffect(K),{realtimeValidation:d||_||h||s||ff,displayValidation:c==="native"?d||_||$:d||_||h||s||$,updateValidation(j){c==="aria"&&!g0($,j)?L(j):T.current=j},resetValidation(){let j=ff;g0(j,z.current)||(z.current=j,L(j)),c==="native"&&J(!1),P(!0)},commitValidation(){c==="native"&&J(!0),P(!0)}}}function Ib(e){return e?Array.isArray(e)?e:[e]:[]}function _6(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ib(n)}return[]}function Rk(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:U_}:null}function g0(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function W_(e,t,n){let{validationBehavior:r,focus:i}=e;sn(()=>{if(r==="native"&&n?.current&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation($6(n.current))}});let s=Bn(()=>{t.resetValidation()}),a=Bn(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&m&&A6(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),j5("keyboard")}d.preventDefault()}),c=Bn(()=>{t.commitValidation()});S.useEffect(()=>{let d=n?.current;if(!d)return;let h=d.form;return d.addEventListener("invalid",a),d.addEventListener("change",c),h?.addEventListener("reset",s),()=>{d.removeEventListener("invalid",a),d.removeEventListener("change",c),h?.removeEventListener("reset",s)}},[n,a,c,s,r])}function I6(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function $6(e){return{isInvalid:!e.validity.valid,validationDetails:I6(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function A6(e){for(let t=0;t{z.stopPropagation(),t.setSelected(z.target.checked)},{pressProps:x,isPressed:k}=Su({isDisabled:r}),{pressProps:P,isPressed:_}=Su({onPress(){var z;t.toggle(),(z=n.current)===null||z===void 0||z.focus()},isDisabled:r||i}),{focusableProps:T}=xh(e,n),$=Tn(x,T),L=Iu(e,{labelable:!0});return ME(n,t.isSelected,t.setSelected),{labelProps:Tn(P,{onClick:z=>z.preventDefault()}),inputProps:Tn(L,{"aria-invalid":g||m==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:b,disabled:r,...s==null?{}:{value:s},name:a,type:"checkbox",...$}),isSelected:t.isSelected,isPressed:k||_,isDisabled:r,isReadOnly:i,isInvalid:g||m==="invalid"}}function H_(e,t,n){let r=Jx({...e,value:t.isSelected}),{isInvalid:i,validationErrors:s,validationDetails:a}=r.displayValidation,{labelProps:c,inputProps:d,isSelected:h,isPressed:m,isDisabled:g,isReadOnly:b}=R6({...e,isInvalid:i},t,n);W_(e,r,n);let{isIndeterminate:x,isRequired:k,validationBehavior:P="aria"}=e;S.useEffect(()=>{n.current&&(n.current.indeterminate=!!x)});let{pressProps:_}=Su({isDisabled:g||b,onPress(){let{[Zg]:T}=e,{commitValidation:$}=T||r;$()}});return{labelProps:Tn(c,_),inputProps:{...d,checked:h,"aria-required":k&&P==="aria"||void 0,required:k&&P==="native"},isSelected:h,isPressed:m,isDisabled:g,isReadOnly:b,isInvalid:i,validationErrors:s,validationDetails:a}}const L6=new WeakMap;function G_(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Ef(t);let a=Ef(),c={};n&&(r=r?`${a} ${r}`:a,c={id:a,htmlFor:s==="label"?t:void 0});let d=IE({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:c,fieldProps:d}}function M6(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:a}=G_(e),c=K0([!!t,!!n,r,i]),d=K0([!!t,!!n,r,i]);return a=Tn(a,{"aria-describedby":[c,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:c},errorMessageProps:{id:d}}}function q_(e={}){let{isReadOnly:t}=e,[n,r]=$u(e.isSelected,e.defaultSelected||!1,e.onChange);function i(a){t||r(a)}function s(){t||r(!n)}return{isSelected:n,setSelected:i,toggle:s}}function D6(e,t,n){const r=q_({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(_){_?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(_)}});let{name:i,descriptionId:s,errorMessageId:a,validationBehavior:c}=L6.get(t);var d;c=(d=e.validationBehavior)!==null&&d!==void 0?d:c;let{realtimeValidation:h}=Jx({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),m=S.useRef(ff),g=()=>{t.setInvalid(e.value,h.isInvalid?h:m.current)};S.useEffect(g);let b=t.realtimeValidation.isInvalid?t.realtimeValidation:h,x=c==="native"?t.displayValidation:b;var k;let P=H_({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,isRequired:(k=e.isRequired)!==null&&k!==void 0?k:t.isRequired,validationBehavior:c,[Zg]:{realtimeValidation:b,displayValidation:x,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(_){m.current=_,g()}}},r,n);return{...P,inputProps:{...P.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,s].filter(Boolean).join(" ")||void 0}}}var Lk=Symbol("default");function N6(e){const t=S.useRef(null),n=S.useRef(void 0),r=S.useCallback(i=>{if(typeof e=="function"){const s=e,a=s(i);return()=>{typeof a=="function"?a():s(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return S.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function Zx(e,t){let n=S.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!t&&!n.slots[Lk])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=t||Lk;if(!n.slots[i])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[i]}return n}function F6(e,t,n){let r=Zx(n,e.slot)||{},{ref:i,...s}=r,a=N6(S.useMemo(()=>hE(t,i),[t,i])),c=on(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?c.style=d=>{let h=typeof s.style=="function"?s.style(d):s.style,m={...d.defaultStyle,...h},g=typeof e.style=="function"?e.style({...d,defaultStyle:m}):e.style;return{...m,...g}}:c.style={...s.style,...e.style}),[c,a]}var ev=S.createContext(null),O6=S.forwardRef(function(t,n){[t,n]=F6(t,n,ev);let{validationErrors:r,validationBehavior:i="native",children:s,className:a,...c}=t;const d=S.useMemo(()=>$O({className:a}),[a]);return M.jsx("form",{noValidate:i!=="native",...c,ref:n,className:d,children:M.jsx(ev.Provider,{value:{...t,validationBehavior:i},children:M.jsx(K_.Provider,{value:r??{},children:s})})})}),z6=S.forwardRef(function(t,n){var r,i;const s=si(),a=(i=(r=t.validationBehavior)!=null?r:s?.validationBehavior)!=null?i:"native";return M.jsx(O6,{...t,ref:n,validationBehavior:a})}),[GG,j6]=dv({name:"CheckboxGroupContext",strict:!1});function B6(e){const{isSelected:t,disableAnimation:n,...r}=e;return M.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...r,children:M.jsx("polyline",{points:"1 9 7 14 15 4"})})}function V6(e){const{isSelected:t,disableAnimation:n,...r}=e;return M.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...r,children:M.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function U6(e){const{isIndeterminate:t,...n}=e,r=t?V6:B6;return M.jsx(r,{...n})}function $b(e,t=[]){const n=S.useRef(e);return Sh(()=>{n.current=e}),S.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function K6(e={}){var t,n,r,i,s,a,c,d;const h=si(),m=j6(),{validationBehavior:g}=Zx(ev)||{},b=!!m,{as:x,ref:k,value:P="",children:_,icon:T,name:$,isRequired:L,isReadOnly:z=!1,autoFocus:K=!1,isSelected:D,size:J=(t=m?.size)!=null?t:"md",color:re=(n=m?.color)!=null?n:"primary",radius:le=m?.radius,lineThrough:j=(r=m?.lineThrough)!=null?r:!1,isDisabled:B=(i=m?.isDisabled)!=null?i:!1,disableAnimation:Y=(a=(s=m?.disableAnimation)!=null?s:h?.disableAnimation)!=null?a:!1,validationState:te,isInvalid:G=te?te==="invalid":(c=m?.isInvalid)!=null?c:!1,isIndeterminate:ce=!1,validationBehavior:Z=b?m.validationBehavior:(d=g??h?.validationBehavior)!=null?d:"native",defaultSelected:q,classNames:V,className:se,onValueChange:R,validate:U,...ie}=e,O=x||"label",me=S.useRef(null),Ce=S.useRef(null);let ye=e.onChange;b&&(ye=Ja(()=>{m.groupState.resetValidation()},ye));const Fe=S.useId(),De=S.useMemo(()=>({name:$,value:P,children:_,autoFocus:K,defaultSelected:q,isIndeterminate:ce,isRequired:L,isInvalid:G,isSelected:D,isDisabled:B,isReadOnly:z,"aria-label":pE(ie["aria-label"],_),"aria-labelledby":ie["aria-labelledby"]||Fe,onChange:R}),[$,P,_,K,q,ce,L,G,D,B,z,ie["aria-label"],ie["aria-labelledby"],Fe,R]),Te=q_(De),Xe={isInvalid:G,isRequired:L,validate:U,validationState:te,validationBehavior:Z},{inputProps:at,isSelected:_e,isDisabled:mt,isReadOnly:pt,isPressed:Vt,isInvalid:Ve}=b?D6({...De,...Xe},m.groupState,Ce):H_({...De,...Xe},Te,Ce),it=mt||pt,Ut=te==="invalid"||G||Ve,er=it?!1:Vt,{hoverProps:an,isHovered:_t}=Eu({isDisabled:at.disabled}),{focusProps:Rt,isFocused:_n,isFocusVisible:Cr}=Af({autoFocus:at.autoFocus}),Nt=S.useMemo(()=>RO({color:re,size:J,radius:le,isInvalid:Ut,lineThrough:j,isDisabled:mt,disableAnimation:Y}),[re,J,le,Ut,j,mt,Y]);Sh(()=>{if(!Ce.current)return;const Pt=!!Ce.current.checked;Te.setSelected(Pt)},[Ce.current]);const pe=$b(ye),Se=S.useCallback(Pt=>{if(pt||mt){Pt.preventDefault();return}pe?.(Pt)},[pt,mt,pe]),Oe=tn(V?.base,se),nt=S.useCallback(()=>({ref:me,className:Nt.base({class:Oe}),"data-disabled":$e(mt),"data-selected":$e(_e||ce),"data-invalid":$e(Ut),"data-hover":$e(_t),"data-focus":$e(_n),"data-pressed":$e(er),"data-readonly":$e(at.readOnly),"data-focus-visible":$e(Cr),"data-indeterminate":$e(ce),...on(an,ie)}),[Nt,Oe,mt,_e,ce,Ut,_t,_n,er,at.readOnly,Cr,an,ie]),lt=S.useCallback((Pt={})=>({...Pt,"aria-hidden":!0,className:tn(Nt.wrapper({class:tn(V?.wrapper,Pt?.className)}))}),[Nt,V?.wrapper]),Kt=S.useCallback(()=>({ref:mE(Ce,k),...on(at,Rt),className:Nt.hiddenInput({class:V?.hiddenInput}),onChange:Ja(at.onChange,Se)}),[at,Rt,Se,V?.hiddenInput]),Vn=S.useCallback(()=>({id:Fe,className:Nt.label({class:V?.label})}),[Nt,V?.label,mt,_e,Ut]),Qt=S.useCallback(()=>({isSelected:_e,isIndeterminate:ce,disableAnimation:Y,className:Nt.icon({class:V?.icon})}),[Nt,V?.icon,_e,ce,Y]);return{Component:O,icon:T,children:_,isSelected:_e,isDisabled:mt,isInvalid:Ut,isFocused:_n,isHovered:_t,isFocusVisible:Cr,getBaseProps:nt,getWrapperProps:lt,getInputProps:Kt,getLabelProps:Vn,getIconProps:Qt}}var Y_=ai((e,t)=>{const{Component:n,children:r,icon:i=M.jsx(U6,{}),getBaseProps:s,getWrapperProps:a,getInputProps:c,getIconProps:d,getLabelProps:h}=K6({...e,ref:t}),m=typeof i=="function"?i(d()):S.cloneElement(i,d());return M.jsxs(n,{...s(),children:[M.jsx("input",{...c()}),M.jsx("span",{...a(),children:m}),r&&M.jsx("span",{...h(),children:r})]})});Y_.displayName="HeroUI.Checkbox";var W6=Y_;function X_(e){let[t,n]=$u(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),i=S.useCallback(()=>{n(!1)},[n]),s=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}const H6=1500,Mk=500;let lu={},G6=0,xp=!1,Hs=null,uu=null;function q6(e={}){let{delay:t=H6,closeDelay:n=Mk}=e,{isOpen:r,open:i,close:s}=X_(e),a=S.useMemo(()=>`${++G6}`,[]),c=S.useRef(null),d=S.useRef(s),h=()=>{lu[a]=b},m=()=>{for(let k in lu)k!==a&&(lu[k](!0),delete lu[k])},g=()=>{c.current&&clearTimeout(c.current),c.current=null,m(),h(),xp=!0,i(),Hs&&(clearTimeout(Hs),Hs=null),uu&&(clearTimeout(uu),uu=null)},b=k=>{k||n<=0?(c.current&&clearTimeout(c.current),c.current=null,d.current()):c.current||(c.current=setTimeout(()=>{c.current=null,d.current()},n)),Hs&&(clearTimeout(Hs),Hs=null),xp&&(uu&&clearTimeout(uu),uu=setTimeout(()=>{delete lu[a],uu=null,xp=!1},Math.max(Mk,n)))},x=()=>{m(),h(),!r&&!Hs&&!xp?Hs=setTimeout(()=>{Hs=null,xp=!0,g()},t):r||g()};return S.useEffect(()=>{d.current=s},[s]),S.useEffect(()=>()=>{c.current&&clearTimeout(c.current),lu[a]&&delete lu[a]},[a]),{isOpen:r,open:k=>{!k&&t>0&&!c.current?x():g()},close:b}}function Y6(e,t){let n=Iu(e,{labelable:!0}),{hoverProps:r}=Eu({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:Tn(n,r,{role:"tooltip"})}}function X6(e,t,n){let{isDisabled:r,trigger:i}=e,s=Ef(),a=S.useRef(!1),c=S.useRef(!1),d=()=>{(a.current||c.current)&&t.open(c.current)},h=T=>{!a.current&&!c.current&&t.close(T)};S.useEffect(()=>{let T=$=>{n&&n.current&&$.key==="Escape"&&($.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",T,!0),()=>{document.removeEventListener("keydown",T,!0)}},[n,t]);let m=()=>{i!=="focus"&&(oh()==="pointer"?a.current=!0:a.current=!1,d())},g=()=>{i!=="focus"&&(c.current=!1,a.current=!1,h())},b=()=>{c.current=!1,a.current=!1,h(!0)},x=()=>{Gx()&&(c.current=!0,d())},k=()=>{c.current=!1,a.current=!1,h(!0)},{hoverProps:P}=Eu({isDisabled:r,onHoverStart:m,onHoverEnd:g}),{focusableProps:_}=xh({isDisabled:r,onFocus:x,onBlur:k},n);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,...Tn(_,P,{onPointerDown:b,onKeyDown:b,tabIndex:void 0})},tooltipProps:{id:s}}}var Gs=[];function Q_(e,t){const{disableOutsideEvents:n=!0,isDismissable:r=!1,isKeyboardDismissDisabled:i=!1,isOpen:s,onClose:a,shouldCloseOnBlur:c,shouldCloseOnInteractOutside:d}=e;S.useEffect(()=>(s&&Gs.push(t),()=>{const P=Gs.indexOf(t);P>=0&&Gs.splice(P,1)}),[s,t]);const h=()=>{Gs[Gs.length-1]===t&&a&&a()},m=P=>{(!d||d(P.target))&&(Gs[Gs.length-1]===t&&n&&(P.stopPropagation(),P.preventDefault()),P.pointerType!=="touch"&&h())},g=P=>{P.pointerType==="touch"&&(!d||d(P.target))&&(Gs[Gs.length-1]===t&&n&&(P.stopPropagation(),P.preventDefault()),h())},b=P=>{P.key==="Escape"&&!i&&!P.nativeEvent.isComposing&&(P.stopPropagation(),P.preventDefault(),h())};X5({isDisabled:!(r&&s),onInteractOutside:r&&s?g:void 0,onInteractOutsideStart:m,ref:t});const{focusWithinProps:x}=Sv({isDisabled:!c,onBlurWithin:P=>{!P.relatedTarget||eF(P.relatedTarget)||(!d||d(P.relatedTarget))&&h()}}),k=P=>{P.target===P.currentTarget&&P.preventDefault()};return{overlayProps:{onKeyDown:b,...x},underlayProps:{onPointerDown:k}}}function Q6(e){var t,n;const r=si(),[i,s]=rl(e,mk.variantKeys),{ref:a,as:c,isOpen:d,content:h,children:m,defaultOpen:g,onOpenChange:b,isDisabled:x,trigger:k,shouldFlip:P=!0,containerPadding:_=12,placement:T="top",delay:$=0,closeDelay:L=500,showArrow:z=!1,offset:K=7,crossOffset:D=0,isDismissable:J,shouldCloseOnBlur:re=!0,portalContainer:le,isKeyboardDismissDisabled:j=!1,updatePositionDeps:B=[],shouldCloseOnInteractOutside:Y,className:te,onClose:G,motionProps:ce,classNames:Z,...q}=i,V=c||"div",se=(n=(t=e?.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,R=q6({delay:$,closeDelay:L,isDisabled:x,defaultOpen:g,isOpen:d,onOpenChange:Ve=>{b?.(Ve),Ve||G?.()}}),U=S.useRef(null),ie=S.useRef(null),O=S.useId(),me=R.isOpen&&!x;S.useImperativeHandle(a,()=>lL(ie));const{triggerProps:Ce,tooltipProps:ye}=X6({isDisabled:x,trigger:k},R,U),{tooltipProps:Fe}=Y6({isOpen:me,...on(i,ye)},R),{overlayProps:De,placement:Te,updatePosition:Xe}=C5({isOpen:me,targetRef:U,placement:v6(T),overlayRef:ie,offset:z?K+3:K,crossOffset:D,shouldFlip:P,containerPadding:_});Sh(()=>{B.length&&Xe()},B);const{overlayProps:at}=Q_({isOpen:me,onClose:R.close,isDismissable:J,shouldCloseOnBlur:re,isKeyboardDismissDisabled:j,shouldCloseOnInteractOutside:Y},ie),_e=S.useMemo(()=>{var Ve,it,Ut;return mk({...s,disableAnimation:se,radius:(Ve=e?.radius)!=null?Ve:"md",size:(it=e?.size)!=null?it:"md",shadow:(Ut=e?.shadow)!=null?Ut:"sm"})},[ta(s),se,e?.radius,e?.size,e?.shadow]),mt=S.useCallback((Ve={},it=null)=>({...on(Ce,Ve),ref:mE(it,U),"aria-describedby":me?O:void 0}),[Ce,me,O,R]),pt=S.useCallback(()=>({ref:ie,"data-slot":"base","data-open":$e(me),"data-arrow":$e(z),"data-disabled":$e(x),"data-placement":Ak(Te||"top",T),...on(Fe,at,q),style:on(De.style,q.style,i.style),className:_e.base({class:Z?.base}),id:O}),[_e,me,z,x,Te,T,Fe,at,q,De,i,O]),Vt=S.useCallback(()=>({"data-slot":"content","data-open":$e(me),"data-arrow":$e(z),"data-disabled":$e(x),"data-placement":Ak(Te||"top",T),className:_e.content({class:tn(Z?.content,te)})}),[_e,me,z,x,Te,T,Z]);return{Component:V,content:h,children:m,isOpen:me,triggerRef:U,showArrow:z,portalContainer:le,placement:T,disableAnimation:se,isDisabled:x,motionProps:ce,getTooltipContentProps:Vt,getTriggerProps:mt,getTooltipProps:pt}}var J6=()=>li(()=>import("./index-DMDdYI9d.js"),[]).then(e=>e.default),J_=ai((e,t)=>{var n;const{Component:r,children:i,content:s,isOpen:a,portalContainer:c,placement:d,disableAnimation:h,motionProps:m,getTriggerProps:g,getTooltipProps:b,getTooltipContentProps:x}=Q6({...e,ref:t});let k;try{if(S.Children.count(i)!==1)throw new Error;if(!S.isValidElement(i))k=M.jsx("p",{...g(),children:i});else{const K=i,D=(n=K.props.ref)!=null?n:K.ref;k=S.cloneElement(K,g(K.props,D))}}catch{k=M.jsx("span",{}),vL("Tooltip must have only one child node. Please, check your code.")}const{ref:P,id:_,style:T,...$}=b(),L=M.jsx("div",{ref:P,id:_,style:T,children:M.jsx($f.div,{animate:"enter",exit:"exit",initial:"exit",variants:Jg.scaleSpring,...on(m,$),style:{...g6(d)},children:M.jsx(r,{...x(),children:s})},`${_}-tooltip-inner`)},`${_}-tooltip-content`);return M.jsxs(M.Fragment,{children:[k,h?a&&M.jsx(ok,{portalContainer:c,children:M.jsx("div",{ref:P,id:_,style:T,...$,children:M.jsx(r,{...x(),children:s})})}):M.jsx(If,{features:J6,children:M.jsx(Ru,{children:a&&M.jsx(ok,{portalContainer:c,children:L})})})]})});J_.displayName="HeroUI.Tooltip";var Z6=J_;function ez(e={}){const{rerender:t=!1,delay:n=0}=e,r=S.useRef(!1),[i,s]=S.useState(!1);return S.useEffect(()=>{r.current=!0;let a=null;return t&&(n>0?a=setTimeout(()=>{s(!0)},n):s(!0)),()=>{r.current=!1,t&&s(!1),a&&clearTimeout(a)}},[t]),[S.useCallback(()=>r.current,[]),i]}function tz(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:s,formatOptions:a={style:"percent"}}=e,c=Iu(e,{labelable:!0}),{labelProps:d,fieldProps:h}=G_({...e,labelElementType:"span"});t=jg(t,n,r);let m=(t-n)/(r-n),g=_M(a);if(!s&&!i){let b=a.style==="percent"?m:t;i=g.format(b)}return{progressBarProps:Tn(c,{...h,"aria-valuenow":s?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":s?void 0:i,role:"progressbar"}),labelProps:d}}function nz(e){var t,n,r;const i=si(),[s,a]=rl(e,gk.variantKeys),{ref:c,as:d,id:h,className:m,classNames:g,label:b,valueLabel:x,value:k=void 0,minValue:P=0,maxValue:_=100,strokeWidth:T,showValueLabel:$=!1,formatOptions:L={style:"percent"},...z}=s,K=d||"div",D=Zi(c),J=tn(g?.base,m),[,re]=ez({rerender:!0,delay:100}),le=((t=e.isIndeterminate)!=null?t:!0)&&k===void 0,j=(r=(n=e.disableAnimation)!=null?n:i?.disableAnimation)!=null?r:!1,{progressBarProps:B,labelProps:Y}=tz({id:h,label:b,value:k,minValue:P,maxValue:_,valueLabel:x,formatOptions:L,isIndeterminate:le,"aria-labelledby":e["aria-labelledby"],"aria-label":e["aria-label"]}),te=S.useMemo(()=>gk({...a,disableAnimation:j,isIndeterminate:le}),[ta(a),j,le]),G=j?!0:re,ce=16,Z=T||(e.size==="sm"?2:3),q=16-Z,V=2*q*Math.PI,se=S.useMemo(()=>G?le?.25:k?gL((k-P)/(_-P),1):0:0,[G,k,P,_,le]),R=V-se*V,U=S.useCallback((ye={})=>({ref:D,"data-indeterminate":$e(le),"data-disabled":$e(e.isDisabled),className:te.base({class:J}),...on(B,z,ye)}),[D,te,le,e.isDisabled,J,B,z]),ie=S.useCallback((ye={})=>({className:te.label({class:g?.label}),...on(Y,ye)}),[te,g,Y]),O=S.useCallback((ye={})=>({viewBox:"0 0 32 32",fill:"none",strokeWidth:Z,className:te.svg({class:g?.svg}),...ye}),[Z,te,g]),me=S.useCallback((ye={})=>({cx:ce,cy:ce,r:q,role:"presentation",strokeDasharray:`${V} ${V}`,strokeDashoffset:R,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:te.indicator({class:g?.indicator}),...ye}),[te,g,R,V,q]),Ce=S.useCallback((ye={})=>({cx:ce,cy:ce,r:q,role:"presentation",strokeDasharray:`${V} ${V}`,strokeDashoffset:0,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:te.track({class:g?.track}),...ye}),[te,g,V,q]);return{Component:K,domRef:D,slots:te,classNames:g,label:b,showValueLabel:$,getProgressBarProps:U,getLabelProps:ie,getSvgProps:O,getIndicatorProps:me,getTrackProps:Ce}}var Z_=ai((e,t)=>{const{Component:n,slots:r,classNames:i,label:s,showValueLabel:a,getProgressBarProps:c,getLabelProps:d,getSvgProps:h,getIndicatorProps:m,getTrackProps:g}=nz({ref:t,...e}),b=c();return M.jsxs(n,{...b,children:[M.jsxs("div",{className:r.svgWrapper({class:i?.svgWrapper}),children:[M.jsxs("svg",{...h(),children:[M.jsx("circle",{...g()}),M.jsx("circle",{...m()})]}),a&&M.jsx("span",{className:r.value({class:i?.value}),children:b["aria-valuetext"]})]}),s&&M.jsx("span",{...d(),children:s})]})});Z_.displayName="HeroUI.CircularProgress";var e2=Z_;function rz(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:a="text",validationBehavior:c="aria"}=e,[d,h]=$u(e.value,e.defaultValue||"",e.onChange),{focusableProps:m}=xh(e,t),g=Jx({...e,value:d}),{isInvalid:b,validationErrors:x,validationDetails:k}=g.displayValidation,{labelProps:P,fieldProps:_,descriptionProps:T,errorMessageProps:$}=M6({...e,isInvalid:b,errorMessage:e.errorMessage||x}),L=Iu(e,{labelable:!0});const z={type:a,pattern:e.pattern};return ME(t,d,h),W_(e,g,t),S.useEffect(()=>{if(t.current instanceof eo(t.current).HTMLTextAreaElement){let K=t.current;Object.defineProperty(K,"defaultValue",{get:()=>K.value,set:()=>{},configurable:!0})}},[t]),{labelProps:P,inputProps:Tn(L,n==="input"?z:void 0,{disabled:r,readOnly:s,required:i&&c==="native","aria-required":i&&c==="aria"||void 0,"aria-invalid":b||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:d,onChange:K=>h(K.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(We.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...m,..._}),descriptionProps:T,errorMessageProps:$,isInvalid:b,validationErrors:x,validationDetails:k}}function iz(e){var t,n,r,i,s,a,c;const d=si(),{validationBehavior:h}=Zx(ev)||{},[m,g]=rl(e,bk.variantKeys),{ref:b,as:x,type:k,label:P,baseRef:_,wrapperRef:T,description:$,className:L,classNames:z,autoFocus:K,startContent:D,endContent:J,onClear:re,onChange:le,validationState:j,validationBehavior:B=(t=h??d?.validationBehavior)!=null?t:"native",innerWrapperRef:Y,onValueChange:te=()=>{},...G}=m,ce=S.useCallback(Ye=>{te(Ye??"")},[te]),[Z,q]=S.useState(!1),V=x||"div",se=(r=(n=e.disableAnimation)!=null?n:d?.disableAnimation)!=null?r:!1,R=Zi(b),U=Zi(_),ie=Zi(T),O=Zi(Y),[me,Ce]=$u(m.value,(i=m.defaultValue)!=null?i:"",ce),ye=k==="file",Fe=((c=(a=(s=R?.current)==null?void 0:s.files)==null?void 0:a.length)!=null?c:0)>0,De=["date","time","month","week","range"].includes(k),Te=!fL(me)||De||Fe,Xe=Te||Z,at=k==="hidden",_e=e.isMultiline,mt=tn(z?.base,L,Te?"is-filled":""),pt=S.useCallback(()=>{var Ye;ye?R.current.value="":Ce(""),re?.(),(Ye=R.current)==null||Ye.focus()},[Ce,re,ye]);Sh(()=>{R.current&&Ce(R.current.value)},[R.current]);const{labelProps:Vt,inputProps:Ve,isInvalid:it,validationErrors:Ut,validationDetails:er,descriptionProps:an,errorMessageProps:_t}=rz({...e,validationBehavior:B,autoCapitalize:e.autoCapitalize,value:me,"aria-label":e.label?e["aria-label"]:pE(e["aria-label"],e.placeholder),inputElementType:_e?"textarea":"input",onChange:Ce},R);ye&&(delete Ve.value,delete Ve.onChange);const{isFocusVisible:Rt,isFocused:_n,focusProps:Cr}=Af({autoFocus:K,isTextInput:!0}),{isHovered:Nt,hoverProps:pe}=Eu({isDisabled:!!e?.isDisabled}),{isHovered:Se,hoverProps:Oe}=Eu({isDisabled:!!e?.isDisabled}),{focusProps:nt,isFocusVisible:lt}=Af(),{focusWithinProps:Kt}=Sv({onFocusWithinChange:q}),{pressProps:Vn}=Su({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:pt}),Qt=j==="invalid"||it,Pt=kF({labelPlacement:e.labelPlacement,label:P}),Er=typeof m.errorMessage=="function"?m.errorMessage({isInvalid:Qt,validationErrors:Ut,validationDetails:er}):m.errorMessage||Ut?.join(" "),Ft=!!re||e.isClearable,tr=!!P||!!$||!!Er,ln=!!m.placeholder,ia=!!P,ps=!!$||!!Er,ci=Pt==="outside-left",fi=Pt==="outside-top",al=Pt==="outside"||ci||fi,Mu=Pt==="inside",hs=R.current?(!R.current.value||R.current.value===""||!me||me==="")&&ln:!1,zr=!!D,ll=al?ci||fi||ln||Pt==="outside"&&zr:!1,ul=Pt==="outside"&&!ln&&!zr,Jt=S.useMemo(()=>bk({...g,isInvalid:Qt,labelPlacement:Pt,isClearable:Ft,disableAnimation:se}),[ta(g),Qt,Pt,Ft,zr,se]),ms=S.useCallback((Ye={})=>({ref:U,className:Jt.base({class:mt}),"data-slot":"base","data-filled":$e(Te||ln||zr||hs||ye),"data-filled-within":$e(Xe||ln||zr||hs||ye),"data-focus-within":$e(Z),"data-focus-visible":$e(Rt),"data-readonly":$e(e.isReadOnly),"data-focus":$e(_n),"data-hover":$e(Nt||Se),"data-required":$e(e.isRequired),"data-invalid":$e(Qt),"data-disabled":$e(e.isDisabled),"data-has-elements":$e(tr),"data-has-helper":$e(ps),"data-has-label":$e(ia),"data-has-value":$e(!hs),"data-hidden":$e(at),...Kt,...Ye}),[Jt,mt,Te,_n,Nt,Se,Qt,ps,ia,tr,hs,zr,Z,Rt,Xe,ln,Kt,at,e.isReadOnly,e.isRequired,e.isDisabled]),gs=S.useCallback((Ye={})=>({"data-slot":"label",className:Jt.label({class:z?.label}),...on(Vt,Oe,Ye)}),[Jt,Se,Vt,z?.label]),Ao=S.useCallback(Ye=>{Ye.key==="Escape"&&me&&(Ft||re)&&!e.isReadOnly&&(Ce(""),re?.())},[me,Ce,re,Ft,e.isReadOnly]),cl=S.useCallback((Ye={})=>({"data-slot":"input","data-filled":$e(Te),"data-filled-within":$e(Xe),"data-has-start-content":$e(zr),"data-has-end-content":$e(!!J),"data-type":k,className:Jt.input({class:tn(z?.input,Te?"is-filled":"",_e?"pe-0":"",k==="password"?"[&::-ms-reveal]:hidden":"")}),...on(Cr,Ve,Cf(G,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(Ve))}),Ye),"aria-readonly":$e(e.isReadOnly),onChange:Ja(Ve.onChange,le),onKeyDown:Ja(Ve.onKeyDown,Ye.onKeyDown,Ao),ref:R}),[Jt,me,Cr,Ve,G,Te,Xe,zr,J,z?.input,e.isReadOnly,e.isRequired,le,Ao]),vs=S.useCallback((Ye={})=>({ref:ie,"data-slot":"input-wrapper","data-hover":$e(Nt||Se),"data-focus-visible":$e(Rt),"data-focus":$e(_n),className:Jt.inputWrapper({class:tn(z?.inputWrapper,Te?"is-filled":"")}),...on(Ye,pe),onClick:io=>{R.current&&io.currentTarget===io.target&&R.current.focus()},style:{cursor:"text",...Ye.style}}),[Jt,Nt,Se,Rt,_n,me,z?.inputWrapper]),oa=S.useCallback((Ye={})=>({...Ye,ref:O,"data-slot":"inner-wrapper",onClick:io=>{R.current&&io.currentTarget===io.target&&R.current.focus()},className:Jt.innerWrapper({class:tn(z?.innerWrapper,Ye?.className)})}),[Jt,z?.innerWrapper]),sa=S.useCallback((Ye={})=>({...Ye,"data-slot":"main-wrapper",className:Jt.mainWrapper({class:tn(z?.mainWrapper,Ye?.className)})}),[Jt,z?.mainWrapper]),fl=S.useCallback((Ye={})=>({...Ye,"data-slot":"helper-wrapper",className:Jt.helperWrapper({class:tn(z?.helperWrapper,Ye?.className)})}),[Jt,z?.helperWrapper]),Kf=S.useCallback((Ye={})=>({...Ye,...an,"data-slot":"description",className:Jt.description({class:tn(z?.description,Ye?.className)})}),[Jt,z?.description]),Wf=S.useCallback((Ye={})=>({...Ye,..._t,"data-slot":"error-message",className:Jt.errorMessage({class:tn(z?.errorMessage,Ye?.className)})}),[Jt,_t,z?.errorMessage]),Hf=S.useCallback((Ye={})=>({...Ye,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":$e(lt),className:Jt.clearButton({class:tn(z?.clearButton,Ye?.className)}),...on(Vn,nt)}),[Jt,lt,Vn,nt,z?.clearButton]);return{Component:V,classNames:z,domRef:R,label:P,description:$,startContent:D,endContent:J,labelPlacement:Pt,isClearable:Ft,hasHelper:ps,hasStartContent:zr,isLabelOutside:ll,isOutsideLeft:ci,isOutsideTop:fi,isLabelOutsideAsPlaceholder:ul,shouldLabelBeOutside:al,shouldLabelBeInside:Mu,hasPlaceholder:ln,isInvalid:Qt,errorMessage:Er,getBaseProps:ms,getLabelProps:gs,getInputProps:cl,getMainWrapperProps:sa,getInputWrapperProps:vs,getInnerWrapperProps:oa,getHelperWrapperProps:fl,getDescriptionProps:Kf,getErrorMessageProps:Wf,getClearButtonProps:Hf}}function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{Component:d,label:h,description:m,startContent:g,endContent:b,hasHelper:x,shouldLabelBeOutside:k,shouldLabelBeInside:P,isInvalid:_,errorMessage:T,getBaseProps:$,getLabelProps:L,getInputProps:z,getInnerWrapperProps:K,getInputWrapperProps:D,getHelperWrapperProps:J,getDescriptionProps:re,getErrorMessageProps:le,isClearable:j,getClearButtonProps:B}=iz({...a,ref:c,isMultiline:!0}),[Y,te]=S.useState(t>1),[G,ce]=S.useState(!1),Z=h?M.jsx("label",{...L(),children:h}):null,q=z(),V=(me,Ce)=>{if(t===1&&te(me>=Ce.rowHeight*2),n>t){const ye=me>=n*Ce.rowHeight;ce(ye)}s?.(me,Ce)},se=i?M.jsx("textarea",{...q,style:on(q.style,e??{})}):M.jsx(wz,{...q,cacheMeasurements:r,"data-hide-scroll":$e(!G),maxRows:n,minRows:t,style:on(q.style,e??{}),onHeightChange:V}),R=S.useMemo(()=>j?M.jsx("button",{...B(),children:M.jsx(XO,{})}):null,[j,B]),U=S.useMemo(()=>g||b?M.jsxs("div",{...K(),children:[g,se,b]}):M.jsx("div",{...K(),children:se}),[g,q,b,K]),ie=_&&T,O=ie||m;return M.jsxs(d,{...$(),children:[k?Z:null,M.jsxs("div",{...D(),"data-has-multiple-rows":$e(Y),children:[P?Z:null,U,R]}),x&&O?M.jsx("div",{...J(),children:ie?M.jsx("div",{...le(),children:T}):M.jsx("div",{...re(),children:m})}):null]})});t2.displayName="HeroUI.Textarea";var Sz=t2;function kz(e,t){let{role:n="dialog"}=e,r=K0();r=e["aria-label"]?void 0:r;let i=S.useRef(!1);return S.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Cu(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Cu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),m_(),{dialogProps:{...Iu(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function Cz(e){var t,n;const r=si(),[i,s]=rl(e,wk.variantKeys),{ref:a,as:c,src:d,className:h,classNames:m,loading:g,isBlurred:b,fallbackSrc:x,isLoading:k,disableSkeleton:P=!!x,removeWrapper:_=!1,onError:T,onLoad:$,srcSet:L,sizes:z,crossOrigin:K,...D}=i,J=b6({src:d,loading:g,onError:T,onLoad:$,ignoreFallback:!1,srcSet:L,sizes:z,crossOrigin:K,shouldBypassImageLoad:c!==void 0}),re=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,le=J==="loaded"&&!k,j=J==="loading"||k,B=e.isZoomed,Y=c||"img",te=Zi(a),{w:G,h:ce}=S.useMemo(()=>({w:i.width?typeof i.width=="number"?`${i.width}px`:i.width:"fit-content",h:i.height?typeof i.height=="number"?`${i.height}px`:i.height:"auto"}),[i?.width,i?.height]),Z=(!d||!le)&&!!x,q=j&&!P,V=S.useMemo(()=>wk({...s,disableAnimation:re,showSkeleton:q}),[ta(s),re,q]),se=tn(h,m?.img),R=(O={})=>{const me=tn(se,O?.className);return{src:d,ref:te,"data-loaded":$e(le),className:V.img({class:me}),loading:g,srcSet:L,sizes:z,crossOrigin:K,...D,style:{...D?.height&&{height:ce},...O.style,...D.style}}},U=S.useCallback(()=>{const O=Z?{backgroundImage:`url(${x})`}:{};return{className:V.wrapper({class:m?.wrapper}),style:{...O,maxWidth:G}}},[V,Z,x,m?.wrapper,G]),ie=S.useCallback(()=>({src:d,"aria-hidden":$e(!0),className:V.blurredImg({class:m?.blurredImg})}),[V,d,m?.blurredImg]);return{Component:Y,domRef:te,slots:V,classNames:m,isBlurred:b,disableSkeleton:P,fallbackSrc:x,removeWrapper:_,isZoomed:B,isLoading:j,getImgProps:R,getWrapperProps:U,getBlurredImgProps:ie}}var n2=ai((e,t)=>{const{Component:n,domRef:r,slots:i,classNames:s,isBlurred:a,isZoomed:c,fallbackSrc:d,removeWrapper:h,disableSkeleton:m,getImgProps:g,getWrapperProps:b,getBlurredImgProps:x}=Cz({...e,ref:t}),k=M.jsx(n,{ref:r,...g()});if(h)return k;const P=M.jsx("div",{className:i.zoomedWrapper({class:s?.zoomedWrapper}),children:k});return a?M.jsxs("div",{...b(),children:[c?P:k,S.cloneElement(k,x())]}):c||!m||d?M.jsxs("div",{...b(),children:[" ",c?P:k]}):k});n2.displayName="HeroUI.Image";var v0=n2,[Ez,r2]=dv({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),i2=ai((e,t)=>{const{as:n,children:r,className:i,...s}=e,{slots:a,classNames:c,bodyId:d,setBodyMounted:h}=r2(),m=Zi(t),g=n||"div";return S.useEffect(()=>(h(!0),()=>h(!1)),[h]),M.jsx(g,{ref:m,className:a.body({class:tn(c?.body,i)}),id:d,...s,children:r})});i2.displayName="HeroUI.ModalBody";var Pz=i2,Tz={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:Bp.ease},opacity:{duration:.4,ease:Bp.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:Bp.ease}}},ss=typeof document<"u"&&window.visualViewport,_z=We.createContext(!1);function Iz(){return!1}function $z(){return!0}function Az(e){return()=>{}}function Rz(){return typeof We.useSyncExternalStore=="function"?We.useSyncExternalStore(Az,Iz,$z):S.useContext(_z)}function Lz(){let e=Rz(),[t,n]=S.useState(()=>e?{width:0,height:0}:jk());return S.useEffect(()=>{let r=()=>{n(i=>{let s=jk();return s.width===i.width&&s.height===i.height?i:s})};return ss?ss.addEventListener("resize",r):window.addEventListener("resize",r),()=>{ss?ss.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function jk(){return{width:ss&&ss?.width||window.innerWidth,height:ss&&ss?.height||window.innerHeight}}var Bk=()=>li(()=>import("./index-DMDdYI9d.js"),[]).then(e=>e.default),o2=e=>{const{as:t,children:n,role:r="dialog",...i}=e,{Component:s,domRef:a,slots:c,classNames:d,motionProps:h,backdrop:m,closeButton:g,hideCloseButton:b,disableAnimation:x,getDialogProps:k,getBackdropProps:P,getCloseButtonProps:_,onClose:T}=r2(),$=t||s||"div",L=Lz(),{dialogProps:z}=kz({role:r},a),K=S.isValidElement(g)?S.cloneElement(g,_()):M.jsx("button",{..._(),children:M.jsx(QO,{})}),D=S.useCallback(Y=>{Y.key==="Tab"&&Y.nativeEvent.isComposing&&(Y.stopPropagation(),Y.preventDefault())},[]),J=k(on(z,i)),re=M.jsxs($,{...J,onKeyDown:Ja(J.onKeyDown,D),children:[M.jsx(ak,{onDismiss:T}),!b&&K,typeof n=="function"?n(T):n,M.jsx(ak,{onDismiss:T})]}),le=S.useMemo(()=>m==="transparent"?null:x?M.jsx("div",{...P()}):M.jsx(If,{features:Bk,children:M.jsx($f.div,{animate:"enter",exit:"exit",initial:"exit",variants:Jg.fade,...P()})}),[m,x,P]),j={"--visual-viewport-height":L.height+"px"},B=x?M.jsx("div",{className:c.wrapper({class:d?.wrapper}),"data-slot":"wrapper",style:j,children:re}):M.jsx(If,{features:Bk,children:M.jsx($f.div,{animate:"enter",className:c.wrapper({class:d?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:Tz,...h,style:j,children:re})});return M.jsxs("div",{tabIndex:-1,children:[le,B]})};o2.displayName="HeroUI.ModalContent";var Mz=o2;function Dz(e={shouldBlockScroll:!0},t,n){let{overlayProps:r,underlayProps:i}=Q_({...e,isOpen:t.isOpen,onClose:t.close},n);return uF({isDisabled:!t.isOpen||!e.shouldBlockScroll}),m_(),S.useEffect(()=>{if(t.isOpen&&n.current)return xF([n.current])},[t.isOpen,n]),{modalProps:Tn(r),underlayProps:i}}function Nz(e){var t,n,r;const i=si(),[s,a]=rl(e,xk.variantKeys),{ref:c,as:d,className:h,classNames:m,isOpen:g,defaultOpen:b,onOpenChange:x,motionProps:k,closeButton:P,isDismissable:_=!0,hideCloseButton:T=!1,shouldBlockScroll:$=!0,portalContainer:L,isKeyboardDismissDisabled:z=!1,onClose:K,...D}=s,J=d||"section",re=Zi(c),le=S.useRef(null),[j,B]=S.useState(!1),[Y,te]=S.useState(!1),G=(n=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,ce=S.useId(),Z=S.useId(),q=S.useId(),V=X_({isOpen:g,defaultOpen:b,onOpenChange:Te=>{x?.(Te),Te||K?.()}}),{modalProps:se,underlayProps:R}=Dz({isDismissable:_,shouldBlockScroll:$,isKeyboardDismissDisabled:z},V,re),{buttonProps:U}=O_({onPress:V.close},le),{isFocusVisible:ie,focusProps:O}=Af(),me=tn(m?.base,h),Ce=S.useMemo(()=>xk({...a,disableAnimation:G}),[ta(a),G]),ye=(Te={},Xe=null)=>{var at;return{ref:hE(Xe,re),...on(se,D,Te),className:Ce.base({class:tn(me,Te.className)}),id:ce,"data-open":$e(V.isOpen),"data-dismissable":$e(_),"aria-modal":$e(!0),"data-placement":(at=e?.placement)!=null?at:"right","aria-labelledby":j?Z:void 0,"aria-describedby":Y?q:void 0}},Fe=S.useCallback((Te={})=>({className:Ce.backdrop({class:m?.backdrop}),...R,...Te}),[Ce,m,R]),De=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":$e(ie),className:Ce.closeButton({class:m?.closeButton}),...on(U,O)});return{Component:J,slots:Ce,domRef:re,headerId:Z,bodyId:q,motionProps:k,classNames:m,isDismissable:_,closeButton:P,hideCloseButton:T,portalContainer:L,shouldBlockScroll:$,backdrop:(r=e.backdrop)!=null?r:"opaque",isOpen:V.isOpen,onClose:V.close,disableAnimation:G,setBodyMounted:te,setHeaderMounted:B,getDialogProps:ye,getBackdropProps:Fe,getCloseButtonProps:De}}var s2=ai((e,t)=>{const{children:n,...r}=e,i=Nz({...r,ref:t}),s=M.jsx(wF,{portalContainer:i.portalContainer,children:n});return M.jsx(Ez,{value:i,children:i.disableAnimation&&i.isOpen?s:M.jsx(Ru,{children:i.isOpen?s:null})})});s2.displayName="HeroUI.Modal";var Fz=s2;function Oz(e={}){const{id:t,defaultOpen:n,isOpen:r,onClose:i,onOpen:s,onChange:a=()=>{}}=e,c=$b(s),d=$b(i),[h,m]=$u(r,n||!1,a),g=S.useId(),b=t||g,x=r!==void 0,k=S.useCallback(()=>{x||m(!1),d?.()},[x,d]),P=S.useCallback(()=>{x||m(!0),c?.()},[x,c]),_=S.useCallback(()=>{(h?k:P)()},[h,P,k]);return{isOpen:!!h,onOpen:P,onClose:k,onOpenChange:_,isControlled:x,getButtonProps:(T={})=>({...T,"aria-expanded":h,"aria-controls":b,onClick:Pf(T.onClick,_)}),getDisclosureProps:(T={})=>({...T,hidden:!h,id:b})}}function zz(e){var t,n;const r=si(),[i,s]=rl(e,yk.variantKeys),{as:a,children:c,isLoaded:d=!1,className:h,classNames:m,...g}=i,b=a||"div",x=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,k=S.useMemo(()=>yk({...s,disableAnimation:x}),[ta(s),x,c]),P=tn(m?.base,h);return{Component:b,children:c,slots:k,classNames:m,getSkeletonProps:($={})=>({"data-loaded":$e(d),className:k.base({class:tn(P,$?.className)}),...g}),getContentProps:($={})=>({className:k.content({class:tn(m?.content,$?.className)})})}}var a2=ai((e,t)=>{const{Component:n,children:r,getSkeletonProps:i,getContentProps:s}=zz({...e});return M.jsx(n,{ref:t,...i(),children:M.jsx("div",{...s(),children:r})})});a2.displayName="HeroUI.Skeleton";var jz=a2;function Bz(e={}){const{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:i="auto",offset:s=0,onVisibilityChange:a,updateDeps:c=[]}=e,d=S.useRef(i);S.useEffect(()=>{const h=t?.current;if(!h||!n)return;const m=(x,k,P,_,T)=>{if(i==="auto"){const $=`${_}${pL(T)}Scroll`;k&&P?(h.dataset[$]="true",h.removeAttribute(`data-${_}-scroll`),h.removeAttribute(`data-${T}-scroll`)):(h.dataset[`${_}Scroll`]=k.toString(),h.dataset[`${T}Scroll`]=P.toString(),h.removeAttribute(`data-${_}-${T}-scroll`))}else{const $=k&&P?"both":k?_:P?T:"none";$!==d.current&&(a?.($),d.current=$)}},g=()=>{var x,k;const P=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],_=h.querySelector('ul[data-slot="list"]'),T=+((x=_?.getAttribute("data-virtual-scroll-height"))!=null?x:h.scrollHeight),$=+((k=_?.getAttribute("data-virtual-scroll-top"))!=null?k:h.scrollTop);for(const{type:L,prefix:z,suffix:K}of P)if(r===L||r==="both"){const D=L==="vertical"?$>s:h.scrollLeft>s,J=L==="vertical"?$+h.clientHeight+s{["top","bottom","top-bottom","left","right","left-right"].forEach(x=>{h.removeAttribute(`data-${x}-scroll`)})};return g(),h.addEventListener("scroll",g,!0),i!=="auto"&&(b(),i==="both"?(h.dataset.topBottomScroll=String(r==="vertical"),h.dataset.leftRightScroll=String(r==="horizontal")):(h.dataset.topBottomScroll="false",h.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(x=>{h.dataset[`${x}Scroll`]=String(i===x)}))),()=>{h.removeEventListener("scroll",g,!0),b()}},[...c,n,i,r,a,t])}function Vz(e){var t;const[n,r]=rl(e,vk.variantKeys),{ref:i,as:s,children:a,className:c,style:d,size:h=40,offset:m=0,visibility:g="auto",isEnabled:b=!0,onVisibilityChange:x,...k}=n,P=s||"div",_=Zi(i);Bz({domRef:_,offset:m,visibility:g,isEnabled:b,onVisibilityChange:x,updateDeps:[a],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const T=S.useMemo(()=>vk({...r,className:c}),[ta(r),c]);return{Component:P,styles:T,domRef:_,children:a,getBaseProps:(L={})=>{var z;return{ref:_,className:T,"data-orientation":(z=e.orientation)!=null?z:"vertical",style:{"--scroll-shadow-size":`${h}px`,...d,...L.style},...k,...L}}}}var l2=ai((e,t)=>{const{Component:n,children:r,getBaseProps:i}=Vz({...e,ref:t});return M.jsx(n,{...i(),children:r})});l2.displayName="HeroUI.ScrollShadow";var u2=l2;const qG={Like:"like",Dislike:"dislike"},Uz={Start:"START"},Sf={User:"user",Assistant:"assistant"},lf={Pending:"pending",InProgress:"in_progress",Completed:"completed"};class c2{constructor(t={}){if(this.chunkQueue=new Map,this.baseUrl=t.baseUrl??"",this.auth=t.auth,this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.slice(0,-1)),!!this.baseUrl)try{new URL(this.baseUrl)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}. Please provide a valid URL.`)}}getBaseUrl(){return this.baseUrl}_buildApiUrl(t){return`${this.baseUrl}${t}`}async _makeRequest(t,n={}){const i={...{"Content-Type":"application/json"},...this.normalizeHeaders(n.headers)};this.auth?.getToken&&(i.Authorization=`Bearer ${this.auth.getToken()}`);const s=await fetch(t,{...n,headers:i,...this.auth?.credentials?{credentials:this.auth?.credentials}:{}});if(s.status===401&&this.auth?.onUnauthorized?.(),!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return s}async makeRequest(t,n){const{method:r="GET",body:i,params:s,headers:a={},...c}=n||{},d={method:r,headers:a,...c};i&&r!=="GET"&&(d.body=typeof i=="string"?i:JSON.stringify(i));let h=this._buildApiUrl(t.toString());if(s&&Object.keys(s).length>0){const g=new URLSearchParams;for(const[b,x]of Object.entries(s))x!=null&&g.append(b,String(x));h+=`?${g.toString()}`}return(await this._makeRequest(h,d)).json()}makeStreamRequest(t,n,r,i,s){let a=!1;const c=async h=>{const m=h.body?.pipeThrough(new TextDecoderStream).getReader();if(!m)throw new Error("Response body is null");let g="";for(;!a&&!i?.aborted;)try{const{value:b,done:x}=await m.read();if(x){r.onClose?.();break}g+=b;const k=g.split(`
+`);g=k.pop()??"";for(const P of k)if(P.startsWith("data: "))try{const _=P.replace("data: ","").trim(),T=JSON.parse(_);if(T.type==="chunked_content"){this.handleChunkedContent(T,r);continue}await r.onMessage(T),await new Promise($=>setTimeout($,0))}catch(_){console.error("Error parsing JSON:",_),await r.onError(new Error("Error processing server response"))}}catch(b){if(i?.aborted)return;console.error("Stream error:",b),await r.onError(new Error("Error reading stream"));break}},d=async()=>{try{const m={...{"Content-Type":"application/json",Accept:"text/event-stream"},...s};this.auth?.getToken&&(m.Authorization=`Bearer ${this.auth.getToken()}`);const g=await fetch(this._buildApiUrl(t.toString()),{method:"POST",headers:m,body:JSON.stringify(n),signal:i,...this.auth?.credentials?{credentials:this.auth?.credentials}:{}});if(g.status===401&&this.auth?.onUnauthorized?.(),!g.ok)throw new Error(`HTTP error! status: ${g.status}`);await c(g)}catch(h){if(i?.aborted)return;console.error("Request error:",h);const m=h instanceof Error?h.message:"Error connecting to server";await r.onError(new Error(m))}};try{d()}catch(h){const m=h instanceof Error?h.message:"Failed to start stream";r.onError(new Error(m))}return()=>{a=!0}}normalizeHeaders(t){return t?t instanceof Headers?Object.fromEntries(t.entries()):Array.isArray(t)?Object.fromEntries(t):t:{}}async handleChunkedContent(t,n){const i=t.content,{content_type:s,id:a,chunk_index:c,total_chunks:d,mime_type:h,data:m}=i;this.chunkQueue.has(a)||this.chunkQueue.set(a,{chunks:new Map,totalChunks:d,mimeType:h});const g=this.chunkQueue.get(a);if(g.chunks.set(c,m),g.chunks.size!==d)return;const x=Array.from({length:d},(k,P)=>g.chunks.get(P)).join("");try{atob(x)}catch(k){this.chunkQueue.delete(a),console.error("❌ Invalid base64 data: ",k),await n.onError(new Error("Error reading stream"))}if(s==="image"){const k={type:"image",content:{id:a,url:`${g.mimeType},${x}`}};await n.onMessage(k)}this.chunkQueue.delete(a)}}const f2=S.createContext(null);function Kz({children:e,...t}){const n=S.useMemo(()=>new c2(t),[t]),r=S.useMemo(()=>({client:n}),[n]);return M.jsx(f2.Provider,{value:r,children:e})}function d2(){const e=S.useContext(f2);if(!e)throw new Error("useRagbitsContext must be used within a RagbitsProvider");return e}function Wz(e,t){const{client:n}=d2(),[r,i]=S.useState(null),[s,a]=S.useState(null),[c,d]=S.useState(!1),h=S.useRef(null),m=S.useCallback(()=>{if(!h.current)return null;h.current.abort(),h.current=null,d(!1)},[]),g=S.useCallback(async(x={})=>{h.current&&c&&h.current.abort();const k=new AbortController;h.current=k,d(!0),a(null);try{const _={...{...t,...x,headers:{...t?.headers,...x.headers}},signal:k.signal},T=await n.makeRequest(e,_);return k.signal.aborted||(i(T),h.current=null),T}catch(P){if(!k.signal.aborted){const _=P instanceof Error?P:new Error("API call failed");throw a(_),h.current=null,_}throw P}finally{k.signal.aborted||d(!1)}},[n,e,t,c]),b=S.useCallback(()=>{m(),i(null),a(null),d(!1)},[m]);return{data:r,error:s,isLoading:c,call:g,reset:b,abort:m}}var Eo=(e=>(e.LIGHT="light",e.DARK="dark",e))(Eo||{});const p2=S.createContext(null),Hz="🐰",Gz="Ragbits Chat",qz="by deepsense.ai",Yz="Loading...",h2="";function Xz(){return window.matchMedia("(prefers-color-scheme: dark)").matches?Eo.DARK:Eo.LIGHT}function Vk(){const e=window.localStorage.getItem("theme");return e===Eo.DARK||e===Eo.LIGHT?e:Xz()}function Qz(e){return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}const Jz=({children:e})=>{const t=S.useSyncExternalStore(Qz,Vk,Vk),n=S.useRef(!1),r=new c2({baseUrl:h2});S.useEffect(()=>{if(n.current)return;(async()=>{try{const c=r.getBaseUrl(),d=await fetch(`${c}/api/theme`);if(d.ok){const h=await d.text(),m=document.getElementById("heroui-custom-theme");m&&m.remove();const g=document.createElement("style");g.id="heroui-custom-theme",g.textContent=h,document.head.appendChild(g),console.log("Custom HeroUI theme loaded successfully"),n.current=!0}}catch(c){console.warn("No custom theme available:",c),n.current=!0}})()},[]),S.useEffect(()=>{document.documentElement.classList.toggle("dark",t===Eo.DARK)},[t]);const i=S.useCallback(a=>{window.localStorage.setItem("theme",a),window.dispatchEvent(new Event("storage"))},[]),s=S.useMemo(()=>({theme:t,setTheme:i}),[t,i]);return M.jsx(p2.Provider,{value:s,children:e})},m2=Object.freeze({left:0,top:0,width:16,height:16}),tv=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),tw=Object.freeze({...m2,...tv}),Rb=Object.freeze({...tw,body:"",hidden:!1});function Zz(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Uk(e,t){const n=Zz(e,t);for(const r in Rb)r in tv?r in e&&!(r in n)&&(n[r]=tv[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function e8(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(a){if(n[a])return i[a]=[];if(!(a in i)){i[a]=null;const c=r[a]&&r[a].parent,d=c&&s(c);d&&(i[a]=[c].concat(d))}return i[a]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function t8(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function a(c){s=Uk(r[c]||i[c],s)}return a(t),n.forEach(a),Uk(e,s)}function g2(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=e8(e);for(const i in r){const s=r[i];s&&(t(i,t8(e,i,s)),n.push(i))}return n}const n8={provider:"",aliases:{},not_found:{},...m2};function y0(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function v2(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!y0(e,n8))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i||typeof s.body!="string"||!y0(s,Rb))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],a=s.parent;if(!i||typeof a!="string"||!n[a]&&!r[a]||!y0(s,Rb))return null}return t}const y2=/^[a-z0-9]+(-[a-z0-9]+)*$/,kv=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const c=i.pop(),d=i.pop(),h={provider:i.length>0?i[0]:r,prefix:d,name:c};return t&&!Mg(h)?null:h}const s=i[0],a=s.split("-");if(a.length>1){const c={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Mg(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!Mg(c,n)?null:c}return null},Mg=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Kk=Object.create(null);function r8(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Rf(e,t){const n=Kk[e]||(Kk[e]=Object.create(null));return n[t]||(n[t]=r8(e,t))}function b2(e,t){return v2(t)?g2(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function i8(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let ah=!1;function x2(e){return typeof e=="boolean"&&(ah=e),ah}function Wk(e){const t=typeof e=="string"?kv(e,!0,ah):e;if(t){const n=Rf(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function o8(e,t){const n=kv(e,!0,ah);if(!n)return!1;const r=Rf(n.provider,n.prefix);return t?i8(r,n.name,t):(r.missing.add(n.name),!0)}function s8(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ah&&!t&&!e.prefix){let i=!1;return v2(e)&&(e.prefix="",g2(e,(s,a)=>{o8(s,a)&&(i=!0)})),i}const n=e.prefix;if(!Mg({prefix:n,name:"a"}))return!1;const r=Rf(t,n);return!!b2(r,e)}const w2=Object.freeze({width:null,height:null}),S2=Object.freeze({...w2,...tv}),a8=/(-?[0-9.]*[0-9]+[0-9.]*)/g,l8=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Hk(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(a8);if(r===null||!r.length)return e;const i=[];let s=r.shift(),a=l8.test(s);for(;;){if(a){const c=parseFloat(s);isNaN(c)?i.push(s):i.push(Math.ceil(c*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");a=!a}}function u8(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf(""+t);if(i===-1||s===-1)break;const a=e.indexOf(">",s);if(a===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(a+1)}return{defs:n,content:e}}function c8(e,t){return e?""+e+""+t:t}function f8(e,t,n){const r=u8(e);return c8(r.defs,t+r.content+n)}const d8=e=>e==="unset"||e==="undefined"||e==="none";function p8(e,t){const n={...tw,...e},r={...S2,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(P=>{const _=[],T=P.hFlip,$=P.vFlip;let L=P.rotate;T?$?L+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):$&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let z;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:z=i.height/2+i.top,_.unshift("rotate(90 "+z.toString()+" "+z.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:z=i.width/2+i.left,_.unshift("rotate(-90 "+z.toString()+" "+z.toString()+")");break}L%2===1&&(i.left!==i.top&&(z=i.left,i.left=i.top,i.top=z),i.width!==i.height&&(z=i.width,i.width=i.height,i.height=z)),_.length&&(s=f8(s,'',""))});const a=r.width,c=r.height,d=i.width,h=i.height;let m,g;a===null?(g=c===null?"1em":c==="auto"?h:c,m=Hk(g,d/h)):(m=a==="auto"?d:a,g=c===null?Hk(m,h/d):c==="auto"?h:c);const b={},x=(P,_)=>{d8(_)||(b[P]=_.toString())};x("width",m),x("height",g);const k=[i.left,i.top,d,h];return b.viewBox=k.join(" "),{attributes:b,viewBox:k,body:s}}const h8=/\sid="(\S+)"/g,m8="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let g8=0;function v8(e,t=m8){const n=[];let r;for(;r=h8.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const a=typeof t=="function"?t(s):t+(g8++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Lb=Object.create(null);function y8(e,t){Lb[e]=t}function Mb(e){return Lb[e]||Lb[""]}function nw(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const rw=Object.create(null),wp=["https://api.simplesvg.com","https://api.unisvg.com"],Dg=[];for(;wp.length>0;)wp.length===1||Math.random()>.5?Dg.push(wp.shift()):Dg.push(wp.pop());rw[""]=nw({resources:["https://api.iconify.design"].concat(Dg)});function b8(e,t){const n=nw(t);return n===null?!1:(rw[e]=n,!0)}function iw(e){return rw[e]}const x8=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Gk=x8();function w8(e,t){const n=iw(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(a=>{i=Math.max(i,a.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function S8(e){return e===404}const k8=(e,t,n)=>{const r=[],i=w8(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((d,h)=>{c+=d.length+1,c>=i&&h>0&&(r.push(a),a={type:s,provider:e,prefix:t,icons:[]},c=d.length),a.icons.push(d)}),r.push(a),r};function C8(e){if(typeof e=="string"){const t=iw(e);if(t)return t.path}return"/"}const E8=(e,t,n)=>{if(!Gk){n("abort",424);return}let r=C8(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),d=new URLSearchParams({icons:c});r+=s+".json?"+d.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Gk(e+r).then(s=>{const a=s.status;if(a!==200){setTimeout(()=>{n(S8(a)?"abort":"next",a)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},P8={prepare:k8,send:E8};function T8(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,a=i.prefix,c=i.name,d=n[s]||(n[s]=Object.create(null)),h=d[a]||(d[a]=Rf(s,a));let m;c in h.icons?m=t.loaded:a===""||h.missing.has(c)?m=t.missing:m=t.pending;const g={provider:s,prefix:a,name:c};m.push(g)}),t}function k2(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function _8(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const a=s.icons,c=a.pending.length;a.pending=a.pending.filter(d=>{if(d.prefix!==i)return!0;const h=d.name;if(e.icons[h])a.loaded.push({provider:r,prefix:i,name:h});else if(e.missing.has(h))a.missing.push({provider:r,prefix:i,name:h});else return n=!0,!0;return!1}),a.pending.length!==c&&(n||k2([e],s.id),s.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),s.abort))})}))}let I8=0;function $8(e,t,n){const r=I8++,i=k2.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(s)}),i}function A8(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?kv(i,t,n):i;s&&r.push(s)}),r}var R8={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function L8(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let D=e.resources.slice(0);for(a=[];D.length>1;){const J=Math.floor(Math.random()*D.length);a.push(D[J]),D=D.slice(0,J).concat(D.slice(J+1))}a=a.concat(D)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let d="pending",h=0,m,g=null,b=[],x=[];typeof r=="function"&&x.push(r);function k(){g&&(clearTimeout(g),g=null)}function P(){d==="pending"&&(d="aborted"),k(),b.forEach(D=>{D.status==="pending"&&(D.status="aborted")}),b=[]}function _(D,J){J&&(x=[]),typeof D=="function"&&x.push(D)}function T(){return{startTime:c,payload:t,status:d,queriesSent:h,queriesPending:b.length,subscribe:_,abort:P}}function $(){d="failed",x.forEach(D=>{D(void 0,m)})}function L(){b.forEach(D=>{D.status==="pending"&&(D.status="aborted")}),b=[]}function z(D,J,re){const le=J!=="success";switch(b=b.filter(j=>j!==D),d){case"pending":break;case"failed":if(le||!e.dataAfterTimeout)return;break;default:return}if(J==="abort"){m=re,$();return}if(le){m=re,b.length||(a.length?K():$());return}if(k(),L(),!e.random){const j=e.resources.indexOf(D.resource);j!==-1&&j!==e.index&&(e.index=j)}d="completed",x.forEach(j=>{j(re)})}function K(){if(d!=="pending")return;k();const D=a.shift();if(D===void 0){if(b.length){g=setTimeout(()=>{k(),d==="pending"&&(L(),$())},e.timeout);return}$();return}const J={status:"pending",resource:D,callback:(re,le)=>{z(J,re,le)}};b.push(J),h++,g=setTimeout(K,e.rotate),n(D,t,J.callback)}return setTimeout(K),T}function C2(e){const t={...R8,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function i(c,d,h){const m=L8(t,c,d,(g,b)=>{r(),h&&h(g,b)});return n.push(m),m}function s(c){return n.find(d=>c(d))||null}return{query:i,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function qk(){}const b0=Object.create(null);function M8(e){if(!b0[e]){const t=iw(e);if(!t)return;const n=C2(t),r={config:t,redundancy:n};b0[e]=r}return b0[e]}function D8(e,t,n){let r,i;if(typeof e=="string"){const s=Mb(e);if(!s)return n(void 0,424),qk;i=s.send;const a=M8(e);a&&(r=a.redundancy)}else{const s=nw(e);if(s){r=C2(s);const a=e.resources?e.resources[0]:"",c=Mb(a);c&&(i=c.send)}}return!r||!i?(n(void 0,424),qk):r.query(t,i,n)().abort}function Yk(){}function N8(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,_8(e)}))}function F8(e){const t=[],n=[];return e.forEach(r=>{(r.match(y2)?t:n).push(r)}),{valid:t,invalid:n}}function Sp(e,t,n){function r(){const i=e.pendingIcons;t.forEach(s=>{i&&i.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!b2(e,n).length){r();return}}catch(i){console.error(i)}r(),N8(e)}function Xk(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function O8(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const s=e.loadIcon;if(e.loadIcons&&(i.length>1||!s)){Xk(e.loadIcons(i,r,n),m=>{Sp(e,i,m)});return}if(s){i.forEach(m=>{const g=s(m,r,n);Xk(g,b=>{const x=b?{prefix:r,icons:{[m]:b}}:null;Sp(e,[m],x)})});return}const{valid:a,invalid:c}=F8(i);if(c.length&&Sp(e,c,null),!a.length)return;const d=r.match(y2)?Mb(n):null;if(!d){Sp(e,a,null);return}d.prepare(n,r,a).forEach(m=>{D8(n,m,g=>{Sp(e,m.icons,g)})})}))}const E2=(e,t)=>{const n=A8(e,!0,x2()),r=T8(n);if(!r.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(r.loaded,r.missing,r.pending,Yk)}),()=>{d=!1}}const i=Object.create(null),s=[];let a,c;return r.pending.forEach(d=>{const{provider:h,prefix:m}=d;if(m===c&&h===a)return;a=h,c=m,s.push(Rf(h,m));const g=i[h]||(i[h]=Object.create(null));g[m]||(g[m]=[])}),r.pending.forEach(d=>{const{provider:h,prefix:m,name:g}=d,b=Rf(h,m),x=b.pendingIcons||(b.pendingIcons=new Set);x.has(g)||(x.add(g),i[h][m].push(g))}),s.forEach(d=>{const h=i[d.provider][d.prefix];h.length&&O8(d,h)}),t?$8(t,r,s):Yk};function z8(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in w2?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const j8=/[\s,]+/;function B8(e,t){t.split(j8).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function V8(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function U8(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"}function K8(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/