From 485e6d44286e66127bf9c38fa1ad1e34ad567a2d Mon Sep 17 00:00:00 2001 From: Softjey Date: Wed, 1 May 2024 21:07:31 +0200 Subject: [PATCH] Updates --- assets/{index-uUgJVFZN.js => index-DDoN5qxZ.js} | 6 +++--- index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename assets/{index-uUgJVFZN.js => index-DDoN5qxZ.js} (94%) diff --git a/assets/index-uUgJVFZN.js b/assets/index-DDoN5qxZ.js similarity index 94% rename from assets/index-uUgJVFZN.js rename to assets/index-DDoN5qxZ.js index 9e125c6..5abfed6 100644 --- a/assets/index-uUgJVFZN.js +++ b/assets/index-DDoN5qxZ.js @@ -37,7 +37,7 @@ function $v(e,t){for(var n=0;n")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Tu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ii(e):""}function S3(e){switch(e.tag){case 5:return Ii(e.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 2:case 15:return e=Mu(e.type,!1),e;case 11:return e=Mu(e.type.render,!1),e;case 1:return e=Mu(e.type,!0),e;default:return""}}function Nc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bo:return"Fragment";case yo:return"Portal";case Ac:return"Profiler";case wf:return"StrictMode";case Rc:return"Suspense";case Ic:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vv:return(e.displayName||"Context")+".Consumer";case _v:return(e._context.displayName||"Context")+".Provider";case Sf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cf:return t=e.displayName||null,t!==null?t:Nc(e.type)||"Memo";case Qn:t=e._payload,e=e._init;try{return Nc(e(t))}catch{}}return null}function C3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nc(t);case 8:return t===wf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function yr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $3(e){var t=Uv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yl(e){e._valueTracker||(e._valueTracker=$3(e))}function Wv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Uv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function js(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Fc(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=yr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hv(e,t){t=t.checked,t!=null&&xf(e,"checked",t,!1)}function Bc(e,t){Hv(e,t);var n=yr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lc(e,t.type,yr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Lc(e,t,n){(t!=="number"||js(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ni=Array.isArray;function Bo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ql.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},E3=["Webkit","ms","Moz","O"];Object.keys(Oi).forEach(function(e){E3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oi[t]=Oi[e]})});function Qv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oi.hasOwnProperty(e)&&Oi[e]?(""+t).trim():t+"px"}function Xv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Qv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var P3=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jc(e,t){if(t){if(P3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function _c(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vc=null;function $f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kc=null,Lo=null,zo=null;function xh(e){if(e=Pl(e)){if(typeof Kc!="function")throw Error(U(280));var t=e.stateNode;t&&(t=La(t),Kc(e.stateNode,e.type,t))}}function Jv(e){Lo?zo?zo.push(e):zo=[e]:Lo=e}function Zv(){if(Lo){var e=Lo,t=zo;if(zo=Lo=null,xh(e),t)for(e=0;e>>=0,e===0?32:31-(L3(e)/z3|0)|0}var Xl=64,Jl=4194304;function Fi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Us(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Fi(s):(i&=l,i!==0&&(r=Fi(i)))}else l=n&~o,l!==0?r=Fi(l):i!==0&&(r=Fi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $l(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function V3(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_i),Th=" ",Mh=!1;function b0(e,t){switch(e){case"keyup":return gS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xo=!1;function yS(e,t){switch(e){case"compositionend":return x0(t);case"keypress":return t.which!==32?null:(Mh=!0,Th);case"textInput":return e=t.data,e===Th&&Mh?null:e;default:return null}}function bS(e,t){if(xo)return e==="compositionend"||!Rf&&b0(e,t)?(e=v0(),$s=Tf=rr=null,xo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nh(n)}}function $0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function E0(){for(var e=window,t=js();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=js(e.document)}return t}function If(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function DS(e){var t=E0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$0(n.ownerDocument.documentElement,n)){if(r!==null&&If(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Fh(n,i);var l=Fh(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wo=null,Yc=null,Ki=null,Qc=!1;function Bh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qc||wo==null||wo!==js(r)||(r=wo,"selectionStart"in r&&If(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ki&&il(Ki,r)||(Ki=r,r=Gs(Yc,"onSelect"),0$o||(e.current=nd[$o],nd[$o]=null,$o--)}function Se(e,t){$o++,nd[$o]=e.current,e.current=t}var br={},at=$r(br),xt=$r(!1),Wr=br;function Ho(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wt(e){return e=e.childContextTypes,e!=null}function Ys(){Pe(xt),Pe(at)}function Kh(e,t,n){if(at.current!==br)throw Error(U(168));Se(at,t),Se(xt,n)}function N0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(U(108,C3(e)||"Unknown",o));return Ae({},n,r)}function Qs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Wr=at.current,Se(at,e),Se(xt,xt.current),!0}function Uh(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=N0(e,t,Wr),r.__reactInternalMemoizedMergedChildContext=e,Pe(xt),Pe(at),Se(at,e)):Pe(xt),Se(xt,n)}var Tn=null,za=!1,Uu=!1;function F0(e){Tn===null?Tn=[e]:Tn.push(e)}function jS(e){za=!0,F0(e)}function Er(){if(!Uu&&Tn!==null){Uu=!0;var e=0,t=ve;try{var n=Tn;for(ve=1;e>=l,o-=l,An=1<<32-ln(t)+o|n<x?(T=D,D=null):T=D.sibling;var k=f(g,D,y[x],C);if(k===null){D===null&&(D=T);break}e&&D&&k.alternate===null&&t(g,D),v=i(k,v,x),S===null?E=k:S.sibling=k,S=k,D=T}if(x===y.length)return n(g,D),De&&Mr(g,x),E;if(D===null){for(;xx?(T=D,D=null):T=D.sibling;var M=f(g,D,k.value,C);if(M===null){D===null&&(D=T);break}e&&D&&M.alternate===null&&t(g,D),v=i(M,v,x),S===null?E=M:S.sibling=M,S=M,D=T}if(k.done)return n(g,D),De&&Mr(g,x),E;if(D===null){for(;!k.done;x++,k=y.next())k=d(g,k.value,C),k!==null&&(v=i(k,v,x),S===null?E=k:S.sibling=k,S=k);return De&&Mr(g,x),E}for(D=r(g,D);!k.done;x++,k=y.next())k=p(D,g,x,k.value,C),k!==null&&(e&&k.alternate!==null&&D.delete(k.key===null?x:k.key),v=i(k,v,x),S===null?E=k:S.sibling=k,S=k);return e&&D.forEach(function(I){return t(g,I)}),De&&Mr(g,x),E}function w(g,v,y,C){if(typeof y=="object"&&y!==null&&y.type===bo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ql:e:{for(var E=y.key,S=v;S!==null;){if(S.key===E){if(E=y.type,E===bo){if(S.tag===7){n(g,S.sibling),v=o(S,y.props.children),v.return=g,g=v;break e}}else if(S.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Qn&&Xh(E)===S.type){n(g,S.sibling),v=o(S,y.props),v.ref=wi(g,S,y),v.return=g,g=v;break e}n(g,S);break}else t(g,S);S=S.sibling}y.type===bo?(v=Vr(y.props.children,g.mode,C,y.key),v.return=g,g=v):(C=Rs(y.type,y.key,y.props,null,g.mode,C),C.ref=wi(g,v,y),C.return=g,g=C)}return l(g);case yo:e:{for(S=y.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(g,v.sibling),v=o(v,y.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Ju(y,g.mode,C),v.return=g,g=v}return l(g);case Qn:return S=y._init,w(g,v,S(y._payload),C)}if(Ni(y))return h(g,v,y,C);if(gi(y))return b(g,v,y,C);is(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(g,v.sibling),v=o(v,y),v.return=g,g=v):(n(g,v),v=Xu(y,g.mode,C),v.return=g,g=v),l(g)):n(g,v)}return w}var qo=K0(!0),U0=K0(!1),kl={},xn=$r(kl),ul=$r(kl),cl=$r(kl);function Fr(e){if(e===kl)throw Error(U(174));return e}function Vf(e,t){switch(Se(cl,t),Se(ul,e),Se(xn,kl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oc(t,e)}Pe(xn),Se(xn,t)}function Yo(){Pe(xn),Pe(ul),Pe(cl)}function W0(e){Fr(cl.current);var t=Fr(xn.current),n=Oc(t,e.type);t!==n&&(Se(ul,e),Se(xn,n))}function Kf(e){ul.current===e&&(Pe(xn),Pe(ul))}var Te=$r(0);function na(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wu=[];function Uf(){for(var e=0;en?n:4,e(!0);var r=Hu.transition;Hu.transition={};try{e(!1),t()}finally{ve=n,Hu.transition=r}}function sy(){return Gt().memoizedState}function US(e,t,n){var r=pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ay(e))uy(t,n);else if(n=O0(e,t,n,r),n!==null){var o=pt();sn(n,e,r,o),cy(n,t,r)}}function WS(e,t,n){var r=pr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ay(e))uy(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,an(s,l)){var a=t.interleaved;a===null?(o.next=o,jf(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=O0(e,t,o,r),n!==null&&(o=pt(),sn(n,e,r,o),cy(n,t,r))}}function ay(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function uy(e,t){Ui=ra=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pf(e,n)}}var oa={readContext:Ht,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},HS={readContext:Ht,useCallback:function(e,t){return gn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ds(4194308,4,ny.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ds(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ds(4,2,e,t)},useMemo:function(e,t){var n=gn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=US.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=gn();return e={current:e},t.memoizedState=e},useState:Jh,useDebugValue:Yf,useDeferredValue:function(e){return gn().memoizedState=e},useTransition:function(){var e=Jh(!1),t=e[0];return e=KS.bind(null,e[1]),gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=gn();if(De){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Xe===null)throw Error(U(349));Gr&30||q0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zh(Q0.bind(null,r,i,e),[e]),r.flags|=2048,pl(9,Y0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gn(),t=Xe.identifierPrefix;if(De){var n=Rn,r=An;n=(r&~(1<<32-ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=dl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[vn]=t,e[al]=r,by(e,t,!1,!1),t.stateNode=e;e:{switch(l=_c(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),o=r;break;case"iframe":case"object":case"embed":Ee("load",e),o=r;break;case"video":case"audio":for(o=0;oXo&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304)}else{if(!r)if(e=na(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!De)return it(t),null}else 2*ze()-i.renderingStartTime>Xo&&n!==1073741824&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ze(),t.sibling=null,n=Te.current,Se(Te,r?n&1|2:n&1),t):(it(t),null);case 22:case 23:return tp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pt&1073741824&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function eC(e,t){switch(Ff(t),t.tag){case 1:return wt(t.type)&&Ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yo(),Pe(xt),Pe(at),Uf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kf(t),null;case 13:if(Pe(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Te),null;case 4:return Yo(),null;case 10:return Of(t.type._context),null;case 22:case 23:return tp(),null;case 24:return null;default:return null}}var ss=!1,st=!1,tC=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Do(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function hd(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var am=!1;function nC(e,t){if(Xc=Ws,e=E0(),If(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(s=l+o),d!==i||r!==0&&d.nodeType!==3||(a=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++c===r&&(a=l),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jc={focusedElem:e,selectionRange:n},Ws=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,w=h.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:en(t.type,b),w);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(C){Ie(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return h=am,am=!1,h}function Wi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&hd(t,n,i)}o=o.next}while(o!==r)}}function _a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function md(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sy(e){var t=e.alternate;t!==null&&(e.alternate=null,Sy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[al],delete t[td],delete t[zS],delete t[OS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cy(e){return e.tag===5||e.tag===3||e.tag===4}function um(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qs));else if(r!==4&&(e=e.child,e!==null))for(gd(e,t,n),e=e.sibling;e!==null;)gd(e,t,n),e=e.sibling}function vd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vd(e,t,n),e=e.sibling;e!==null;)vd(e,t,n),e=e.sibling}var tt=null,tn=!1;function Wn(e,t,n){for(n=n.child;n!==null;)$y(e,t,n),n=n.sibling}function $y(e,t,n){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(Ia,n)}catch{}switch(n.tag){case 5:st||Do(n,t);case 6:var r=tt,o=tn;tt=null,Wn(e,t,n),tt=r,tn=o,tt!==null&&(tn?(e=tt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tt.removeChild(n.stateNode));break;case 18:tt!==null&&(tn?(e=tt,n=n.stateNode,e.nodeType===8?Ku(e.parentNode,n):e.nodeType===1&&Ku(e,n),rl(e)):Ku(tt,n.stateNode));break;case 4:r=tt,o=tn,tt=n.stateNode.containerInfo,tn=!0,Wn(e,t,n),tt=r,tn=o;break;case 0:case 11:case 14:case 15:if(!st&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&hd(n,t,l),o=o.next}while(o!==r)}Wn(e,t,n);break;case 1:if(!st&&(Do(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ie(n,t,s)}Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:n.mode&1?(st=(r=st)||n.memoizedState!==null,Wn(e,t,n),st=r):Wn(e,t,n);break;default:Wn(e,t,n)}}function cm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tC),t.forEach(function(r){var o=dC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ze()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oC(r/1960))-r,10e?16:e,or===null)var r=!1;else{if(e=or,or=null,sa=0,me&6)throw Error(U(331));var o=me;for(me|=4,Y=e.current;Y!==null;){var i=Y,l=i.child;if(Y.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aze()-Zf?_r(e,0):Jf|=n),St(e,t)}function Ry(e,t){t===0&&(e.mode&1?(t=Jl,Jl<<=1,!(Jl&130023424)&&(Jl=4194304)):t=1);var n=pt();e=zn(e,t),e!==null&&($l(e,t,n),St(e,n))}function cC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function dC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Ry(e,n)}var Iy;Iy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xt.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,JS(e,t,n);bt=!!(e.flags&131072)}else bt=!1,De&&t.flags&1048576&&B0(t,Js,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ts(e,t),e=t.pendingProps;var o=Ho(t,at.current);jo(t,n),o=Hf(null,t,r,e,o,n);var i=Gf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)?(i=!0,Qs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,_f(t),o.updater=Oa,t.stateNode=o,o._reactInternals=t,sd(t,r,e,n),t=cd(null,t,r,!0,i,n)):(t.tag=0,De&&i&&Nf(t),dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ts(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pC(r),e=en(r,e),o){case 0:t=ud(null,t,r,e,n);break e;case 1:t=im(null,t,r,e,n);break e;case 11:t=rm(null,t,r,e,n);break e;case 14:t=om(null,t,r,en(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),ud(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),im(e,t,r,o,n);case 3:e:{if(gy(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,j0(e,t),ta(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Qo(Error(U(423)),t),t=lm(e,t,r,n,o);break e}else if(r!==o){o=Qo(Error(U(424)),t),t=lm(e,t,r,n,o);break e}else for(Tt=cr(t.stateNode.containerInfo.firstChild),Mt=t,De=!0,on=null,n=U0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Go(),r===o){t=On(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return W0(t),e===null&&od(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Zc(r,o)?l=null:i!==null&&Zc(r,i)&&(t.flags|=32),my(e,t),dt(e,t,l,n),t.child;case 6:return e===null&&od(t),null;case 13:return vy(e,t,n);case 4:return Vf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qo(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),rm(e,t,r,o,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Se(Zs,r._currentValue),r._currentValue=l,i!==null)if(an(i.value,l)){if(i.children===o.children&&!xt.current){t=On(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Nn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),id(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(U(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),id(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jo(t,n),o=Ht(o),r=r(o),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,o=en(r,t.pendingProps),o=en(r.type,o),om(e,t,r,o,n);case 15:return py(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),Ts(e,t),t.tag=1,wt(r)?(e=!0,Qs(t)):e=!1,jo(t,n),V0(t,r,o),sd(t,r,o,n),cd(null,t,r,!0,e,n);case 19:return yy(e,t,n);case 22:return hy(e,t,n)}throw Error(U(156,t.tag))};function Ny(e,t){return l0(e,t)}function fC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,n,r){return new fC(e,t,n,r)}function rp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pC(e){if(typeof e=="function")return rp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sf)return 11;if(e===Cf)return 14}return 2}function hr(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")rp(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case bo:return Vr(n.children,o,i,t);case wf:l=8,o|=8;break;case Ac:return e=Vt(12,n,t,o|2),e.elementType=Ac,e.lanes=i,e;case Rc:return e=Vt(13,n,t,o),e.elementType=Rc,e.lanes=i,e;case Ic:return e=Vt(19,n,t,o),e.elementType=Ic,e.lanes=i,e;case Kv:return Ka(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _v:l=10;break e;case Vv:l=9;break e;case Sf:l=11;break e;case Cf:l=14;break e;case Qn:l=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Vt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Vr(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function Ka(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Kv,e.lanes=n,e.stateNode={isHidden:!1},e}function Xu(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function Ju(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ru(0),this.expirationTimes=Ru(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ru(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function op(e,t,n,r,o,i,l,s,a){return e=new hC(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_f(i),e}function mC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zy)}catch(e){console.error(e)}}zy(),Bv.exports=Rt;var qa=Bv.exports;const xC=Ev(qa),wC=$v({__proto__:null,default:xC},[qa]);var ym=qa;Tc.createRoot=ym.createRoot,Tc.hydrateRoot=ym.hydrateRoot;function Dl(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=m.createContext(void 0);o.displayName=r;function i(){var l;const s=m.useContext(o);if(!s&&t){const a=new Error(n);throw a.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,a,i),a}return s}return[o.Provider,i,o]}function Oe(e){const t=m.useRef(null);return m.useImperativeHandle(e,()=>t.current),t}var ap=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function Oy(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;t"u")&&!bm[i]&&(bm[i]=!0,((r=process==null?void 0:SC)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function CC(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function li(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function $C(e,t,n){return Math.min(Math.max(e,t),n)}function EC(e,t=100){return Math.min(Math.max(e,0),t)}var jy=!1;function up(e){return Array.isArray(e)}function PC(e){return up(e)&&e.length===0}function _y(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!up(e)}function kC(e){return _y(e)&&Object.keys(e).length===0}function DC(e){return up(e)?PC(e):_y(e)?kC(e):e==null||e===""}function TC(e){return typeof e=="function"}var H=e=>e?"true":void 0;function MC(e,t){if(e!=null){if(TC(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function AC(...e){return t=>{e.forEach(n=>MC(n,t))}}var RC=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"]),IC=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"]),xm=/^(data-.*)$/,NC=/^(aria-.*)$/,cs=/^(on[A-Z].*)$/;function ht(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:i,omitEventNames:l,omitDataProps:s,omitEventProps:a}=t,u={};if(!r)return e;for(const c in e)i!=null&&i.has(c)||l!=null&&l.has(c)&&cs.test(c)||cs.test(c)&&!IC.has(c)||s&&xm.test(c)||a&&cs.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(RC.has(c)||n&&NC.test(c)||o!=null&&o.has(c)||xm.test(c))||cs.test(c))&&(u[c]=e[c]);return u}var[FC,YM]=Dl({name:"ProviderContext",strict:!1});const da={prefix:String(Math.round(Math.random()*1e10)),current:0},Vy=be.createContext(da),BC=be.createContext(!1);let LC=!!(typeof window<"u"&&window.document&&window.document.createElement),Zu=new WeakMap;function zC(e=!1){let t=m.useContext(Vy),n=m.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=Zu.get(i);l==null?Zu.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,Zu.delete(i))}n.current=++t.current}return n.current}function OC(e){let t=m.useContext(Vy);t===da&&!LC&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=zC(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function jC(e){let t=be.useId(),[n]=m.useState(cp()),r=n?"react-aria":`react-aria${da.prefix}`;return e||`${r}-${t}`}const _C=typeof be.useId=="function"?jC:OC;function VC(){return!1}function KC(){return!0}function UC(e){return()=>{}}function cp(){return typeof be.useSyncExternalStore=="function"?be.useSyncExternalStore(UC,VC,KC):m.useContext(BC)}const WC=Symbol.for("react-aria.i18n.locale"),HC=Symbol.for("react-aria.i18n.strings");let co;class Ya{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=GC(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[WC];if(co===void 0){let o=window[HC];if(!o)return null;co={};for(let i in o)co[i]=new Ya({[n]:o[i]},n)}let r=co==null?void 0:co[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={...t},this.defaultLocale=n}}function GC(e,t,n="en-US"){if(t[e])return t[e];let r=qC(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function qC(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const wm=new Map,Sm=new Map;class YC{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 o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=wm.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),wm.set(i,l));let s=l.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Sm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Sm.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}}function QC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function dp(e,t,n){QC(e,t),t.set(e,n)}function ec(e,t){return e-t*Math.floor(e/t)}const Ky=1721426;function ds(e,t,n,r){t=fp(e,t);let o=t-1,i=-2;return n<=2?i=0:Is(t)&&(i=-1),Ky-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function Is(e){return e%4===0&&(e%100!==0||e%400===0)}function fp(e,t){return e==="BC"?1-t:t}function XC(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const JC={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Qa{fromJulianDay(t){let n=t,r=n-Ky,o=Math.floor(r/146097),i=ec(r,146097),l=Math.floor(i/36524),s=ec(i,36524),a=Math.floor(s/1461),u=ec(s,1461),c=Math.floor(u/365),d=o*400+l*100+a*4+c+(l!==4&&c!==4?1:0),[f,p]=XC(d),h=n-ds(f,p,1,1),b=2;n0&&t===Wy())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:l,second:s}=Gy(e,t);return Hy(n,r,o,i,l,s,0)-Math.floor(e/1e3)*1e3}const Pm=new Map;function Gy(e,t){let n=Pm.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Pm.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const km=864e5;function e2(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>t2(e,t,i))}function t2(e,t,n){let r=Gy(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function n2(e,t,n="compatible"){let r=Yy(e);if(t==="UTC")return $m(r);if(t===Wy()&&n==="compatible"){r=pp(r,new Qa);let a=new Date,u=fp(r.era,r.year);return a.setFullYear(u,r.month-1,r.day),a.setHours(r.hour,r.minute,r.second,r.millisecond),a.getTime()}let o=$m(r),i=Em(o-km,t),l=Em(o+km,t),s=e2(r,t,o-i,o-l);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-l);case"compatible":case"later":return Math.max(o-i,o-l);case"reject":throw new RangeError("No such absolute time found")}}function qy(e,t,n="compatible"){return new Date(n2(e,t,n))}function Yy(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new fa(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function pp(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Jo(r),r}function hp(e,t){let n=e.copy(),r="hour"in n?a2(n,t):0;Sd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Cd(n),Qy(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,r2(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,l;let a=(i=(l=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(l,n);n.year=o,n.month=a?1:n.calendar.getMonthsInYear(n),n.day=a?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Sd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Cd(e){for(;e.month<1;)Sd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Sd(e,1)}function r2(e){for(;e.day<1;)e.month--,Cd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Cd(e)}function Qy(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Jo(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Qy(e)}function o2(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Xy(e,t){return hp(e,o2(t))}function Jy(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Jo(n),n}function i2(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),s2(n),n}function l2(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=fs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=fs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=fs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=fs(e.hour,24),t}function s2(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function fs(e,t){let n=e%t;return n<0&&(n+=t),n}function a2(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,l2(e)}function Zy(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),a=s.indexOf(e.era);if(a<0)throw new Error("Invalid era: "+e.era);a=ir(a,n,0,s.length-1,r==null?void 0:r.round),o.era=s[a],Jo(o);break}case"year":var i,l;!((i=(l=o.calendar).isInverseEra)===null||i===void 0)&&i.call(l,o)&&(n=-n),o.year=ir(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=ir(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=ir(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Jo(o),o}function u2(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,l=0,s=23;if((r==null?void 0:r.hourCycle)===12){let a=i>=12;l=a?12:0,s=a?23:11}o.hour=ir(i,n,l,s,r==null?void 0:r.round);break}case"minute":o.minute=ir(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=ir(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=ir(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function ir(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,er&&(e=n+(e-r-1));return e}function c2(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function eb(e){let t=pp(e,new Qa);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function d2(e){return`${eb(e)}T${c2(e)}`}function tb(e){let t=typeof e[0]=="object"?e.shift():new Qa,n;if(typeof e[0]=="string")n=e.shift();else{let l=t.getEras();n=l[l.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var f2=new WeakMap;class Zo{copy(){return this.era?new Zo(this.calendar,this.era,this.year,this.month,this.day):new Zo(this.calendar,this.year,this.month,this.day)}add(t){return hp(this,t)}subtract(t){return Xy(this,t)}set(t){return Jy(this,t)}cycle(t,n,r){return Zy(this,t,n,r)}toDate(t){return qy(this,t)}toString(){return eb(this)}compare(t){return Uy(this,t)}constructor(...t){dp(this,f2,{writable:!0,value:void 0});let[n,r,o,i,l]=tb(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=l,Jo(this)}}var p2=new WeakMap;class fa{copy(){return this.era?new fa(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new fa(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return hp(this,t)}subtract(t){return Xy(this,t)}set(t){return Jy(i2(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Zy(this,t,n,r);default:return u2(this,t,n,r)}}toDate(t,n){return qy(this,t,n)}toString(){return d2(this)}compare(t){let n=Uy(this,t);return n===0?ZC(this,Yy(t)):n}constructor(...t){dp(this,p2,{writable:!0,value:void 0});let[n,r,o,i,l]=tb(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Jo(this)}}function Tl(e,t,n){let[r,o]=m.useState(e||t),i=m.useRef(e!==void 0),l=e!==void 0;m.useEffect(()=>{let u=i.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?e:r,a=m.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(s,f)||n(f,...p)),l||(s=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let b=u(l?s:p,...h);return d(b,...c),l?p:b})):(l||o(u),d(u,...c))},[l,s,n]);return[s,a]}function h2(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function nb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{};function kt(e){const t=m.useRef(null);return Vn(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function g2(e){let[t,n]=m.useState(e),r=m.useRef(null),o=kt(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}t===l.value?o():n(l.value)});Vn(()=>{r.current&&o()});let i=kt(l=>{r.current=l(t),o()});return[t,i]}let v2=!!(typeof window<"u"&&window.document&&window.document.createElement),pa=new Map;function xr(e){let[t,n]=m.useState(e),r=m.useRef(null),o=_C(t),i=m.useCallback(l=>{r.current=l},[]);return v2&&pa.set(o,i),Vn(()=>{let l=o;return()=>{pa.delete(l)}},[o]),m.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),o}function y2(e,t){if(e===t)return e;let n=pa.get(e);if(n)return n(t),t;let r=pa.get(t);return r?(r(e),e):t}function Dm(e=[]){let t=xr(),[n,r]=g2(t),o=m.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Vn(o,[t,o,...e]),n}function wr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Dt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Kt=e=>e&&"window"in e&&e.window===e?e:Dt(e).defaultView||window;function J(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=wr(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=m2(i,l):o==="id"&&i&&l?t.id=y2(i,l):t[o]=l!==void 0?l:i}}return t}const b2=new Set(["id"]),x2=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),w2=new Set(["href","target","rel","download","ping","referrerPolicy"]),S2=/^(data-.*)$/;function to(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(b2.has(l)||n&&x2.has(l)||r&&w2.has(l)||o!=null&&o.has(l)||S2.test(l))&&(i[l]=e[l]);return i}function In(e){if(C2())e.focus({preventScroll:!0});else{let t=$2(e);e.focus(),E2(t)}}let ps=null;function C2(){if(ps==null){ps=!1;try{document.createElement("div").focus({get preventScroll(){return ps=!0,!0}})}catch{}}return ps}function $2(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 mp(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 Qr(){return mp(/^Mac/i)}function P2(){return mp(/^iPhone/i)}function rb(){return mp(/^iPad/i)||Qr()&&navigator.maxTouchPoints>1}function gp(){return P2()||rb()}function k2(){return Qr()||gp()}function D2(){return Xa(/AppleWebKit/i)&&!T2()}function T2(){return Xa(/Chrome/i)}function ha(){return Xa(/Android/i)}function M2(){return Xa(/Firefox/i)}const ob=m.createContext({isNative:!0,open:I2});function A2(e){let{children:t,navigate:n}=e,r=m.useMemo(()=>({isNative:!1,open:(o,i)=>{lb(o,l=>{R2(l,i)?n(l.pathname+l.search+l.hash):Sr(l,i)})}}),[n]);return be.createElement(ob.Provider,{value:r},t)}function ib(){return m.useContext(ob)}function R2(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 Sr(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}=t;M2()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Qr()?i=!0:l=!0);let u=D2()&&Qr()&&!rb()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});Sr.isOpening=n,In(e),e.dispatchEvent(u),Sr.isOpening=!1}Sr.isOpening=!1;function lb(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 I2(e,t){lb(e,n=>Sr(n,t))}function N2(e){return{"data-href":e.href,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}let ho=new Map,$d=new Set;function Tm(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=ho.get(r.target);o||(o=new Set,ho.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=ho.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),ho.delete(r.target)),ho.size===0)){for(let i of $d)i();$d.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Tm():document.addEventListener("DOMContentLoaded",Tm));function sb(e){requestAnimationFrame(()=>{ho.size===0?e():$d.add(e)})}function ab(){let e=m.useRef(new Map),t=m.useCallback((o,i,l,s)=>{let a=s!=null&&s.once?(...u)=>{e.current.delete(l),l(...u)}:l;e.current.set(l,{type:i,eventTarget:o,fn:a,options:s}),o.addEventListener(i,l,s)},[]),n=m.useCallback((o,i,l,s)=>{var a;let u=((a=e.current.get(l))===null||a===void 0?void 0:a.fn)||l;o.removeEventListener(i,u,s),e.current.delete(l)},[]),r=m.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function F2(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=xr(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function ub(e,t){const n=m.useRef(!0),r=m.useRef(null);m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),m.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function cb(e,t){Vn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Jn(e,t){let n=e;for(Mm(n,t)&&(n=n.parentElement);n&&!Mm(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Mm(e,t){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}let B2=0;const nc=new Map;function Ja(e){let[t,n]=m.useState();return Vn(()=>{if(!e)return;let r=nc.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${B2++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},nc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),nc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function L2(e,t,n,r){let o=kt(n),i=n==null;m.useEffect(()=>{if(i||!e.current)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,i,o])}function db(e,t){let n=Am(e,t,"left"),r=Am(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(a,10),f=c+e.clientWidth,p=d+e.clientHeight;n<=l?l=n-parseInt(u,10):n+o>f&&(l+=n+o-f),r<=d?s=r-parseInt(a,10):r+i>p&&(s+=r+i-p),e.scrollLeft=l,e.scrollTop=s}function Am(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Zn(e,t){if(document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let a=Jn(e);for(;e&&a&&e!==l&&a!==l;)db(a,e),e=a,a=Jn(e)}else{var n;let{left:a,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(a-c)>1||Math.abs(u-d)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Ed(e){return e.mozInputSource===0&&e.isTrusted?!0:ha()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function z2(e){return!ha()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function vp(e,t,n){let r=m.useRef(t),o=kt(()=>{n&&n(r.current)});m.useEffect(()=>{var i;let l=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[e,o])}let rc=new Map,Pd=!1;try{Pd=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ma=!1;try{ma=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const fb={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class O2{format(t){let n="";if(!Pd&&this.options.signDisplay!=null?n=_2(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ma){var r;let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return n;let s=(r=fb[o])===null||r===void 0?void 0:r[i];n+=s[l]||s.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),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Pd&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ma&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=j2(t,n),this.options=n}}function j2(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ma){var r;let{unit:l,unitDisplay:s="short"}=t;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=fb[l])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((l,s)=>l[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 o=e.format(-n),i=e.format(n),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return e.format(n)}}const V2=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),K2=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function pb(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 V2.has(n.script)}let t=e.split("-")[0];return K2.has(t)}const U2=Symbol.for("react-aria.i18n.locale");function hb(){let e=typeof window<"u"&&window[U2]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:pb(e)?"rtl":"ltr"}}let kd=hb(),Li=new Set;function Rm(){kd=hb();for(let e of Li)e(kd)}function mb(){let e=cp(),[t,n]=m.useState(kd);return m.useEffect(()=>(Li.size===0&&window.addEventListener("languagechange",Rm),Li.add(n),()=>{Li.delete(n),Li.size===0&&window.removeEventListener("languagechange",Rm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const gb=be.createContext(null);function W2(e){let{locale:t,children:n}=e,r=mb(),o=t?{locale:t,direction:pb(t)?"rtl":"ltr"}:r;return be.createElement(gb.Provider,{value:o},n)}function Kn(){let e=mb();return m.useContext(gb)||e}const Im=new WeakMap;function H2(e){let t=Im.get(e);return t||(t=new Ya(e),Im.set(e,t)),t}function G2(e,t){return t&&Ya.getGlobalDictionaryForPackage(t)||H2(e)}function si(e,t){let{locale:n}=Kn(),r=G2(e,t);return m.useMemo(()=>new YC(n,r),[n,r])}function q2(e={}){let{locale:t}=Kn();return m.useMemo(()=>new O2(t,e),[t,e])}let oc=new Map;function vb(e){let{locale:t}=Kn(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]{sb(()=>{if(Mo==="restoring"){const t=Dt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Dd||""),Dd="",Mo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ns.has(e)){let t=Ns.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ns.delete(e)}}const bb=be.createContext({register:()=>{}});bb.displayName="PressResponderContext";function J2(e){let t=m.useContext(bb);if(t){let{register:n,...r}=t;e=J(r,e),n()}return cb(t,e.ref),e}var ms=new WeakMap;class gs{continuePropagation(){Nm(this,ms,!1)}get shouldStopPropagation(){return Q2(this,ms)}constructor(t,n,r){dp(this,ms,{writable:!0,value:void 0}),Nm(this,ms,!0),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}}const Bm=Symbol("linkClicked");function un(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=J2(e),[p,h]=m.useState(!1),b=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:g}=ab(),v=kt((x,T)=>{let k=b.current;if(l||k.didFirePressStart)return!1;let M=!0;if(k.isTriggeringEvent=!0,r){let I=new gs("pressstart",T,x);r(I),M=I.shouldStopPropagation}return n&&n(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,h(!0),M}),y=kt((x,T,k=!0)=>{let M=b.current;if(!M.didFirePressStart)return!1;M.ignoreClickAfterPress=!0,M.didFirePressStart=!1,M.isTriggeringEvent=!0;let I=!0;if(o){let P=new gs("pressend",T,x);o(P),I=P.shouldStopPropagation}if(n&&n(!1),h(!1),t&&k&&!l){let P=new gs("press",T,x);t(P),I&&(I=P.shouldStopPropagation)}return M.isTriggeringEvent=!1,I}),C=kt((x,T)=>{let k=b.current;if(l)return!1;if(i){k.isTriggeringEvent=!0;let M=new gs("pressup",T,x);return i(M),k.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),E=kt(x=>{let T=b.current;T.isPressed&&T.target&&(T.isOverTarget&&T.pointerType!=null&&y(kn(T.target,x),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,g(),c||hs(T.target))}),S=kt(x=>{u&&E(x)}),D=m.useMemo(()=>{let x=b.current,T={onKeyDown(M){if(ic(M.nativeEvent,M.currentTarget)&&M.currentTarget.contains(M.target)){var I;zm(M.target,M.key)&&M.preventDefault();let P=!0;if(!x.isPressed&&!M.repeat){x.target=M.currentTarget,x.isPressed=!0,P=v(M,"keyboard");let A=M.currentTarget,V=K=>{ic(K,A)&&!K.repeat&&A.contains(K.target)&&x.target&&C(kn(x.target,K),"keyboard")};w(Dt(M.currentTarget),"keyup",wr(V,k),!0)}P&&M.stopPropagation(),M.metaKey&&Qr()&&((I=x.metaKeyEvents)===null||I===void 0||I.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(M){if(!(M&&!M.currentTarget.contains(M.target))&&M&&M.button===0&&!x.isTriggeringEvent&&!Sr.isOpening){let I=!0;if(l&&M.preventDefault(),!x.ignoreClickAfterPress&&!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||Ed(M.nativeEvent))){!l&&!a&&In(M.currentTarget);let P=v(M,"virtual"),A=C(M,"virtual"),V=y(M,"virtual");I=P&&A&&V}x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1,I&&M.stopPropagation()}}},k=M=>{var I;if(x.isPressed&&x.target&&ic(M,x.target)){var P;zm(M.target,M.key)&&M.preventDefault();let V=M.target;y(kn(x.target,M),"keyboard",x.target.contains(V)),g(),M.key!=="Enter"&&yp(x.target)&&x.target.contains(V)&&!M[Bm]&&(M[Bm]=!0,Sr(x.target,M,!1)),x.isPressed=!1,(P=x.metaKeyEvents)===null||P===void 0||P.delete(M.key)}else if(M.key==="Meta"&&(!((I=x.metaKeyEvents)===null||I===void 0)&&I.size)){var A;let V=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let K of V.values())(A=x.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){T.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(z2(A.nativeEvent)){x.pointerType="virtual";return}lc(A.currentTarget)&&A.preventDefault(),x.pointerType=A.pointerType;let V=!0;x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=A.pointerId,x.target=A.currentTarget,!l&&!a&&In(A.currentTarget),c||Fm(x.target),V=v(A,x.pointerType),w(Dt(A.currentTarget),"pointermove",M,!1),w(Dt(A.currentTarget),"pointerup",I,!1),w(Dt(A.currentTarget),"pointercancel",P,!1)),V&&A.stopPropagation()},T.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(lc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},T.onPointerUp=A=>{!A.currentTarget.contains(A.target)||x.pointerType==="virtual"||A.button===0&&fo(A,A.currentTarget)&&C(A,x.pointerType||A.pointerType)};let M=A=>{A.pointerId===x.activePointerId&&(x.target&&fo(A,x.target)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,v(kn(x.target,A),x.pointerType)):x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,y(kn(x.target,A),x.pointerType,!1),S(A)))},I=A=>{A.pointerId===x.activePointerId&&x.isPressed&&A.button===0&&x.target&&(fo(A,x.target)&&x.pointerType!=null?y(kn(x.target,A),x.pointerType):x.isOverTarget&&x.pointerType!=null&&y(kn(x.target,A),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,g(),c||hs(x.target))},P=A=>{E(A)};T.onDragStart=A=>{A.currentTarget.contains(A.target)&&E(A)}}else{T.onMouseDown=P=>{if(P.button!==0||!P.currentTarget.contains(P.target))return;if(lc(P.currentTarget)&&P.preventDefault(),x.ignoreEmulatedMouseEvents){P.stopPropagation();return}x.isPressed=!0,x.isOverTarget=!0,x.target=P.currentTarget,x.pointerType=Ed(P.nativeEvent)?"virtual":"mouse",!l&&!a&&In(P.currentTarget),v(P,x.pointerType)&&P.stopPropagation(),w(Dt(P.currentTarget),"mouseup",M,!1)},T.onMouseEnter=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,A=v(P,x.pointerType)),A&&P.stopPropagation()},T.onMouseLeave=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,A=y(P,x.pointerType,!1),S(P)),A&&P.stopPropagation()},T.onMouseUp=P=>{P.currentTarget.contains(P.target)&&!x.ignoreEmulatedMouseEvents&&P.button===0&&C(P,x.pointerType||"mouse")};let M=P=>{if(P.button===0){if(x.isPressed=!1,g(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&fo(P,x.target)&&x.pointerType!=null?y(kn(x.target,P),x.pointerType):x.target&&x.isOverTarget&&x.pointerType!=null&&y(kn(x.target,P),x.pointerType,!1),x.isOverTarget=!1}};T.onTouchStart=P=>{if(!P.currentTarget.contains(P.target))return;let A=Z2(P.nativeEvent);if(!A)return;x.activePointerId=A.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=P.currentTarget,x.pointerType="touch",!l&&!a&&In(P.currentTarget),c||Fm(x.target),v(P,x.pointerType)&&P.stopPropagation(),w(Kt(P.currentTarget),"scroll",I,!0)},T.onTouchMove=P=>{if(!P.currentTarget.contains(P.target))return;if(!x.isPressed){P.stopPropagation();return}let A=Lm(P.nativeEvent,x.activePointerId),V=!0;A&&fo(A,P.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,V=v(P,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,V=y(P,x.pointerType,!1),S(P)),V&&P.stopPropagation()},T.onTouchEnd=P=>{if(!P.currentTarget.contains(P.target))return;if(!x.isPressed){P.stopPropagation();return}let A=Lm(P.nativeEvent,x.activePointerId),V=!0;A&&fo(A,P.currentTarget)&&x.pointerType!=null?(C(P,x.pointerType),V=y(P,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(V=y(P,x.pointerType,!1)),V&&P.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!c&&hs(x.target),g()},T.onTouchCancel=P=>{P.currentTarget.contains(P.target)&&(P.stopPropagation(),x.isPressed&&E(P))};let I=P=>{x.isPressed&&P.target.contains(x.target)&&E({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=P=>{P.currentTarget.contains(P.target)&&E(P)}}return T},[w,l,a,g,c,E,S,y,v,C]);return m.useEffect(()=>()=>{var x;c||hs((x=b.current.target)!==null&&x!==void 0?x:void 0)},[c]),{isPressed:s||p,pressProps:J(f,D)}}function yp(e){return e.tagName==="A"&&e.hasAttribute("href")}function ic(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Kt(o).HTMLInputElement&&!xb(o,n)||o instanceof Kt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&yp(o))&&n!=="Enter")}function Z2(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Lm(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function fo(e,t){let n=t.getBoundingClientRect(),r=e5(e);return t5(n,r)}function lc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function zm(e,t){return e instanceof HTMLInputElement?!xb(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!yp(e)}const n5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xb(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":n5.has(e.type)}class r5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function wb(e){let t=m.useRef({isFocused:!1,observer:null});Vn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=kt(r=>{e==null||e(r)});return m.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new r5("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Sb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=m.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),l=wb(i),s=m.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(n&&n(a),o&&o(!0),l(a))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let jn=null,ml=new Set,qi=new Map,Xr=!1,Td=!1;const o5={Tab:!0,Escape:!0};function Za(e,t){for(let n of ml)n(e,t)}function i5(e){return!(e.metaKey||!Qr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ga(e){Xr=!0,i5(e)&&(jn="keyboard",Za("keyboard",e))}function _t(e){jn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xr=!0,Za("pointer",e))}function Cb(e){Ed(e)&&(Xr=!0,jn="virtual")}function $b(e){e.target===window||e.target===document||(!Xr&&!Td&&(jn="virtual",Za("virtual",e)),Xr=!1,Td=!1)}function Eb(){Xr=!1,Td=!0}function va(e){if(typeof window>"u"||qi.get(Kt(e)))return;const t=Kt(e),n=Dt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Xr=!0,r.apply(this,arguments)},n.addEventListener("keydown",ga,!0),n.addEventListener("keyup",ga,!0),n.addEventListener("click",Cb,!0),t.addEventListener("focus",$b,!0),t.addEventListener("blur",Eb,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",_t,!0),n.addEventListener("pointermove",_t,!0),n.addEventListener("pointerup",_t,!0)):(n.addEventListener("mousedown",_t,!0),n.addEventListener("mousemove",_t,!0),n.addEventListener("mouseup",_t,!0)),t.addEventListener("beforeunload",()=>{Pb(e)},{once:!0}),qi.set(t,{focus:r})}const Pb=(e,t)=>{const n=Kt(e),r=Dt(e);t&&r.removeEventListener("DOMContentLoaded",t),qi.has(n)&&(n.HTMLElement.prototype.focus=qi.get(n).focus,r.removeEventListener("keydown",ga,!0),r.removeEventListener("keyup",ga,!0),r.removeEventListener("click",Cb,!0),n.removeEventListener("focus",$b,!0),n.removeEventListener("blur",Eb,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",_t,!0),r.removeEventListener("pointermove",_t,!0),r.removeEventListener("pointerup",_t,!0)):(r.removeEventListener("mousedown",_t,!0),r.removeEventListener("mousemove",_t,!0),r.removeEventListener("mouseup",_t,!0)),qi.delete(n))};function l5(e){const t=Dt(e);let n;return t.readyState!=="loading"?va(e):(n=()=>{va(e)},t.addEventListener("DOMContentLoaded",n)),()=>Pb(e,n)}typeof document<"u"&&l5();function bp(){return jn!=="pointer"}function Md(){return jn}function s5(e){jn=e,Za(e,null)}function a5(){va();let[e,t]=m.useState(jn);return m.useEffect(()=>{let n=()=>{t(jn)};return ml.add(n),()=>{ml.delete(n)}},[]),cp()?null:e}const u5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function c5(e,t,n){var r;const o=typeof window<"u"?Kt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Kt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Kt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Kt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!u5.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof l&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!o5[n.key])}function d5(e,t,n){va(),m.useEffect(()=>{let r=(o,i)=>{c5(!!(n!=null&&n.isTextInput),o,i)&&e(bp())};return ml.add(r),()=>{ml.delete(r)}},t)}function eu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=m.useRef({isFocusWithin:!1}),l=m.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),s=wb(l),a=m.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}let ya=!1,sc=0;function Ad(){ya=!0,setTimeout(()=>{ya=!1},50)}function Om(e){e.pointerType==="touch"&&Ad()}function f5(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Om):document.addEventListener("touchend",Ad),sc++,()=>{sc--,!(sc>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Om):document.removeEventListener("touchend",Ad))}}function no(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=m.useState(!1),s=m.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;m.useEffect(f5,[]);let{hoverProps:a,triggerHoverEnd:u}=m.useMemo(()=>{let c=(p,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let b=p.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:h}),n&&n(!0),l(!0)},d=(p,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let b=p.currentTarget;r&&r({type:"hoverend",target:b,pointerType:h}),n&&n(!1),l(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{ya&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!ya&&c(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,s]);return m.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function jm(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function p5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jm(e.onKeyDown),onKeyUp:jm(e.onKeyUp)}}}const h5=500;function m5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=h5,accessibilityDescription:l}=e;const s=m.useRef();let{addGlobalListener:a,removeGlobalListener:u}=ab(),{pressProps:c}=un({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n({...f,type:"longpressstart"}),s.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),s.current=void 0},i),f.pointerType==="touch")){let p=h=>{h.preventDefault()};a(f.target,"contextmenu",p,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){s.current&&clearTimeout(s.current),r&&(f.pointerType==="mouse"||f.pointerType==="touch")&&r({...f,type:"longpressend"})}}),d=Ja(o&&!t?l:void 0);return{longPressProps:J(c,d)}}function Lt(e){const t=Dt(e);if(Md()==="virtual"){let n=t.activeElement;sb(()=>{t.activeElement===n&&e.isConnected&&In(e)})}else In(e)}function g5(e){const t=Kt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:s}=i(e);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function v5(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function kb(e,t){return e.nodeName!=="#comment"&&g5(e)&&v5(e,t)&&(!e.parentElement||kb(e.parentElement,e))}const xp=["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]"],y5=xp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const b5=xp.join(':not([hidden]):not([tabindex="-1"]),');function Db(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function gl(e,t,n){let r=t!=null&&t.tabbable?b5:y5,o=Dt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&kb(i)&&(!n||Db(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class wp{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new _m({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.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 i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Db(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),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 wp;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _m({scopeRef:null}),this.fastMap.set(null,this.root)}}class _m{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}}new wp;function cn(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=m.useRef({isFocused:!1,isFocusVisible:t||bp()}),[i,l]=m.useState(!1),[s,a]=m.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=m.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),c=m.useCallback(p=>{o.current.isFocused=p,l(p),u()},[u]);d5(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:d}=Sb({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=eu({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?f:d}}let x5=be.createContext(null);function w5(e){let t=m.useContext(x5)||{};cb(t,e);let{ref:n,...r}=t;return r}function Ml(e,t){let{focusProps:n}=Sb(e),{keyboardProps:r}=p5(e),o=J(n,r),i=w5(t),l=e.isDisabled?{}:i,s=m.useRef(e.autoFocus);return m.useEffect(()=>{s.current&&t.current&&Lt(t.current),s.current=!1},[t]),{focusableProps:J({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}function S5(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=m.useState(!1);return Vn(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=gl(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let l=new MutationObserver(i);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}const Vm={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 C5(e={}){let{style:t,isFocusable:n}=e,[r,o]=m.useState(!1),{focusWithinProps:i}=eu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),l=m.useMemo(()=>r?t:t?{...Vm,...t}:Vm,[r]);return{visuallyHiddenProps:{...i,style:l}}}function Al(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:l}=C5(e);return be.createElement(n,J(i,l),t)}const Rd=be.createContext(null);function $5(e){let{children:t}=e,n=m.useContext(Rd),[r,o]=m.useState(0),i=m.useMemo(()=>({parent:n,modalCount:r,addModal(){o(l=>l+1),n&&n.addModal()},removeModal(){o(l=>l-1),n&&n.removeModal()}}),[n,r]);return be.createElement(Rd.Provider,{value:i},t)}function E5(){let e=m.useContext(Rd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function P5(e){let{modalProviderProps:t}=E5();return be.createElement("div",{"data-overlay-container":!0,...e,...t})}function k5(e){return be.createElement($5,null,be.createElement(P5,e))}var D5=({children:e,navigate:t,locale:n="en-US",defaultDates:r={minDate:new Zo(1900,1,1),maxDate:new Zo(2099,12,31)},createCalendar:o,...i})=>{let l=e;t&&(l=$.jsx(A2,{navigate:t,children:l}));const s=m.useMemo(()=>({createCalendar:o,defaultDates:r}),[o,r==null?void 0:r.maxDate,r==null?void 0:r.minDate]);return $.jsx(FC,{value:s,children:$.jsx(W2,{locale:n,children:$.jsx(k5,{...i,children:l})})})};function je(e){return m.forwardRef(e)}var ai=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,l)=>({...i,[l]:e[l]}),{}),r]:[e,r]},T5={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"},M5={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",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},A5={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",foreground:"bg-transparent border-foreground text-foreground"},R5={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},I5={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",foreground:"border-default bg-default-100 text-foreground"},N5={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",foreground:"bg-transparent text-foreground"},F5={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},oe={solid:T5,shadow:M5,bordered:A5,flat:R5,faded:I5,light:N5,ghost:F5},Km=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Et=e=>!e||typeof e!="object"||Object.keys(e).length===0,B5=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Tb(e,t){e.forEach(function(n){Array.isArray(n)?Tb(n,t):t.push(n)})}function Mb(e){let t=[];return Tb(e,t),t}var Ab=(...e)=>Mb(e).filter(Boolean),Rb=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let l=e[i],s=t[i];typeof l=="object"&&typeof s=="object"?n[i]=Rb(l,s):Array.isArray(l)||Array.isArray(s)?n[i]=Ab(s,l):n[i]=s+" "+l}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Um=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function L5(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(l){var s=n.get(l);if(s!==void 0)return s;if((s=r.get(l))!==void 0)return o(l,s),s},set:function(l,s){n.has(l)?n.set(l,s):o(l,s)}}}var Fb="!";function U5(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(l){for(var s=[],a=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:w}}}function W5(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function H5(e){return{cache:K5(e.cacheSize),splitModifiers:U5(e),...z5(e)}}var G5=/\s+/;function q5(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(G5).map(function(l){var s=n(l),a=s.modifiers,u=s.hasImportantModifier,c=s.baseClassName,d=s.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:l};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:l};p=!1}var h=W5(a).join(":"),b=u?h+Fb:h;return{isTailwindClass:!0,modifierId:b,classGroupId:f,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(function(l){if(!l.isTailwindClass)return!0;var s=l.modifierId,a=l.classGroupId,u=l.hasPostfixModifier,c=s+a;return i.has(c)?!1:(i.add(c),o(a,u).forEach(function(d){return i.add(s+d)}),!0)}).reverse().map(function(l){return l.originalClassName}).join(" ")}function Nd(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;re||void 0,vl=(...e)=>Ob(Mb(e).filter(Boolean).join(" ")),ac=null,ba={},Ld=!1,Pi=(...e)=>t=>t.twMerge?((!ac||Ld)&&(Ld=!1,ac=Et(ba)?f$:d$(ba)),Ob(ac(vl(e)))):vl(e),qm=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=vl(e[n],t[n]):e[n]=t[n];return e},h$=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:l=[],defaultVariants:s={}}=e,a={...p$,...t},u=n!=null&&n.base?vl(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!Et(n.variants)?Rb(o,n.variants):o,d=n!=null&&n.defaultVariants&&!Et(n.defaultVariants)?{...n.defaultVariants,...s}:s;!Et(a.twMergeConfig)&&!B5(a.twMergeConfig,ba)&&(Ld=!0,ba=a.twMergeConfig);let f=Et(n==null?void 0:n.slots),p=Et(r)?{}:{base:vl(e==null?void 0:e.base,f&&(n==null?void 0:n.base)),...r},h=f?p:qm({...n==null?void 0:n.slots},Et(p)?{base:e==null?void 0:e.base}:p),b=g=>{if(Et(c)&&Et(r)&&f)return Pi(u,g==null?void 0:g.class,g==null?void 0:g.className)(a);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let v=(I,P,A=[],V)=>{let K=A;if(typeof P=="string")K=K.concat(Um(P).split(" ").map(F=>`${I}:${F}`));else if(Array.isArray(P))K=K.concat(P.reduce((F,B)=>F.concat(`${I}:${B}`),[]));else if(typeof P=="object"&&typeof V=="string"){for(let F in P)if(P.hasOwnProperty(F)&&F===V){let B=P[F];if(B&&typeof B=="string"){let O=Um(B);K[V]?K[V]=K[V].concat(O.split(" ").map(L=>`${I}:${L}`)):K[V]=O.split(" ").map(L=>`${I}:${L}`)}else Array.isArray(B)&&B.length>0&&(K[V]=B.reduce((O,L)=>O.concat(`${I}:${L}`),[]))}}return K},y=(I,P=c,A=null,V=null)=>{var K;let F=P[I];if(!F||Et(F))return null;let B=(K=V==null?void 0:V[I])!=null?K:g==null?void 0:g[I];if(B===null)return null;let O=Km(B),L=Array.isArray(a.responsiveVariants)&&a.responsiveVariants.length>0||a.responsiveVariants===!0,W=d==null?void 0:d[I],G=[];if(typeof O=="object"&&L)for(let[Q,fe]of Object.entries(O)){let ne=F[fe];if(Q==="initial"){W=fe;continue}Array.isArray(a.responsiveVariants)&&!a.responsiveVariants.includes(Q)||(G=v(Q,ne,G,A))}let ee=F[O]||F[Km(W)];return typeof G=="object"&&typeof A=="string"&&G[A]?qm(G,ee):G.length>0?(G.push(ee),G):ee},C=()=>c?Object.keys(c).map(I=>y(I,c)):null,E=(I,P)=>{if(!c||typeof c!="object")return null;let A=new Array;for(let V in c){let K=y(V,c,I,P),F=I==="base"&&typeof K=="string"?K:K&&K[I];F&&(A[A.length]=F)}return A},S={};for(let I in g)g[I]!==void 0&&(S[I]=g[I]);let D=(I,P)=>{var A;let V=typeof(g==null?void 0:g[I])=="object"?{[I]:(A=g[I])==null?void 0:A.initial}:{};return{...d,...S,...V,...P}},x=(I=[],P)=>{let A=[];for(let{class:V,className:K,...F}of I){let B=!0;for(let[O,L]of Object.entries(F)){let W=D(O,P);if(Array.isArray(L)){if(!L.includes(W[O])){B=!1;break}}else if(W[O]!==L){B=!1;break}}B&&(V&&A.push(V),K&&A.push(K))}return A},T=I=>{let P=x(i,I),A=x(n==null?void 0:n.compoundVariants,I);return Ab(A,P)},k=I=>{let P=T(I);if(!Array.isArray(P))return P;let A={};for(let V of P)if(typeof V=="string"&&(A.base=Pi(A.base,V)(a)),typeof V=="object")for(let[K,F]of Object.entries(V))A[K]=Pi(A[K],F)(a);return A},M=I=>{if(l.length<1)return null;let P={};for(let{slots:A=[],class:V,className:K,...F}of l){if(!Et(F)){let B=!0;for(let O of Object.keys(F)){let L=D(O,I)[O];if(L===void 0||(Array.isArray(F[O])?!F[O].includes(L):F[O]!==L)){B=!1;break}}if(!B)continue}for(let B of A)P[B]=P[B]||[],P[B].push([V,K])}return P};if(!Et(r)||!f){let I={};if(typeof h=="object"&&!Et(h))for(let P of Object.keys(h))I[P]=A=>{var V,K;return Pi(h[P],E(P,A),((V=k(A))!=null?V:[])[P],((K=M(A))!=null?K:[])[P],A==null?void 0:A.class,A==null?void 0:A.className)(a)};return I}return Pi(u,C(),T(),g==null?void 0:g.class,g==null?void 0:g.className)(a)},w=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return b.variantKeys=w(),b.extend=n,b.base=u,b.slots=h,b.variants=c,b.defaultVariants=d,b.compoundSlots=l,b.compoundVariants=i,b},ys=["small","medium","large"],Yt=(e,t)=>{var n,r,o;return h$(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider"],borderWidth:ys,borderRadius:ys},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:ys}],"font-size":[{text:["tiny",...ys]}],"bg-image":["bg-stripe-gradient"]}}})},Vo=["outline-none","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"],Cp=["outline-none","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"],po={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},Ym=Yt({base:"w-px h-px inline-block",variants:{isInline:{true:"inline-block",false:"block"}},defaultVariants:{isInline:!1}}),Qm=Yt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-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"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),Xm=Yt({slots:{base:"flex flex-col relative gap-4",wrapper:["p-4","z-0","flex","flex-col","relative","justify-between","gap-4","shadow-small","bg-content1","overflow-auto"],table:"min-w-full h-auto",thead:"[&>tr]:first:rounded-lg",tbody:"",tr:["group","outline-none",...Vo],th:["group","px-3","h-10","text-left","rtl:text-right","align-middle","bg-default-100","whitespace-nowrap","text-foreground-500","text-tiny","font-semibold","first:rounded-l-lg","rtl:first:rounded-r-lg","rtl:first:rounded-l-[unset]","last:rounded-r-lg","rtl:last:rounded-l-lg","rtl:last:rounded-r-[unset]","outline-none","data-[sortable=true]:transition-colors","data-[sortable=true]:cursor-pointer","data-[hover=true]:text-foreground-400",...Vo],td:["py-2","px-3","relative","align-middle","whitespace-normal","text-small","font-normal","outline-none","[&>*]:z-1","[&>*]:relative",...Vo,"before:content-['']","before:absolute","before:z-0","before:inset-0","before:opacity-0","data-[selected=true]:before:opacity-100","group-data-[disabled=true]:text-foreground-300","group-data-[disabled=true]:cursor-not-allowed"],tfoot:"",sortIcon:["ml-2","mb-px","opacity-0","text-inherit","inline-block","transition-transform-opacity","data-[visible=true]:opacity-100","group-data-[hover=true]:opacity-100","data-[direction=ascending]:rotate-180"],emptyWrapper:"text-foreground-400 align-middle text-center h-40",loadingWrapper:"absolute inset-0 flex items-center justify-center"},variants:{color:{default:{td:"before:bg-default/40 data-[selected=true]:text-default-foreground"},primary:{td:"before:bg-primary/20 data-[selected=true]:text-primary"},secondary:{td:"before:bg-secondary/20 data-[selected=true]:text-secondary"},success:{td:"before:bg-success/20 data-[selected=true]:text-success-600 dark:data-[selected=true]:text-success"},warning:{td:"before:bg-warning/20 data-[selected=true]:text-warning-600 dark:data-[selected=true]:text-warning"},danger:{td:"before:bg-danger/20 data-[selected=true]:text-danger dark:data-[selected=true]:text-danger-500"}},layout:{auto:{table:"table-auto"},fixed:{table:"table-fixed"}},radius:{none:{wrapper:"rounded-none"},sm:{wrapper:"rounded-small"},md:{wrapper:"rounded-medium"},lg:{wrapper:"rounded-large"}},shadow:{none:{wrapper:"shadow-none"},sm:{wrapper:"shadow-small"},md:{wrapper:"shadow-medium"},lg:{wrapper:"shadow-large"}},hideHeader:{true:{thead:"hidden"}},isStriped:{true:{td:["group-data-[odd=true]:before:bg-default-100","group-data-[odd=true]:before:opacity-100","group-data-[odd=true]:before:-z-10"]}},isCompact:{true:{td:"py-1"},false:{}},isHeaderSticky:{true:{thead:"sticky top-0 z-20 [&>tr]:first:shadow-small"}},isSelectable:{true:{tr:"cursor-default",td:["group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100","group-aria-[selected=false]:group-data-[hover=true]:before:opacity-70"]}},isMultiSelectable:{true:{td:["group-data-[first=true]:first:before:rounded-tl-lg","group-data-[first=true]:rtl:first:before:rounded-tr-lg","group-data-[first=true]:rtl:first:before:rounded-tl-[unset]","group-data-[first=true]:last:before:rounded-tr-lg","group-data-[first=true]:rtl:last:before:rounded-tl-lg","group-data-[first=true]:rtl:last:before:rounded-tr-[unset]","group-data-[middle=true]:before:rounded-none","group-data-[last=true]:first:before:rounded-bl-lg","group-data-[last=true]:rtl:first:before:rounded-br-lg","group-data-[last=true]:rtl:first:before:rounded-bl-[unset]","group-data-[last=true]:last:before:rounded-br-lg","group-data-[last=true]:rtl:last:before:rounded-bl-lg","group-data-[last=true]:rtl:last:before:rounded-br-[unset]"]},false:{td:["first:before:rounded-l-lg","rtl:first:before:rounded-r-lg","rtl:first:before:rounded-l-[unset]","last:before:rounded-r-lg","rtl:last:before:rounded-l-lg","rtl:last:before:rounded-r-[unset]"]}},fullWidth:{true:{base:"w-full",wrapper:"w-full",table:"w-full"}}},defaultVariants:{layout:"auto",shadow:"sm",radius:"lg",color:"default",isCompact:!1,hideHeader:!1,isStriped:!1,fullWidth:!0,disableAnimation:!1}}),m$=Yt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Cp],labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ml-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ml-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1,disableAnimation:!1}}),g$=Yt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny 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,disableAnimation:!1}}),Jm=Yt({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","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-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","rtl:right-auto","rtl:left-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...Vo],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"],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"},lg:{inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large"}},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 pr-2 rtl:pr-0 rtl:pl-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6 rtl:pr-0 rtl:pl-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},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:ml-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"}},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]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","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-50","text-secondary","data-[hover=true]:bg-secondary-100","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-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","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-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","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-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","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:[...Cp]}},{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:{label:"text-small",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","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-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%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.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%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","rtl:left-auto","rtl:right-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","rtl:left-auto","rtl:right-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.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"}}]}),Zm=Yt({slots:{base:["flex","flex-col","relative","overflow-hidden","height-auto","outline-none","text-foreground","box-border","bg-content1",...Vo],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,disableAnimation:!1,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,disableAnimation:!1,isFooterBlurred:!1}}),v$=Yt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-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",...Cp],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",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 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.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(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.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,disableAnimation:!1}});Yt({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,disableAnimation:!1}});var eg=Yt({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,disableAnimation:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{svg:"!transition-none motion-reduce:transition-none"}}]}),y$=Yt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...Vo],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",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:oe.solid.default},{variant:"solid",color:"primary",class:oe.solid.primary},{variant:"solid",color:"secondary",class:oe.solid.secondary},{variant:"solid",color:"success",class:oe.solid.success},{variant:"solid",color:"warning",class:oe.solid.warning},{variant:"solid",color:"danger",class:oe.solid.danger},{variant:"shadow",color:"default",class:oe.shadow.default},{variant:"shadow",color:"primary",class:oe.shadow.primary},{variant:"shadow",color:"secondary",class:oe.shadow.secondary},{variant:"shadow",color:"success",class:oe.shadow.success},{variant:"shadow",color:"warning",class:oe.shadow.warning},{variant:"shadow",color:"danger",class:oe.shadow.danger},{variant:"bordered",color:"default",class:oe.bordered.default},{variant:"bordered",color:"primary",class:oe.bordered.primary},{variant:"bordered",color:"secondary",class:oe.bordered.secondary},{variant:"bordered",color:"success",class:oe.bordered.success},{variant:"bordered",color:"warning",class:oe.bordered.warning},{variant:"bordered",color:"danger",class:oe.bordered.danger},{variant:"flat",color:"default",class:oe.flat.default},{variant:"flat",color:"primary",class:oe.flat.primary},{variant:"flat",color:"secondary",class:oe.flat.secondary},{variant:"flat",color:"success",class:oe.flat.success},{variant:"flat",color:"warning",class:oe.flat.warning},{variant:"flat",color:"danger",class:oe.flat.danger},{variant:"faded",color:"default",class:oe.faded.default},{variant:"faded",color:"primary",class:oe.faded.primary},{variant:"faded",color:"secondary",class:oe.faded.secondary},{variant:"faded",color:"success",class:oe.faded.success},{variant:"faded",color:"warning",class:oe.faded.warning},{variant:"faded",color:"danger",class:oe.faded.danger},{variant:"light",color:"default",class:[oe.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[oe.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[oe.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[oe.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[oe.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[oe.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:oe.ghost.default},{variant:"ghost",color:"primary",class:oe.ghost.primary},{variant:"ghost",color:"secondary",class:oe.ghost.secondary},{variant:"ghost",color:"success",class:oe.ghost.success},{variant:"ghost",color:"warning",class:oe.ghost.warning},{variant:"ghost",color:"danger",class:oe.ghost.danger},{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:po.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:po.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:po.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:po.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:po.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:po.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"}]});Yt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});function zd(e){return k2()?e.altKey:e.ctrlKey}function mo(e){return Qr()?e.metaKey:e.ctrlKey}const b$=1e3;function x$(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=m.useRef({search:"",timeout:null}).current,i=l=>{let s=w$(l.key);if(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))return;s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s;let a=t.getKeyForSearch(o.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(o.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},b$)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function w$(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function S$(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:f,scrollRef:p=r,linkBehavior:h="action"}=e,{direction:b}=Kn(),w=ib(),g=k=>{if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!r.current.contains(k.target))return;const M=(L,W)=>{if(L!=null){if(t.isLink(L)&&h==="selection"&&a&&!zd(k)){qa.flushSync(()=>{t.setFocusedKey(L,W)});let G=p.current.querySelector(`[data-key="${CSS.escape(L.toString())}"]`);w.open(G,k);return}if(t.setFocusedKey(L,W),t.isLink(L)&&h==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&!zd(k)&&t.replaceSelection(L)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var I,P;k.preventDefault();let L=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n);L==null&&i&&(L=(P=n.getFirstKey)===null||P===void 0?void 0:P.call(n,t.focusedKey)),M(L)}break;case"ArrowUp":if(n.getKeyAbove){var A,V;k.preventDefault();let L=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(A=n.getLastKey)===null||A===void 0?void 0:A.call(n);L==null&&i&&(L=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n,t.focusedKey)),M(L)}break;case"ArrowLeft":if(n.getKeyLeftOf){var K,F;k.preventDefault();let L=n.getKeyLeftOf(t.focusedKey);L==null&&i&&(L=b==="rtl"?(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n,t.focusedKey):(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,t.focusedKey)),M(L,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var B,O;k.preventDefault();let L=n.getKeyRightOf(t.focusedKey);L==null&&i&&(L=b==="rtl"?(B=n.getLastKey)===null||B===void 0?void 0:B.call(n,t.focusedKey):(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),M(L,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){k.preventDefault();let L=n.getFirstKey(t.focusedKey,mo(k));t.setFocusedKey(L),mo(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&t.replaceSelection(L)}break;case"End":if(n.getLastKey){k.preventDefault();let L=n.getLastKey(t.focusedKey,mo(k));t.setFocusedKey(L),mo(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&t.replaceSelection(L)}break;case"PageDown":if(n.getKeyPageBelow){k.preventDefault();let L=n.getKeyPageBelow(t.focusedKey);M(L)}break;case"PageUp":if(n.getKeyPageAbove){k.preventDefault();let L=n.getKeyPageAbove(t.focusedKey);M(L)}break;case"a":mo(k)&&t.selectionMode==="multiple"&&s!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":k.preventDefault(),l||t.clearSelection();break;case"Tab":if(!d){if(k.shiftKey)r.current.focus();else{let L=gl(r.current,{tabbable:!0}),W,G;do G=L.lastChild(),G&&(W=G);while(G);W&&!W.contains(document.activeElement)&&In(W)}break}}},v=m.useRef({top:0,left:0});L2(p,"scroll",f?null:()=>{v.current={top:p.current.scrollTop,left:p.current.scrollLeft}});let y=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){let P=V=>{V!=null&&(t.setFocusedKey(V),a&&t.replaceSelection(V))},A=k.relatedTarget;var M,I;A&&k.currentTarget.compareDocumentPosition(A)&Node.DOCUMENT_POSITION_FOLLOWING?P((M=t.lastSelectedKey)!==null&&M!==void 0?M:n.getLastKey()):P((I=t.firstSelectedKey)!==null&&I!==void 0?I:n.getFirstKey())}else f||(p.current.scrollTop=v.current.top,p.current.scrollLeft=v.current.left);if(!f&&t.focusedKey!=null){let P=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);P&&(P.contains(document.activeElement)||In(P),Md()==="keyboard"&&Zn(P,{containingElement:r.current}))}}},C=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)};const E=m.useRef(o);m.useEffect(()=>{if(E.current){let k=null;o==="first"&&(k=n.getFirstKey()),o==="last"&&(k=n.getLastKey());let M=t.selectedKeys;if(M.size){for(let I of M)if(t.canSelectItem(I)){k=I;break}}t.setFocused(!0),t.setFocusedKey(k),k==null&&!c&&Lt(r.current)}},[]);let S=m.useRef(t.focusedKey);m.useEffect(()=>{let k=Md();if(t.isFocused&&t.focusedKey!=null&&(p!=null&&p.current)){let M=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);M&&(k==="keyboard"||E.current)&&(f||db(p.current,M),k!=="virtual"&&Zn(M,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&S.current!=null&&Lt(r.current),S.current=t.focusedKey,E.current=!1},[f,p,t.focusedKey,t.isFocused,r]);let D={onKeyDown:g,onFocus:y,onBlur:C,onMouseDown(k){p.current===k.target&&k.preventDefault()}},{typeSelectProps:x}=x$({keyboardDelegate:n,selectionManager:t});u||(D=J(x,D));let T;return c||(T=t.focusedKey==null?0:-1),{collectionProps:{...D,tabIndex:T}}}function jb(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:a,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,d=ib(),f=F=>{if(F.pointerType==="keyboard"&&zd(F))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){d.open(r.current,F),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):F&&F.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||F&&(mo(F)||F.pointerType==="touch"||F.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};m.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(l?l():document.activeElement!==r.current&&Lt(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let p={};!i&&!s?p={tabIndex:n===t.focusedKey?0:-1,onFocus(F){F.target===r.current&&t.setFocusedKey(n)}}:s&&(p.onMouseDown=F=>{F.preventDefault()});let h=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!s&&t.canSelectItem(n)&&!h,g=(a||b)&&!s,v=g&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),y=g&&w&&t.selectionBehavior==="replace",C=v||y,E=m.useRef(null),S=C&&w,D=m.useRef(!1),x=m.useRef(!1),T=F=>{a&&a(),b&&d.open(r.current,F)},k={};o?(k.onPressStart=F=>{E.current=F.pointerType,D.current=S,F.pointerType==="keyboard"&&(!C||ng())&&f(F)},u?(k.onPressUp=v?null:F=>{F.pointerType!=="keyboard"&&w&&f(F)},k.onPress=v?T:null):k.onPress=F=>{if(v||y&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!tg())return;T(F)}else F.pointerType!=="keyboard"&&w&&f(F)}):(k.onPressStart=F=>{E.current=F.pointerType,D.current=S,x.current=v,w&&(F.pointerType==="mouse"&&!v||F.pointerType==="keyboard"&&(!g||ng()))&&f(F)},k.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&C&&tg()||F.pointerType==="mouse"&&x.current)&&(C?T(F):w&&f(F))}),p["data-key"]=n,k.preventFocusOnPress=i;let{pressProps:M,isPressed:I}=un(k),P=y?F=>{E.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),T(F))}:void 0,{longPressProps:A}=m5({isDisabled:!S,onLongPress(F){F.pointerType==="touch"&&(f(F),t.setSelectionBehavior("toggle"))}}),V=F=>{E.current==="touch"&&D.current&&F.preventDefault()},K=t.isLink(n)?F=>{Sr.isOpening||F.preventDefault()}:void 0;return{itemProps:J(p,w||v?M:{},S?A:{},{onDoubleClick:P,onDragStartCapture:V,onClick:K}),isPressed:I,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:w,hasAction:C}}function tg(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function ng(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var C$=e=>$.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:$.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"})}),$$=({strokeWidth:e=1.5,...t})=>$.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:$.jsx("path",{d:"m6 9 6 6 6-6"})});const $p=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),tu=m.createContext({}),Ep=m.createContext(null),Pp=typeof document<"u",kp=Pp?m.useLayoutEffect:m.useEffect,Dp=m.createContext({strict:!1}),Tp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),E$="framerAppearId",_b="data-"+Tp(E$),P$={skipAnimations:!1,useManualTiming:!1};class rg{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function k$(e){let t=new rg,n=new rg,r=0,o=!1,i=!1;const l=new WeakSet,s={schedule:(a,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&l.add(a),f.add(a)&&d&&o&&(r=t.order.length),a},cancel:a=>{n.remove(a),l.delete(a)},process:a=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=k$(()=>n=!0),d),{}),l=d=>{i[d].process(o)},s=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,D$),1),o.timestamp=d,o.isProcessing=!0,bs.forEach(l),o.isProcessing=!1,n&&t&&(r=!1,e(s))},a=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:bs.reduce((d,f)=>{const p=i[f];return d[f]=(h,b=!1,w=!1)=>(n||a(),p.schedule(h,b,w)),d},{}),cancel:d=>bs.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:T$,cancel:QM}=Vb(queueMicrotask,!1);function M$(e,t,n,r){const{visualElement:o}=m.useContext(tu),i=m.useContext(Dp),l=m.useContext(Ep),s=m.useContext($p).reducedMotion,a=m.useRef();r=r||i.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:s}));const u=a.current;m.useInsertionEffect(()=>{u&&u.update(n,l)});const c=m.useRef(!!(n[_b]&&!window.HandoffComplete));return kp(()=>{u&&(T$.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),m.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Kb(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function A$(e,t,n){return m.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Kb(n)&&(n.current=r))},[t])}function yl(e){return typeof e=="string"||Array.isArray(e)}function nu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Mp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ap=["initial",...Mp];function ru(e){return nu(e.animate)||Ap.some(t=>yl(e[t]))}function Ub(e){return!!(ru(e)||e.variants)}function R$(e,t){if(ru(e)){const{initial:n,animate:r}=e;return{initial:n===!1||yl(n)?n:void 0,animate:yl(r)?r:void 0}}return e.inherit!==!1?t:{}}function I$(e){const{initial:t,animate:n}=R$(e,m.useContext(tu));return m.useMemo(()=>({initial:t,animate:n}),[og(t),og(n)])}function og(e){return Array.isArray(e)?e.join(" "):e}const ig={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"]},bl={};for(const e in ig)bl[e]={isEnabled:t=>ig[e].some(n=>!!t[n])};function Od(e){for(const t in e)bl[t]={...bl[t],...e[t]}}const Wb=m.createContext({}),N$=m.createContext({}),F$=Symbol.for("motionComponentSymbol");function B$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Od(e);function i(s,a){let u;const c={...m.useContext($p),...s,layoutId:L$(s)},{isStatic:d}=c,f=I$(s),p=r(s,d);if(!d&&Pp){f.visualElement=M$(o,p,c,t);const h=m.useContext(N$),b=m.useContext(Dp).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,b,e,h))}return $.jsxs(tu.Provider,{value:f,children:[u&&f.visualElement?$.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,s,A$(p,f.visualElement,a),p,d,f.visualElement)]})}const l=m.forwardRef(i);return l[F$]=o,l}function L$({layoutId:e}){const t=m.useContext(Wb).id;return t&&e!==void 0?t+"-"+e:e}function z$(e){function t(r,o={}){return B$(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const O$=["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 Rp(e){return typeof e!="string"||e.includes("-")?!1:!!(O$.indexOf(e)>-1||/[A-Z]/u.test(e))}const j$={},Rl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oo=new Set(Rl);function Hb(e,{layout:t,layoutId:n}){return oo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!j$[e]||e==="opacity")}const ft=e=>!!(e&&e.getVelocity),_$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V$=Rl.length;function K$(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let l=0;lt=>typeof t=="string"&&t.startsWith(e),qb=Gb("--"),U$=Gb("var(--"),Ip=e=>U$(e)?W$.test(e.split("/*")[0].trim()):!1,W$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,H$=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ei=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Yi={...ui,transform:e=>ei(0,1,e)},xs={...ui,default:1},Qi=e=>Math.round(e*1e5)/1e5,Np=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,G$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,q$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Il(e){return typeof e=="string"}const Nl=e=>({test:t=>Il(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qn=Nl("deg"),Ko=Nl("%"),te=Nl("px"),Y$=Nl("vh"),Q$=Nl("vw"),lg={...Ko,parse:e=>Ko.parse(e)/100,transform:e=>Ko.transform(e*100)},sg={...ui,transform:Math.round},Yb={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,size:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,rotate:qn,rotateX:qn,rotateY:qn,rotateZ:qn,scale:xs,scaleX:xs,scaleY:xs,scaleZ:xs,skew:qn,skewX:qn,skewY:qn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Yi,originX:lg,originY:lg,originZ:te,zIndex:sg,backgroundPositionX:te,backgroundPositionY:te,fillOpacity:Yi,strokeOpacity:Yi,numOctaves:sg};function Fp(e,t,n,r){const{style:o,vars:i,transform:l,transformOrigin:s}=e;let a=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(qb(d)){i[d]=f;continue}const p=Yb[d],h=H$(f,p);if(oo.has(d)){if(a=!0,l[d]=h,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=h):o[d]=h}if(t.transform||(a||r?o.transform=K$(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const Bp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qb(e,t,n){for(const r in t)!ft(t[r])&&!Hb(r,n)&&(e[r]=t[r])}function X$({transformTemplate:e},t,n){return m.useMemo(()=>{const r=Bp();return Fp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function J$(e,t,n){const r=e.style||{},o={};return Qb(o,r,e),Object.assign(o,X$(e,t,n)),o}function Z$(e,t,n){const r={},o=J$(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const eE=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 xa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eE.has(e)}let Xb=e=>!xa(e);function tE(e){e&&(Xb=t=>t.startsWith("on")?!xa(t):e(t))}try{tE(require("@emotion/is-prop-valid").default)}catch{}function nE(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Xb(o)||n===!0&&xa(o)||!t&&!xa(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function ag(e,t,n){return typeof e=="string"?e:te.transform(t+n*e)}function rE(e,t,n){const r=ag(t,e.x,e.width),o=ag(n,e.y,e.height);return`${r} ${o}`}const oE={offset:"stroke-dashoffset",array:"stroke-dasharray"},iE={offset:"strokeDashoffset",array:"strokeDasharray"};function lE(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?oE:iE;e[i.offset]=te.transform(-r);const l=te.transform(t),s=te.transform(n);e[i.array]=`${l} ${s}`}function Lp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:l,pathSpacing:s=1,pathOffset:a=0,...u},c,d,f){if(Fp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:b}=e;p.transform&&(b&&(h.transform=p.transform),delete p.transform),b&&(o!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=rE(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),l!==void 0&&lE(p,l,s,a,!1)}const Jb=()=>({...Bp(),attrs:{}}),zp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sE(e,t,n,r){const o=m.useMemo(()=>{const i=Jb();return Lp(i,t,{enableHardwareAcceleration:!1},zp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Qb(i,e.style,e),o.style={...i,...o.style}}return o}function aE(e=!1){return(n,r,o,{latestValues:i},l)=>{const a=(Rp(n)?sE:Z$)(r,i,l,n),u=nE(r,typeof n=="string",e),c=n!==m.Fragment?{...u,...a,ref:o}:{},{children:d}=r,f=m.useMemo(()=>ft(d)?d.get():d,[d]);return m.createElement(n,{...c,children:f})}}function Zb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const e1=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 t1(e,t,n,r){Zb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(e1.has(o)?o:Tp(o),t.attrs[o])}function Op(e,t,n){var r;const{style:o}=e,i={};for(const l in o)(ft(o[l])||t.style&&ft(t.style[l])||Hb(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function n1(e,t,n){const r=Op(e,t,n);for(const o in e)if(ft(e[o])||ft(t[o])){const i=Rl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function jp(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function r1(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const jd=e=>Array.isArray(e),uE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cE=e=>jd(e)?e[e.length-1]||0:e;function dE(e){const t=ft(e)?e.get():e;return uE(t)?t.toValue():t}function fE({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const l={latestValues:pE(r,o,i,e),renderState:t()};return n&&(l.mount=s=>n(r,s,l)),l}const o1=e=>(t,n)=>{const r=m.useContext(tu),o=m.useContext(Ep),i=()=>fE(e,t,r,o);return n?i():r1(i)};function pE(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=dE(i[f]);let{initial:l,animate:s}=e;const a=ru(e),u=Ub(e);t&&u&&!a&&e.inherit!==!1&&(l===void 0&&(l=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||l===!1;const d=c?s:l;return d&&typeof d!="boolean"&&!nu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const h=jp(e,p);if(!h)return;const{transitionEnd:b,transition:w,...g}=h;for(const v in g){let y=g[v];if(Array.isArray(y)){const C=c?y.length-1:0;y=y[C]}y!==null&&(o[v]=y)}for(const v in b)o[v]=b[v]}),o}const wn=e=>e,{schedule:qt,cancel:_d,state:wa,steps:XM}=Vb(typeof requestAnimationFrame<"u"?requestAnimationFrame:wn,!0),hE={useVisualState:o1({scrapeMotionValuesFromProps:n1,createRenderState:Jb,onMount:(e,t,{renderState:n,latestValues:r})=>{qt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),qt.render(()=>{Lp(n,r,{enableHardwareAcceleration:!1},zp(t.tagName),e.transformTemplate),t1(t,n)})}})},mE={useVisualState:o1({scrapeMotionValuesFromProps:Op,createRenderState:Bp})};function gE(e,{forwardMotionProps:t=!1},n,r){return{...Rp(e)?hE:mE,preloadedFeatures:n,useRender:aE(t),createVisualElement:r,Component:e}}function Lr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const vE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function i1(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const yE=e=>t=>vE(t)&&e(t,i1(t));function Fs(e,t,n,r){return Lr(e,t,yE(n),r)}const bE=(e,t)=>n=>t(e(n)),mr=(...e)=>e.reduce(bE);function l1(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ug=l1("dragHorizontal"),cg=l1("dragVertical");function xE(e){let t=!1;if(e==="y")t=cg();else if(e==="x")t=ug();else{const n=ug(),r=cg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function s1(){const e=xE(!0);return e?(e(),!1):!0}class ci{constructor(t){this.isMounted=!1,this.node=t}update(){}}function dg(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,l)=>{if(i.pointerType==="touch"||s1())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const a=s[r];a&&a(i,l)};return Fs(e.current,n,o,{passive:!e.getProps()[r]})}class wE extends ci{mount(){this.unmount=mr(dg(this.node,!0),dg(this.node,!1))}unmount(){}}class SE extends ci{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=mr(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const a1=(e,t)=>t?e===t?!0:a1(e,t.parentElement):!1;function uc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,i1(n))}class CE extends ci{constructor(){super(...arguments),this.removeStartListeners=wn,this.removeEndListeners=wn,this.removeAccessibleListeners=wn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Fs(window,"pointerup",(s,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();!d&&!a1(this.node.current,s.target)?c&&c(s,a):u&&u(s,a)},{passive:!(r.onTap||r.onPointerUp)}),l=Fs(window,"pointercancel",(s,a)=>this.cancelPress(s,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=mr(i,l),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const l=s=>{s.key!=="Enter"||!this.checkPressEnd()||uc("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&c(a,u)})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",l),uc("down",(s,a)=>{this.startPress(s,a)})},n=Lr(this.node.current,"keydown",t),r=()=>{this.isPressing&&uc("cancel",(i,l)=>this.cancelPress(i,l))},o=Lr(this.node.current,"blur",r);this.removeAccessibleListeners=mr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!s1()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Fs(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Vd=new WeakMap,cc=new WeakMap,$E=e=>{const t=Vd.get(e.target);t&&t(e)},EE=e=>{e.forEach($E)};function PE({root:e,...t}){const n=e||document;cc.has(n)||cc.set(n,{});const r=cc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(EE,{root:e,...t})),r[o]}function kE(e,t,n){const r=PE(t);return Vd.set(e,n),r.observe(e),()=>{Vd.delete(e),r.unobserve(e)}}const DE={some:0,all:1};class TE extends ci{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:DE[o]},s=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(a)};return kE(this.node.current,l,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ME(t,n))&&this.startObserver()}unmount(){}}function ME({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AE={inView:{Feature:TE},tap:{Feature:CE},focus:{Feature:SE},hover:{Feature:wE}};function u1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function IE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ou(e,t,n){const r=e.getProps();return jp(r,t,n!==void 0?n:r.custom,RE(e),IE(e))}const Kr=e=>e*1e3,gr=e=>e/1e3,NE={type:"spring",stiffness:500,damping:25,restSpeed:10},FE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BE={type:"keyframes",duration:.8},LE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zE=(e,{keyframes:t})=>t.length>2?BE:oo.has(e)?e.startsWith("scale")?FE(t[1]):NE:LE;function OE({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:l,repeatDelay:s,from:a,elapsed:u,...c}){return!!Object.keys(c).length}function c1(e,t){return e[t]||e.default||e}const jE=e=>e!==null;function iu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(jE),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let Bs;function _E(){Bs=void 0}const Uo={now:()=>(Bs===void 0&&Uo.set(wa.isProcessing||P$.useManualTiming?wa.timestamp:performance.now()),Bs),set:e=>{Bs=e,queueMicrotask(_E)}},d1=e=>/^0[^.\s]+$/u.test(e);function VE(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||d1(e):!0}let f1=wn;const p1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),KE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UE(e){const t=KE.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function h1(e,t,n=1){const[r,o]=UE(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const l=i.trim();return p1(l)?parseFloat(l):l}return Ip(o)?h1(o,t,n+1):o}const WE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fg=e=>e===ui||e===te,pg=(e,t)=>parseFloat(e.split(", ")[t]),hg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return pg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?pg(i[1],e):0}},HE=new Set(["x","y","z"]),GE=Rl.filter(e=>!HE.has(e));function qE(e){const t=[];return GE.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ti={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:hg(4,13),y:hg(5,14)};ti.translateX=ti.x;ti.translateY=ti.y;const m1=e=>t=>t.test(e),YE={test:e=>e==="auto",parse:e=>e},g1=[ui,te,Ko,qn,Q$,Y$,YE],mg=e=>g1.find(m1(e)),Ur=new Set;let Kd=!1,Ud=!1;function v1(){if(Ud){const e=Array.from(Ur).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=qE(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,l])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ud=!1,Kd=!1,Ur.forEach(e=>e.complete()),Ur.clear()}function y1(){Ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ud=!0)})}function QE(){y1(),v1()}class _p{constructor(t,n,r,o,i,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ur.add(this),Kd||(Kd=!0,qt.read(y1),qt.resolveKeyframes(v1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Il(n)&&q$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),b1=(e,t,n)=>r=>{if(!Il(r))return r;const[o,i,l,s]=r.match(Np);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(l),alpha:s!==void 0?parseFloat(s):1}},XE=e=>ei(0,255,e),dc={...ui,transform:e=>Math.round(XE(e))},zr={test:Vp("rgb","red"),parse:b1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dc.transform(e)+", "+dc.transform(t)+", "+dc.transform(n)+", "+Qi(Yi.transform(r))+")"};function JE(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Wd={test:Vp("#"),parse:JE,transform:zr.transform},Ao={test:Vp("hsl","hue"),parse:b1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ko.transform(Qi(t))+", "+Ko.transform(Qi(n))+", "+Qi(Yi.transform(r))+")"},lt={test:e=>zr.test(e)||Wd.test(e)||Ao.test(e),parse:e=>zr.test(e)?zr.parse(e):Ao.test(e)?Ao.parse(e):Wd.parse(e),transform:e=>Il(e)?e:e.hasOwnProperty("red")?zr.transform(e):Ao.transform(e)};function ZE(e){var t,n;return isNaN(e)&&Il(e)&&(((t=e.match(Np))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(G$))===null||n===void 0?void 0:n.length)||0)>0}const x1="number",w1="color",eP="var",tP="var(",gg="${}",nP=/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 Sa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(nP,a=>(lt.test(a)?(r.color.push(i),o.push(w1),n.push(lt.parse(a))):a.startsWith(tP)?(r.var.push(i),o.push(eP),n.push(a)):(r.number.push(i),o.push(x1),n.push(parseFloat(a))),++i,gg)).split(gg);return{values:n,split:s,indexes:r,types:o}}function S1(e){return Sa(e).values}function C1(e){const{split:t,types:n}=Sa(e),r=t.length;return o=>{let i="";for(let l=0;ltypeof e=="number"?0:e;function oP(e){const t=S1(e);return C1(e)(t.map(rP))}const di={test:ZE,parse:S1,createTransformer:C1,getAnimatableNone:oP},iP=new Set(["brightness","contrast","saturate","opacity"]);function lP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Np)||[];if(!r)return e;const o=n.replace(r,"");let i=iP.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const sP=/\b([a-z-]*)\(.*?\)/gu,Hd={...di,getAnimatableNone:e=>{const t=e.match(sP);return t?t.map(lP).join(" "):e}},aP={...Yb,color:lt,backgroundColor:lt,outlineColor:lt,fill:lt,stroke:lt,borderColor:lt,borderTopColor:lt,borderRightColor:lt,borderBottomColor:lt,borderLeftColor:lt,filter:Hd,WebkitFilter:Hd},Kp=e=>aP[e];function $1(e,t){let n=Kp(e);return n!==Hd&&(n=di),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function uP(e,t,n){let r=0,o;for(;r{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function cP(e){let t;return()=>(t===void 0&&(t=e()),t)}const vg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(di.test(e)||e==="0")&&!e.startsWith("url("));function dP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function k1(e,t){return t?e*(1e3/t):0}const pP=5;function D1(e,t,n){const r=Math.max(t-pP,0);return k1(n-e(r),t-r)}const fc=.001,hP=.01,mP=10,gP=.05,vP=1;function yP({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,l=1-t;l=ei(gP,vP,l),e=ei(hP,mP,gr(e)),l<1?(o=u=>{const c=u*l,d=c*e,f=c-n,p=Gd(u,l),h=Math.exp(-d);return fc-f/p*h},i=u=>{const d=u*l*e,f=d*n+n,p=Math.pow(l,2)*Math.pow(u,2)*e,h=Math.exp(-d),b=Gd(Math.pow(u,2),l);return(-o(u)+fc>0?-1:1)*((f-p)*h)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-fc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const s=5/e,a=xP(o,i,s);if(e=Kr(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:l*2*Math.sqrt(r*u),duration:e}}}const bP=12;function xP(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function CP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yg(e,SP)&&yg(e,wP)){const n=yP(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function T1({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],l={done:!1,value:o},{stiffness:s,damping:a,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=CP({...r,velocity:-gr(r.velocity||0)}),p=d||0,h=a/(2*Math.sqrt(s*u)),b=i-o,w=gr(Math.sqrt(s/u)),g=Math.abs(b)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let v;if(h<1){const y=Gd(w,h);v=C=>{const E=Math.exp(-h*w*C);return i-E*((p+h*w*b)/y*Math.sin(y*C)+b*Math.cos(y*C))}}else if(h===1)v=y=>i-Math.exp(-w*y)*(b+(p+w*b)*y);else{const y=w*Math.sqrt(h*h-1);v=C=>{const E=Math.exp(-h*w*C),S=Math.min(y*C,300);return i-E*((p+h*w*b)*Math.sinh(S)+y*b*Math.cosh(S))/y}}return{calculatedDuration:f&&c||null,next:y=>{const C=v(y);if(f)l.done=y>=c;else{let E=p;y!==0&&(h<1?E=D1(v,y,C):E=0);const S=Math.abs(E)<=n,D=Math.abs(i-C)<=t;l.done=S&&D}return l.value=l.done?i:C,l}}}function bg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:l,min:s,max:a,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=x=>s!==void 0&&xa,h=x=>s===void 0?a:a===void 0||Math.abs(s-x)-b*Math.exp(-x/r),y=x=>g+v(x),C=x=>{const T=v(x),k=y(x);f.done=Math.abs(T)<=u,f.value=f.done?g:k};let E,S;const D=x=>{p(f.value)&&(E=x,S=T1({keyframes:[f.value,h(f.value)],velocity:D1(y,x,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:x=>{let T=!1;return!S&&E===void 0&&(T=!0,C(x),D(x)),E!==void 0&&x>=E?S.next(x-E):(!T&&C(x),f)}}}const M1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$P=1e-7,EP=12;function PP(e,t,n,r,o){let i,l,s=0;do l=t+(n-t)/2,i=M1(l,r,o)-e,i>0?n=l:t=l;while(Math.abs(i)>$P&&++sPP(i,0,1,e,n);return i=>i===0||i===1?i:M1(o(i),t,r)}const kP=Fl(.42,0,1,1),DP=Fl(0,0,.58,1),A1=Fl(.42,0,.58,1),TP=e=>Array.isArray(e)&&typeof e[0]!="number",R1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,I1=e=>t=>1-e(1-t),Up=e=>1-Math.sin(Math.acos(e)),MP=I1(Up),AP=R1(Up),N1=Fl(.33,1.53,.69,.99),Wp=I1(N1),RP=R1(Wp),IP=e=>(e*=2)<1?.5*Wp(e):.5*(2-Math.pow(2,-10*(e-1))),NP={linear:wn,easeIn:kP,easeInOut:A1,easeOut:DP,circIn:Up,circInOut:AP,circOut:MP,backIn:Wp,backInOut:RP,backOut:N1,anticipate:IP},xg=e=>{if(Array.isArray(e)){f1(e.length===4);const[t,n,r,o]=e;return Fl(t,n,r,o)}else if(typeof e=="string")return NP[e];return e},F1=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lu=(e,t,n)=>e+(t-e)*n;function pc(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 FP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,l=0;if(!t)o=i=l=n;else{const s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;o=pc(a,s,e+1/3),i=pc(a,s,e),l=pc(a,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:r}}const hc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},BP=[Wd,zr,Ao],LP=e=>BP.find(t=>t.test(e));function wg(e){const t=LP(e);let n=t.parse(e);return t===Ao&&(n=FP(n)),n}const Sg=(e,t)=>{const n=wg(e),r=wg(t),o={...n};return i=>(o.red=hc(n.red,r.red,i),o.green=hc(n.green,r.green,i),o.blue=hc(n.blue,r.blue,i),o.alpha=lu(n.alpha,r.alpha,i),zr.transform(o))};function qd(e,t){return n=>n>0?t:e}function zP(e,t){return n=>lu(e,t,n)}function Hp(e){return typeof e=="number"?zP:typeof e=="string"?Ip(e)?qd:lt.test(e)?Sg:_P:Array.isArray(e)?B1:typeof e=="object"?lt.test(e)?Sg:OP:qd}function B1(e,t){const n=[...e],r=n.length,o=e.map((i,l)=>Hp(i)(i,t[l]));return i=>{for(let l=0;l{for(const i in r)n[i]=r[i](o);return n}}function jP(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=di.createTransformer(t),r=Sa(e),o=Sa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?mr(B1(jP(r,o),o.values),n):qd(e,t)};function L1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lu(e,t,n):Hp(e)(e,t)}function VP(e,t,n){const r=[],o=n||L1,i=e.length-1;for(let l=0;lt[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=VP(t,r,o),s=l.length,a=u=>{let c=0;if(s>1)for(;ca(ei(e[0],e[i-1],u)):a}function UP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=F1(0,t,r);e.push(lu(n,1,o))}}function WP(e){const t=[0];return UP(t,e.length-1),t}function HP(e,t){return e.map(n=>n*t)}function GP(e,t){return e.map(()=>t||A1).splice(0,e.length-1)}function Ca({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=TP(r)?r.map(xg):xg(r),i={done:!1,value:t[0]},l=HP(n&&n.length===t.length?n:WP(t),e),s=KP(l,t,{ease:Array.isArray(o)?o:GP(t,o)});return{calculatedDuration:e,next:a=>(i.value=s(a),i.done=a>=e,i)}}const Cg=2e4;function qP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Cg?1/0:t}const YP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qt.update(t,!0),stop:()=>_d(t),now:()=>wa.isProcessing?wa.timestamp:Uo.now()}},QP={decay:bg,inertia:bg,tween:Ca,keyframes:Ca,spring:T1},XP=e=>e/100;class Gp extends P1{constructor({KeyframeResolver:t=_p,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:r,motionValue:o,keyframes:i}=this.options,l=(s,a)=>this.onKeyframesResolved(s,a);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,l,r,o):this.resolver=new t(i,l,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:l=0}=this.options,s=QP[n]||Ca;let a,u;s!==Ca&&typeof t[0]!="number"&&(a=mr(XP,L1(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-l})),c.calculatedDuration===null&&(c.calculatedDuration=qP(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:x}=this.options;return{done:!0,value:x[x.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:l,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:b,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,C=i;if(p){const x=Math.min(this.currentTime,c)/d;let T=Math.floor(x),k=x%1;!k&&x>=1&&(k=1),k===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(h==="reverse"?(k=1-k,b&&(k-=b/d)):h==="mirror"&&(C=l)),y=ei(0,1,k)*d}const E=v?{done:!1,value:a[0]}:C.next(y);s&&(E.value=s(E.value));let{done:S}=E;!v&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return D&&o!==void 0&&(E.value=iu(a,this.options,o)),w&&w(E.value),D&&this.finish(),E}get duration(){const{resolved:t}=this;return t?gr(t.calculatedDuration):0}get time(){return gr(this.currentTime)}set time(t){t=Kr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=gr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=YP,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:t}=this.options;t&&t()}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const z1=e=>Array.isArray(e)&&typeof e[0]=="number";function O1(e){return!!(!e||typeof e=="string"&&e in qp||z1(e)||Array.isArray(e)&&e.every(O1))}const zi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zi([0,.65,.55,1]),circOut:zi([.55,0,1,.45]),backIn:zi([.31,.01,.66,-.59]),backOut:zi([.33,1.53,.69,.99])};function JP(e){return j1(e)||qp.easeOut}function j1(e){if(e)return z1(e)?zi(e):Array.isArray(e)?e.map(JP):qp[e]}function ZP(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:l="loop",ease:s,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=j1(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"})}const ek=cP(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tk=new Set(["opacity","clipPath","filter","transform"]),$a=10,nk=2e4;function rk(e){return e.type==="spring"||e.name==="backgroundColor"||!O1(e.ease)}function ok(e,t){const n=new Gp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,l),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:l,type:s,motionValue:a,name:u}=this.options;if(!(!((r=a.owner)===null||r===void 0)&&r.current))return!1;if(rk(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,b=ok(t,h);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,i=b.times,l=b.ease,s="keyframes"}const c=ZP(a.owner.current,u,t,{...this.options,duration:o,times:i,ease:l});return c.startTime=Uo.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;a.set(iu(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:l,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return gr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return gr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Kr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return wn;const{animation:r}=n;r.timeline=t,r.onfinish=null}return wn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:l,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:a,onUpdate:u,onComplete:c,...d}=this.options,f=new Gp({...d,keyframes:r,duration:o,type:i,ease:l,times:s,isGenerator:!0}),p=Kr(this.time);a.setWithVelocity(f.sample(p-$a).value,f.sample(p).value,$a)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:l,type:s}=t;return ek()&&r&&tk.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&l!==0&&s!=="inertia"}}const ik=(e,t,n,r={},o,i)=>l=>{const s=c1(r,e)||{},a=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Kr(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{l(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};OE(s)||(c={...c,...zE(e,c)}),c.duration&&(c.duration=Kr(c.duration)),c.repeatDelay&&(c.repeatDelay=Kr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=iu(c.keyframes,s);if(f!==void 0){qt.update(()=>{c.onUpdate(f),c.onComplete()});return}}return!i&&$g.supports(c)?new $g(c):new Gp(c)};function Ea(e){return!!(ft(e)&&e.add)}function lk(e,t){e.indexOf(t)===-1&&e.push(t)}function sk(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class _1{constructor(){this.subscriptions=[]}add(t){return lk(this.subscriptions,t),()=>sk(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class uk{constructor(t,n={}){this.version="11.1.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Uo.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=ak(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Uo.now()}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 _1);const r=this.events[t].add(n);return t==="change"?()=>{r(),qt.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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Uo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return k1(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pa(e,t){return new uk(e,t)}function ck(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pa(n))}function dk(e,t){const n=ou(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const l in i){const s=cE(i[l]);ck(e,l,s)}}function fk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function V1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:l=e.getDefaultTransition(),transitionEnd:s,...a}=t;const u=e.getValue("willChange");r&&(l=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in a){const p=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),h=a[f];if(h===void 0||d&&fk(d,f))continue;const b={delay:n,elapsed:0,...c1(l||{},f)};let w=!1;if(window.HandoffAppearAnimations){const y=e.getProps()[_b];if(y){const C=window.HandoffAppearAnimations(y,f);C!==null&&(b.elapsed=C,w=!0)}}p.start(ik(f,p,h,e.shouldReduceMotion&&oo.has(f)?{type:!1}:b,e,w));const g=p.animation;g&&(Ea(u)&&(u.add(f),g.then(()=>u.remove(f))),c.push(g))}return s&&Promise.all(c).then(()=>{qt.update(()=>{s&&dk(e,s)})}),c}function Yd(e,t,n={}){var r;const o=ou(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const l=o?()=>Promise.all(V1(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return pk(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[l,s]:[s,l];return u().then(()=>c())}else return Promise.all([l(),s(n.delay)])}function pk(e,t,n=0,r=0,o=1,i){const l=[],s=(e.variantChildren.size-1)*r,a=o===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(hk).forEach((u,c)=>{u.notify("AnimationStart",t),l.push(Yd(u,t,{...i,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(l)}function hk(e,t){return e.sortNodePosition(t)}function mk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Yd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Yd(e,t,n);else{const o=typeof t=="function"?ou(e,t,n.custom):t;r=Promise.all(V1(e,o,n))}return r.then(()=>{qt.postRender(()=>{e.notify("AnimationComplete",t)})})}const gk=[...Mp].reverse(),vk=Mp.length;function yk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mk(e,n,r)))}function bk(e){let t=yk(e);const n=wk();let r=!0;const o=a=>(u,c)=>{var d;const f=ou(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...b}=f;u={...u,...b,...h}}return u};function i(a){t=a(e)}function l(a){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let w=0;wh&&C,T=!1;const k=Array.isArray(y)?y:[y];let M=k.reduce(o(g),{});E===!1&&(M={});const{prevResolvedValues:I={}}=v,P={...I,...M},A=V=>{x=!0,f.has(V)&&(T=!0,f.delete(V)),v.needsAnimating[V]=!0;const K=e.getValue(V);K&&(K.liveStyle=!1)};for(const V in P){const K=M[V],F=I[V];if(p.hasOwnProperty(V))continue;let B=!1;jd(K)&&jd(F)?B=!u1(K,F):B=K!==F,B?K!=null?A(V):f.add(V):K!==void 0&&f.has(V)?A(V):v.protectedKeys[V]=!0}v.prevProp=y,v.prevResolvedValues=M,v.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(x=!1),x&&(!S||T)&&d.push(...k.map(V=>({animation:V,options:{type:g}})))}if(f.size){const w={};f.forEach(g=>{const v=e.getBaseTarget(g),y=e.getValue(g);y&&(y.liveStyle=!0),w[g]=v??null}),d.push({animation:w})}let b=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(d):Promise.resolve()}function s(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(a,u)}),n[a].isActive=u;const d=l(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:l,setActive:s,setAnimateFunction:i,getState:()=>n}}function xk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!u1(t,e):!1}function Tr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wk(){return{animate:Tr(!0),whileInView:Tr(),whileHover:Tr(),whileTap:Tr(),whileDrag:Tr(),whileFocus:Tr(),exit:Tr()}}class Sk extends ci{constructor(t){super(t),t.animationState||(t.animationState=bk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),nu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Ck=0;class $k extends ci{constructor(){super(...arguments),this.id=Ck++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Ek={animation:{Feature:Sk},exit:{Feature:$k}},Pg=()=>({min:0,max:0}),K1=()=>({x:Pg(),y:Pg()});function Pk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function kk(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 Dk(e,t){return Pk(kk(e.getBoundingClientRect(),t))}const Qd={current:null},U1={current:!1};function Tk(){if(U1.current=!0,!!Pp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qd.current=e.matches;e.addListener(t),t()}else Qd.current=!1}function Mk(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],l=n[o];if(ft(i))e.addValue(o,i),Ea(r)&&r.add(o);else if(ft(l))e.addValue(o,Pa(i,{owner:e})),Ea(r)&&r.remove(o);else if(l!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Pa(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const kg=new WeakMap,Ak=[...g1,lt,di],Rk=e=>Ak.find(m1(e)),W1=Object.keys(bl),Ik=W1.length,Dg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Nk=Ap.length;function H1(e){if(e)return e.options.allowProjection!==!1?e.projection:H1(e.parent)}class Fk{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:l},s={}){this.resolveKeyframes=(f,p,h,b)=>new this.KeyframeResolver(f,p,h,b,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_p,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.scheduleRender=()=>qt.render(this.render,!1,!0);const{latestValues:a,renderState:u}=l;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ru(n),this.isVariantNode=Ub(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];a[f]!==void 0&&ft(p)&&(p.set(a[f],!1),Ea(c)&&c.add(f))}}mount(t){this.current=t,kg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),U1.current||Tk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;kg.delete(this.current),this.projection&&this.projection.unmount(),_d(this.notifyUpdate),_d(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=oo.has(t),o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&qt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let l,s;for(let a=0;athis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K1()}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){n!==this.values.get(t)&&(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=Pa(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(p1(o)||d1(o))?o=parseFloat(o):!Rk(o)&&di.test(n)&&(o=$1(t,n)),this.setBaseTarget(t,ft(o)?o.get():o)),ft(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=jp(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ft(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new _1),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class G1 extends Fk{constructor(){super(...arguments),this.KeyframeResolver=E1}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]}}function Bk(e){return window.getComputedStyle(e)}class Lk extends G1{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(oo.has(n)){const r=Kp(n);return r&&r.default||0}else{const r=Bk(t),o=(qb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dk(t,n)}build(t,n,r,o){Fp(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Op(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ft(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Zb(t,n,r,o)}}class zk extends G1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oo.has(n)){const r=Kp(n);return r&&r.default||0}return n=e1.has(n)?n:Tp(n),t.getAttribute(n)}measureInstanceViewportBox(){return K1()}scrapeMotionValuesFromProps(t,n,r){return n1(t,n,r)}build(t,n,r,o){Lp(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){t1(t,n,r,o)}mount(t){this.isSVGTag=zp(t.tagName),super.mount(t)}}const Ok=(e,t)=>Rp(e)?new zk(t,{enableHardwareAcceleration:!1}):new Lk(t,{allowProjection:e!==m.Fragment,enableHardwareAcceleration:!0}),jk=z$(gE);function q1(){const e=m.useRef(!1);return kp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _k(){const e=q1(),[t,n]=m.useState(0),r=m.useCallback(()=>{e.current&&n(t+1)},[t]);return[m.useCallback(()=>qt.postRender(r),[r]),t]}class Vk extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Kk({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),o=m.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=m.useContext($p);return m.useInsertionEffect(()=>{const{width:l,height:s,top:a,left:u}=o.current;if(t||!r.current||!l||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Yu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ad(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var YS=typeof WeakMap=="function"?WeakMap:Map;function dy(e,t,n){n=Nn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){la||(la=!0,yd=r),ad(e,t)},n}function fy(e,t,n){n=Nn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ad(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ad(e,t),typeof r!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function em(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new YS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=u2.bind(null,e,t,n),t.then(e,e))}function tm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function nm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nn(-1,1),t.tag=2,dr(n,t,1))),n.lanes|=1),e)}var QS=_n.ReactCurrentOwner,bt=!1;function dt(e,t,n,r){t.child=e===null?U0(t,null,n,r):qo(t,e.child,n,r)}function rm(e,t,n,r,o){n=n.render;var i=t.ref;return jo(t,o),r=Hf(e,t,n,r,i,o),n=Gf(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,On(e,t,o)):(De&&n&&Nf(t),t.flags|=1,dt(e,t,r,o),t.child)}function om(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!rp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,py(e,t,i,r,o)):(e=Rs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:il,n(l,r)&&e.ref===t.ref)return On(e,t,o)}return t.flags|=1,e=hr(i,r),e.ref=t.ref,e.return=t,t.child=e}function py(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(il(i,r)&&e.ref===t.ref)if(bt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(bt=!0);else return t.lanes=e.lanes,On(e,t,o)}return ud(e,t,n,r,o)}function hy(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Se(To,Pt),Pt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Se(To,Pt),Pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Se(To,Pt),Pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Se(To,Pt),Pt|=r;return dt(e,t,o,n),t.child}function my(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ud(e,t,n,r,o){var i=wt(n)?Wr:at.current;return i=Ho(t,i),jo(t,o),n=Hf(e,t,n,r,i,o),r=Gf(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,On(e,t,o)):(De&&r&&Nf(t),t.flags|=1,dt(e,t,n,o),t.child)}function im(e,t,n,r,o){if(wt(n)){var i=!0;Qs(t)}else i=!1;if(jo(t,o),t.stateNode===null)Ts(e,t),V0(t,n,r),sd(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ht(u):(u=wt(n)?Wr:at.current,u=Ho(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Qh(t,l,r,u),Xn=!1;var f=t.memoizedState;l.state=f,ta(t,r,l,o),a=t.memoizedState,s!==r||f!==a||xt.current||Xn?(typeof c=="function"&&(ld(t,n,c,r),a=t.memoizedState),(s=Xn||Yh(t,n,s,r,f,a,u))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,j0(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:en(t.type,s),l.props=u,d=t.pendingProps,f=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ht(a):(a=wt(n)?Wr:at.current,a=Ho(t,a));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==d||f!==a)&&Qh(t,l,r,a),Xn=!1,f=t.memoizedState,l.state=f,ta(t,r,l,o);var h=t.memoizedState;s!==d||f!==h||xt.current||Xn?(typeof p=="function"&&(ld(t,n,p,r),h=t.memoizedState),(u=Xn||Yh(t,n,u,r,f,h,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return cd(e,t,n,r,i,o)}function cd(e,t,n,r,o,i){my(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Uh(t,n,!1),On(e,t,i);r=t.stateNode,QS.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=qo(t,e.child,null,i),t.child=qo(t,null,s,i)):dt(e,t,s,i),t.memoizedState=r.state,o&&Uh(t,n,!0),t.child}function gy(e){var t=e.stateNode;t.pendingContext?Kh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Kh(e,t.context,!1),Vf(e,t.containerInfo)}function lm(e,t,n,r,o){return Go(),Bf(o),t.flags|=256,dt(e,t,n,r),t.child}var dd={dehydrated:null,treeContext:null,retryLane:0};function fd(e){return{baseLanes:e,cachePool:null,transitions:null}}function vy(e,t,n){var r=t.pendingProps,o=Te.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Se(Te,o&1),e===null)return od(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Ka(l,r,0,null),e=Vr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=fd(n),t.memoizedState=dd,e):Qf(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return XS(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=hr(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=hr(s,i):(i=Vr(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?fd(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=dd,r}return i=e.child,e=i.sibling,r=hr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qf(e,t){return t=Ka({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ls(e,t,n,r){return r!==null&&Bf(r),qo(t,e.child,null,n),e=Qf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function XS(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Yu(Error(U(422))),ls(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ka({mode:"visible",children:r.children},o,0,null),i=Vr(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&qo(t,e.child,null,l),t.child.memoizedState=fd(l),t.memoizedState=dd,i);if(!(t.mode&1))return ls(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(U(419)),r=Yu(i,r,void 0),ls(e,t,l,r)}if(s=(l&e.childLanes)!==0,bt||s){if(r=Xe,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,zn(e,o),sn(r,e,o,-1))}return np(),r=Yu(Error(U(421))),ls(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=c2.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Tt=cr(o.nextSibling),Mt=t,De=!0,on=null,e!==null&&(Ot[jt++]=An,Ot[jt++]=Rn,Ot[jt++]=Hr,An=e.id,Rn=e.overflow,Hr=t),t=Qf(t,r.children),t.flags|=4096,t)}function sm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),id(e.return,t,n)}function Qu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function yy(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(dt(e,t,r.children,n),r=Te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sm(e,n,t);else if(e.tag===19)sm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Se(Te,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&na(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&na(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qu(t,!0,n,null,i);break;case"together":Qu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ts(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=hr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function JS(e,t,n){switch(t.tag){case 3:gy(t),Go();break;case 5:W0(t);break;case 1:wt(t.type)&&Qs(t);break;case 4:Vf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Se(Zs,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Se(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?vy(e,t,n):(Se(Te,Te.current&1),e=On(e,t,n),e!==null?e.sibling:null);Se(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yy(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Se(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,hy(e,t,n)}return On(e,t,n)}var by,pd,xy,wy;by=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};pd=function(){};xy=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Fr(xn.current);var i=null;switch(n){case"input":o=Fc(e,o),r=Fc(e,r),i=[];break;case"select":o=Ae({},o,{value:void 0}),r=Ae({},r,{value:void 0}),i=[];break;case"textarea":o=zc(e,o),r=zc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qs)}jc(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ji.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ji.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Ee("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};wy=function(e,t,n,r){n!==r&&(t.flags|=4)};function Si(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ZS(e,t,n){var r=t.pendingProps;switch(Ff(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return wt(t.type)&&Ys(),it(t),null;case 3:return r=t.stateNode,Yo(),Pe(xt),Pe(at),Uf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(os(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,on!==null&&(wd(on),on=null))),pd(e,t),it(t),null;case 5:Kf(t);var o=Fr(cl.current);if(n=t.type,e!==null&&t.stateNode!=null)xy(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return it(t),null}if(e=Fr(xn.current),os(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[vn]=t,r[al]=i,e=(t.mode&1)!==0,n){case"dialog":Ee("cancel",r),Ee("close",r);break;case"iframe":case"object":case"embed":Ee("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[vn]=t,e[al]=r,by(e,t,!1,!1),t.stateNode=e;e:{switch(l=_c(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),o=r;break;case"iframe":case"object":case"embed":Ee("load",e),o=r;break;case"video":case"audio":for(o=0;oXo&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304)}else{if(!r)if(e=na(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!De)return it(t),null}else 2*ze()-i.renderingStartTime>Xo&&n!==1073741824&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ze(),t.sibling=null,n=Te.current,Se(Te,r?n&1|2:n&1),t):(it(t),null);case 22:case 23:return tp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pt&1073741824&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function e2(e,t){switch(Ff(t),t.tag){case 1:return wt(t.type)&&Ys(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yo(),Pe(xt),Pe(at),Uf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kf(t),null;case 13:if(Pe(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Te),null;case 4:return Yo(),null;case 10:return Of(t.type._context),null;case 22:case 23:return tp(),null;case 24:return null;default:return null}}var ss=!1,st=!1,t2=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Do(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function hd(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var am=!1;function n2(e,t){if(Xc=Ws,e=E0(),If(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(s=l+o),d!==i||r!==0&&d.nodeType!==3||(a=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++c===r&&(a=l),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jc={focusedElem:e,selectionRange:n},Ws=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,w=h.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:en(t.type,b),w);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(C){Ie(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return h=am,am=!1,h}function Wi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&hd(t,n,i)}o=o.next}while(o!==r)}}function _a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function md(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sy(e){var t=e.alternate;t!==null&&(e.alternate=null,Sy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[al],delete t[td],delete t[zS],delete t[OS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cy(e){return e.tag===5||e.tag===3||e.tag===4}function um(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qs));else if(r!==4&&(e=e.child,e!==null))for(gd(e,t,n),e=e.sibling;e!==null;)gd(e,t,n),e=e.sibling}function vd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vd(e,t,n),e=e.sibling;e!==null;)vd(e,t,n),e=e.sibling}var tt=null,tn=!1;function Wn(e,t,n){for(n=n.child;n!==null;)$y(e,t,n),n=n.sibling}function $y(e,t,n){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(Ia,n)}catch{}switch(n.tag){case 5:st||Do(n,t);case 6:var r=tt,o=tn;tt=null,Wn(e,t,n),tt=r,tn=o,tt!==null&&(tn?(e=tt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tt.removeChild(n.stateNode));break;case 18:tt!==null&&(tn?(e=tt,n=n.stateNode,e.nodeType===8?Ku(e.parentNode,n):e.nodeType===1&&Ku(e,n),rl(e)):Ku(tt,n.stateNode));break;case 4:r=tt,o=tn,tt=n.stateNode.containerInfo,tn=!0,Wn(e,t,n),tt=r,tn=o;break;case 0:case 11:case 14:case 15:if(!st&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&hd(n,t,l),o=o.next}while(o!==r)}Wn(e,t,n);break;case 1:if(!st&&(Do(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ie(n,t,s)}Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:n.mode&1?(st=(r=st)||n.memoizedState!==null,Wn(e,t,n),st=r):Wn(e,t,n);break;default:Wn(e,t,n)}}function cm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new t2),t.forEach(function(r){var o=d2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ze()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o2(r/1960))-r,10e?16:e,or===null)var r=!1;else{if(e=or,or=null,sa=0,me&6)throw Error(U(331));var o=me;for(me|=4,Y=e.current;Y!==null;){var i=Y,l=i.child;if(Y.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aze()-Zf?_r(e,0):Jf|=n),St(e,t)}function Ry(e,t){t===0&&(e.mode&1?(t=Jl,Jl<<=1,!(Jl&130023424)&&(Jl=4194304)):t=1);var n=pt();e=zn(e,t),e!==null&&($l(e,t,n),St(e,n))}function c2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function d2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Ry(e,n)}var Iy;Iy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xt.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,JS(e,t,n);bt=!!(e.flags&131072)}else bt=!1,De&&t.flags&1048576&&B0(t,Js,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ts(e,t),e=t.pendingProps;var o=Ho(t,at.current);jo(t,n),o=Hf(null,t,r,e,o,n);var i=Gf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)?(i=!0,Qs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,_f(t),o.updater=Oa,t.stateNode=o,o._reactInternals=t,sd(t,r,e,n),t=cd(null,t,r,!0,i,n)):(t.tag=0,De&&i&&Nf(t),dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ts(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=p2(r),e=en(r,e),o){case 0:t=ud(null,t,r,e,n);break e;case 1:t=im(null,t,r,e,n);break e;case 11:t=rm(null,t,r,e,n);break e;case 14:t=om(null,t,r,en(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),ud(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),im(e,t,r,o,n);case 3:e:{if(gy(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,j0(e,t),ta(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Qo(Error(U(423)),t),t=lm(e,t,r,n,o);break e}else if(r!==o){o=Qo(Error(U(424)),t),t=lm(e,t,r,n,o);break e}else for(Tt=cr(t.stateNode.containerInfo.firstChild),Mt=t,De=!0,on=null,n=U0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Go(),r===o){t=On(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return W0(t),e===null&&od(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Zc(r,o)?l=null:i!==null&&Zc(r,i)&&(t.flags|=32),my(e,t),dt(e,t,l,n),t.child;case 6:return e===null&&od(t),null;case 13:return vy(e,t,n);case 4:return Vf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qo(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),rm(e,t,r,o,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Se(Zs,r._currentValue),r._currentValue=l,i!==null)if(an(i.value,l)){if(i.children===o.children&&!xt.current){t=On(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Nn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),id(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(U(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),id(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jo(t,n),o=Ht(o),r=r(o),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,o=en(r,t.pendingProps),o=en(r.type,o),om(e,t,r,o,n);case 15:return py(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:en(r,o),Ts(e,t),t.tag=1,wt(r)?(e=!0,Qs(t)):e=!1,jo(t,n),V0(t,r,o),sd(t,r,o,n),cd(null,t,r,!0,e,n);case 19:return yy(e,t,n);case 22:return hy(e,t,n)}throw Error(U(156,t.tag))};function Ny(e,t){return l0(e,t)}function f2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,n,r){return new f2(e,t,n,r)}function rp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p2(e){if(typeof e=="function")return rp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sf)return 11;if(e===Cf)return 14}return 2}function hr(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")rp(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case bo:return Vr(n.children,o,i,t);case wf:l=8,o|=8;break;case Ac:return e=Vt(12,n,t,o|2),e.elementType=Ac,e.lanes=i,e;case Rc:return e=Vt(13,n,t,o),e.elementType=Rc,e.lanes=i,e;case Ic:return e=Vt(19,n,t,o),e.elementType=Ic,e.lanes=i,e;case Kv:return Ka(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _v:l=10;break e;case Vv:l=9;break e;case Sf:l=11;break e;case Cf:l=14;break e;case Qn:l=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Vt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Vr(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function Ka(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Kv,e.lanes=n,e.stateNode={isHidden:!1},e}function Xu(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function Ju(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h2(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ru(0),this.expirationTimes=Ru(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ru(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function op(e,t,n,r,o,i,l,s,a){return e=new h2(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_f(i),e}function m2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zy)}catch(e){console.error(e)}}zy(),Bv.exports=Rt;var qa=Bv.exports;const x2=Ev(qa),w2=$v({__proto__:null,default:x2},[qa]);var ym=qa;Tc.createRoot=ym.createRoot,Tc.hydrateRoot=ym.hydrateRoot;function Dl(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=m.createContext(void 0);o.displayName=r;function i(){var l;const s=m.useContext(o);if(!s&&t){const a=new Error(n);throw a.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,a,i),a}return s}return[o.Provider,i,o]}function Oe(e){const t=m.useRef(null);return m.useImperativeHandle(e,()=>t.current),t}var ap=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function Oy(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;t"u")&&!bm[i]&&(bm[i]=!0,((r=process==null?void 0:S2)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function C2(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function li(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function $2(e,t,n){return Math.min(Math.max(e,t),n)}function E2(e,t=100){return Math.min(Math.max(e,0),t)}var jy=!1;function up(e){return Array.isArray(e)}function P2(e){return up(e)&&e.length===0}function _y(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!up(e)}function k2(e){return _y(e)&&Object.keys(e).length===0}function D2(e){return up(e)?P2(e):_y(e)?k2(e):e==null||e===""}function T2(e){return typeof e=="function"}var H=e=>e?"true":void 0;function M2(e,t){if(e!=null){if(T2(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function A2(...e){return t=>{e.forEach(n=>M2(n,t))}}var R2=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"]),I2=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"]),xm=/^(data-.*)$/,N2=/^(aria-.*)$/,cs=/^(on[A-Z].*)$/;function ht(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:i,omitEventNames:l,omitDataProps:s,omitEventProps:a}=t,u={};if(!r)return e;for(const c in e)i!=null&&i.has(c)||l!=null&&l.has(c)&&cs.test(c)||cs.test(c)&&!I2.has(c)||s&&xm.test(c)||a&&cs.test(c)||(Object.prototype.hasOwnProperty.call(e,c)&&(R2.has(c)||n&&N2.test(c)||o!=null&&o.has(c)||xm.test(c))||cs.test(c))&&(u[c]=e[c]);return u}var[F2,YM]=Dl({name:"ProviderContext",strict:!1});const da={prefix:String(Math.round(Math.random()*1e10)),current:0},Vy=be.createContext(da),B2=be.createContext(!1);let L2=!!(typeof window<"u"&&window.document&&window.document.createElement),Zu=new WeakMap;function z2(e=!1){let t=m.useContext(Vy),n=m.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=Zu.get(i);l==null?Zu.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,Zu.delete(i))}n.current=++t.current}return n.current}function O2(e){let t=m.useContext(Vy);t===da&&!L2&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=z2(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function j2(e){let t=be.useId(),[n]=m.useState(cp()),r=n?"react-aria":`react-aria${da.prefix}`;return e||`${r}-${t}`}const _2=typeof be.useId=="function"?j2:O2;function V2(){return!1}function K2(){return!0}function U2(e){return()=>{}}function cp(){return typeof be.useSyncExternalStore=="function"?be.useSyncExternalStore(U2,V2,K2):m.useContext(B2)}const W2=Symbol.for("react-aria.i18n.locale"),H2=Symbol.for("react-aria.i18n.strings");let co;class Ya{getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=G2(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[W2];if(co===void 0){let o=window[H2];if(!o)return null;co={};for(let i in o)co[i]=new Ya({[n]:o[i]},n)}let r=co==null?void 0:co[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={...t},this.defaultLocale=n}}function G2(e,t,n="en-US"){if(t[e])return t[e];let r=q2(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function q2(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const wm=new Map,Sm=new Map;class Y2{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 o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=wm.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),wm.set(i,l));let s=l.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Sm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Sm.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}}function Q2(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function dp(e,t,n){Q2(e,t),t.set(e,n)}function ec(e,t){return e-t*Math.floor(e/t)}const Ky=1721426;function ds(e,t,n,r){t=fp(e,t);let o=t-1,i=-2;return n<=2?i=0:Is(t)&&(i=-1),Ky-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function Is(e){return e%4===0&&(e%100!==0||e%400===0)}function fp(e,t){return e==="BC"?1-t:t}function X2(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const J2={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Qa{fromJulianDay(t){let n=t,r=n-Ky,o=Math.floor(r/146097),i=ec(r,146097),l=Math.floor(i/36524),s=ec(i,36524),a=Math.floor(s/1461),u=ec(s,1461),c=Math.floor(u/365),d=o*400+l*100+a*4+c+(l!==4&&c!==4?1:0),[f,p]=X2(d),h=n-ds(f,p,1,1),b=2;n0&&t===Wy())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:l,second:s}=Gy(e,t);return Hy(n,r,o,i,l,s,0)-Math.floor(e/1e3)*1e3}const Pm=new Map;function Gy(e,t){let n=Pm.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Pm.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const km=864e5;function eC(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>tC(e,t,i))}function tC(e,t,n){let r=Gy(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function nC(e,t,n="compatible"){let r=Yy(e);if(t==="UTC")return $m(r);if(t===Wy()&&n==="compatible"){r=pp(r,new Qa);let a=new Date,u=fp(r.era,r.year);return a.setFullYear(u,r.month-1,r.day),a.setHours(r.hour,r.minute,r.second,r.millisecond),a.getTime()}let o=$m(r),i=Em(o-km,t),l=Em(o+km,t),s=eC(r,t,o-i,o-l);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-l);case"compatible":case"later":return Math.max(o-i,o-l);case"reject":throw new RangeError("No such absolute time found")}}function qy(e,t,n="compatible"){return new Date(nC(e,t,n))}function Yy(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new fa(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function pp(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Jo(r),r}function hp(e,t){let n=e.copy(),r="hour"in n?aC(n,t):0;Sd(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Cd(n),Qy(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,rC(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,l;let a=(i=(l=n.calendar).isInverseEra)===null||i===void 0?void 0:i.call(l,n);n.year=o,n.month=a?1:n.calendar.getMonthsInYear(n),n.day=a?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Sd(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Cd(e){for(;e.month<1;)Sd(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Sd(e,1)}function rC(e){for(;e.day<1;)e.month--,Cd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Cd(e)}function Qy(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Jo(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Qy(e)}function oC(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Xy(e,t){return hp(e,oC(t))}function Jy(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Jo(n),n}function iC(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),sC(n),n}function lC(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=fs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=fs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=fs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=fs(e.hour,24),t}function sC(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function fs(e,t){let n=e%t;return n<0&&(n+=t),n}function aC(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,lC(e)}function Zy(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),a=s.indexOf(e.era);if(a<0)throw new Error("Invalid era: "+e.era);a=ir(a,n,0,s.length-1,r==null?void 0:r.round),o.era=s[a],Jo(o);break}case"year":var i,l;!((i=(l=o.calendar).isInverseEra)===null||i===void 0)&&i.call(l,o)&&(n=-n),o.year=ir(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=ir(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=ir(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Jo(o),o}function uC(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,l=0,s=23;if((r==null?void 0:r.hourCycle)===12){let a=i>=12;l=a?12:0,s=a?23:11}o.hour=ir(i,n,l,s,r==null?void 0:r.round);break}case"minute":o.minute=ir(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=ir(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=ir(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function ir(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,er&&(e=n+(e-r-1));return e}function cC(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function eb(e){let t=pp(e,new Qa);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function dC(e){return`${eb(e)}T${cC(e)}`}function tb(e){let t=typeof e[0]=="object"?e.shift():new Qa,n;if(typeof e[0]=="string")n=e.shift();else{let l=t.getEras();n=l[l.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var fC=new WeakMap;class Zo{copy(){return this.era?new Zo(this.calendar,this.era,this.year,this.month,this.day):new Zo(this.calendar,this.year,this.month,this.day)}add(t){return hp(this,t)}subtract(t){return Xy(this,t)}set(t){return Jy(this,t)}cycle(t,n,r){return Zy(this,t,n,r)}toDate(t){return qy(this,t)}toString(){return eb(this)}compare(t){return Uy(this,t)}constructor(...t){dp(this,fC,{writable:!0,value:void 0});let[n,r,o,i,l]=tb(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=l,Jo(this)}}var pC=new WeakMap;class fa{copy(){return this.era?new fa(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new fa(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return hp(this,t)}subtract(t){return Xy(this,t)}set(t){return Jy(iC(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Zy(this,t,n,r);default:return uC(this,t,n,r)}}toDate(t,n){return qy(this,t,n)}toString(){return dC(this)}compare(t){let n=Uy(this,t);return n===0?Z2(this,Yy(t)):n}constructor(...t){dp(this,pC,{writable:!0,value:void 0});let[n,r,o,i,l]=tb(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Jo(this)}}function Tl(e,t,n){let[r,o]=m.useState(e||t),i=m.useRef(e!==void 0),l=e!==void 0;m.useEffect(()=>{let u=i.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?e:r,a=m.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(s,f)||n(f,...p)),l||(s=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let b=u(l?s:p,...h);return d(b,...c),l?p:b})):(l||o(u),d(u,...c))},[l,s,n]);return[s,a]}function hC(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function nb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{};function kt(e){const t=m.useRef(null);return Vn(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function gC(e){let[t,n]=m.useState(e),r=m.useRef(null),o=kt(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}t===l.value?o():n(l.value)});Vn(()=>{r.current&&o()});let i=kt(l=>{r.current=l(t),o()});return[t,i]}let vC=!!(typeof window<"u"&&window.document&&window.document.createElement),pa=new Map;function xr(e){let[t,n]=m.useState(e),r=m.useRef(null),o=_2(t),i=m.useCallback(l=>{r.current=l},[]);return vC&&pa.set(o,i),Vn(()=>{let l=o;return()=>{pa.delete(l)}},[o]),m.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),o}function yC(e,t){if(e===t)return e;let n=pa.get(e);if(n)return n(t),t;let r=pa.get(t);return r?(r(e),e):t}function Dm(e=[]){let t=xr(),[n,r]=gC(t),o=m.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Vn(o,[t,o,...e]),n}function wr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Dt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Kt=e=>e&&"window"in e&&e.window===e?e:Dt(e).defaultView||window;function J(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=wr(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=mC(i,l):o==="id"&&i&&l?t.id=yC(i,l):t[o]=l!==void 0?l:i}}return t}const bC=new Set(["id"]),xC=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wC=new Set(["href","target","rel","download","ping","referrerPolicy"]),SC=/^(data-.*)$/;function to(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(bC.has(l)||n&&xC.has(l)||r&&wC.has(l)||o!=null&&o.has(l)||SC.test(l))&&(i[l]=e[l]);return i}function In(e){if(CC())e.focus({preventScroll:!0});else{let t=$C(e);e.focus(),EC(t)}}let ps=null;function CC(){if(ps==null){ps=!1;try{document.createElement("div").focus({get preventScroll(){return ps=!0,!0}})}catch{}}return ps}function $C(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 mp(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 Qr(){return mp(/^Mac/i)}function PC(){return mp(/^iPhone/i)}function rb(){return mp(/^iPad/i)||Qr()&&navigator.maxTouchPoints>1}function gp(){return PC()||rb()}function kC(){return Qr()||gp()}function DC(){return Xa(/AppleWebKit/i)&&!TC()}function TC(){return Xa(/Chrome/i)}function ha(){return Xa(/Android/i)}function MC(){return Xa(/Firefox/i)}const ob=m.createContext({isNative:!0,open:IC});function AC(e){let{children:t,navigate:n}=e,r=m.useMemo(()=>({isNative:!1,open:(o,i)=>{lb(o,l=>{RC(l,i)?n(l.pathname+l.search+l.hash):Sr(l,i)})}}),[n]);return be.createElement(ob.Provider,{value:r},t)}function ib(){return m.useContext(ob)}function RC(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 Sr(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}=t;MC()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Qr()?i=!0:l=!0);let u=DC()&&Qr()&&!rb()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});Sr.isOpening=n,In(e),e.dispatchEvent(u),Sr.isOpening=!1}Sr.isOpening=!1;function lb(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 IC(e,t){lb(e,n=>Sr(n,t))}function NC(e){return{"data-href":e.href,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}let ho=new Map,$d=new Set;function Tm(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=ho.get(r.target);o||(o=new Set,ho.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=ho.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),ho.delete(r.target)),ho.size===0)){for(let i of $d)i();$d.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Tm():document.addEventListener("DOMContentLoaded",Tm));function sb(e){requestAnimationFrame(()=>{ho.size===0?e():$d.add(e)})}function ab(){let e=m.useRef(new Map),t=m.useCallback((o,i,l,s)=>{let a=s!=null&&s.once?(...u)=>{e.current.delete(l),l(...u)}:l;e.current.set(l,{type:i,eventTarget:o,fn:a,options:s}),o.addEventListener(i,l,s)},[]),n=m.useCallback((o,i,l,s)=>{var a;let u=((a=e.current.get(l))===null||a===void 0?void 0:a.fn)||l;o.removeEventListener(i,u,s),e.current.delete(l)},[]),r=m.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function FC(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=xr(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function ub(e,t){const n=m.useRef(!0),r=m.useRef(null);m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),m.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((o,i)=>!Object.is(o,r[i])))&&e(),r.current=t},t)}function cb(e,t){Vn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Jn(e,t){let n=e;for(Mm(n,t)&&(n=n.parentElement);n&&!Mm(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Mm(e,t){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}let BC=0;const nc=new Map;function Ja(e){let[t,n]=m.useState();return Vn(()=>{if(!e)return;let r=nc.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${BC++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},nc.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),nc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function LC(e,t,n,r){let o=kt(n),i=n==null;m.useEffect(()=>{if(i||!e.current)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,i,o])}function db(e,t){let n=Am(e,t,"left"),r=Am(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(a,10),f=c+e.clientWidth,p=d+e.clientHeight;n<=l?l=n-parseInt(u,10):n+o>f&&(l+=n+o-f),r<=d?s=r-parseInt(a,10):r+i>p&&(s+=r+i-p),e.scrollLeft=l,e.scrollTop=s}function Am(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Zn(e,t){if(document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let a=Jn(e);for(;e&&a&&e!==l&&a!==l;)db(a,e),e=a,a=Jn(e)}else{var n;let{left:a,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(a-c)>1||Math.abs(u-d)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Ed(e){return e.mozInputSource===0&&e.isTrusted?!0:ha()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function zC(e){return!ha()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function vp(e,t,n){let r=m.useRef(t),o=kt(()=>{n&&n(r.current)});m.useEffect(()=>{var i;let l=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[e,o])}let rc=new Map,Pd=!1;try{Pd=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ma=!1;try{ma=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const fb={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class OC{format(t){let n="";if(!Pd&&this.options.signDisplay!=null?n=_C(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ma){var r;let{unit:o,unitDisplay:i="short",locale:l}=this.resolvedOptions();if(!o)return n;let s=(r=fb[o])===null||r===void 0?void 0:r[i];n+=s[l]||s.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),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Pd&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ma&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=jC(t,n),this.options=n}}function jC(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ma){var r;let{unit:l,unitDisplay:s="short"}=t;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=fb[l])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((l,s)=>l[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 o=e.format(-n),i=e.format(n),l=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(l,"+").replace("!!!",i)}else return e.format(n)}}const VC=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),KC=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function pb(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 VC.has(n.script)}let t=e.split("-")[0];return KC.has(t)}const UC=Symbol.for("react-aria.i18n.locale");function hb(){let e=typeof window<"u"&&window[UC]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:pb(e)?"rtl":"ltr"}}let kd=hb(),Li=new Set;function Rm(){kd=hb();for(let e of Li)e(kd)}function mb(){let e=cp(),[t,n]=m.useState(kd);return m.useEffect(()=>(Li.size===0&&window.addEventListener("languagechange",Rm),Li.add(n),()=>{Li.delete(n),Li.size===0&&window.removeEventListener("languagechange",Rm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const gb=be.createContext(null);function WC(e){let{locale:t,children:n}=e,r=mb(),o=t?{locale:t,direction:pb(t)?"rtl":"ltr"}:r;return be.createElement(gb.Provider,{value:o},n)}function Kn(){let e=mb();return m.useContext(gb)||e}const Im=new WeakMap;function HC(e){let t=Im.get(e);return t||(t=new Ya(e),Im.set(e,t)),t}function GC(e,t){return t&&Ya.getGlobalDictionaryForPackage(t)||HC(e)}function si(e,t){let{locale:n}=Kn(),r=GC(e,t);return m.useMemo(()=>new Y2(n,r),[n,r])}function qC(e={}){let{locale:t}=Kn();return m.useMemo(()=>new OC(t,e),[t,e])}let oc=new Map;function vb(e){let{locale:t}=Kn(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]{sb(()=>{if(Mo==="restoring"){const t=Dt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Dd||""),Dd="",Mo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ns.has(e)){let t=Ns.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ns.delete(e)}}const bb=be.createContext({register:()=>{}});bb.displayName="PressResponderContext";function JC(e){let t=m.useContext(bb);if(t){let{register:n,...r}=t;e=J(r,e),n()}return cb(t,e.ref),e}var ms=new WeakMap;class gs{continuePropagation(){Nm(this,ms,!1)}get shouldStopPropagation(){return QC(this,ms)}constructor(t,n,r){dp(this,ms,{writable:!0,value:void 0}),Nm(this,ms,!0),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}}const Bm=Symbol("linkClicked");function un(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=JC(e),[p,h]=m.useState(!1),b=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:g}=ab(),v=kt((x,T)=>{let k=b.current;if(l||k.didFirePressStart)return!1;let M=!0;if(k.isTriggeringEvent=!0,r){let I=new gs("pressstart",T,x);r(I),M=I.shouldStopPropagation}return n&&n(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,h(!0),M}),y=kt((x,T,k=!0)=>{let M=b.current;if(!M.didFirePressStart)return!1;M.ignoreClickAfterPress=!0,M.didFirePressStart=!1,M.isTriggeringEvent=!0;let I=!0;if(o){let P=new gs("pressend",T,x);o(P),I=P.shouldStopPropagation}if(n&&n(!1),h(!1),t&&k&&!l){let P=new gs("press",T,x);t(P),I&&(I=P.shouldStopPropagation)}return M.isTriggeringEvent=!1,I}),C=kt((x,T)=>{let k=b.current;if(l)return!1;if(i){k.isTriggeringEvent=!0;let M=new gs("pressup",T,x);return i(M),k.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),E=kt(x=>{let T=b.current;T.isPressed&&T.target&&(T.isOverTarget&&T.pointerType!=null&&y(kn(T.target,x),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,g(),c||hs(T.target))}),S=kt(x=>{u&&E(x)}),D=m.useMemo(()=>{let x=b.current,T={onKeyDown(M){if(ic(M.nativeEvent,M.currentTarget)&&M.currentTarget.contains(M.target)){var I;zm(M.target,M.key)&&M.preventDefault();let P=!0;if(!x.isPressed&&!M.repeat){x.target=M.currentTarget,x.isPressed=!0,P=v(M,"keyboard");let A=M.currentTarget,V=K=>{ic(K,A)&&!K.repeat&&A.contains(K.target)&&x.target&&C(kn(x.target,K),"keyboard")};w(Dt(M.currentTarget),"keyup",wr(V,k),!0)}P&&M.stopPropagation(),M.metaKey&&Qr()&&((I=x.metaKeyEvents)===null||I===void 0||I.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(M){if(!(M&&!M.currentTarget.contains(M.target))&&M&&M.button===0&&!x.isTriggeringEvent&&!Sr.isOpening){let I=!0;if(l&&M.preventDefault(),!x.ignoreClickAfterPress&&!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||Ed(M.nativeEvent))){!l&&!a&&In(M.currentTarget);let P=v(M,"virtual"),A=C(M,"virtual"),V=y(M,"virtual");I=P&&A&&V}x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1,I&&M.stopPropagation()}}},k=M=>{var I;if(x.isPressed&&x.target&&ic(M,x.target)){var P;zm(M.target,M.key)&&M.preventDefault();let V=M.target;y(kn(x.target,M),"keyboard",x.target.contains(V)),g(),M.key!=="Enter"&&yp(x.target)&&x.target.contains(V)&&!M[Bm]&&(M[Bm]=!0,Sr(x.target,M,!1)),x.isPressed=!1,(P=x.metaKeyEvents)===null||P===void 0||P.delete(M.key)}else if(M.key==="Meta"&&(!((I=x.metaKeyEvents)===null||I===void 0)&&I.size)){var A;let V=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let K of V.values())(A=x.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){T.onPointerDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(zC(A.nativeEvent)){x.pointerType="virtual";return}lc(A.currentTarget)&&A.preventDefault(),x.pointerType=A.pointerType;let V=!0;x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=A.pointerId,x.target=A.currentTarget,!l&&!a&&In(A.currentTarget),c||Fm(x.target),V=v(A,x.pointerType),w(Dt(A.currentTarget),"pointermove",M,!1),w(Dt(A.currentTarget),"pointerup",I,!1),w(Dt(A.currentTarget),"pointercancel",P,!1)),V&&A.stopPropagation()},T.onMouseDown=A=>{A.currentTarget.contains(A.target)&&A.button===0&&(lc(A.currentTarget)&&A.preventDefault(),A.stopPropagation())},T.onPointerUp=A=>{!A.currentTarget.contains(A.target)||x.pointerType==="virtual"||A.button===0&&fo(A,A.currentTarget)&&C(A,x.pointerType||A.pointerType)};let M=A=>{A.pointerId===x.activePointerId&&(x.target&&fo(A,x.target)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,v(kn(x.target,A),x.pointerType)):x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,y(kn(x.target,A),x.pointerType,!1),S(A)))},I=A=>{A.pointerId===x.activePointerId&&x.isPressed&&A.button===0&&x.target&&(fo(A,x.target)&&x.pointerType!=null?y(kn(x.target,A),x.pointerType):x.isOverTarget&&x.pointerType!=null&&y(kn(x.target,A),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,g(),c||hs(x.target))},P=A=>{E(A)};T.onDragStart=A=>{A.currentTarget.contains(A.target)&&E(A)}}else{T.onMouseDown=P=>{if(P.button!==0||!P.currentTarget.contains(P.target))return;if(lc(P.currentTarget)&&P.preventDefault(),x.ignoreEmulatedMouseEvents){P.stopPropagation();return}x.isPressed=!0,x.isOverTarget=!0,x.target=P.currentTarget,x.pointerType=Ed(P.nativeEvent)?"virtual":"mouse",!l&&!a&&In(P.currentTarget),v(P,x.pointerType)&&P.stopPropagation(),w(Dt(P.currentTarget),"mouseup",M,!1)},T.onMouseEnter=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,A=v(P,x.pointerType)),A&&P.stopPropagation()},T.onMouseLeave=P=>{if(!P.currentTarget.contains(P.target))return;let A=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,A=y(P,x.pointerType,!1),S(P)),A&&P.stopPropagation()},T.onMouseUp=P=>{P.currentTarget.contains(P.target)&&!x.ignoreEmulatedMouseEvents&&P.button===0&&C(P,x.pointerType||"mouse")};let M=P=>{if(P.button===0){if(x.isPressed=!1,g(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&fo(P,x.target)&&x.pointerType!=null?y(kn(x.target,P),x.pointerType):x.target&&x.isOverTarget&&x.pointerType!=null&&y(kn(x.target,P),x.pointerType,!1),x.isOverTarget=!1}};T.onTouchStart=P=>{if(!P.currentTarget.contains(P.target))return;let A=ZC(P.nativeEvent);if(!A)return;x.activePointerId=A.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=P.currentTarget,x.pointerType="touch",!l&&!a&&In(P.currentTarget),c||Fm(x.target),v(P,x.pointerType)&&P.stopPropagation(),w(Kt(P.currentTarget),"scroll",I,!0)},T.onTouchMove=P=>{if(!P.currentTarget.contains(P.target))return;if(!x.isPressed){P.stopPropagation();return}let A=Lm(P.nativeEvent,x.activePointerId),V=!0;A&&fo(A,P.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,V=v(P,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,V=y(P,x.pointerType,!1),S(P)),V&&P.stopPropagation()},T.onTouchEnd=P=>{if(!P.currentTarget.contains(P.target))return;if(!x.isPressed){P.stopPropagation();return}let A=Lm(P.nativeEvent,x.activePointerId),V=!0;A&&fo(A,P.currentTarget)&&x.pointerType!=null?(C(P,x.pointerType),V=y(P,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(V=y(P,x.pointerType,!1)),V&&P.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!c&&hs(x.target),g()},T.onTouchCancel=P=>{P.currentTarget.contains(P.target)&&(P.stopPropagation(),x.isPressed&&E(P))};let I=P=>{x.isPressed&&P.target.contains(x.target)&&E({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=P=>{P.currentTarget.contains(P.target)&&E(P)}}return T},[w,l,a,g,c,E,S,y,v,C]);return m.useEffect(()=>()=>{var x;c||hs((x=b.current.target)!==null&&x!==void 0?x:void 0)},[c]),{isPressed:s||p,pressProps:J(f,D)}}function yp(e){return e.tagName==="A"&&e.hasAttribute("href")}function ic(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Kt(o).HTMLInputElement&&!xb(o,n)||o instanceof Kt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&yp(o))&&n!=="Enter")}function ZC(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Lm(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function fo(e,t){let n=t.getBoundingClientRect(),r=e5(e);return t5(n,r)}function lc(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function zm(e,t){return e instanceof HTMLInputElement?!xb(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!yp(e)}const n5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xb(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":n5.has(e.type)}class r5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function wb(e){let t=m.useRef({isFocused:!1,observer:null});Vn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=kt(r=>{e==null||e(r)});return m.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new r5("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Sb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=m.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),l=wb(i),s=m.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(n&&n(a),o&&o(!0),l(a))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let jn=null,ml=new Set,qi=new Map,Xr=!1,Td=!1;const o5={Tab:!0,Escape:!0};function Za(e,t){for(let n of ml)n(e,t)}function i5(e){return!(e.metaKey||!Qr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ga(e){Xr=!0,i5(e)&&(jn="keyboard",Za("keyboard",e))}function _t(e){jn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xr=!0,Za("pointer",e))}function Cb(e){Ed(e)&&(Xr=!0,jn="virtual")}function $b(e){e.target===window||e.target===document||(!Xr&&!Td&&(jn="virtual",Za("virtual",e)),Xr=!1,Td=!1)}function Eb(){Xr=!1,Td=!0}function va(e){if(typeof window>"u"||qi.get(Kt(e)))return;const t=Kt(e),n=Dt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Xr=!0,r.apply(this,arguments)},n.addEventListener("keydown",ga,!0),n.addEventListener("keyup",ga,!0),n.addEventListener("click",Cb,!0),t.addEventListener("focus",$b,!0),t.addEventListener("blur",Eb,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",_t,!0),n.addEventListener("pointermove",_t,!0),n.addEventListener("pointerup",_t,!0)):(n.addEventListener("mousedown",_t,!0),n.addEventListener("mousemove",_t,!0),n.addEventListener("mouseup",_t,!0)),t.addEventListener("beforeunload",()=>{Pb(e)},{once:!0}),qi.set(t,{focus:r})}const Pb=(e,t)=>{const n=Kt(e),r=Dt(e);t&&r.removeEventListener("DOMContentLoaded",t),qi.has(n)&&(n.HTMLElement.prototype.focus=qi.get(n).focus,r.removeEventListener("keydown",ga,!0),r.removeEventListener("keyup",ga,!0),r.removeEventListener("click",Cb,!0),n.removeEventListener("focus",$b,!0),n.removeEventListener("blur",Eb,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",_t,!0),r.removeEventListener("pointermove",_t,!0),r.removeEventListener("pointerup",_t,!0)):(r.removeEventListener("mousedown",_t,!0),r.removeEventListener("mousemove",_t,!0),r.removeEventListener("mouseup",_t,!0)),qi.delete(n))};function l5(e){const t=Dt(e);let n;return t.readyState!=="loading"?va(e):(n=()=>{va(e)},t.addEventListener("DOMContentLoaded",n)),()=>Pb(e,n)}typeof document<"u"&&l5();function bp(){return jn!=="pointer"}function Md(){return jn}function s5(e){jn=e,Za(e,null)}function a5(){va();let[e,t]=m.useState(jn);return m.useEffect(()=>{let n=()=>{t(jn)};return ml.add(n),()=>{ml.delete(n)}},[]),cp()?null:e}const u5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function c5(e,t,n){var r;const o=typeof window<"u"?Kt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Kt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Kt(n==null?void 0:n.target).HTMLElement:HTMLElement,s=typeof window<"u"?Kt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!u5.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof l&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof s&&!o5[n.key])}function d5(e,t,n){va(),m.useEffect(()=>{let r=(o,i)=>{c5(!!(n!=null&&n.isTextInput),o,i)&&e(bp())};return ml.add(r),()=>{ml.delete(r)}},t)}function eu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=m.useRef({isFocusWithin:!1}),l=m.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),s=wb(l),a=m.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}let ya=!1,sc=0;function Ad(){ya=!0,setTimeout(()=>{ya=!1},50)}function Om(e){e.pointerType==="touch"&&Ad()}function f5(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Om):document.addEventListener("touchend",Ad),sc++,()=>{sc--,!(sc>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Om):document.removeEventListener("touchend",Ad))}}function no(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=m.useState(!1),s=m.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;m.useEffect(f5,[]);let{hoverProps:a,triggerHoverEnd:u}=m.useMemo(()=>{let c=(p,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let b=p.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:h}),n&&n(!0),l(!0)},d=(p,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let b=p.currentTarget;r&&r({type:"hoverend",target:b,pointerType:h}),n&&n(!1),l(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{ya&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!ya&&c(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,s]);return m.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function jm(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function p5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jm(e.onKeyDown),onKeyUp:jm(e.onKeyUp)}}}const h5=500;function m5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=h5,accessibilityDescription:l}=e;const s=m.useRef();let{addGlobalListener:a,removeGlobalListener:u}=ab(),{pressProps:c}=un({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n({...f,type:"longpressstart"}),s.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),s.current=void 0},i),f.pointerType==="touch")){let p=h=>{h.preventDefault()};a(f.target,"contextmenu",p,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){s.current&&clearTimeout(s.current),r&&(f.pointerType==="mouse"||f.pointerType==="touch")&&r({...f,type:"longpressend"})}}),d=Ja(o&&!t?l:void 0);return{longPressProps:J(c,d)}}function Lt(e){const t=Dt(e);if(Md()==="virtual"){let n=t.activeElement;sb(()=>{t.activeElement===n&&e.isConnected&&In(e)})}else In(e)}function g5(e){const t=Kt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:s}=i(e);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function v5(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function kb(e,t){return e.nodeName!=="#comment"&&g5(e)&&v5(e,t)&&(!e.parentElement||kb(e.parentElement,e))}const xp=["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]"],y5=xp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const b5=xp.join(':not([hidden]):not([tabindex="-1"]),');function Db(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function gl(e,t,n){let r=t!=null&&t.tabbable?b5:y5,o=Dt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&kb(i)&&(!n||Db(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class wp{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new _m({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.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 i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Db(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),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 wp;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _m({scopeRef:null}),this.fastMap.set(null,this.root)}}class _m{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}}new wp;function cn(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=m.useRef({isFocused:!1,isFocusVisible:t||bp()}),[i,l]=m.useState(!1),[s,a]=m.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=m.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),c=m.useCallback(p=>{o.current.isFocused=p,l(p),u()},[u]);d5(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:d}=Sb({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=eu({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?f:d}}let x5=be.createContext(null);function w5(e){let t=m.useContext(x5)||{};cb(t,e);let{ref:n,...r}=t;return r}function Ml(e,t){let{focusProps:n}=Sb(e),{keyboardProps:r}=p5(e),o=J(n,r),i=w5(t),l=e.isDisabled?{}:i,s=m.useRef(e.autoFocus);return m.useEffect(()=>{s.current&&t.current&&Lt(t.current),s.current=!1},[t]),{focusableProps:J({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}function S5(e,t){let n=t==null?void 0:t.isDisabled,[r,o]=m.useState(!1);return Vn(()=>{if(e!=null&&e.current&&!n){let i=()=>{if(e.current){let s=gl(e.current,{tabbable:!0});o(!!s.nextNode())}};i();let l=new MutationObserver(i);return l.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}const Vm={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 C5(e={}){let{style:t,isFocusable:n}=e,[r,o]=m.useState(!1),{focusWithinProps:i}=eu({isDisabled:!n,onFocusWithinChange:s=>o(s)}),l=m.useMemo(()=>r?t:t?{...Vm,...t}:Vm,[r]);return{visuallyHiddenProps:{...i,style:l}}}function Al(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:l}=C5(e);return be.createElement(n,J(i,l),t)}const Rd=be.createContext(null);function $5(e){let{children:t}=e,n=m.useContext(Rd),[r,o]=m.useState(0),i=m.useMemo(()=>({parent:n,modalCount:r,addModal(){o(l=>l+1),n&&n.addModal()},removeModal(){o(l=>l-1),n&&n.removeModal()}}),[n,r]);return be.createElement(Rd.Provider,{value:i},t)}function E5(){let e=m.useContext(Rd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function P5(e){let{modalProviderProps:t}=E5();return be.createElement("div",{"data-overlay-container":!0,...e,...t})}function k5(e){return be.createElement($5,null,be.createElement(P5,e))}var D5=({children:e,navigate:t,locale:n="en-US",defaultDates:r={minDate:new Zo(1900,1,1),maxDate:new Zo(2099,12,31)},createCalendar:o,...i})=>{let l=e;t&&(l=$.jsx(AC,{navigate:t,children:l}));const s=m.useMemo(()=>({createCalendar:o,defaultDates:r}),[o,r==null?void 0:r.maxDate,r==null?void 0:r.minDate]);return $.jsx(F2,{value:s,children:$.jsx(WC,{locale:n,children:$.jsx(k5,{...i,children:l})})})};function je(e){return m.forwardRef(e)}var ai=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,l)=>({...i,[l]:e[l]}),{}),r]:[e,r]},T5={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"},M5={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",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},A5={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",foreground:"bg-transparent border-foreground text-foreground"},R5={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},I5={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",foreground:"border-default bg-default-100 text-foreground"},N5={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",foreground:"bg-transparent text-foreground"},F5={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},oe={solid:T5,shadow:M5,bordered:A5,flat:R5,faded:I5,light:N5,ghost:F5},Km=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Et=e=>!e||typeof e!="object"||Object.keys(e).length===0,B5=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Tb(e,t){e.forEach(function(n){Array.isArray(n)?Tb(n,t):t.push(n)})}function Mb(e){let t=[];return Tb(e,t),t}var Ab=(...e)=>Mb(e).filter(Boolean),Rb=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let l=e[i],s=t[i];typeof l=="object"&&typeof s=="object"?n[i]=Rb(l,s):Array.isArray(l)||Array.isArray(s)?n[i]=Ab(s,l):n[i]=s+" "+l}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Um=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function L5(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(l){var s=n.get(l);if(s!==void 0)return s;if((s=r.get(l))!==void 0)return o(l,s),s},set:function(l,s){n.has(l)?n.set(l,s):o(l,s)}}}var Fb="!";function U5(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(l){for(var s=[],a=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:w}}}function W5(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function H5(e){return{cache:K5(e.cacheSize),splitModifiers:U5(e),...z5(e)}}var G5=/\s+/;function q5(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(G5).map(function(l){var s=n(l),a=s.modifiers,u=s.hasImportantModifier,c=s.baseClassName,d=s.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:l};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:l};p=!1}var h=W5(a).join(":"),b=u?h+Fb:h;return{isTailwindClass:!0,modifierId:b,classGroupId:f,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(function(l){if(!l.isTailwindClass)return!0;var s=l.modifierId,a=l.classGroupId,u=l.hasPostfixModifier,c=s+a;return i.has(c)?!1:(i.add(c),o(a,u).forEach(function(d){return i.add(s+d)}),!0)}).reverse().map(function(l){return l.originalClassName}).join(" ")}function Nd(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;re||void 0,vl=(...e)=>Ob(Mb(e).filter(Boolean).join(" ")),ac=null,ba={},Ld=!1,Pi=(...e)=>t=>t.twMerge?((!ac||Ld)&&(Ld=!1,ac=Et(ba)?f$:d$(ba)),Ob(ac(vl(e)))):vl(e),qm=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=vl(e[n],t[n]):e[n]=t[n];return e},h$=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:l=[],defaultVariants:s={}}=e,a={...p$,...t},u=n!=null&&n.base?vl(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!Et(n.variants)?Rb(o,n.variants):o,d=n!=null&&n.defaultVariants&&!Et(n.defaultVariants)?{...n.defaultVariants,...s}:s;!Et(a.twMergeConfig)&&!B5(a.twMergeConfig,ba)&&(Ld=!0,ba=a.twMergeConfig);let f=Et(n==null?void 0:n.slots),p=Et(r)?{}:{base:vl(e==null?void 0:e.base,f&&(n==null?void 0:n.base)),...r},h=f?p:qm({...n==null?void 0:n.slots},Et(p)?{base:e==null?void 0:e.base}:p),b=g=>{if(Et(c)&&Et(r)&&f)return Pi(u,g==null?void 0:g.class,g==null?void 0:g.className)(a);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let v=(I,P,A=[],V)=>{let K=A;if(typeof P=="string")K=K.concat(Um(P).split(" ").map(F=>`${I}:${F}`));else if(Array.isArray(P))K=K.concat(P.reduce((F,B)=>F.concat(`${I}:${B}`),[]));else if(typeof P=="object"&&typeof V=="string"){for(let F in P)if(P.hasOwnProperty(F)&&F===V){let B=P[F];if(B&&typeof B=="string"){let O=Um(B);K[V]?K[V]=K[V].concat(O.split(" ").map(L=>`${I}:${L}`)):K[V]=O.split(" ").map(L=>`${I}:${L}`)}else Array.isArray(B)&&B.length>0&&(K[V]=B.reduce((O,L)=>O.concat(`${I}:${L}`),[]))}}return K},y=(I,P=c,A=null,V=null)=>{var K;let F=P[I];if(!F||Et(F))return null;let B=(K=V==null?void 0:V[I])!=null?K:g==null?void 0:g[I];if(B===null)return null;let O=Km(B),L=Array.isArray(a.responsiveVariants)&&a.responsiveVariants.length>0||a.responsiveVariants===!0,W=d==null?void 0:d[I],G=[];if(typeof O=="object"&&L)for(let[Q,fe]of Object.entries(O)){let ne=F[fe];if(Q==="initial"){W=fe;continue}Array.isArray(a.responsiveVariants)&&!a.responsiveVariants.includes(Q)||(G=v(Q,ne,G,A))}let ee=F[O]||F[Km(W)];return typeof G=="object"&&typeof A=="string"&&G[A]?qm(G,ee):G.length>0?(G.push(ee),G):ee},C=()=>c?Object.keys(c).map(I=>y(I,c)):null,E=(I,P)=>{if(!c||typeof c!="object")return null;let A=new Array;for(let V in c){let K=y(V,c,I,P),F=I==="base"&&typeof K=="string"?K:K&&K[I];F&&(A[A.length]=F)}return A},S={};for(let I in g)g[I]!==void 0&&(S[I]=g[I]);let D=(I,P)=>{var A;let V=typeof(g==null?void 0:g[I])=="object"?{[I]:(A=g[I])==null?void 0:A.initial}:{};return{...d,...S,...V,...P}},x=(I=[],P)=>{let A=[];for(let{class:V,className:K,...F}of I){let B=!0;for(let[O,L]of Object.entries(F)){let W=D(O,P);if(Array.isArray(L)){if(!L.includes(W[O])){B=!1;break}}else if(W[O]!==L){B=!1;break}}B&&(V&&A.push(V),K&&A.push(K))}return A},T=I=>{let P=x(i,I),A=x(n==null?void 0:n.compoundVariants,I);return Ab(A,P)},k=I=>{let P=T(I);if(!Array.isArray(P))return P;let A={};for(let V of P)if(typeof V=="string"&&(A.base=Pi(A.base,V)(a)),typeof V=="object")for(let[K,F]of Object.entries(V))A[K]=Pi(A[K],F)(a);return A},M=I=>{if(l.length<1)return null;let P={};for(let{slots:A=[],class:V,className:K,...F}of l){if(!Et(F)){let B=!0;for(let O of Object.keys(F)){let L=D(O,I)[O];if(L===void 0||(Array.isArray(F[O])?!F[O].includes(L):F[O]!==L)){B=!1;break}}if(!B)continue}for(let B of A)P[B]=P[B]||[],P[B].push([V,K])}return P};if(!Et(r)||!f){let I={};if(typeof h=="object"&&!Et(h))for(let P of Object.keys(h))I[P]=A=>{var V,K;return Pi(h[P],E(P,A),((V=k(A))!=null?V:[])[P],((K=M(A))!=null?K:[])[P],A==null?void 0:A.class,A==null?void 0:A.className)(a)};return I}return Pi(u,C(),T(),g==null?void 0:g.class,g==null?void 0:g.className)(a)},w=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return b.variantKeys=w(),b.extend=n,b.base=u,b.slots=h,b.variants=c,b.defaultVariants=d,b.compoundSlots=l,b.compoundVariants=i,b},ys=["small","medium","large"],Yt=(e,t)=>{var n,r,o;return h$(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider"],borderWidth:ys,borderRadius:ys},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:ys}],"font-size":[{text:["tiny",...ys]}],"bg-image":["bg-stripe-gradient"]}}})},Vo=["outline-none","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"],Cp=["outline-none","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"],po={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},Ym=Yt({base:"w-px h-px inline-block",variants:{isInline:{true:"inline-block",false:"block"}},defaultVariants:{isInline:!1}}),Qm=Yt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-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"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),Xm=Yt({slots:{base:"flex flex-col relative gap-4",wrapper:["p-4","z-0","flex","flex-col","relative","justify-between","gap-4","shadow-small","bg-content1","overflow-auto"],table:"min-w-full h-auto",thead:"[&>tr]:first:rounded-lg",tbody:"",tr:["group","outline-none",...Vo],th:["group","px-3","h-10","text-left","rtl:text-right","align-middle","bg-default-100","whitespace-nowrap","text-foreground-500","text-tiny","font-semibold","first:rounded-l-lg","rtl:first:rounded-r-lg","rtl:first:rounded-l-[unset]","last:rounded-r-lg","rtl:last:rounded-l-lg","rtl:last:rounded-r-[unset]","outline-none","data-[sortable=true]:transition-colors","data-[sortable=true]:cursor-pointer","data-[hover=true]:text-foreground-400",...Vo],td:["py-2","px-3","relative","align-middle","whitespace-normal","text-small","font-normal","outline-none","[&>*]:z-1","[&>*]:relative",...Vo,"before:content-['']","before:absolute","before:z-0","before:inset-0","before:opacity-0","data-[selected=true]:before:opacity-100","group-data-[disabled=true]:text-foreground-300","group-data-[disabled=true]:cursor-not-allowed"],tfoot:"",sortIcon:["ml-2","mb-px","opacity-0","text-inherit","inline-block","transition-transform-opacity","data-[visible=true]:opacity-100","group-data-[hover=true]:opacity-100","data-[direction=ascending]:rotate-180"],emptyWrapper:"text-foreground-400 align-middle text-center h-40",loadingWrapper:"absolute inset-0 flex items-center justify-center"},variants:{color:{default:{td:"before:bg-default/40 data-[selected=true]:text-default-foreground"},primary:{td:"before:bg-primary/20 data-[selected=true]:text-primary"},secondary:{td:"before:bg-secondary/20 data-[selected=true]:text-secondary"},success:{td:"before:bg-success/20 data-[selected=true]:text-success-600 dark:data-[selected=true]:text-success"},warning:{td:"before:bg-warning/20 data-[selected=true]:text-warning-600 dark:data-[selected=true]:text-warning"},danger:{td:"before:bg-danger/20 data-[selected=true]:text-danger dark:data-[selected=true]:text-danger-500"}},layout:{auto:{table:"table-auto"},fixed:{table:"table-fixed"}},radius:{none:{wrapper:"rounded-none"},sm:{wrapper:"rounded-small"},md:{wrapper:"rounded-medium"},lg:{wrapper:"rounded-large"}},shadow:{none:{wrapper:"shadow-none"},sm:{wrapper:"shadow-small"},md:{wrapper:"shadow-medium"},lg:{wrapper:"shadow-large"}},hideHeader:{true:{thead:"hidden"}},isStriped:{true:{td:["group-data-[odd=true]:before:bg-default-100","group-data-[odd=true]:before:opacity-100","group-data-[odd=true]:before:-z-10"]}},isCompact:{true:{td:"py-1"},false:{}},isHeaderSticky:{true:{thead:"sticky top-0 z-20 [&>tr]:first:shadow-small"}},isSelectable:{true:{tr:"cursor-default",td:["group-aria-[selected=false]:group-data-[hover=true]:before:bg-default-100","group-aria-[selected=false]:group-data-[hover=true]:before:opacity-70"]}},isMultiSelectable:{true:{td:["group-data-[first=true]:first:before:rounded-tl-lg","group-data-[first=true]:rtl:first:before:rounded-tr-lg","group-data-[first=true]:rtl:first:before:rounded-tl-[unset]","group-data-[first=true]:last:before:rounded-tr-lg","group-data-[first=true]:rtl:last:before:rounded-tl-lg","group-data-[first=true]:rtl:last:before:rounded-tr-[unset]","group-data-[middle=true]:before:rounded-none","group-data-[last=true]:first:before:rounded-bl-lg","group-data-[last=true]:rtl:first:before:rounded-br-lg","group-data-[last=true]:rtl:first:before:rounded-bl-[unset]","group-data-[last=true]:last:before:rounded-br-lg","group-data-[last=true]:rtl:last:before:rounded-bl-lg","group-data-[last=true]:rtl:last:before:rounded-br-[unset]"]},false:{td:["first:before:rounded-l-lg","rtl:first:before:rounded-r-lg","rtl:first:before:rounded-l-[unset]","last:before:rounded-r-lg","rtl:last:before:rounded-l-lg","rtl:last:before:rounded-r-[unset]"]}},fullWidth:{true:{base:"w-full",wrapper:"w-full",table:"w-full"}}},defaultVariants:{layout:"auto",shadow:"sm",radius:"lg",color:"default",isCompact:!1,hideHeader:!1,isStriped:!1,fullWidth:!0,disableAnimation:!1}}),m$=Yt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Cp],labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ml-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ml-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1,disableAnimation:!1}}),g$=Yt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny 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,disableAnimation:!1}}),Jm=Yt({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","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-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","rtl:right-auto","rtl:left-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...Vo],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"],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"},lg:{inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large"}},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 pr-2 rtl:pr-0 rtl:pl-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6 rtl:pr-0 rtl:pl-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},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:ml-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"}},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]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","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-50","text-secondary","data-[hover=true]:bg-secondary-100","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-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","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-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","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-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","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:[...Cp]}},{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:{label:"text-small",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","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-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%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.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%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","rtl:left-auto","rtl:right-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","rtl:left-auto","rtl:right-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.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"}}]}),Zm=Yt({slots:{base:["flex","flex-col","relative","overflow-hidden","height-auto","outline-none","text-foreground","box-border","bg-content1",...Vo],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,disableAnimation:!1,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,disableAnimation:!1,isFooterBlurred:!1}}),v$=Yt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-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",...Cp],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",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 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.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(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.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,disableAnimation:!1}});Yt({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,disableAnimation:!1}});var eg=Yt({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,disableAnimation:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{svg:"!transition-none motion-reduce:transition-none"}}]}),y$=Yt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...Vo],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",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:oe.solid.default},{variant:"solid",color:"primary",class:oe.solid.primary},{variant:"solid",color:"secondary",class:oe.solid.secondary},{variant:"solid",color:"success",class:oe.solid.success},{variant:"solid",color:"warning",class:oe.solid.warning},{variant:"solid",color:"danger",class:oe.solid.danger},{variant:"shadow",color:"default",class:oe.shadow.default},{variant:"shadow",color:"primary",class:oe.shadow.primary},{variant:"shadow",color:"secondary",class:oe.shadow.secondary},{variant:"shadow",color:"success",class:oe.shadow.success},{variant:"shadow",color:"warning",class:oe.shadow.warning},{variant:"shadow",color:"danger",class:oe.shadow.danger},{variant:"bordered",color:"default",class:oe.bordered.default},{variant:"bordered",color:"primary",class:oe.bordered.primary},{variant:"bordered",color:"secondary",class:oe.bordered.secondary},{variant:"bordered",color:"success",class:oe.bordered.success},{variant:"bordered",color:"warning",class:oe.bordered.warning},{variant:"bordered",color:"danger",class:oe.bordered.danger},{variant:"flat",color:"default",class:oe.flat.default},{variant:"flat",color:"primary",class:oe.flat.primary},{variant:"flat",color:"secondary",class:oe.flat.secondary},{variant:"flat",color:"success",class:oe.flat.success},{variant:"flat",color:"warning",class:oe.flat.warning},{variant:"flat",color:"danger",class:oe.flat.danger},{variant:"faded",color:"default",class:oe.faded.default},{variant:"faded",color:"primary",class:oe.faded.primary},{variant:"faded",color:"secondary",class:oe.faded.secondary},{variant:"faded",color:"success",class:oe.faded.success},{variant:"faded",color:"warning",class:oe.faded.warning},{variant:"faded",color:"danger",class:oe.faded.danger},{variant:"light",color:"default",class:[oe.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[oe.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[oe.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[oe.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[oe.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[oe.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:oe.ghost.default},{variant:"ghost",color:"primary",class:oe.ghost.primary},{variant:"ghost",color:"secondary",class:oe.ghost.secondary},{variant:"ghost",color:"success",class:oe.ghost.success},{variant:"ghost",color:"warning",class:oe.ghost.warning},{variant:"ghost",color:"danger",class:oe.ghost.danger},{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:po.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:po.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:po.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:po.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:po.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:po.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"}]});Yt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});function zd(e){return kC()?e.altKey:e.ctrlKey}function mo(e){return Qr()?e.metaKey:e.ctrlKey}const b$=1e3;function x$(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=m.useRef({search:"",timeout:null}).current,i=l=>{let s=w$(l.key);if(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))return;s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s;let a=t.getKeyForSearch(o.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(o.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},b$)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function w$(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function S$(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:f,scrollRef:p=r,linkBehavior:h="action"}=e,{direction:b}=Kn(),w=ib(),g=k=>{if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!r.current.contains(k.target))return;const M=(L,W)=>{if(L!=null){if(t.isLink(L)&&h==="selection"&&a&&!zd(k)){qa.flushSync(()=>{t.setFocusedKey(L,W)});let G=p.current.querySelector(`[data-key="${CSS.escape(L.toString())}"]`);w.open(G,k);return}if(t.setFocusedKey(L,W),t.isLink(L)&&h==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&!zd(k)&&t.replaceSelection(L)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var I,P;k.preventDefault();let L=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n);L==null&&i&&(L=(P=n.getFirstKey)===null||P===void 0?void 0:P.call(n,t.focusedKey)),M(L)}break;case"ArrowUp":if(n.getKeyAbove){var A,V;k.preventDefault();let L=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(A=n.getLastKey)===null||A===void 0?void 0:A.call(n);L==null&&i&&(L=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n,t.focusedKey)),M(L)}break;case"ArrowLeft":if(n.getKeyLeftOf){var K,F;k.preventDefault();let L=n.getKeyLeftOf(t.focusedKey);L==null&&i&&(L=b==="rtl"?(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n,t.focusedKey):(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,t.focusedKey)),M(L,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var B,O;k.preventDefault();let L=n.getKeyRightOf(t.focusedKey);L==null&&i&&(L=b==="rtl"?(B=n.getLastKey)===null||B===void 0?void 0:B.call(n,t.focusedKey):(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),M(L,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){k.preventDefault();let L=n.getFirstKey(t.focusedKey,mo(k));t.setFocusedKey(L),mo(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&t.replaceSelection(L)}break;case"End":if(n.getLastKey){k.preventDefault();let L=n.getLastKey(t.focusedKey,mo(k));t.setFocusedKey(L),mo(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(L):a&&t.replaceSelection(L)}break;case"PageDown":if(n.getKeyPageBelow){k.preventDefault();let L=n.getKeyPageBelow(t.focusedKey);M(L)}break;case"PageUp":if(n.getKeyPageAbove){k.preventDefault();let L=n.getKeyPageAbove(t.focusedKey);M(L)}break;case"a":mo(k)&&t.selectionMode==="multiple"&&s!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":k.preventDefault(),l||t.clearSelection();break;case"Tab":if(!d){if(k.shiftKey)r.current.focus();else{let L=gl(r.current,{tabbable:!0}),W,G;do G=L.lastChild(),G&&(W=G);while(G);W&&!W.contains(document.activeElement)&&In(W)}break}}},v=m.useRef({top:0,left:0});LC(p,"scroll",f?null:()=>{v.current={top:p.current.scrollTop,left:p.current.scrollLeft}});let y=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){let P=V=>{V!=null&&(t.setFocusedKey(V),a&&t.replaceSelection(V))},A=k.relatedTarget;var M,I;A&&k.currentTarget.compareDocumentPosition(A)&Node.DOCUMENT_POSITION_FOLLOWING?P((M=t.lastSelectedKey)!==null&&M!==void 0?M:n.getLastKey()):P((I=t.firstSelectedKey)!==null&&I!==void 0?I:n.getFirstKey())}else f||(p.current.scrollTop=v.current.top,p.current.scrollLeft=v.current.left);if(!f&&t.focusedKey!=null){let P=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);P&&(P.contains(document.activeElement)||In(P),Md()==="keyboard"&&Zn(P,{containingElement:r.current}))}}},C=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)};const E=m.useRef(o);m.useEffect(()=>{if(E.current){let k=null;o==="first"&&(k=n.getFirstKey()),o==="last"&&(k=n.getLastKey());let M=t.selectedKeys;if(M.size){for(let I of M)if(t.canSelectItem(I)){k=I;break}}t.setFocused(!0),t.setFocusedKey(k),k==null&&!c&&Lt(r.current)}},[]);let S=m.useRef(t.focusedKey);m.useEffect(()=>{let k=Md();if(t.isFocused&&t.focusedKey!=null&&(p!=null&&p.current)){let M=p.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);M&&(k==="keyboard"||E.current)&&(f||db(p.current,M),k!=="virtual"&&Zn(M,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&S.current!=null&&Lt(r.current),S.current=t.focusedKey,E.current=!1},[f,p,t.focusedKey,t.isFocused,r]);let D={onKeyDown:g,onFocus:y,onBlur:C,onMouseDown(k){p.current===k.target&&k.preventDefault()}},{typeSelectProps:x}=x$({keyboardDelegate:n,selectionManager:t});u||(D=J(x,D));let T;return c||(T=t.focusedKey==null?0:-1),{collectionProps:{...D,tabIndex:T}}}function jb(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:a,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,d=ib(),f=F=>{if(F.pointerType==="keyboard"&&zd(F))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){d.open(r.current,F),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):F&&F.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||F&&(mo(F)||F.pointerType==="touch"||F.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};m.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(l?l():document.activeElement!==r.current&&Lt(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let p={};!i&&!s?p={tabIndex:n===t.focusedKey?0:-1,onFocus(F){F.target===r.current&&t.setFocusedKey(n)}}:s&&(p.onMouseDown=F=>{F.preventDefault()});let h=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!s&&t.canSelectItem(n)&&!h,g=(a||b)&&!s,v=g&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),y=g&&w&&t.selectionBehavior==="replace",C=v||y,E=m.useRef(null),S=C&&w,D=m.useRef(!1),x=m.useRef(!1),T=F=>{a&&a(),b&&d.open(r.current,F)},k={};o?(k.onPressStart=F=>{E.current=F.pointerType,D.current=S,F.pointerType==="keyboard"&&(!C||ng())&&f(F)},u?(k.onPressUp=v?null:F=>{F.pointerType!=="keyboard"&&w&&f(F)},k.onPress=v?T:null):k.onPress=F=>{if(v||y&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!tg())return;T(F)}else F.pointerType!=="keyboard"&&w&&f(F)}):(k.onPressStart=F=>{E.current=F.pointerType,D.current=S,x.current=v,w&&(F.pointerType==="mouse"&&!v||F.pointerType==="keyboard"&&(!g||ng()))&&f(F)},k.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&C&&tg()||F.pointerType==="mouse"&&x.current)&&(C?T(F):w&&f(F))}),p["data-key"]=n,k.preventFocusOnPress=i;let{pressProps:M,isPressed:I}=un(k),P=y?F=>{E.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),T(F))}:void 0,{longPressProps:A}=m5({isDisabled:!S,onLongPress(F){F.pointerType==="touch"&&(f(F),t.setSelectionBehavior("toggle"))}}),V=F=>{E.current==="touch"&&D.current&&F.preventDefault()},K=t.isLink(n)?F=>{Sr.isOpening||F.preventDefault()}:void 0;return{itemProps:J(p,w||v?M:{},S?A:{},{onDoubleClick:P,onDragStartCapture:V,onClick:K}),isPressed:I,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:w,hasAction:C}}function tg(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function ng(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var C$=e=>$.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:$.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"})}),$$=({strokeWidth:e=1.5,...t})=>$.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:$.jsx("path",{d:"m6 9 6 6 6-6"})});const $p=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),tu=m.createContext({}),Ep=m.createContext(null),Pp=typeof document<"u",kp=Pp?m.useLayoutEffect:m.useEffect,Dp=m.createContext({strict:!1}),Tp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),E$="framerAppearId",_b="data-"+Tp(E$),P$={skipAnimations:!1,useManualTiming:!1};class rg{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function k$(e){let t=new rg,n=new rg,r=0,o=!1,i=!1;const l=new WeakSet,s={schedule:(a,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&l.add(a),f.add(a)&&d&&o&&(r=t.order.length),a},cancel:a=>{n.remove(a),l.delete(a)},process:a=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=k$(()=>n=!0),d),{}),l=d=>{i[d].process(o)},s=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,D$),1),o.timestamp=d,o.isProcessing=!0,bs.forEach(l),o.isProcessing=!1,n&&t&&(r=!1,e(s))},a=()=>{n=!0,r=!0,o.isProcessing||e(s)};return{schedule:bs.reduce((d,f)=>{const p=i[f];return d[f]=(h,b=!1,w=!1)=>(n||a(),p.schedule(h,b,w)),d},{}),cancel:d=>bs.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:T$,cancel:QM}=Vb(queueMicrotask,!1);function M$(e,t,n,r){const{visualElement:o}=m.useContext(tu),i=m.useContext(Dp),l=m.useContext(Ep),s=m.useContext($p).reducedMotion,a=m.useRef();r=r||i.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:s}));const u=a.current;m.useInsertionEffect(()=>{u&&u.update(n,l)});const c=m.useRef(!!(n[_b]&&!window.HandoffComplete));return kp(()=>{u&&(T$.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),m.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Kb(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function A$(e,t,n){return m.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Kb(n)&&(n.current=r))},[t])}function yl(e){return typeof e=="string"||Array.isArray(e)}function nu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Mp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ap=["initial",...Mp];function ru(e){return nu(e.animate)||Ap.some(t=>yl(e[t]))}function Ub(e){return!!(ru(e)||e.variants)}function R$(e,t){if(ru(e)){const{initial:n,animate:r}=e;return{initial:n===!1||yl(n)?n:void 0,animate:yl(r)?r:void 0}}return e.inherit!==!1?t:{}}function I$(e){const{initial:t,animate:n}=R$(e,m.useContext(tu));return m.useMemo(()=>({initial:t,animate:n}),[og(t),og(n)])}function og(e){return Array.isArray(e)?e.join(" "):e}const ig={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"]},bl={};for(const e in ig)bl[e]={isEnabled:t=>ig[e].some(n=>!!t[n])};function Od(e){for(const t in e)bl[t]={...bl[t],...e[t]}}const Wb=m.createContext({}),N$=m.createContext({}),F$=Symbol.for("motionComponentSymbol");function B$({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Od(e);function i(s,a){let u;const c={...m.useContext($p),...s,layoutId:L$(s)},{isStatic:d}=c,f=I$(s),p=r(s,d);if(!d&&Pp){f.visualElement=M$(o,p,c,t);const h=m.useContext(N$),b=m.useContext(Dp).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,b,e,h))}return $.jsxs(tu.Provider,{value:f,children:[u&&f.visualElement?$.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,s,A$(p,f.visualElement,a),p,d,f.visualElement)]})}const l=m.forwardRef(i);return l[F$]=o,l}function L$({layoutId:e}){const t=m.useContext(Wb).id;return t&&e!==void 0?t+"-"+e:e}function z$(e){function t(r,o={}){return B$(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const O$=["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 Rp(e){return typeof e!="string"||e.includes("-")?!1:!!(O$.indexOf(e)>-1||/[A-Z]/u.test(e))}const j$={},Rl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oo=new Set(Rl);function Hb(e,{layout:t,layoutId:n}){return oo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!j$[e]||e==="opacity")}const ft=e=>!!(e&&e.getVelocity),_$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V$=Rl.length;function K$(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let l=0;lt=>typeof t=="string"&&t.startsWith(e),qb=Gb("--"),U$=Gb("var(--"),Ip=e=>U$(e)?W$.test(e.split("/*")[0].trim()):!1,W$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,H$=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ei=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Yi={...ui,transform:e=>ei(0,1,e)},xs={...ui,default:1},Qi=e=>Math.round(e*1e5)/1e5,Np=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,G$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,q$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Il(e){return typeof e=="string"}const Nl=e=>({test:t=>Il(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qn=Nl("deg"),Ko=Nl("%"),te=Nl("px"),Y$=Nl("vh"),Q$=Nl("vw"),lg={...Ko,parse:e=>Ko.parse(e)/100,transform:e=>Ko.transform(e*100)},sg={...ui,transform:Math.round},Yb={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,size:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,rotate:qn,rotateX:qn,rotateY:qn,rotateZ:qn,scale:xs,scaleX:xs,scaleY:xs,scaleZ:xs,skew:qn,skewX:qn,skewY:qn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Yi,originX:lg,originY:lg,originZ:te,zIndex:sg,backgroundPositionX:te,backgroundPositionY:te,fillOpacity:Yi,strokeOpacity:Yi,numOctaves:sg};function Fp(e,t,n,r){const{style:o,vars:i,transform:l,transformOrigin:s}=e;let a=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(qb(d)){i[d]=f;continue}const p=Yb[d],h=H$(f,p);if(oo.has(d)){if(a=!0,l[d]=h,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=h):o[d]=h}if(t.transform||(a||r?o.transform=K$(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const Bp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qb(e,t,n){for(const r in t)!ft(t[r])&&!Hb(r,n)&&(e[r]=t[r])}function X$({transformTemplate:e},t,n){return m.useMemo(()=>{const r=Bp();return Fp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function J$(e,t,n){const r=e.style||{},o={};return Qb(o,r,e),Object.assign(o,X$(e,t,n)),o}function Z$(e,t,n){const r={},o=J$(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const eE=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 xa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eE.has(e)}let Xb=e=>!xa(e);function tE(e){e&&(Xb=t=>t.startsWith("on")?!xa(t):e(t))}try{tE(require("@emotion/is-prop-valid").default)}catch{}function nE(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Xb(o)||n===!0&&xa(o)||!t&&!xa(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function ag(e,t,n){return typeof e=="string"?e:te.transform(t+n*e)}function rE(e,t,n){const r=ag(t,e.x,e.width),o=ag(n,e.y,e.height);return`${r} ${o}`}const oE={offset:"stroke-dashoffset",array:"stroke-dasharray"},iE={offset:"strokeDashoffset",array:"strokeDasharray"};function lE(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?oE:iE;e[i.offset]=te.transform(-r);const l=te.transform(t),s=te.transform(n);e[i.array]=`${l} ${s}`}function Lp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:l,pathSpacing:s=1,pathOffset:a=0,...u},c,d,f){if(Fp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:b}=e;p.transform&&(b&&(h.transform=p.transform),delete p.transform),b&&(o!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=rE(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),l!==void 0&&lE(p,l,s,a,!1)}const Jb=()=>({...Bp(),attrs:{}}),zp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sE(e,t,n,r){const o=m.useMemo(()=>{const i=Jb();return Lp(i,t,{enableHardwareAcceleration:!1},zp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Qb(i,e.style,e),o.style={...i,...o.style}}return o}function aE(e=!1){return(n,r,o,{latestValues:i},l)=>{const a=(Rp(n)?sE:Z$)(r,i,l,n),u=nE(r,typeof n=="string",e),c=n!==m.Fragment?{...u,...a,ref:o}:{},{children:d}=r,f=m.useMemo(()=>ft(d)?d.get():d,[d]);return m.createElement(n,{...c,children:f})}}function Zb(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const e1=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 t1(e,t,n,r){Zb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(e1.has(o)?o:Tp(o),t.attrs[o])}function Op(e,t,n){var r;const{style:o}=e,i={};for(const l in o)(ft(o[l])||t.style&&ft(t.style[l])||Hb(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function n1(e,t,n){const r=Op(e,t,n);for(const o in e)if(ft(e[o])||ft(t[o])){const i=Rl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function jp(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function r1(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const jd=e=>Array.isArray(e),uE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cE=e=>jd(e)?e[e.length-1]||0:e;function dE(e){const t=ft(e)?e.get():e;return uE(t)?t.toValue():t}function fE({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const l={latestValues:pE(r,o,i,e),renderState:t()};return n&&(l.mount=s=>n(r,s,l)),l}const o1=e=>(t,n)=>{const r=m.useContext(tu),o=m.useContext(Ep),i=()=>fE(e,t,r,o);return n?i():r1(i)};function pE(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=dE(i[f]);let{initial:l,animate:s}=e;const a=ru(e),u=Ub(e);t&&u&&!a&&e.inherit!==!1&&(l===void 0&&(l=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||l===!1;const d=c?s:l;return d&&typeof d!="boolean"&&!nu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const h=jp(e,p);if(!h)return;const{transitionEnd:b,transition:w,...g}=h;for(const v in g){let y=g[v];if(Array.isArray(y)){const C=c?y.length-1:0;y=y[C]}y!==null&&(o[v]=y)}for(const v in b)o[v]=b[v]}),o}const wn=e=>e,{schedule:qt,cancel:_d,state:wa,steps:XM}=Vb(typeof requestAnimationFrame<"u"?requestAnimationFrame:wn,!0),hE={useVisualState:o1({scrapeMotionValuesFromProps:n1,createRenderState:Jb,onMount:(e,t,{renderState:n,latestValues:r})=>{qt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),qt.render(()=>{Lp(n,r,{enableHardwareAcceleration:!1},zp(t.tagName),e.transformTemplate),t1(t,n)})}})},mE={useVisualState:o1({scrapeMotionValuesFromProps:Op,createRenderState:Bp})};function gE(e,{forwardMotionProps:t=!1},n,r){return{...Rp(e)?hE:mE,preloadedFeatures:n,useRender:aE(t),createVisualElement:r,Component:e}}function Lr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const vE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function i1(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const yE=e=>t=>vE(t)&&e(t,i1(t));function Fs(e,t,n,r){return Lr(e,t,yE(n),r)}const bE=(e,t)=>n=>t(e(n)),mr=(...e)=>e.reduce(bE);function l1(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ug=l1("dragHorizontal"),cg=l1("dragVertical");function xE(e){let t=!1;if(e==="y")t=cg();else if(e==="x")t=ug();else{const n=ug(),r=cg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function s1(){const e=xE(!0);return e?(e(),!1):!0}class ci{constructor(t){this.isMounted=!1,this.node=t}update(){}}function dg(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,l)=>{if(i.pointerType==="touch"||s1())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);const a=s[r];a&&a(i,l)};return Fs(e.current,n,o,{passive:!e.getProps()[r]})}class wE extends ci{mount(){this.unmount=mr(dg(this.node,!0),dg(this.node,!1))}unmount(){}}class SE extends ci{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=mr(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const a1=(e,t)=>t?e===t?!0:a1(e,t.parentElement):!1;function uc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,i1(n))}class CE extends ci{constructor(){super(...arguments),this.removeStartListeners=wn,this.removeEndListeners=wn,this.removeAccessibleListeners=wn,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Fs(window,"pointerup",(s,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();!d&&!a1(this.node.current,s.target)?c&&c(s,a):u&&u(s,a)},{passive:!(r.onTap||r.onPointerUp)}),l=Fs(window,"pointercancel",(s,a)=>this.cancelPress(s,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=mr(i,l),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const l=s=>{s.key!=="Enter"||!this.checkPressEnd()||uc("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&c(a,u)})};this.removeEndListeners(),this.removeEndListeners=Lr(this.node.current,"keyup",l),uc("down",(s,a)=>{this.startPress(s,a)})},n=Lr(this.node.current,"keydown",t),r=()=>{this.isPressing&&uc("cancel",(i,l)=>this.cancelPress(i,l))},o=Lr(this.node.current,"blur",r);this.removeAccessibleListeners=mr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!s1()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Fs(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Lr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Vd=new WeakMap,cc=new WeakMap,$E=e=>{const t=Vd.get(e.target);t&&t(e)},EE=e=>{e.forEach($E)};function PE({root:e,...t}){const n=e||document;cc.has(n)||cc.set(n,{});const r=cc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(EE,{root:e,...t})),r[o]}function kE(e,t,n){const r=PE(t);return Vd.set(e,n),r.observe(e),()=>{Vd.delete(e),r.unobserve(e)}}const DE={some:0,all:1};class TE extends ci{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:DE[o]},s=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(a)};return kE(this.node.current,l,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ME(t,n))&&this.startObserver()}unmount(){}}function ME({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AE={inView:{Feature:TE},tap:{Feature:CE},focus:{Feature:SE},hover:{Feature:wE}};function u1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function IE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ou(e,t,n){const r=e.getProps();return jp(r,t,n!==void 0?n:r.custom,RE(e),IE(e))}const Kr=e=>e*1e3,gr=e=>e/1e3,NE={type:"spring",stiffness:500,damping:25,restSpeed:10},FE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BE={type:"keyframes",duration:.8},LE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zE=(e,{keyframes:t})=>t.length>2?BE:oo.has(e)?e.startsWith("scale")?FE(t[1]):NE:LE;function OE({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:l,repeatDelay:s,from:a,elapsed:u,...c}){return!!Object.keys(c).length}function c1(e,t){return e[t]||e.default||e}const jE=e=>e!==null;function iu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(jE),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let Bs;function _E(){Bs=void 0}const Uo={now:()=>(Bs===void 0&&Uo.set(wa.isProcessing||P$.useManualTiming?wa.timestamp:performance.now()),Bs),set:e=>{Bs=e,queueMicrotask(_E)}},d1=e=>/^0[^.\s]+$/u.test(e);function VE(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||d1(e):!0}let f1=wn;const p1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),KE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UE(e){const t=KE.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function h1(e,t,n=1){const[r,o]=UE(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const l=i.trim();return p1(l)?parseFloat(l):l}return Ip(o)?h1(o,t,n+1):o}const WE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fg=e=>e===ui||e===te,pg=(e,t)=>parseFloat(e.split(", ")[t]),hg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return pg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?pg(i[1],e):0}},HE=new Set(["x","y","z"]),GE=Rl.filter(e=>!HE.has(e));function qE(e){const t=[];return GE.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ti={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:hg(4,13),y:hg(5,14)};ti.translateX=ti.x;ti.translateY=ti.y;const m1=e=>t=>t.test(e),YE={test:e=>e==="auto",parse:e=>e},g1=[ui,te,Ko,qn,Q$,Y$,YE],mg=e=>g1.find(m1(e)),Ur=new Set;let Kd=!1,Ud=!1;function v1(){if(Ud){const e=Array.from(Ur).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=qE(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,l])=>{var s;(s=r.getValue(i))===null||s===void 0||s.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ud=!1,Kd=!1,Ur.forEach(e=>e.complete()),Ur.clear()}function y1(){Ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ud=!0)})}function QE(){y1(),v1()}class _p{constructor(t,n,r,o,i,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ur.add(this),Kd||(Kd=!0,qt.read(y1),qt.resolveKeyframes(v1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Il(n)&&q$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),b1=(e,t,n)=>r=>{if(!Il(r))return r;const[o,i,l,s]=r.match(Np);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(l),alpha:s!==void 0?parseFloat(s):1}},XE=e=>ei(0,255,e),dc={...ui,transform:e=>Math.round(XE(e))},zr={test:Vp("rgb","red"),parse:b1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dc.transform(e)+", "+dc.transform(t)+", "+dc.transform(n)+", "+Qi(Yi.transform(r))+")"};function JE(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Wd={test:Vp("#"),parse:JE,transform:zr.transform},Ao={test:Vp("hsl","hue"),parse:b1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ko.transform(Qi(t))+", "+Ko.transform(Qi(n))+", "+Qi(Yi.transform(r))+")"},lt={test:e=>zr.test(e)||Wd.test(e)||Ao.test(e),parse:e=>zr.test(e)?zr.parse(e):Ao.test(e)?Ao.parse(e):Wd.parse(e),transform:e=>Il(e)?e:e.hasOwnProperty("red")?zr.transform(e):Ao.transform(e)};function ZE(e){var t,n;return isNaN(e)&&Il(e)&&(((t=e.match(Np))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(G$))===null||n===void 0?void 0:n.length)||0)>0}const x1="number",w1="color",eP="var",tP="var(",gg="${}",nP=/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 Sa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(nP,a=>(lt.test(a)?(r.color.push(i),o.push(w1),n.push(lt.parse(a))):a.startsWith(tP)?(r.var.push(i),o.push(eP),n.push(a)):(r.number.push(i),o.push(x1),n.push(parseFloat(a))),++i,gg)).split(gg);return{values:n,split:s,indexes:r,types:o}}function S1(e){return Sa(e).values}function C1(e){const{split:t,types:n}=Sa(e),r=t.length;return o=>{let i="";for(let l=0;ltypeof e=="number"?0:e;function oP(e){const t=S1(e);return C1(e)(t.map(rP))}const di={test:ZE,parse:S1,createTransformer:C1,getAnimatableNone:oP},iP=new Set(["brightness","contrast","saturate","opacity"]);function lP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Np)||[];if(!r)return e;const o=n.replace(r,"");let i=iP.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const sP=/\b([a-z-]*)\(.*?\)/gu,Hd={...di,getAnimatableNone:e=>{const t=e.match(sP);return t?t.map(lP).join(" "):e}},aP={...Yb,color:lt,backgroundColor:lt,outlineColor:lt,fill:lt,stroke:lt,borderColor:lt,borderTopColor:lt,borderRightColor:lt,borderBottomColor:lt,borderLeftColor:lt,filter:Hd,WebkitFilter:Hd},Kp=e=>aP[e];function $1(e,t){let n=Kp(e);return n!==Hd&&(n=di),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function uP(e,t,n){let r=0,o;for(;r{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function cP(e){let t;return()=>(t===void 0&&(t=e()),t)}const vg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(di.test(e)||e==="0")&&!e.startsWith("url("));function dP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function k1(e,t){return t?e*(1e3/t):0}const pP=5;function D1(e,t,n){const r=Math.max(t-pP,0);return k1(n-e(r),t-r)}const fc=.001,hP=.01,mP=10,gP=.05,vP=1;function yP({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,l=1-t;l=ei(gP,vP,l),e=ei(hP,mP,gr(e)),l<1?(o=u=>{const c=u*l,d=c*e,f=c-n,p=Gd(u,l),h=Math.exp(-d);return fc-f/p*h},i=u=>{const d=u*l*e,f=d*n+n,p=Math.pow(l,2)*Math.pow(u,2)*e,h=Math.exp(-d),b=Gd(Math.pow(u,2),l);return(-o(u)+fc>0?-1:1)*((f-p)*h)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-fc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const s=5/e,a=xP(o,i,s);if(e=Kr(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:l*2*Math.sqrt(r*u),duration:e}}}const bP=12;function xP(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function CP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yg(e,SP)&&yg(e,wP)){const n=yP(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function T1({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],l={done:!1,value:o},{stiffness:s,damping:a,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=CP({...r,velocity:-gr(r.velocity||0)}),p=d||0,h=a/(2*Math.sqrt(s*u)),b=i-o,w=gr(Math.sqrt(s/u)),g=Math.abs(b)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let v;if(h<1){const y=Gd(w,h);v=C=>{const E=Math.exp(-h*w*C);return i-E*((p+h*w*b)/y*Math.sin(y*C)+b*Math.cos(y*C))}}else if(h===1)v=y=>i-Math.exp(-w*y)*(b+(p+w*b)*y);else{const y=w*Math.sqrt(h*h-1);v=C=>{const E=Math.exp(-h*w*C),S=Math.min(y*C,300);return i-E*((p+h*w*b)*Math.sinh(S)+y*b*Math.cosh(S))/y}}return{calculatedDuration:f&&c||null,next:y=>{const C=v(y);if(f)l.done=y>=c;else{let E=p;y!==0&&(h<1?E=D1(v,y,C):E=0);const S=Math.abs(E)<=n,D=Math.abs(i-C)<=t;l.done=S&&D}return l.value=l.done?i:C,l}}}function bg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:l,min:s,max:a,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=x=>s!==void 0&&xa,h=x=>s===void 0?a:a===void 0||Math.abs(s-x)-b*Math.exp(-x/r),y=x=>g+v(x),C=x=>{const T=v(x),k=y(x);f.done=Math.abs(T)<=u,f.value=f.done?g:k};let E,S;const D=x=>{p(f.value)&&(E=x,S=T1({keyframes:[f.value,h(f.value)],velocity:D1(y,x,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:x=>{let T=!1;return!S&&E===void 0&&(T=!0,C(x),D(x)),E!==void 0&&x>=E?S.next(x-E):(!T&&C(x),f)}}}const M1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$P=1e-7,EP=12;function PP(e,t,n,r,o){let i,l,s=0;do l=t+(n-t)/2,i=M1(l,r,o)-e,i>0?n=l:t=l;while(Math.abs(i)>$P&&++sPP(i,0,1,e,n);return i=>i===0||i===1?i:M1(o(i),t,r)}const kP=Fl(.42,0,1,1),DP=Fl(0,0,.58,1),A1=Fl(.42,0,.58,1),TP=e=>Array.isArray(e)&&typeof e[0]!="number",R1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,I1=e=>t=>1-e(1-t),Up=e=>1-Math.sin(Math.acos(e)),MP=I1(Up),AP=R1(Up),N1=Fl(.33,1.53,.69,.99),Wp=I1(N1),RP=R1(Wp),IP=e=>(e*=2)<1?.5*Wp(e):.5*(2-Math.pow(2,-10*(e-1))),NP={linear:wn,easeIn:kP,easeInOut:A1,easeOut:DP,circIn:Up,circInOut:AP,circOut:MP,backIn:Wp,backInOut:RP,backOut:N1,anticipate:IP},xg=e=>{if(Array.isArray(e)){f1(e.length===4);const[t,n,r,o]=e;return Fl(t,n,r,o)}else if(typeof e=="string")return NP[e];return e},F1=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lu=(e,t,n)=>e+(t-e)*n;function pc(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 FP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,l=0;if(!t)o=i=l=n;else{const s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;o=pc(a,s,e+1/3),i=pc(a,s,e),l=pc(a,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:r}}const hc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},BP=[Wd,zr,Ao],LP=e=>BP.find(t=>t.test(e));function wg(e){const t=LP(e);let n=t.parse(e);return t===Ao&&(n=FP(n)),n}const Sg=(e,t)=>{const n=wg(e),r=wg(t),o={...n};return i=>(o.red=hc(n.red,r.red,i),o.green=hc(n.green,r.green,i),o.blue=hc(n.blue,r.blue,i),o.alpha=lu(n.alpha,r.alpha,i),zr.transform(o))};function qd(e,t){return n=>n>0?t:e}function zP(e,t){return n=>lu(e,t,n)}function Hp(e){return typeof e=="number"?zP:typeof e=="string"?Ip(e)?qd:lt.test(e)?Sg:_P:Array.isArray(e)?B1:typeof e=="object"?lt.test(e)?Sg:OP:qd}function B1(e,t){const n=[...e],r=n.length,o=e.map((i,l)=>Hp(i)(i,t[l]));return i=>{for(let l=0;l{for(const i in r)n[i]=r[i](o);return n}}function jP(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=di.createTransformer(t),r=Sa(e),o=Sa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?mr(B1(jP(r,o),o.values),n):qd(e,t)};function L1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lu(e,t,n):Hp(e)(e,t)}function VP(e,t,n){const r=[],o=n||L1,i=e.length-1;for(let l=0;lt[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=VP(t,r,o),s=l.length,a=u=>{let c=0;if(s>1)for(;ca(ei(e[0],e[i-1],u)):a}function UP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=F1(0,t,r);e.push(lu(n,1,o))}}function WP(e){const t=[0];return UP(t,e.length-1),t}function HP(e,t){return e.map(n=>n*t)}function GP(e,t){return e.map(()=>t||A1).splice(0,e.length-1)}function Ca({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=TP(r)?r.map(xg):xg(r),i={done:!1,value:t[0]},l=HP(n&&n.length===t.length?n:WP(t),e),s=KP(l,t,{ease:Array.isArray(o)?o:GP(t,o)});return{calculatedDuration:e,next:a=>(i.value=s(a),i.done=a>=e,i)}}const Cg=2e4;function qP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Cg?1/0:t}const YP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qt.update(t,!0),stop:()=>_d(t),now:()=>wa.isProcessing?wa.timestamp:Uo.now()}},QP={decay:bg,inertia:bg,tween:Ca,keyframes:Ca,spring:T1},XP=e=>e/100;class Gp extends P1{constructor({KeyframeResolver:t=_p,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:r,motionValue:o,keyframes:i}=this.options,l=(s,a)=>this.onKeyframesResolved(s,a);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,l,r,o):this.resolver=new t(i,l,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:l=0}=this.options,s=QP[n]||Ca;let a,u;s!==Ca&&typeof t[0]!="number"&&(a=mr(XP,L1(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});i==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-l})),c.calculatedDuration===null&&(c.calculatedDuration=qP(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:x}=this.options;return{done:!0,value:x[x.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:l,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:b,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,C=i;if(p){const x=Math.min(this.currentTime,c)/d;let T=Math.floor(x),k=x%1;!k&&x>=1&&(k=1),k===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(h==="reverse"?(k=1-k,b&&(k-=b/d)):h==="mirror"&&(C=l)),y=ei(0,1,k)*d}const E=v?{done:!1,value:a[0]}:C.next(y);s&&(E.value=s(E.value));let{done:S}=E;!v&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return D&&o!==void 0&&(E.value=iu(a,this.options,o)),w&&w(E.value),D&&this.finish(),E}get duration(){const{resolved:t}=this;return t?gr(t.calculatedDuration):0}get time(){return gr(this.currentTime)}set time(t){t=Kr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=gr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=YP,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:t}=this.options;t&&t()}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const z1=e=>Array.isArray(e)&&typeof e[0]=="number";function O1(e){return!!(!e||typeof e=="string"&&e in qp||z1(e)||Array.isArray(e)&&e.every(O1))}const zi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zi([0,.65,.55,1]),circOut:zi([.55,0,1,.45]),backIn:zi([.31,.01,.66,-.59]),backOut:zi([.33,1.53,.69,.99])};function JP(e){return j1(e)||qp.easeOut}function j1(e){if(e)return z1(e)?zi(e):Array.isArray(e)?e.map(JP):qp[e]}function ZP(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:l="loop",ease:s,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=j1(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"})}const ek=cP(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tk=new Set(["opacity","clipPath","filter","transform"]),$a=10,nk=2e4;function rk(e){return e.type==="spring"||e.name==="backgroundColor"||!O1(e.ease)}function ok(e,t){const n=new Gp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,l),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:l,type:s,motionValue:a,name:u}=this.options;if(!(!((r=a.owner)===null||r===void 0)&&r.current))return!1;if(rk(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,b=ok(t,h);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,i=b.times,l=b.ease,s="keyframes"}const c=ZP(a.owner.current,u,t,{...this.options,duration:o,times:i,ease:l});return c.startTime=Uo.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;a.set(iu(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:s,ease:l,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return gr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return gr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Kr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return wn;const{animation:r}=n;r.timeline=t,r.onfinish=null}return wn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:l,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:a,onUpdate:u,onComplete:c,...d}=this.options,f=new Gp({...d,keyframes:r,duration:o,type:i,ease:l,times:s,isGenerator:!0}),p=Kr(this.time);a.setWithVelocity(f.sample(p-$a).value,f.sample(p).value,$a)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:l,type:s}=t;return ek()&&r&&tk.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&l!==0&&s!=="inertia"}}const ik=(e,t,n,r={},o,i)=>l=>{const s=c1(r,e)||{},a=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Kr(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{l(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};OE(s)||(c={...c,...zE(e,c)}),c.duration&&(c.duration=Kr(c.duration)),c.repeatDelay&&(c.repeatDelay=Kr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=iu(c.keyframes,s);if(f!==void 0){qt.update(()=>{c.onUpdate(f),c.onComplete()});return}}return!i&&$g.supports(c)?new $g(c):new Gp(c)};function Ea(e){return!!(ft(e)&&e.add)}function lk(e,t){e.indexOf(t)===-1&&e.push(t)}function sk(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class _1{constructor(){this.subscriptions=[]}add(t){return lk(this.subscriptions,t),()=>sk(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class uk{constructor(t,n={}){this.version="11.1.3",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Uo.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=ak(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Uo.now()}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 _1);const r=this.events[t].add(n);return t==="change"?()=>{r(),qt.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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Uo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return k1(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pa(e,t){return new uk(e,t)}function ck(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pa(n))}function dk(e,t){const n=ou(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const l in i){const s=cE(i[l]);ck(e,l,s)}}function fk({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function V1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:l=e.getDefaultTransition(),transitionEnd:s,...a}=t;const u=e.getValue("willChange");r&&(l=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in a){const p=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),h=a[f];if(h===void 0||d&&fk(d,f))continue;const b={delay:n,elapsed:0,...c1(l||{},f)};let w=!1;if(window.HandoffAppearAnimations){const y=e.getProps()[_b];if(y){const C=window.HandoffAppearAnimations(y,f);C!==null&&(b.elapsed=C,w=!0)}}p.start(ik(f,p,h,e.shouldReduceMotion&&oo.has(f)?{type:!1}:b,e,w));const g=p.animation;g&&(Ea(u)&&(u.add(f),g.then(()=>u.remove(f))),c.push(g))}return s&&Promise.all(c).then(()=>{qt.update(()=>{s&&dk(e,s)})}),c}function Yd(e,t,n={}){var r;const o=ou(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const l=o?()=>Promise.all(V1(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return pk(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[l,s]:[s,l];return u().then(()=>c())}else return Promise.all([l(),s(n.delay)])}function pk(e,t,n=0,r=0,o=1,i){const l=[],s=(e.variantChildren.size-1)*r,a=o===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(hk).forEach((u,c)=>{u.notify("AnimationStart",t),l.push(Yd(u,t,{...i,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(l)}function hk(e,t){return e.sortNodePosition(t)}function mk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Yd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Yd(e,t,n);else{const o=typeof t=="function"?ou(e,t,n.custom):t;r=Promise.all(V1(e,o,n))}return r.then(()=>{qt.postRender(()=>{e.notify("AnimationComplete",t)})})}const gk=[...Mp].reverse(),vk=Mp.length;function yk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mk(e,n,r)))}function bk(e){let t=yk(e);const n=wk();let r=!0;const o=a=>(u,c)=>{var d;const f=ou(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...b}=f;u={...u,...b,...h}}return u};function i(a){t=a(e)}function l(a){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let w=0;wh&&C,T=!1;const k=Array.isArray(y)?y:[y];let M=k.reduce(o(g),{});E===!1&&(M={});const{prevResolvedValues:I={}}=v,P={...I,...M},A=V=>{x=!0,f.has(V)&&(T=!0,f.delete(V)),v.needsAnimating[V]=!0;const K=e.getValue(V);K&&(K.liveStyle=!1)};for(const V in P){const K=M[V],F=I[V];if(p.hasOwnProperty(V))continue;let B=!1;jd(K)&&jd(F)?B=!u1(K,F):B=K!==F,B?K!=null?A(V):f.add(V):K!==void 0&&f.has(V)?A(V):v.protectedKeys[V]=!0}v.prevProp=y,v.prevResolvedValues=M,v.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(x=!1),x&&(!S||T)&&d.push(...k.map(V=>({animation:V,options:{type:g}})))}if(f.size){const w={};f.forEach(g=>{const v=e.getBaseTarget(g),y=e.getValue(g);y&&(y.liveStyle=!0),w[g]=v??null}),d.push({animation:w})}let b=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(d):Promise.resolve()}function s(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(a,u)}),n[a].isActive=u;const d=l(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:l,setActive:s,setAnimateFunction:i,getState:()=>n}}function xk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!u1(t,e):!1}function Tr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wk(){return{animate:Tr(!0),whileInView:Tr(),whileHover:Tr(),whileTap:Tr(),whileDrag:Tr(),whileFocus:Tr(),exit:Tr()}}class Sk extends ci{constructor(t){super(t),t.animationState||(t.animationState=bk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),nu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Ck=0;class $k extends ci{constructor(){super(...arguments),this.id=Ck++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Ek={animation:{Feature:Sk},exit:{Feature:$k}},Pg=()=>({min:0,max:0}),K1=()=>({x:Pg(),y:Pg()});function Pk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function kk(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 Dk(e,t){return Pk(kk(e.getBoundingClientRect(),t))}const Qd={current:null},U1={current:!1};function Tk(){if(U1.current=!0,!!Pp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qd.current=e.matches;e.addListener(t),t()}else Qd.current=!1}function Mk(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],l=n[o];if(ft(i))e.addValue(o,i),Ea(r)&&r.add(o);else if(ft(l))e.addValue(o,Pa(i,{owner:e})),Ea(r)&&r.remove(o);else if(l!==i)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Pa(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const kg=new WeakMap,Ak=[...g1,lt,di],Rk=e=>Ak.find(m1(e)),W1=Object.keys(bl),Ik=W1.length,Dg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Nk=Ap.length;function H1(e){if(e)return e.options.allowProjection!==!1?e.projection:H1(e.parent)}class Fk{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:l},s={}){this.resolveKeyframes=(f,p,h,b)=>new this.KeyframeResolver(f,p,h,b,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_p,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.scheduleRender=()=>qt.render(this.render,!1,!0);const{latestValues:a,renderState:u}=l;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ru(n),this.isVariantNode=Ub(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];a[f]!==void 0&&ft(p)&&(p.set(a[f],!1),Ea(c)&&c.add(f))}}mount(t){this.current=t,kg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),U1.current||Tk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;kg.delete(this.current),this.projection&&this.projection.unmount(),_d(this.notifyUpdate),_d(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)(t=this.features[n])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,n){const r=oo.has(t),o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&qt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let l,s;for(let a=0;athis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K1()}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){n!==this.values.get(t)&&(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=Pa(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(p1(o)||d1(o))?o=parseFloat(o):!Rk(o)&&di.test(n)&&(o=$1(t,n)),this.setBaseTarget(t,ft(o)?o.get():o)),ft(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=jp(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ft(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new _1),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class G1 extends Fk{constructor(){super(...arguments),this.KeyframeResolver=E1}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]}}function Bk(e){return window.getComputedStyle(e)}class Lk extends G1{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(oo.has(n)){const r=Kp(n);return r&&r.default||0}else{const r=Bk(t),o=(qb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dk(t,n)}build(t,n,r,o){Fp(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Op(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ft(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Zb(t,n,r,o)}}class zk extends G1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oo.has(n)){const r=Kp(n);return r&&r.default||0}return n=e1.has(n)?n:Tp(n),t.getAttribute(n)}measureInstanceViewportBox(){return K1()}scrapeMotionValuesFromProps(t,n,r){return n1(t,n,r)}build(t,n,r,o){Lp(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){t1(t,n,r,o)}mount(t){this.isSVGTag=zp(t.tagName),super.mount(t)}}const Ok=(e,t)=>Rp(e)?new zk(t,{enableHardwareAcceleration:!1}):new Lk(t,{allowProjection:e!==m.Fragment,enableHardwareAcceleration:!0}),jk=z$(gE);function q1(){const e=m.useRef(!1);return kp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _k(){const e=q1(),[t,n]=m.useState(0),r=m.useCallback(()=>{e.current&&n(t+1)},[t]);return[m.useCallback(()=>qt.postRender(r),[r]),t]}class Vk extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Kk({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),o=m.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=m.useContext($p);return m.useInsertionEffect(()=>{const{width:l,height:s,top:a,left:u}=o.current;if(t||!r.current||!l||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${l}px !important; @@ -45,7 +45,7 @@ Error generating stack: `+i.message+` top: ${a}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),$.jsx(Vk,{isPresent:t,childRef:r,sizeRef:o,children:m.cloneElement(e,{ref:r})})}const mc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:l})=>{const s=r1(Uk),a=m.useId(),u=m.useMemo(()=>({id:a,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?[Math.random()]:[n]);return m.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),m.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),l==="popLayout"&&(e=$.jsx(Kk,{isPresent:n,children:e})),$.jsx(Ep.Provider,{value:u,children:e})};function Uk(){return new Map}function Wk(e){return m.useEffect(()=>()=>e(),[])}const Rr=e=>e.key||"";function Hk(e,t){e.forEach(n=>{const r=Rr(n);t.set(r,n)})}function Gk(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const qk=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:l="sync"})=>{const s=m.useContext(Wb).forceRender||_k()[0],a=q1(),u=Gk(e);let c=u;const d=m.useRef(new Map).current,f=m.useRef(c),p=m.useRef(new Map).current,h=m.useRef(!0);if(kp(()=>{h.current=!1,Hk(u,p),f.current=c}),Wk(()=>{h.current=!0,p.clear(),d.clear()}),h.current)return $.jsx($.Fragment,{children:c.map(v=>$.jsx(mc,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:l,children:v},Rr(v)))});c=[...c];const b=f.current.map(Rr),w=u.map(Rr),g=b.length;for(let v=0;v{if(w.indexOf(y)!==-1)return;const C=p.get(y);if(!C)return;const E=b.indexOf(y);let S=v;if(!S){const D=()=>{d.delete(y);const x=Array.from(p.keys()).filter(T=>!w.includes(T));if(x.forEach(T=>p.delete(T)),f.current=u.filter(T=>{const k=Rr(T);return k===y||x.includes(k)}),!d.size){if(a.current===!1)return;s(),r&&r()}};S=$.jsx(mc,{isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:i,mode:l,children:C},Rr(C)),d.set(y,S)}c.splice(E,0,S)}),c=c.map(v=>{const y=v.key;return d.has(y)?v:$.jsx(mc,{isPresent:!0,presenceAffectsLayout:i,mode:l,children:v},Rr(v))}),$.jsx($.Fragment,{children:d.size?c:c.map(v=>m.cloneElement(v))})};function Yk({children:e,features:t,strict:n=!1}){const[,r]=m.useState(!gc(t)),o=m.useRef(void 0);if(!gc(t)){const{renderer:i,...l}=t;o.current=i,Od(l)}return m.useEffect(()=>{gc(t)&&t().then(({renderer:i,...l})=>{Od(l),o.current=i,r(!0)})},[]),$.jsx(Dp.Provider,{value:{renderer:o.current,strict:n},children:e})}function gc(e){return typeof e=="function"}const Qk={renderer:Ok,...Ek,...AE};class Xk{build(t,n){return this.context=n,Tg(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];be.Children.forEach(n,l=>{o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let a of s)i++,yield a}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=o?o.key:null,yield a;return}i=n.renderer(t.value)}if(be.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let f=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${f}> in collection.`)}let u=a.getCollectionNode(i.props,this.context),c=t.index,d=u.next();for(;!d.done&&d.value;){let f=d.value;t.index=c;let p=f.key;p||(p=f.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...f,key:p,index:c,wrapper:Jk(t.wrapper,f.wrapper)},this.getChildState(n,f),r?`${r}${i.key}`:i.key,o)];for(let w of b){if(w.value=f.value||t.value,w.value&&this.cache.set(w.value,w),t.type&&w.type!==t.type)throw new Error(`Unsupported type <${vc(w.type)}> in <${vc(o.type)}>. Only <${vc(t.type)}> is supported.`);c++,yield w}d=u.next(b)}return}if(t.key==null)return;let l=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Tg(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`),u.index=a;let c=l.getFullNode(u,l.getChildState(n,u),s.key,s);for(let d of c)a++,yield d}})};yield s}constructor(){this.cache=new WeakMap}}function Tg(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 Jk(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function vc(e){return e[0].toUpperCase()+e.slice(1)}function Zk(e,t,n){let r=m.useMemo(()=>new Xk,[]),{children:o,items:i,collection:l}=e;return m.useMemo(()=>{if(l)return l;let a=r.build({children:o,items:i},n);return t(a)},[r,o,i,l,n,t])}function Ke(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Mn(e){return er(e,0)}function er(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function lr(e){let t;for(let n of e)t=n;return t}function yc(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Mg(e,t),t],o=[...Mg(e,n),n],i=r.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===t)>=0,-1)}function Mg(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}class nn extends Set{constructor(t,n,r){super(t),t instanceof nn?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}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,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,l=m.useRef(!1),[,s]=m.useState(!1),a=m.useRef(null),u=m.useRef(null),[,c]=m.useState(null),d=m.useMemo(()=>Ag(e.selectedKeys),[e.selectedKeys]),f=m.useMemo(()=>Ag(e.defaultSelectedKeys,new nn),[e.defaultSelectedKeys]),[p,h]=Tl(d,f,e.onSelectionChange),b=m.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,g]=m.useState(o);o==="replace"&&w==="toggle"&&typeof p=="object"&&p.size===0&&g("replace");let v=m.useRef(o);return m.useEffect(()=>{o!==v.current&&(g(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:g,get isFocused(){return l.current},setFocused(y){l.current=y,s(y)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(y,C="first"){a.current=y,u.current=C,c(y)},selectedKeys:p,setSelectedKeys(y){(r||!e6(y,p))&&h(y)},disabledKeys:b,disabledBehavior:i}}function Ag(e,t){return e?e==="all"?"all":new nn(e):t}class n6{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){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}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 n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&yc(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&yc(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}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}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new nn([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new nn(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?yc(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;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}if(t=this.getKey(t),t==null)return;let n=new nn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new nn([t],t,t):new nn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new nn;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(Mn(Ke(o,this.collection)).key)}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 nn)}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){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}var Y1=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,[JM,r6]=Dl({name:"ButtonGroupContext",strict:!1});function Q1(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:l,onPressChange:s,preventFocusOnPress:a,allowFocusWhenDisabled:u,onClick:c,href:d,target:f,rel:p,type:h="button",allowTextSelectionOnPress:b}=e,w;n==="button"?w={type:h,disabled:r}:w={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:d,target:n==="a"?f:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:g,isPressed:v}=un({onPressStart:i,onPressEnd:l,onPressChange:s,onPress:o,isDisabled:r,preventFocusOnPress:a,allowTextSelectionOnPress:b,ref:t}),{focusableProps:y}=Ml(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let C=J(y,g,to(e,{labelable:!0}));return{isPressed:v,buttonProps:J(w,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{c==null||c(E)}})}}var X1=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:o,onClear:i}=e;return $.jsx($.Fragment,{children:t.map(l=>{const s=$C(.01*l.size,.2,l.size>100?.75:.5);return $.jsx(qk,{mode:"popLayout",children:$.jsx($.Fragment,{children:$.jsx(Yk,{features:Qk,children:$.jsx(jk.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:l.y,left:l.x,width:`${l.size}px`,height:`${l.size}px`,...o},transition:{duration:s},onAnimationComplete:()=>{i(l.key)},...n})})})},l.key)})})};X1.displayName="NextUI.Ripple";var J1=X1;function Z1(e={}){const[t,n]=m.useState([]),r=m.useCallback(i=>{const l=i.currentTarget,s=Math.max(l.clientWidth,l.clientHeight),a=l.getBoundingClientRect();n(u=>[...u,{key:CC(u.length.toString()),size:s,x:i.clientX-a.x-s/2,y:i.clientY-a.y-s/2}])},[]),o=m.useCallback(i=>{n(l=>l.filter(s=>s.key!==i))},[]);return{ripples:t,onClick:r,onClear:o,...e}}function o6(e){var t,n,r,o,i,l,s,a;const u=r6(),c=!!u,{ref:d,as:f,children:p,startContent:h,endContent:b,autoFocus:w,className:g,spinner:v,fullWidth:y=(t=u==null?void 0:u.fullWidth)!=null?t:!1,size:C=(n=u==null?void 0:u.size)!=null?n:"md",color:E=(r=u==null?void 0:u.color)!=null?r:"default",variant:S=(o=u==null?void 0:u.variant)!=null?o:"solid",disableAnimation:D=(i=u==null?void 0:u.disableAnimation)!=null?i:!1,radius:x=u==null?void 0:u.radius,disableRipple:T=(l=u==null?void 0:u.disableRipple)!=null?l:!1,isDisabled:k=(s=u==null?void 0:u.isDisabled)!=null?s:!1,isIconOnly:M=(a=u==null?void 0:u.isIconOnly)!=null?a:!1,isLoading:I=!1,spinnerPlacement:P="start",onPress:A,onClick:V,...K}=e,F=f||"button",B=typeof F=="string",O=Oe(d),{isFocusVisible:L,isFocused:W,focusProps:G}=cn({autoFocus:w}),ee=k||I,Q=m.useMemo(()=>y$({size:C,color:E,variant:S,radius:x,fullWidth:y,isDisabled:ee,isInGroup:c,disableAnimation:D,isIconOnly:M,className:g}),[C,E,S,x,y,ee,c,M,D,g]),{onClick:fe,onClear:ne,ripples:ke}=Z1(),Je=m.useCallback(Be=>{T||ee||D||O.current&&fe(Be)},[T,ee,D,O,fe]),{buttonProps:Qt,isPressed:Xt}=Q1({elementType:f,isDisabled:ee,onPress:A,onClick:wr(V,Je),...K},O),{isHovered:xe,hoverProps:He}=no({isDisabled:ee}),Nt=m.useCallback((Be={})=>({"data-disabled":H(ee),"data-focus":H(W),"data-pressed":H(Xt),"data-focus-visible":H(L),"data-hover":H(xe),"data-loading":H(I),...J(Qt,G,He,ht(K,{enabled:B}),ht(Be))}),[I,ee,W,Xt,B,L,xe,Qt,G,He,K]),pe=Be=>m.isValidElement(Be)?m.cloneElement(Be,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,Ze=pe(h),$n=pe(b),dn=m.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[C],[C]),fn=m.useCallback(()=>({ripples:ke,onClear:ne}),[ke,ne]);return{Component:F,children:p,domRef:O,spinner:v,styles:Q,startContent:Ze,endContent:$n,isLoading:I,spinnerPlacement:P,spinnerSize:dn,disableRipple:T,getButtonProps:Nt,getRippleProps:fn,isIconOnly:M}}function i6(e){const[t,n]=ai(e,Qm.variantKeys),{children:r,className:o,classNames:i,label:l,...s}=t,a=m.useMemo(()=>Qm({...n}),[li(n)]),u=ae(i==null?void 0:i.base,o),c=l||r,d=m.useMemo(()=>c&&typeof c=="string"?c:s["aria-label"]?"":"Loading",[r,c,s["aria-label"]]),f=m.useCallback(()=>({"aria-label":d,className:a.base({class:u}),...s}),[d,a,u,s]);return{label:c,slots:a,classNames:i,getSpinnerProps:f}}var ex=je((e,t)=>{const{slots:n,classNames:r,label:o,getSpinnerProps:i}=i6({...e});return $.jsxs("div",{ref:t,...i(),children:[$.jsxs("div",{className:n.wrapper({class:r==null?void 0:r.wrapper}),children:[$.jsx("i",{className:n.circle1({class:r==null?void 0:r.circle1})}),$.jsx("i",{className:n.circle2({class:r==null?void 0:r.circle2})})]}),o&&$.jsx("span",{className:n.label({class:r==null?void 0:r.label}),children:o})]})});ex.displayName="NextUI.Spinner";var l6=ex,tx=je((e,t)=>{const{Component:n,domRef:r,children:o,styles:i,spinnerSize:l,spinner:s=$.jsx(l6,{color:"current",size:l}),spinnerPlacement:a,startContent:u,endContent:c,isLoading:d,disableRipple:f,getButtonProps:p,getRippleProps:h,isIconOnly:b}=o6({...e,ref:t});return $.jsxs(n,{ref:r,className:i,...p(),children:[u,d&&a==="start"&&s,d&&b?null:o,d&&a==="end"&&s,c,!f&&$.jsx(J1,{...h()})]})});tx.displayName="NextUI.Button";var io=tx,[s6,nx]=Dl({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within "}),rx=je((e,t)=>{var n;const{as:r,className:o,children:i,...l}=e,s=r||"div",a=Oe(t),{slots:u,classNames:c}=nx(),d=ae(c==null?void 0:c.body,o);return $.jsx(s,{ref:a,className:(n=u.body)==null?void 0:n.call(u,{class:d}),...l,children:i})});rx.displayName="NextUI.CardBody";var ox=rx,ix=je((e,t)=>{var n;const{as:r,className:o,children:i,...l}=e,s=r||"div",a=Oe(t),{slots:u,classNames:c}=nx(),d=ae(c==null?void 0:c.header,o);return $.jsx(s,{ref:a,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...l,children:i})});ix.displayName="NextUI.CardHeader";var a6=ix;function u6(e){const[t,n]=ai(e,Zm.variantKeys),{ref:r,as:o,children:i,disableRipple:l=!1,onClick:s,onPress:a,autoFocus:u,className:c,classNames:d,allowTextSelectionOnPress:f=!0,...p}=t,h=Oe(r),b=o||(e.isPressable?"button":"div"),w=typeof b=="string",g=ae(d==null?void 0:d.base,c),{onClick:v,onClear:y,ripples:C}=Z1(),E=F=>{!e.disableAnimation&&!l&&h.current&&v(F)},{buttonProps:S,isPressed:D}=Q1({onPress:a,elementType:o,isDisabled:!e.isPressable,onClick:wr(s,E),allowTextSelectionOnPress:f,...p},h),{hoverProps:x,isHovered:T}=no({isDisabled:!e.isHoverable,...p}),{isFocusVisible:k,isFocused:M,focusProps:I}=cn({autoFocus:u}),P=m.useMemo(()=>Zm({...n}),[li(n)]),A=m.useMemo(()=>({isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,disableAnimation:e.disableAnimation,fullWidth:e.fullWidth,slots:P,classNames:d}),[P,d,e.isDisabled,e.isFooterBlurred,e.disableAnimation,e.fullWidth]),V=m.useCallback((F={})=>({ref:h,className:P.base({class:g}),tabIndex:e.isPressable?0:-1,"data-hover":H(T),"data-pressed":H(D),"data-focus":H(M),"data-focus-visible":H(k),"data-disabled":H(e.isDisabled),...J(e.isPressable?{...S,...I,role:"button"}:{},e.isHoverable?x:{},ht(p,{enabled:w}),ht(F))}),[h,P,g,w,e.isPressable,e.isHoverable,e.isDisabled,T,D,k,S,I,x,p]),K=m.useCallback(()=>({ripples:C,onClear:y}),[C,y]);return{context:A,domRef:h,Component:b,classNames:d,children:i,isHovered:T,isPressed:D,isPressable:e.isPressable,isHoverable:e.isHoverable,disableAnimation:e.disableAnimation,disableRipple:l,handleClick:E,isFocusVisible:k,getCardProps:V,getRippleProps:K}}var lx=je((e,t)=>{const{children:n,context:r,Component:o,isPressable:i,disableAnimation:l,disableRipple:s,getCardProps:a,getRippleProps:u}=u6({...e,ref:t});return $.jsxs(o,{...a(),children:[$.jsx(s6,{value:r,children:n}),i&&!l&&!s&&$.jsx(J1,{...u()})]})});lx.displayName="NextUI.Card";var sx=lx;function Yp(e,t,n){let{validationBehavior:r,focus:o}=e;Vn(()=>{if(r==="native"&&(n!=null&&n.current)){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(d6(n.current))}});let i=kt(()=>{t.resetValidation()}),l=kt(a=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!a.defaultPrevented&&n&&c&&f6(c)===n.current){var d;o?o():(d=n.current)===null||d===void 0||d.focus(),s5("keyboard")}a.preventDefault()}),s=kt(()=>{t.commitValidation()});m.useEffect(()=>{let a=n==null?void 0:n.current;if(!a)return;let u=a.form;return a.addEventListener("invalid",l),a.addEventListener("change",s),u==null||u.addEventListener("reset",i),()=>{a.removeEventListener("invalid",l),a.removeEventListener("change",s),u==null||u.removeEventListener("reset",i)}},[n,l,s,i,r])}function c6(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 d6(e){return{isInvalid:!e.validity.valid,validationDetails:c6(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function f6(e){for(let t=0;tRg(m6(l,o)),[l,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=m.useContext(p6),d=m.useMemo(()=>r?Array.isArray(r)?r.flatMap(k=>Jd(c[k])):Jd(c[r]):[],[c,r]),[f,p]=m.useState(c),[h,b]=m.useState(!1);c!==f&&(p(c),b(!1));let w=m.useMemo(()=>Rg(h?[]:d),[h,d]),g=m.useRef(go),[v,y]=m.useState(go),C=m.useRef(go),E=()=>{if(!S)return;D(!1);let k=u||i||g.current;bc(k,C.current)||(C.current=k,y(k))},[S,D]=m.useState(!1);return m.useEffect(E),{realtimeValidation:a||w||u||i||go,displayValidation:s==="native"?a||w||v:a||w||u||i||v,updateValidation(k){s==="aria"&&!bc(v,k)?y(k):g.current=k},resetValidation(){let k=go;bc(k,C.current)||(C.current=k,y(k)),s==="native"&&D(!1),b(!0)},commitValidation(){s==="native"&&D(!0),b(!0)}}}function Jd(e){return e?Array.isArray(e)?e:[e]:[]}function m6(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Jd(n)}return[]}function Rg(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ux}:null}function bc(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 g6(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:l,children:s,"aria-label":a,"aria-labelledby":u,validationState:c="valid",isInvalid:d}=e,f=S=>{S.stopPropagation(),t.setSelected(S.target.checked)},p=s!=null,h=a!=null||u!=null;!p&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:w}=un({isDisabled:r}),{pressProps:g,isPressed:v}=un({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:y}=Ml(e,n),C=J(b,y),E=to(e,{labelable:!0});return vp(n,t.isSelected,t.setSelected),{labelProps:J(g,{onClick:S=>S.preventDefault()}),inputProps:J(E,{"aria-invalid":d||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:f,disabled:r,...i==null?{}:{value:i},name:l,type:"checkbox",...C}),isSelected:t.isSelected,isPressed:w||v,isDisabled:r,isReadOnly:o,isInvalid:d||c==="invalid"}}function cx(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=xr(t);let l=xr(),s={};n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let a=F2({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:a}}function dx(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:l}=cx(e),s=Dm([!!t,!!n,r,o]),a=Dm([!!t,!!n,r,o]);return l=J(l,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:a}}}function fx(e={}){let{isReadOnly:t}=e,[n,r]=Tl(e.isSelected,e.defaultSelected||!1,e.onChange);function o(l){t||r(l)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function px(e,t,n){let r=su({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:a,isSelected:u,isPressed:c,isDisabled:d,isReadOnly:f}=g6({...e,isInvalid:o},t,n);Yp(e,r,n);let{isIndeterminate:p,isRequired:h,validationBehavior:b="aria"}=e;return m.useEffect(()=>{n.current&&(n.current.indeterminate=!!p)}),{labelProps:s,inputProps:{...a,checked:u,"aria-required":h&&b==="aria"||void 0,required:h&&b==="native"},isSelected:u,isPressed:c,isDisabled:d,isReadOnly:f,isInvalid:o,validationErrors:i,validationDetails:l}}const v6=new WeakMap;function y6(e,t,n){const r=fx({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(w){w?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(w)}});let{name:o,descriptionId:i,errorMessageId:l,validationBehavior:s}=v6.get(t);var a;s=(a=e.validationBehavior)!==null&&a!==void 0?a:s;let{realtimeValidation:u}=su({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),c=m.useRef(go),d=()=>{t.setInvalid(e.value,u.isInvalid?u:c.current)};m.useEffect(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:u,p=s==="native"?t.displayValidation:f;var h;let b=px({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(h=e.isRequired)!==null&&h!==void 0?h:t.isRequired,validationBehavior:s,[Xd]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(w){c.current=w,d()}}},r,n);return{...b,inputProps:{...b.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,i].filter(Boolean).join(" ")||void 0}}}var[ZM,b6]=Dl({name:"CheckboxGroupContext",strict:!1});function x6(e){const{isSelected:t,disableAnimation:n,...r}=e;return $.jsx("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...r,children:$.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function w6(e){const{isSelected:t,disableAnimation:n,...r}=e;return $.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...r,children:$.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function S6(e){const{isIndeterminate:t,...n}=e,r=t?w6:x6;return $.jsx(r,{...n})}function C6(e,t=[]){const n=m.useRef(e);return Y1(()=>{n.current=e}),m.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function $6(e={}){var t,n,r,o,i,l;const s=b6(),a=!!s,{as:u,ref:c,value:d="",children:f,icon:p,name:h,isRequired:b,isReadOnly:w=!1,autoFocus:g=!1,isSelected:v,validationState:y,size:C=(t=s==null?void 0:s.size)!=null?t:"md",color:E=(n=s==null?void 0:s.color)!=null?n:"primary",radius:S=s==null?void 0:s.radius,lineThrough:D=(r=s==null?void 0:s.lineThrough)!=null?r:!1,isDisabled:x=(o=s==null?void 0:s.isDisabled)!=null?o:!1,disableAnimation:T=(i=s==null?void 0:s.disableAnimation)!=null?i:!1,isInvalid:k=y?y==="invalid":(l=s==null?void 0:s.isInvalid)!=null?l:!1,isIndeterminate:M=!1,defaultSelected:I,classNames:P,className:A,onValueChange:V,...K}=e;s&&jy&&(v&&ca("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),I&&ca("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const F=u||"label",B=m.useRef(null),O=m.useRef(null);let L=e.onChange;a&&(L=wr(()=>{s.groupState.resetValidation()},L));const W=m.useId(),G=m.useMemo(()=>({name:h,value:d,children:f,autoFocus:g,defaultSelected:I,isIndeterminate:M,isRequired:b,isInvalid:k,isSelected:v,isDisabled:x,isReadOnly:w,"aria-label":ap(K["aria-label"],f),"aria-labelledby":K["aria-labelledby"]||W,onChange:V}),[d,h,W,f,g,k,M,x,w,v,I,K["aria-label"],K["aria-labelledby"],V]),ee=fx(G),{inputProps:Q,isSelected:fe,isDisabled:ne,isReadOnly:ke,isPressed:Je}=a?y6({...G,isInvalid:k,validationBehavior:"native"},s.groupState,O):px({...G,validationBehavior:"native"},ee,O),Qt=ne||ke,[Xt,xe]=m.useState(!1),{pressProps:He}=un({isDisabled:Qt,onPressStart(Ge){Ge.pointerType!=="keyboard"&&xe(!0)},onPressEnd(Ge){Ge.pointerType!=="keyboard"&&xe(!1)}}),Nt=Qt?!1:Xt||Je;b&&(Q.required=!0);const{hoverProps:pe,isHovered:Ze}=no({isDisabled:Q.disabled}),{focusProps:$n,isFocused:dn,isFocusVisible:fn}=cn({autoFocus:Q.autoFocus}),Be=m.useMemo(()=>v$({color:E,size:C,radius:S,isInvalid:k,lineThrough:D,isDisabled:ne,disableAnimation:T}),[E,C,S,k,D,ne,T]);Y1(()=>{if(!O.current)return;const Ge=!!O.current.checked;ee.setSelected(Ge)},[O.current]);const Ft=C6(L),Ve=m.useCallback(Ge=>{if(ke||ne){Ge.preventDefault();return}Ft==null||Ft(Ge)},[ke,ne,Ft]),En=ae(P==null?void 0:P.base,A),Pn=m.useCallback(()=>({ref:B,className:Be.base({class:En}),"data-disabled":H(ne),"data-selected":H(fe||M),"data-invalid":H(k),"data-hover":H(Ze),"data-focus":H(dn),"data-pressed":H(Nt),"data-readonly":H(Q.readOnly),"data-focus-visible":H(fn),"data-indeterminate":H(M),...J(pe,He,K)}),[Be,En,ne,fe,M,k,Ze,dn,Nt,Q.readOnly,fn,pe,He,K]),Ct=m.useCallback((Ge={})=>({...Ge,"aria-hidden":!0,className:ae(Be.wrapper({class:ae(P==null?void 0:P.wrapper,Ge==null?void 0:Ge.className)}))}),[Be,P==null?void 0:P.wrapper]),ut=m.useCallback(()=>({ref:AC(O,c),...J(Q,$n),onChange:wr(Q.onChange,Ve)}),[Q,$n,Ve]),Pr=m.useCallback(()=>({id:W,className:Be.label({class:P==null?void 0:P.label})}),[Be,P==null?void 0:P.label,ne,fe,k]),pn=m.useCallback(()=>({isSelected:fe,isIndeterminate:!!M,disableAnimation:!!T,className:Be.icon({class:P==null?void 0:P.icon})}),[Be,P==null?void 0:P.icon,fe,M,T]);return{Component:F,icon:p,children:f,isSelected:fe,isDisabled:ne,isInvalid:k,isFocused:dn,isHovered:Ze,isFocusVisible:fn,getBaseProps:Pn,getWrapperProps:Ct,getInputProps:ut,getLabelProps:Pr,getIconProps:pn}}var hx=je((e,t)=>{const{Component:n,children:r,icon:o=$.jsx(S6,{}),getBaseProps:i,getWrapperProps:l,getInputProps:s,getIconProps:a,getLabelProps:u}=$6({...e,ref:t}),c=typeof o=="function"?o(a()):m.cloneElement(o,a());return $.jsxs(n,{...i(),children:[$.jsx(Al,{children:$.jsx("input",{...s()})}),$.jsx("span",{...l(),children:c}),r&&$.jsx("span",{...u(),children:r})]})});hx.displayName="NextUI.Checkbox";var mx=hx;let E6=Math.round(Math.random()*1e10),P6=0;function k6(e){let t=m.useMemo(()=>e.name||`radio-group-${E6}-${++P6}`,[e.name]);var n;let[r,o]=Tl(e.value,(n=e.defaultValue)!==null&&n!==void 0?n:null,e.onChange),[i,l]=m.useState(null),s=su({...e,value:r}),a=c=>{!e.isReadOnly&&!e.isDisabled&&(o(c),s.commitValidation())},u=s.displayValidation.isInvalid;return{...s,name:t,selectedValue:r,setSelectedValue:a,lastFocusedValue:i,setLastFocusedValue:l,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const gx=new WeakMap;function D6(e,t,n){let{value:r,children:o,"aria-label":i,"aria-labelledby":l}=e;const s=e.isDisabled||t.isDisabled;let a=o!=null,u=i!=null||l!=null;!a&&!u&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,d=x=>{x.stopPropagation(),t.setSelectedValue(r)},{pressProps:f,isPressed:p}=un({isDisabled:s}),{pressProps:h,isPressed:b}=un({isDisabled:s,onPress(){t.setSelectedValue(r)}}),{focusableProps:w}=Ml(J(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),g=J(f,w),v=to(e,{labelable:!0}),y=-1;t.selectedValue!=null?t.selectedValue===r&&(y=0):(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(y=0),s&&(y=void 0);let{name:C,descriptionId:E,errorMessageId:S,validationBehavior:D}=gx.get(t);return vp(n,t.selectedValue,t.setSelectedValue),Yp({validationBehavior:D},t,n),{labelProps:J(h,{onClick:x=>x.preventDefault()}),inputProps:J(v,{...g,type:"radio",name:C,tabIndex:y,disabled:s,required:t.isRequired&&D==="native",checked:c,value:r,onChange:d,"aria-describedby":[e["aria-describedby"],t.isInvalid?S:null,E].filter(Boolean).join(" ")||void 0}),isDisabled:s,isSelected:c,isPressed:p||b}}function T6(e,t){let{name:n,isReadOnly:r,isRequired:o,isDisabled:i,orientation:l="vertical",validationBehavior:s="aria"}=e,{direction:a}=Kn(),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:p,descriptionProps:h,errorMessageProps:b}=dx({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||c}),w=to(e,{labelable:!0}),{focusWithinProps:g}=eu({onBlurWithin(C){var E;(E=e.onBlur)===null||E===void 0||E.call(e,C),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),v=C=>{let E;switch(C.key){case"ArrowRight":a==="rtl"&&l!=="vertical"?E="prev":E="next";break;case"ArrowLeft":a==="rtl"&&l!=="vertical"?E="next":E="prev";break;case"ArrowDown":E="next";break;case"ArrowUp":E="prev";break;default:return}C.preventDefault();let S=gl(C.currentTarget,{from:C.target}),D;E==="next"?(D=S.nextNode(),D||(S.currentNode=C.currentTarget,D=S.firstChild())):(D=S.previousNode(),D||(S.currentNode=C.currentTarget,D=S.lastChild())),D&&(D.focus(),t.setSelectedValue(D.value))},y=xr(n);return gx.set(t,{name:y,descriptionId:h.id,errorMessageId:b.id,validationBehavior:s}),{radioGroupProps:J(w,{role:"radiogroup",onKeyDown:v,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":o||void 0,"aria-disabled":i||void 0,"aria-orientation":l,...p,...g}),labelProps:f,descriptionProps:h,errorMessageProps:b,isInvalid:u,validationErrors:c,validationDetails:d}}function M6(e){const{as:t,ref:n,classNames:r,children:o,label:i,value:l,name:s,isInvalid:a,validationState:u,size:c="md",color:d="primary",isDisabled:f=!1,disableAnimation:p=!1,orientation:h="vertical",isRequired:b=!1,isReadOnly:w,errorMessage:g,description:v,className:y,onChange:C,onValueChange:E,...S}=e,D=t||"div",x=typeof D=="string",T=Oe(n),k=m.useMemo(()=>({...S,value:l,name:s,"aria-label":ap(S["aria-label"],i),isRequired:b,isReadOnly:w,isInvalid:u==="invalid"||a,orientation:h,validationBehavior:"native",onChange:E}),[S,l,s,i,b,w,a,u,h,E]),M=k6(k),{labelProps:I,radioGroupProps:P,errorMessageProps:A,descriptionProps:V,isInvalid:K,validationErrors:F,validationDetails:B}=T6(k,M),O=k.isInvalid||K,L=m.useMemo(()=>({size:c,color:d,groupState:M,isRequired:b,isInvalid:O,isDisabled:f,disableAnimation:p,onChange:C}),[c,d,b,f,O,C,p,M.name,M==null?void 0:M.isDisabled,M==null?void 0:M.isReadOnly,M==null?void 0:M.isRequired,M==null?void 0:M.selectedValue,M==null?void 0:M.lastFocusedValue]),W=m.useMemo(()=>g$({isRequired:b,isInvalid:O,disableAnimation:p}),[O,b,p]),G=ae(r==null?void 0:r.base,y),ee=m.useCallback(()=>({ref:T,className:W.base({class:G}),...J(P,ht(S,{enabled:x}))}),[T,W,G,P,S]),Q=m.useCallback(()=>({className:W.label({class:r==null?void 0:r.label}),...I}),[W,r==null?void 0:r.label,I,r==null?void 0:r.label]),fe=m.useCallback(()=>({className:W.wrapper({class:r==null?void 0:r.wrapper}),role:"presentation","data-orientation":h}),[W,r==null?void 0:r.wrapper,h,W.wrapper]),ne=m.useCallback((Je={})=>({...Je,...V,className:W.description({class:ae(r==null?void 0:r.description,Je==null?void 0:Je.className)})}),[W,r==null?void 0:r.description,V,W.description]),ke=m.useCallback((Je={})=>({...Je,...A,className:W.errorMessage({class:ae(r==null?void 0:r.errorMessage,Je==null?void 0:Je.className)})}),[W,r==null?void 0:r.errorMessage,A]);return{Component:D,children:o,label:i,context:L,description:v,isInvalid:O,errorMessage:typeof g=="function"?g({isInvalid:O,validationErrors:F,validationDetails:B}):g||(F==null?void 0:F.join(" ")),getGroupProps:ee,getLabelProps:Q,getWrapperProps:fe,getDescriptionProps:ne,getErrorMessageProps:ke}}var[A6,R6]=Dl({name:"RadioGroupContext",strict:!1}),vx=je((e,t)=>{const{Component:n,children:r,label:o,context:i,description:l,isInvalid:s,errorMessage:a,getGroupProps:u,getLabelProps:c,getWrapperProps:d,getDescriptionProps:f,getErrorMessageProps:p}=M6({...e,ref:t});return $.jsxs(n,{...u(),children:[o&&$.jsx("span",{...c(),children:o}),$.jsx("div",{...d(),children:$.jsx(A6,{value:i,children:r})}),s&&a?$.jsx("div",{...p(),children:a}):l?$.jsx("div",{...f(),children:l}):null]})});vx.displayName="NextUI.RadioGroup";var Ig=vx;function I6(e){var t,n,r,o;const i=R6(),{as:l,ref:s,classNames:a,id:u,value:c,children:d,description:f,size:p=(t=i==null?void 0:i.size)!=null?t:"md",color:h=(n=i==null?void 0:i.color)!=null?n:"primary",isDisabled:b=(r=i==null?void 0:i.isDisabled)!=null?r:!1,disableAnimation:w=(o=i==null?void 0:i.disableAnimation)!=null?o:!1,onChange:g=i==null?void 0:i.onChange,autoFocus:v=!1,className:y,...C}=e;i&&jy&&("checked"in C&&ca('Remove props "checked" if in the Radio.Group.',"Radio"),c===void 0&&ca('Props "value" must be defined if in the Radio.Group.',"Radio"));const E=l||"label",S=Oe(s),D=m.useRef(null),x=m.useId(),T=m.useMemo(()=>{var pe;return(pe=i.isRequired)!=null?pe:!1},[i.isRequired]),k=i.isInvalid,M=m.useMemo(()=>{const pe=C["aria-label"]||typeof d=="string"?d:void 0,Ze=C["aria-describedby"]||typeof f=="string"?f:void 0;return{id:u,isRequired:T,isDisabled:b,"aria-label":pe,"aria-labelledby":C["aria-labelledby"]||x,"aria-describedby":Ze}},[x,u,b,T]),{inputProps:I,isDisabled:P,isSelected:A,isPressed:V}=D6({value:c,children:d,...i,...M},i.groupState,D),{focusProps:K,isFocused:F,isFocusVisible:B}=cn({autoFocus:v}),O=P||I.readOnly,[L,W]=m.useState(!1),{pressProps:G}=un({isDisabled:O,onPressStart(pe){pe.pointerType!=="keyboard"&&W(!0)},onPressEnd(pe){pe.pointerType!=="keyboard"&&W(!1)}}),{hoverProps:ee,isHovered:Q}=no({isDisabled:O}),fe=O?!1:L||V,ne=m.useMemo(()=>m$({color:h,size:p,isInvalid:k,isDisabled:P,disableAnimation:w}),[h,p,P,k,w]),ke=ae(a==null?void 0:a.base,y),Je=m.useCallback((pe={})=>({...pe,ref:S,className:ne.base({class:ke}),"data-disabled":H(P),"data-focus":H(F),"data-focus-visible":H(B),"data-selected":H(A),"data-invalid":H(k),"data-hover":H(Q),"data-pressed":H(fe),"data-hover-unselected":H(Q&&!A),"data-readonly":H(I.readOnly),"aria-required":H(T),...J(ee,G,C)}),[ne,ke,S,P,F,B,A,k,Q,fe,I.readOnly,T,C]),Qt=m.useCallback((pe={})=>({...pe,"aria-hidden":!0,className:ae(ne.wrapper({class:ae(a==null?void 0:a.wrapper,pe.className)}))}),[ne,a==null?void 0:a.wrapper]),Xt=m.useCallback((pe={})=>({ref:D,...J(pe,I,K,{required:T}),onChange:wr(I.onChange,g)}),[I,K,T,g]),xe=m.useCallback((pe={})=>({...pe,id:x,className:ne.label({class:a==null?void 0:a.label})}),[ne,a==null?void 0:a.label,P,A,k]),He=m.useCallback((pe={})=>({...pe,className:ne.labelWrapper({class:a==null?void 0:a.labelWrapper})}),[ne,a==null?void 0:a.labelWrapper]),Nt=m.useCallback((pe={})=>({...pe,className:ne.control({class:a==null?void 0:a.control})}),[ne,a==null?void 0:a.control]);return{Component:E,children:d,slots:ne,classNames:a,description:f,isSelected:A,isDisabled:P,isInvalid:k,isFocusVisible:B,getBaseProps:Je,getWrapperProps:Qt,getInputProps:Xt,getLabelProps:xe,getLabelWrapperProps:He,getControlProps:Nt}}var yx=je((e,t)=>{const{Component:n,children:r,slots:o,classNames:i,description:l,getBaseProps:s,getWrapperProps:a,getInputProps:u,getLabelProps:c,getLabelWrapperProps:d,getControlProps:f}=I6({...e,ref:t});return $.jsxs(n,{...s(),children:[$.jsx(Al,{children:$.jsx("input",{...u()})}),$.jsx("span",{...a(),children:$.jsx("span",{...f()})}),$.jsxs("div",{...d(),children:[r&&$.jsx("span",{...c(),children:r}),l&&$.jsx("span",{className:o.description({class:i==null?void 0:i.description}),children:l})]})]})});yx.displayName="NextUI.Radio";var Ng=yx;function N6(e={}){const{rerender:t=!1,delay:n=0}=e,r=m.useRef(!1),[o,i]=m.useState(!1);return m.useEffect(()=>{r.current=!0;let l=null;return t&&(n>0?l=setTimeout(()=>{i(!0)},n):i(!0)),()=>{r.current=!1,t&&i(!1),l&&clearTimeout(l)}},[t]),[m.useCallback(()=>r.current,[]),o]}function F6(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=e,s=to(e,{labelable:!0}),{labelProps:a,fieldProps:u}=cx({...e,labelElementType:"span"});t=h2(t,n,r);let c=(t-n)/(r-n),d=q2(l);if(!i&&!o){let f=l.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:J(s,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:a}}function B6(e){var t;const[n,r]=ai(e,eg.variantKeys),{ref:o,as:i,id:l,className:s,classNames:a,label:u,valueLabel:c,value:d=void 0,minValue:f=0,maxValue:p=100,strokeWidth:h,showValueLabel:b=!1,formatOptions:w={style:"percent"},...g}=n,v=i||"div",y=Oe(o),C=ae(a==null?void 0:a.base,s),[,E]=N6({rerender:!0,delay:100}),S=((t=e.isIndeterminate)!=null?t:!0)&&d===void 0,{progressBarProps:D,labelProps:x}=F6({id:l,label:u,value:d,minValue:f,maxValue:p,valueLabel:c,formatOptions:w,isIndeterminate:S,"aria-labelledby":e["aria-labelledby"],"aria-label":e["aria-label"]}),T=m.useMemo(()=>eg({...r,isIndeterminate:S}),[li(r),S]),k=e.disableAnimation?!0:E,M=16,I=h||(e.size==="sm"?2:3),P=16-I,A=2*P*Math.PI,V=m.useMemo(()=>k?S?.25:d?EC((d-f)/(p-f),1):0:0,[k,d,f,p,S]),K=A-V*A,F=m.useCallback((G={})=>({ref:y,"data-indeterminate":H(S),"data-disabled":H(e.isDisabled),className:T.base({class:C}),...J(D,g,G)}),[y,T,S,e.isDisabled,C,D,g]),B=m.useCallback((G={})=>({className:T.label({class:a==null?void 0:a.label}),...J(x,G)}),[T,a,x]),O=m.useCallback((G={})=>({viewBox:"0 0 32 32",fill:"none",strokeWidth:I,className:T.svg({class:a==null?void 0:a.svg}),...G}),[I,T,a]),L=m.useCallback((G={})=>({cx:M,cy:M,r:P,role:"presentation",strokeDasharray:`${A} ${A}`,strokeDashoffset:K,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:T.indicator({class:a==null?void 0:a.indicator}),...G}),[T,a,K,A,P]),W=m.useCallback((G={})=>({cx:M,cy:M,r:P,role:"presentation",strokeDasharray:`${A} ${A}`,strokeDashoffset:0,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:T.track({class:a==null?void 0:a.track}),...G}),[T,a,A,P]);return{Component:v,domRef:y,slots:T,classNames:a,label:u,showValueLabel:b,getProgressBarProps:F,getLabelProps:B,getSvgProps:O,getIndicatorProps:L,getTrackProps:W}}var bx=je((e,t)=>{const{Component:n,slots:r,classNames:o,label:i,showValueLabel:l,getProgressBarProps:s,getLabelProps:a,getSvgProps:u,getIndicatorProps:c,getTrackProps:d}=B6({ref:t,...e}),f=s();return $.jsxs(n,{...f,children:[$.jsxs("div",{className:r.svgWrapper({class:o==null?void 0:o.svgWrapper}),children:[$.jsxs("svg",{...u(),children:[$.jsx("circle",{...d()}),$.jsx("circle",{...c()})]}),l&&$.jsx("span",{className:r.value({class:o==null?void 0:o.value}),children:f["aria-valuetext"]})]}),i&&$.jsx("span",{...a(),children:i})]})});bx.displayName="NextUI.CircularProgress";var xx=bx;function L6(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=e,[a,u]=Tl(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=Ml(e,t),d=su({...e,value:a}),{isInvalid:f,validationErrors:p,validationDetails:h}=d.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:g,errorMessageProps:v}=dx({...e,isInvalid:f,errorMessage:e.errorMessage||p}),y=to(e,{labelable:!0});const C={type:l,pattern:e.pattern};return vp(t,a,u),Yp(e,d,t),m.useEffect(()=>{if(t.current instanceof Kt(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:J(y,n==="input"&&C,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:a,onChange:E=>u(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,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,...c,...w}),descriptionProps:g,errorMessageProps:v,isInvalid:f,validationErrors:p,validationDetails:h}}function wx(e){var t,n,r;const[o,i]=ai(e,Jm.variantKeys),{ref:l,as:s,type:a,label:u,baseRef:c,wrapperRef:d,description:f,className:p,classNames:h,autoFocus:b,startContent:w,endContent:g,onClear:v,onChange:y,validationState:C,innerWrapperRef:E,onValueChange:S=()=>{},...D}=o,x=m.useCallback(z=>{S(z??"")},[S]),[T,k]=m.useState(!1),M=s||"div",I=Oe(l),P=Oe(c),A=Oe(d),V=Oe(E),[K,F]=Tl(o.value,(t=o.defaultValue)!=null?t:"",x),B=["date","time","month","week","range"].includes(a),O=!DC(K)||B,L=O||T,W=ae(h==null?void 0:h.base,p,O?"is-filled":""),G=e.isMultiline,ee=m.useCallback(()=>{var z;F(""),v==null||v(),(z=I.current)==null||z.focus()},[F,v]),{labelProps:Q,inputProps:fe,isInvalid:ne,validationErrors:ke,validationDetails:Je,descriptionProps:Qt,errorMessageProps:Xt}=L6({...e,validationBehavior:"native",autoCapitalize:e.autoCapitalize,value:(r=(n=I==null?void 0:I.current)==null?void 0:n.value)!=null?r:K,"aria-label":ap(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:G?"textarea":"input",onChange:F},I),{isFocusVisible:xe,isFocused:He,focusProps:Nt}=cn({autoFocus:b,isTextInput:!0}),{isHovered:pe,hoverProps:Ze}=no({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:$n,isFocusVisible:dn}=cn(),{focusWithinProps:fn}=eu({onFocusWithinChange:k}),{pressProps:Be}=un({isDisabled:!!(e!=null&&e.isDisabled),onPress:ee}),Ft=C==="invalid"||e.isInvalid||ne,Ve=m.useMemo(()=>{var z;return(!e.labelPlacement||e.labelPlacement==="inside")&&!u?"outside":(z=e.labelPlacement)!=null?z:"inside"},[e.labelPlacement,u]),En=typeof o.errorMessage=="function"?o.errorMessage({isInvalid:Ft,validationErrors:ke,validationDetails:Je}):o.errorMessage||(ke==null?void 0:ke.join(" ")),Pn=!!v||e.isClearable,Ct=!!u||!!f||!!En,ut=!!o.placeholder,Pr=!!u,pn=!!f||!!En,Ge=Ve==="outside"||Ve==="outside-left",hn=Ve==="inside",kr=I.current?(!I.current.value||I.current.value===""||!K||K==="")&&ut:!1,jl=Ve==="outside-left",Bt=!!w,xu=Ge?Ve==="outside-left"||ut||Ve==="outside"&&Bt:!1,_l=Ve==="outside"&&!ut&&!Bt,Ce=m.useMemo(()=>Jm({...i,isInvalid:Ft,labelPlacement:Ve,isClearable:Pn}),[li(i),Ft,Ve,Pn,Bt]),Vl=m.useCallback((z={})=>({ref:P,className:Ce.base({class:W}),"data-slot":"base","data-filled":H(O||ut||Bt||kr),"data-filled-within":H(L||ut||Bt||kr),"data-focus-within":H(T),"data-focus-visible":H(xe),"data-readonly":H(e.isReadOnly),"data-focus":H(He),"data-hover":H(pe),"data-required":H(e.isRequired),"data-invalid":H(Ft),"data-disabled":H(e.isDisabled),"data-has-elements":H(Ct),"data-has-helper":H(pn),"data-has-label":H(Pr),"data-has-value":H(!kr),...fn,...z}),[Ce,W,O,He,pe,Ft,pn,Pr,Ct,kr,Bt,T,xe,L,ut,fn,e.isReadOnly,e.isRequired,e.isDisabled]),hi=m.useCallback((z={})=>({"data-slot":"label",className:Ce.label({class:h==null?void 0:h.label}),...Q,...z}),[Ce,Q,h==null?void 0:h.label]),wu=m.useCallback((z={})=>({ref:I,"data-slot":"input","data-filled":H(O),"data-filled-within":H(L),"data-has-start-content":H(Bt),"data-has-end-content":H(!!g),className:Ce.input({class:ae(h==null?void 0:h.input,O?"is-filled":"")}),...J(Nt,fe,ht(D,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(fe))}),z),required:e.isRequired,"aria-readonly":H(e.isReadOnly),"aria-required":H(e.isRequired),onChange:wr(fe.onChange,y)}),[Ce,K,Nt,fe,D,O,L,Bt,g,h==null?void 0:h.input,e.isReadOnly,e.isRequired,y]),Kl=m.useCallback((z={})=>({ref:A,"data-slot":"input-wrapper","data-hover":H(pe),"data-focus-visible":H(xe),"data-focus":H(He),className:Ce.inputWrapper({class:ae(h==null?void 0:h.inputWrapper,O?"is-filled":"")}),...J(z,Ze),onClick:q=>{I.current&&q.currentTarget===q.target&&I.current.focus()},style:{cursor:"text",...z.style}}),[Ce,pe,xe,He,K,h==null?void 0:h.inputWrapper]),Su=m.useCallback((z={})=>({...z,ref:V,"data-slot":"inner-wrapper",onClick:q=>{I.current&&q.currentTarget===q.target&&I.current.focus()},className:Ce.innerWrapper({class:ae(h==null?void 0:h.innerWrapper,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.innerWrapper]),Ul=m.useCallback((z={})=>({...z,"data-slot":"main-wrapper",className:Ce.mainWrapper({class:ae(h==null?void 0:h.mainWrapper,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.mainWrapper]),Cu=m.useCallback((z={})=>({...z,"data-slot":"helper-wrapper",className:Ce.helperWrapper({class:ae(h==null?void 0:h.helperWrapper,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.helperWrapper]),R=m.useCallback((z={})=>({...z,...Qt,"data-slot":"description",className:Ce.description({class:ae(h==null?void 0:h.description,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.description]),N=m.useCallback((z={})=>({...z,...Xt,"data-slot":"error-message",className:Ce.errorMessage({class:ae(h==null?void 0:h.errorMessage,z==null?void 0:z.className)})}),[Ce,Xt,h==null?void 0:h.errorMessage]),j=m.useCallback((z={})=>({...z,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":H(dn),className:Ce.clearButton({class:ae(h==null?void 0:h.clearButton,z==null?void 0:z.className)}),...J(Be,$n)}),[Ce,dn,Be,$n,h==null?void 0:h.clearButton]);return{Component:M,classNames:h,domRef:I,label:u,description:f,startContent:w,endContent:g,labelPlacement:Ve,isClearable:Pn,hasHelper:pn,hasStartContent:Bt,isLabelOutside:xu,isOutsideLeft:jl,isLabelOutsideAsPlaceholder:_l,shouldLabelBeOutside:Ge,shouldLabelBeInside:hn,hasPlaceholder:ut,isInvalid:Ft,errorMessage:En,getBaseProps:Vl,getLabelProps:hi,getInputProps:wu,getMainWrapperProps:Ul,getInputWrapperProps:Kl,getInnerWrapperProps:Su,getHelperWrapperProps:Cu,getDescriptionProps:R,getErrorMessageProps:N,getClearButtonProps:j}}var Sx=je((e,t)=>{const{Component:n,label:r,description:o,isClearable:i,startContent:l,endContent:s,labelPlacement:a,hasHelper:u,isOutsideLeft:c,shouldLabelBeOutside:d,errorMessage:f,isInvalid:p,getBaseProps:h,getLabelProps:b,getInputProps:w,getInnerWrapperProps:g,getInputWrapperProps:v,getMainWrapperProps:y,getHelperWrapperProps:C,getDescriptionProps:E,getErrorMessageProps:S,getClearButtonProps:D}=wx({...e,ref:t}),x=r?$.jsx("label",{...b(),children:r}):null,T=m.useMemo(()=>i?$.jsx("span",{...D(),children:s||$.jsx(C$,{})}):s,[i,D]),k=m.useMemo(()=>u?$.jsx("div",{...C(),children:p&&f?$.jsx("div",{...S(),children:f}):o?$.jsx("div",{...E(),children:o}):null}):null,[u,p,f,o,C,S,E]),M=m.useMemo(()=>l||T?$.jsxs("div",{...g(),children:[l,$.jsx("input",{...w()}),T]}):$.jsx("div",{...g(),children:$.jsx("input",{...w()})}),[l,T,w,g]),I=m.useMemo(()=>d?$.jsxs("div",{...y(),children:[$.jsxs("div",{...v(),children:[c?null:x,M]}),k]}):$.jsxs($.Fragment,{children:[$.jsxs("div",{...v(),children:[x,M]}),k]}),[a,k,d,x,M,f,o,y,v,S,E]);return $.jsxs(n,{...h(),children:[c?x:null,I]})});Sx.displayName="NextUI.Input";var Zd=Sx;function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}var O6=m.useLayoutEffect,j6=function(t){var n=m.useRef(t);return O6(function(){n.current=t}),n},Fg=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},_6=function(t,n){var r=m.useRef();return m.useCallback(function(o){t.current=o,r.current&&Fg(r.current,null),r.current=n,n&&Fg(n,o)},[n])},Bg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},V6=function(t){Object.keys(Bg).forEach(function(n){t.style.setProperty(n,Bg[n],"important")})},Lg=V6,ct=null,zg=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function K6(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),ct||(ct=document.createElement("textarea"),ct.setAttribute("tabindex","-1"),ct.setAttribute("aria-hidden","true"),Lg(ct)),ct.parentNode===null&&document.body.appendChild(ct);var o=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(f){var p=f;ct.style[p]=l[p]}),Lg(ct),ct.value=t;var a=zg(ct,e);ct.value=t,a=zg(ct,e),ct.value="x";var u=ct.scrollHeight-o,c=u*n;s==="border-box"&&(c=c+o+i),a=Math.max(c,a);var d=u*r;return s==="border-box"&&(d=d+o+i),a=Math.min(d,a),[a,u]}var Og=function(){},U6=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},W6=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],H6=!!document.documentElement.currentStyle,G6=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=U6(W6,n),o=r.boxSizing;if(o==="")return null;H6&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:l}},q6=G6;function Cx(e,t,n){var r=j6(n);m.useLayoutEffect(function(){var o=function(l){return r.current(l)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var Y6=function(t){Cx(window,"resize",t)},Q6=function(t){Cx(document.fonts,"loadingdone",t)},X6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],J6=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,l=t.onChange,s=l===void 0?Og:l,a=t.onHeightChange,u=a===void 0?Og:a,c=z6(t,X6),d=c.value!==void 0,f=m.useRef(null),p=_6(f,n),h=m.useRef(0),b=m.useRef(),w=function(){var y=f.current,C=r&&b.current?b.current:q6(y);if(C){b.current=C;var E=K6(C,y.value||y.placeholder||"x",i,o),S=E[0],D=E[1];h.current!==S&&(h.current=S,y.style.setProperty("height",S+"px","important"),u(S,{rowHeight:D}))}},g=function(y){d||w(),s(y)};return m.useLayoutEffect(w),Y6(w),Q6(w),m.createElement("textarea",ef({},c,{onChange:g,ref:p}))},Z6=m.forwardRef(J6),$x=je(({style:e,minRows:t=3,maxRows:n=8,cacheMeasurements:r=!1,disableAutosize:o=!1,onHeightChange:i,...l},s)=>{const{Component:a,label:u,description:c,startContent:d,endContent:f,hasHelper:p,shouldLabelBeOutside:h,shouldLabelBeInside:b,isInvalid:w,errorMessage:g,getBaseProps:v,getLabelProps:y,getInputProps:C,getInnerWrapperProps:E,getInputWrapperProps:S,getHelperWrapperProps:D,getDescriptionProps:x,getErrorMessageProps:T}=wx({...l,ref:s,isMultiline:!0}),[k,M]=m.useState(t>1),[I,P]=m.useState(!1),A=u?$.jsx("label",{...y(),children:u}):null,V=C(),K=(O,L)=>{if(t===1&&M(O>=L.rowHeight*2),n>t){const W=O>=n*L.rowHeight;P(W)}i==null||i(O,L)},F=o?$.jsx("textarea",{...V,style:J(V.style,e??{})}):$.jsx(Z6,{...V,cacheMeasurements:r,"data-hide-scroll":H(!I),maxRows:n,minRows:t,style:J(V.style,e??{}),onHeightChange:K}),B=m.useMemo(()=>d||f?$.jsxs("div",{...E(),children:[d,F,f]}):$.jsx("div",{...E(),children:F}),[d,V,f,E]);return $.jsxs(a,{...v(),children:[h?A:null,$.jsxs("div",{...S(),"data-has-multiple-rows":H(k),children:[b?A:null,B]}),p?$.jsx("div",{...D(),children:w&&g?$.jsx("div",{...T(),children:g}):c?$.jsx("div",{...x(),children:c}):null}):null]})});$x.displayName="NextUI.Textarea";var e7=$x,Ex={};Ex={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Px={};Px={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var kx={};kx={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Dx={};Dx={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Tx={};Tx={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Mx={};Mx={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Ax={};Ax={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var Rx={};Rx={ascending:"de subida",ascendingSort:e=>`ordenado por columna ${e.columnName} en orden de subida`,columnSize:e=>`${e.value} píxeles`,descending:"de bajada",descendingSort:e=>`ordenado por columna ${e.columnName} en orden de bajada`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Ix={};Ix={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Nx={};Nx={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Fx={};Fx={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Bx={};Bx={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var Lx={};Lx={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var zx={};zx={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Ox={};Ox={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var jx={};jx={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var _x={};_x={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Vx={};Vx={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Kx={};Kx={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var Ux={};Ux={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Wx={};Wx={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Hx={};Hx={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Gx={};Gx={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var qx={};qx={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var Yx={};Yx={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var Qx={};Qx={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var Xx={};Xx={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var Jx={};Jx={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var Zx={};Zx={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var e4={};e4={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var t4={};t4={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var n4={};n4={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var r4={};r4={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var o4={};o4={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var i4={};i4={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var l4={};l4={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var s4={};s4={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var a4={};a4={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var u4={};u4={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var c4={};c4={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var d4={};d4={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var f4={};f4={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var p4={};p4={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var h4={};h4={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var m4={};m4={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var g4={};g4={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var v4={};v4={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var y4={};y4={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var b4={};b4={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var x4={};x4={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var w4={};w4={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var S4={};S4={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var C4={};C4={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var $4={};$4={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var E4={};E4={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var P4={};P4={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var k4={};k4={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var D4={};D4={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var T4={};T4={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var M4={};M4={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var A4={};A4={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var R4={};R4={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var I4={};I4={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var N4={};N4={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var F4={};F4={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var B4={};B4={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var L4={};L4={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var z4={};z4={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};class Ro{copy(){return new Ro(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return this.x===0&&this.y===0}constructor(t=0,n=0){this.x=t,this.y=n}}class Io{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new Ro(this.x,this.y)}get topRight(){return new Ro(this.maxX,this.y)}get bottomLeft(){return new Ro(this.x,this.maxY)}get bottomRight(){return new Ro(this.maxX,this.maxY)}intersects(t){return this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let n of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[n]))return n;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let n=Math.min(this.x,t.x),r=Math.min(this.y,t.y),o=Math.max(this.maxX,t.maxX)-n,i=Math.max(this.maxY,t.maxY)-r;return new Io(n,r,o,i)}intersection(t){if(!this.intersects(t))return new Io(0,0,0,0);let n=Math.max(this.x,t.x),r=Math.max(this.y,t.y);return new Io(n,r,Math.min(this.maxX,t.maxX)-n,Math.min(this.maxY,t.maxY)-r)}copy(){return new Io(this.x,this.y,this.width,this.height)}constructor(t=0,n=0,r=0,o=0){this.x=t,this.y=n,this.width=r,this.height=o}}let vo=typeof window<"u"?window.performance:null,jg=vo&&(vo.now||vo.webkitNow||vo.msNow||vo.mozNow);jg&&jg.bind(vo);const O4=7e3;let xc=null;function j4(e,t="assertive",n=O4){xc||(xc=new t7),xc.announce(e,t,n)}class t7{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=O4){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Qp(e){return e&&e.__esModule?e.default:e}class _4{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}findPreviousKey(t,n){let r=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;r!=null;){let o=this.collection.getItem(r);if(!this.disabledKeys.has(r)&&(!n||n(o)))return r;r=this.collection.getKeyBefore(r)}}findNextKey(t,n){let r=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;r!=null;){let o=this.collection.getItem(r);if(!this.disabledKeys.has(r)&&(!n||n(o)))return r;r=this.collection.getKeyAfter(r)}}getKeyBelow(t){let n=this.collection.getItem(t);if(n&&(this.isCell(n)&&(t=n.parentKey),t=this.findNextKey(t),t!=null)){if(this.isCell(n)){let r=this.collection.getItem(t);return er(Ke(r,this.collection),n.index).key}if(this.focusMode==="row")return t}}getKeyAbove(t){let n=this.collection.getItem(t);if(n&&(this.isCell(n)&&(t=n.parentKey),t=this.findPreviousKey(t),t!=null)){if(this.isCell(n)){let r=this.collection.getItem(t);return er(Ke(r,this.collection),n.index).key}if(this.focusMode==="row")return t}}getKeyRightOf(t){let n=this.collection.getItem(t);if(n){if(this.isRow(n)){let r=Ke(n,this.collection);return this.direction==="rtl"?lr(r).key:Mn(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),o=Ke(r,this.collection),i=this.direction==="rtl"?er(o,n.index-1):er(o,n.index+1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t)}}}getKeyLeftOf(t){let n=this.collection.getItem(t);if(n){if(this.isRow(n)){let r=Ke(n,this.collection);return this.direction==="rtl"?Mn(r).key:lr(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),o=Ke(r,this.collection),i=this.direction==="rtl"?er(o,n.index+1):er(o,n.index-1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t)}}}getFirstKey(t,n){let r;if(t!=null){if(r=this.collection.getItem(t),!r)return;if(this.isCell(r)&&!n){let o=this.collection.getItem(r.parentKey);return Mn(Ke(o,this.collection)).key}}if(t=this.findNextKey(),t!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let o=this.collection.getItem(t);t=Mn(Ke(o,this.collection)).key}return t}getLastKey(t,n){let r;if(t!=null){if(r=this.collection.getItem(t),!r)return;if(this.isCell(r)&&!n){let o=this.collection.getItem(r.parentKey),i=Ke(o,this.collection);return lr(i).key}}if(t=this.findPreviousKey(),t!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let o=this.collection.getItem(t),i=Ke(o,this.collection);t=lr(i).key}return t}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getItemRect(t){var n;if(this.layout)return(n=this.layout.getLayoutInfo(t))===null||n===void 0?void 0:n.rect;let r=this.getItem(t);if(r)return new Io(r.offsetLeft,r.offsetTop,r.offsetWidth,r.offsetHeight)}getPageHeight(){var t,n,r;return this.layout?(t=this.layout.virtualizer)===null||t===void 0?void 0:t.visibleRect.height:(r=this.ref)===null||r===void 0||(n=r.current)===null||n===void 0?void 0:n.offsetHeight}getContentHeight(){var t,n;return this.layout?this.layout.getContentSize().height:(n=this.ref)===null||n===void 0||(t=n.current)===null||t===void 0?void 0:t.scrollHeight}getKeyPageAbove(t){let n=this.getItemRect(t);if(!n)return null;let r=Math.max(0,n.maxY-this.getPageHeight());for(;n&&n.y>r;)t=this.getKeyAbove(t),n=this.getItemRect(t);return t}getKeyPageBelow(t){let n=this.getItemRect(t);if(!n)return null;let r=this.getPageHeight(),o=Math.min(this.getContentHeight(),n.y+r);for(;n&&n.maxY{var s,a,u,c;return(c=(s=(a=t.collection).getTextValue)===null||s===void 0?void 0:s.call(a,l))!==null&&c!==void 0?c:(u=t.collection.getItem(l))===null||u===void 0?void 0:u.textValue}}=e,r=si(Qp(au),"@react-aria/grid"),o=t.selectionManager.rawSelection,i=m.useRef(o);ub(()=>{var l;if(!t.selectionManager.isFocused){i.current=o;return}let s=_g(o,i.current),a=_g(i.current,o),u=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&u){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let d=n(t.selectionManager.selectedKeys.keys().next().value);d&&c.push(r.format("selectedItem",{item:d}))}}else if(s.size===1&&a.size===0){let d=n(s.keys().next().value);d&&c.push(r.format("selectedItem",{item:d}))}else if(a.size===1&&s.size===0&&t.collection.getItem(a.keys().next().value)){let d=n(a.keys().next().value);d&&c.push(r.format("deselectedItem",{item:d}))}t.selectionManager.selectionMode==="multiple"&&(c.length===0||o==="all"||o.size>1||i.current==="all"||((l=i.current)===null||l===void 0?void 0:l.size)>1)&&c.push(o==="all"?r.format("selectedAll"):r.format("selectedCount",{count:o.size})),c.length>0&&j4(c.join(" ")),i.current=o},[o])}function _g(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function r7(e){let t=si(Qp(au),"@react-aria/grid"),n=a5(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,o=m.useMemo(()=>{let l=e.selectionManager.selectionMode,s=e.selectionManager.selectionBehavior,a;return r&&(a=t.format("longPressToSelect")),s==="replace"&&l!=="none"&&e.hasItemActions?a:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return Ja(o)}function o7(e,t,n){let{isVirtualized:r,keyboardDelegate:o,focusMode:i,scrollRef:l,getRowText:s,onRowAction:a,onCellAction:u}=e,{selectionManager:c}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let d=vb({usage:"search",sensitivity:"base"}),{direction:f}=Kn(),p=t.selectionManager.disabledBehavior,h=m.useMemo(()=>o||new _4({collection:t.collection,disabledKeys:p==="selection"?new Set:t.disabledKeys,ref:n,direction:f,collator:d,focusMode:i}),[o,t.collection,t.disabledKeys,p,n,f,d,i]),{collectionProps:b}=S$({ref:n,selectionManager:c,keyboardDelegate:h,isVirtualized:r,scrollRef:l}),w=xr(e.id);Xp.set(t,{keyboardDelegate:h,actions:{onRowAction:a,onCellAction:u}});let g=r7({selectionManager:c,hasItemActions:!!(a||u)}),v=to(e,{labelable:!0}),y=m.useCallback(D=>{if(c.isFocused){D.currentTarget.contains(D.target)||c.setFocused(!1);return}D.currentTarget.contains(D.target)&&c.setFocused(!0)},[c]),C=m.useMemo(()=>({onBlur:b.onBlur,onFocus:y}),[y,b.onBlur]),E=S5(n,{isDisabled:t.collection.size!==0}),S=J(v,{role:"grid",id:w,"aria-multiselectable":c.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?C:b,t.collection.size===0&&{tabIndex:E?-1:0},g);return r&&(S["aria-rowcount"]=t.collection.size,S["aria-colcount"]=t.collection.columnCount),n7({getRowText:s},t),{gridProps:S}}function i7(){return{rowGroupProps:{role:"rowgroup"}}}function l7(e,t,n){let{node:r,isVirtualized:o,shouldSelectOnPressUp:i,onAction:l}=e,{actions:{onRowAction:s}}=Xp.get(t),{itemProps:a,...u}=jb({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,shouldSelectOnPressUp:i,onAction:s?()=>s(r.key):l,isDisabled:t.collection.size===0}),c=t.selectionManager.isSelected(r.key),d={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0,"aria-disabled":u.isDisabled||void 0,...a};return o&&(d["aria-rowindex"]=r.index+1),{rowProps:d,...u}}function V4(e,t,n){let{node:r,isVirtualized:o,focusMode:i="child",shouldSelectOnPressUp:l,onAction:s}=e,{direction:a}=Kn(),{keyboardDelegate:u,actions:{onCellAction:c}}=Xp.get(t),d=m.useRef(null),f=()=>{let y=gl(n.current);if(i==="child"){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let C=t.selectionManager.childFocusStrategy==="last"?wc(y):y.firstChild();if(C){Lt(C);return}}(d.current!=null&&r.key!==d.current||!n.current.contains(document.activeElement))&&Lt(n.current)},{itemProps:p,isPressed:h}=jb({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,focus:f,shouldSelectOnPressUp:l,onAction:c?()=>c(r.key):s,isDisabled:t.collection.size===0}),g=J(p,{role:"gridcell",onKeyDownCapture:y=>{if(!y.currentTarget.contains(y.target)||t.isKeyboardNavigationDisabled)return;let C=gl(n.current);switch(C.currentNode=document.activeElement,y.key){case"ArrowLeft":{let E=a==="rtl"?C.nextNode():C.previousNode();if(i==="child"&&E===n.current&&(E=null),E)y.preventDefault(),y.stopPropagation(),Lt(E),Zn(E,{containingElement:Jn(n.current)});else{if(u.getKeyLeftOf(r.key)!==r.key)break;y.preventDefault(),y.stopPropagation(),i==="cell"&&a==="rtl"?(Lt(n.current),Zn(n.current,{containingElement:Jn(n.current)})):(C.currentNode=n.current,E=a==="rtl"?C.firstChild():wc(C),E&&(Lt(E),Zn(E,{containingElement:Jn(n.current)})))}break}case"ArrowRight":{let E=a==="rtl"?C.previousNode():C.nextNode();if(i==="child"&&E===n.current&&(E=null),E)y.preventDefault(),y.stopPropagation(),Lt(E),Zn(E,{containingElement:Jn(n.current)});else{if(u.getKeyRightOf(r.key)!==r.key)break;y.preventDefault(),y.stopPropagation(),i==="cell"&&a==="ltr"?(Lt(n.current),Zn(n.current,{containingElement:Jn(n.current)})):(C.currentNode=n.current,E=a==="rtl"?wc(C):C.firstChild(),E&&(Lt(E),Zn(E,{containingElement:Jn(n.current)})))}break}case"ArrowUp":case"ArrowDown":!y.altKey&&n.current.contains(y.target)&&(y.stopPropagation(),y.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(y.nativeEvent.type,y.nativeEvent)));break}},onFocus:y=>{if(d.current=r.key,y.target!==n.current){bp()||t.selectionManager.setFocusedKey(r.key);return}requestAnimationFrame(()=>{i==="child"&&document.activeElement===n.current&&f()})}});var v;return o&&(g["aria-colindex"]=((v=r.colIndex)!==null&&v!==void 0?v:r.index)+1),l&&g.tabIndex!=null&&g.onPointerDown==null&&(g.onPointerDown=y=>{let C=y.currentTarget,E=C.getAttribute("tabindex");C.removeAttribute("tabindex"),requestAnimationFrame(()=>{C.setAttribute("tabindex",E)})}),{gridCellProps:g,isPressed:h}}function wc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}function s7(e,t){let{key:n}=e,r=t.selectionManager,o=xr(),i=!t.selectionManager.canSelectItem(n),l=t.selectionManager.isSelected(n),s=()=>r.select(n);const a=si(Qp(au),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":a.format("select"),isSelected:l,isDisabled:i,onChange:s}}}let a7=!1;function ka(){return a7}function Jp(e){return e&&e.__esModule?e.default:e}const Zp=new WeakMap;function tf(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function u7(e,t){let n=Zp.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${tf(t)}`}function K4(e,t,n){let r=Zp.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${tf(t)}-${tf(n)}`}function U4(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>K4(e,t,n)).join(" ")}var uu={};uu={"ar-AE":Ex,"bg-BG":Px,"cs-CZ":kx,"da-DK":Dx,"de-DE":Tx,"el-GR":Mx,"en-US":Ax,"es-ES":Rx,"et-EE":Ix,"fi-FI":Nx,"fr-FR":Fx,"he-IL":Bx,"hr-HR":Lx,"hu-HU":zx,"it-IT":Ox,"ja-JP":jx,"ko-KR":_x,"lt-LT":Vx,"lv-LV":Kx,"nb-NO":Ux,"nl-NL":Wx,"pl-PL":Hx,"pt-BR":Gx,"pt-PT":qx,"ro-RO":Yx,"ru-RU":Qx,"sk-SK":Xx,"sl-SI":Jx,"sr-SP":Zx,"sv-SE":e4,"tr-TR":t4,"uk-UA":n4,"zh-CN":r4,"zh-TW":o4};class c7 extends _4{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let n=this.collection.getItem(t);if(n){if(n.type==="column"){let r=Mn(Ke(n,this.collection));if(r)return r.key;let o=this.getFirstKey();if(o==null)return;let i=this.collection.getItem(o);return er(Ke(i,this.collection),n.index).key}return super.getKeyBelow(t)}}getKeyAbove(t){let n=this.collection.getItem(t);if(!n)return;if(n.type==="column"){let o=this.collection.getItem(n.parentKey);return o&&o.type==="column"?o.key:void 0}let r=super.getKeyAbove(t);return r!=null&&this.collection.getItem(r).type!=="headerrow"?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,o=>o.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let o of Ke(r,this.collection))if(o.type==="column")return o.key}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],o=[...Ke(r,this.collection)];for(let i=o.length-1;i>=0;i--){let l=o[i];if(l.type==="column")return l.key}}getKeyRightOf(t){let n=this.collection.getItem(t);if(n)return n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t)}getKeyLeftOf(t){let n=this.collection.getItem(t);if(n)return n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t)}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n??this.getFirstKey();if(o==null)return null;let i=r.getItem(o);i.type==="cell"&&(o=i.parentKey);let l=!1;for(;o!=null;){let s=r.getItem(o);for(let a of Ke(s,this.collection)){let u=r.columns[a.index];if(r.rowHeaderColumnKeys.has(u.key)&&a.textValue){let c=a.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(n!=null?r.getItem(n):i).type==="cell"?a.key:s.key}}o=this.getKeyBelow(o),o==null&&!l&&(o=this.getFirstKey(),l=!0)}return null}}function d7(e,t,n){let{keyboardDelegate:r,isVirtualized:o,layout:i}=e,l=vb({usage:"search",sensitivity:"base"}),{direction:s}=Kn(),a=t.selectionManager.disabledBehavior,u=m.useMemo(()=>r||new c7({collection:t.collection,disabledKeys:a==="selection"?new Set:t.disabledKeys,ref:n,direction:s,collator:l,layout:i}),[r,t.collection,t.disabledKeys,a,n,s,l,i]),c=xr(e.id);Zp.set(t,c);let{gridProps:d}=o7({...e,id:c,keyboardDelegate:u},t,n);o&&(d["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),ka()&&"expandedKeys"in t&&(d.role="treegrid");let{column:f,direction:p}=t.sortDescriptor||{},h=si(Jp(uu),"@react-aria/table"),b=m.useMemo(()=>{var g;let v=(g=t.collection.columns.find(y=>y.key===f))===null||g===void 0?void 0:g.textValue;return p&&f?h.format(`${p}Sort`,{columnName:v}):void 0},[p,f,t.collection.columns]),w=Ja(b);return ub(()=>{j4(b,"assertive",500)},[b]),{gridProps:J(d,w,{"aria-describedby":[w["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}function W4(e,t,n){var r,o;let{node:i}=e,l=i.props.allowsSorting,{gridCellProps:s}=V4({...e,focusMode:"child"},t,n),a=i.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:u}=un({isDisabled:!l||a,onPress(){t.sort(i.key)},ref:n}),{focusableProps:c}=Ml({},n),d=null,f=((r=t.sortDescriptor)===null||r===void 0?void 0:r.column)===i.key,p=(o=t.sortDescriptor)===null||o===void 0?void 0:o.direction;i.props.allowsSorting&&!ha()&&(d=f?p:"none");let h=si(Jp(uu),"@react-aria/table"),b;l&&(b=`${h.format("sortable")}`,f&&p&&ha()&&(b=`${b}, ${h.format(p)}`));let w=Ja(b),g=t.collection.size===0;return m.useEffect(()=>{g&&t.selectionManager.focusedKey===i.key&&t.selectionManager.setFocusedKey(null)},[g,t.selectionManager,i.key]),{columnHeaderProps:{...J(s,u,c,w,g&&{tabIndex:-1}),role:"columnheader",id:u7(t,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":d}}}const Vg={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function f7(e,t,n){let{node:r,isVirtualized:o}=e,{rowProps:i,...l}=l7(e,t,n),{direction:s}=Kn();o&&!(ka()&&"expandedKeys"in t)?i["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete i["aria-rowindex"];let a={};if(ka()&&"expandedKeys"in t){let p=t.keyMap.get(r.key);if(p!=null){var u,c,d;let h=((u=p.props)===null||u===void 0?void 0:u.UNSTABLE_childItems)||((d=p.props)===null||d===void 0||(c=d.children)===null||c===void 0?void 0:c.length)>t.userColumnCount;a={onKeyDown:b=>{(b.key===Vg.expand[s]&&t.selectionManager.focusedKey===p.key&&h&&t.expandedKeys!=="all"&&!t.expandedKeys.has(p.key)||b.key===Vg.collapse[s]&&t.selectionManager.focusedKey===p.key&&h&&(t.expandedKeys==="all"||t.expandedKeys.has(p.key)))&&(t.toggleKey(p.key),b.stopPropagation())},"aria-expanded":h?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":p.level,"aria-posinset":p.indexOfType+1,"aria-setsize":p.level>1?lr(t.keyMap.get(p==null?void 0:p.parentKey).childNodes).indexOfType+1:lr(t.keyMap.get(t.collection.body.key).childNodes).indexOfType+1}}}let f=l.hasAction?N2(r.props):{};return{rowProps:{...J(i,a,f),"aria-labelledby":U4(t,r.key)},...l}}function p7(e,t,n){let{node:r,isVirtualized:o}=e,i={role:"row"};return o&&!(ka()&&"expandedKeys"in t)&&(i["aria-rowindex"]=r.index+1),{rowProps:i}}function H4(e,t,n){let{gridCellProps:r,isPressed:o}=V4(e,t,n),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=K4(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:o}}function h7(e,t){let{key:n}=e;const{checkboxProps:r}=s7(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${U4(t,n)}`}}}function m7(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":si(Jp(uu),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||e.collection.size===0,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function G4(){return i7()}var q4=je((e,t)=>{var n,r;const{as:o,className:i,node:l,slots:s,state:a,selectionMode:u,color:c,checkboxesProps:d,disableAnimation:f,classNames:p,...h}=e,b=o||"th",w=typeof b=="string",g=Oe(t),{columnHeaderProps:v}=W4({node:l},a,g),{isFocusVisible:y,focusProps:C}=cn(),{checkboxProps:E}=m7(a),S=ae(p==null?void 0:p.th,i,(n=l.props)==null?void 0:n.className),D=u==="single",{onChange:x,...T}=E;return $.jsx(b,{ref:g,"data-focus-visible":H(y),...J(v,C,ht(l.props,{enabled:w}),ht(h,{enabled:w})),className:(r=s.th)==null?void 0:r.call(s,{class:S}),children:D?$.jsx(Al,{children:E["aria-label"]}):$.jsx(mx,{color:c,disableAnimation:f,onValueChange:x,...J(d,T)})})});q4.displayName="NextUI.TableSelectAllCheckbox";var g7=q4;function v7(e){let{collection:t,focusMode:n}=e,r=t6(e),o=m.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=r.setFocusedKey;r.setFocusedKey=(a,u)=>{if(n==="cell"&&a!=null){let f=t.getItem(a);if((f==null?void 0:f.type)==="item"){var c,d;let p=Ke(f,t);u==="last"?a=(c=lr(p))===null||c===void 0?void 0:c.key:a=(d=Mn(p))===null||d===void 0?void 0:d.key}}i(a,u)};let l=m.useMemo(()=>new n6(t,r),[t,r]);const s=m.useRef(null);return m.useEffect(()=>{if(r.focusedKey!=null&&!t.getItem(r.focusedKey)){const a=s.current.getItem(r.focusedKey),u=a.parentKey!=null&&(a.type==="cell"||a.type==="rowheader"||a.type==="column")?s.current.getItem(a.parentKey):a,c=s.current.rows,d=t.rows,f=c.length-d.length;let p=Math.min(f>1?Math.max(u.index-f+1,0):u.index,d.length-1),h;for(;p>=0;){if(!l.isDisabled(d[p].key)&&d[p].type!=="headerrow"){h=d[p];break}pu.index&&(p=u.index),p--)}if(h){const b=h.hasChildNodes?[...Ke(h,t)]:[],w=h.hasChildNodes&&u!==a&&a.index{let l=this.keyMap.get(i.key);t.visitNode&&(i=t.visitNode(i)),this.keyMap.set(i.key,i);let s=new Set,a;for(let u of i.childNodes)u.type==="cell"&&u.parentKey==null&&(u.parentKey=i.key),s.add(u.key),a?(a.nextKey=u.key,u.prevKey=a.key):u.prevKey=null,n(u),a=u;if(a&&(a.nextKey=null),l)for(let u of l.childNodes)s.has(u.key)||r(u)},r=i=>{this.keyMap.delete(i.key);for(let l of i.childNodes)this.keyMap.get(l.key)===l&&r(l)},o;t.items.forEach((i,l)=>{let s={level:0,key:"row-"+l,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:void 0,textValue:void 0,...i};o?(o.nextKey=s.key,s.prevKey=o.key):s.prevKey=null,this.rows.push(s),n(s),o=s}),o&&(o.nextKey=null)}}const Y4="row-header-column-"+Math.random().toString(36).slice(2);let nf="row-header-column-"+Math.random().toString(36).slice(2);for(;Y4===nf;)nf="row-header-column-"+Math.random().toString(36).slice(2);function b7(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let a of t){let u=a.parentKey,c=[a];for(;u;){let d=e.get(u);if(!d)break;if(r.has(d)){d.colspan++;let{column:f,index:p}=r.get(d);if(p>c.length)break;for(let h=p;ha.length)),i=Array(o).fill(0).map(()=>[]),l=0;for(let a of n){let u=o-1;for(let c of a){if(c){let d=i[u],f=d.reduce((p,h)=>p+h.colspan,0);if(f0&&(d[d.length-1].nextKey=p.key,p.prevKey=d[d.length-1].key),d.push(p)}d.length>0&&(d[d.length-1].nextKey=c.key,c.prevKey=d[d.length-1].key),c.level=u,c.colIndex=l,d.push(c)}u--}l++}let s=0;for(let a of i){let u=a.reduce((c,d)=>c+d.colspan,0);if(u({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:a,textValue:null}))}class x7 extends y7{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){var t;return(t=Mn(this.body.childNodes))===null||t===void 0?void 0:t.key}getLastKey(){var t;return(t=lr(this.body.childNodes))===null||t===void 0?void 0:t.key}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let o=[];for(let i of n.childNodes){let l=this.columns[i.index];if(r.has(l.key)&&i.textValue&&o.push(i.textValue),o.length===r.size)break}return o.join(" ")}return""}constructor(t,n,r){let o=new Set,i,l=[];if(r!=null&&r.showSelectionCheckboxes){let d={type:"column",key:Y4,value:null,textValue:"",level:0,index:r!=null&&r.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(d)}if(r!=null&&r.showDragButtons){let d={type:"column",key:nf,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(d)}let s=[],a=new Map,u=d=>{switch(d.type){case"body":i=d;break;case"column":a.set(d.key,d),d.hasChildNodes||(l.push(d),d.props.isRowHeader&&o.add(d.key));break;case"item":s.push(d);return}for(let f of d.childNodes)u(f)};for(let d of t)u(d);let c=b7(a,l);c.forEach((d,f)=>s.splice(f,0,d)),super({columnCount:l.length,items:s,visitNode:d=>(d.column=l[d.index],d)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=o,this.body=i,this.headerRows=c,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0&&this.rowHeaderColumnKeys.add(this.columns.find(d=>{var f,p;return!(!((f=d.props)===null||f===void 0)&&f.isDragButtonCell)&&!(!((p=d.props)===null||p===void 0)&&p.isSelectionCell)}).key)}}const w7={ascending:"descending",descending:"ascending"};function S7(e){let[t,n]=m.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:o,showDragButtons:i}=e,l=m.useMemo(()=>({showSelectionCheckboxes:o&&r!=="none",showDragButtons:i,selectionMode:r,columns:[]}),[e.children,o,r,i]),s=Zk(e,m.useCallback(c=>new x7(c,null,l),[l]),l),{disabledKeys:a,selectionManager:u}=v7({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"});return{collection:s,disabledKeys:a,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:n,sort(c,d){var f;e.onSortChange({column:c,direction:d??(((f=e.sortDescriptor)===null||f===void 0?void 0:f.column)===c?w7[e.sortDescriptor.direction]:"ascending")})}}}function Q4(e){return null}Q4.getCollectionNode=function*(t,n){let{children:r,columns:o}=t;if(n.columns=[],typeof r=="function"){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let i of o)yield{type:"column",value:i,renderer:r}}else{let i=[];be.Children.forEach(r,l=>{i.push({type:"column",element:l})}),yield*i}};let C7=Q4;function X4(e){return null}X4.getCollectionNode=function*(t){let{children:n,items:r}=t;yield{type:"body",hasChildNodes:!0,props:t,*childNodes(){if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of r)yield{type:"item",value:o,renderer:n}}else{let o=[];be.Children.forEach(n,i=>{o.push({type:"item",element:i})}),yield*o}}}};let $7=X4;function J4(e){return null}J4.getCollectionNode=function*(t,n){let{title:r,children:o,childColumns:i}=t,l=r||o,s=t.textValue||(typeof l=="string"?l:"")||t["aria-label"],a=yield{type:"column",hasChildNodes:!!i||r&&be.Children.count(o)>0,rendered:l,textValue:s,props:t,*childNodes(){if(i)for(let c of i)yield{type:"column",value:c};else if(r){let c=[];be.Children.forEach(o,d=>{c.push({type:"column",element:d})}),yield*c}},shouldInvalidate(c){return u(c),!1}},u=c=>{for(let d of a)d.hasChildNodes||c.columns.push(d)};u(n)};let E7=J4;function rf(e){return null}rf.getCollectionNode=function*(t,n){let{children:r,textValue:o,UNSTABLE_childItems:i}=t;yield{type:"item",props:t,textValue:o,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(n.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),n.showSelectionCheckboxes&&n.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof r=="function"){for(let l of n.columns)yield{type:"cell",element:r(l.key),key:l.key};if(i)for(let l of i)yield{type:"item",value:l}}else{let l=[],s=[];if(be.Children.forEach(r,a=>{if(a.type===rf){if(l.lengths.key!==n.columns[a].key)||l.showSelectionCheckboxes!==n.showSelectionCheckboxes||l.showDragButtons!==n.showDragButtons||l.selectionMode!==n.selectionMode}}};let P7=rf;function Z4(e){return null}Z4.getCollectionNode=function*(t){let{children:n}=t,r=t.textValue||(typeof n=="string"?n:"")||t["aria-label"]||"";yield{type:"cell",props:t,rendered:n,textValue:r,"aria-label":t["aria-label"],hasChildNodes:!1}};let k7=Z4;function D7(e){const[t,n]=ai(e,Xm.variantKeys),{ref:r,as:o,baseRef:i,children:l,className:s,classNames:a,layoutNode:u,removeWrapper:c=!1,disableAnimation:d=!1,selectionMode:f="none",topContentPlacement:p="inside",bottomContentPlacement:h="inside",selectionBehavior:b=f==="none"?null:"toggle",disabledBehavior:w="selection",showSelectionCheckboxes:g=f==="multiple"&&b!=="replace",BaseComponent:v="div",checkboxesProps:y,topContent:C,bottomContent:E,onRowAction:S,onCellAction:D,...x}=t,T=o||"table",k=typeof T=="string",M=Oe(r),I=Oe(i),P=S7({...e,children:l,showSelectionCheckboxes:g}),{collection:A}=P,{gridProps:V}=d7({...e,layout:u},P,M),K=f!=="none",F=f==="multiple",B=m.useMemo(()=>Xm({...n,isSelectable:K,isMultiSelectable:F}),[li(n),K,F]),O=ae(a==null?void 0:a.base,s),L=m.useMemo(()=>{var Q;return{state:P,slots:B,isSelectable:K,collection:A,classNames:a,color:e==null?void 0:e.color,disableAnimation:d,checkboxesProps:y,isHeaderSticky:(Q=e==null?void 0:e.isHeaderSticky)!=null?Q:!1,selectionMode:f,selectionBehavior:b,disabledBehavior:w,showSelectionCheckboxes:g,onRowAction:S,onCellAction:D}},[B,P,A,K,a,f,b,y,w,d,g,e==null?void 0:e.color,e==null?void 0:e.isHeaderSticky,S,D]),W=m.useCallback(Q=>({...Q,ref:I,className:B.base({class:ae(O,Q==null?void 0:Q.className)})}),[O,B]),G=m.useCallback(Q=>({...Q,ref:I,className:B.wrapper({class:ae(a==null?void 0:a.wrapper,Q==null?void 0:Q.className)})}),[a==null?void 0:a.wrapper,B]),ee=m.useCallback(Q=>({...J(V,ht(x,{enabled:k}),Q),ref:M,className:B.table({class:ae(a==null?void 0:a.table,Q==null?void 0:Q.className)})}),[a==null?void 0:a.table,k,B,V,x]);return{BaseComponent:v,Component:T,children:l,state:P,collection:A,values:L,topContent:C,bottomContent:E,removeWrapper:c,topContentPlacement:p,bottomContentPlacement:h,getBaseProps:W,getWrapperProps:G,getTableProps:ee}}var ew=je((e,t)=>{var n,r;const{as:o,className:i,node:l,rowKey:s,slots:a,state:u,classNames:c,...d}=e,f=o||"td",p=typeof f=="string",h=Oe(t),{gridCellProps:b}=H4({node:l},u,h),w=ae(c==null?void 0:c.td,i,(n=l.props)==null?void 0:n.className),{isFocusVisible:g,focusProps:v}=cn(),y=u.selectionManager.isSelected(s),C=m.useMemo(()=>{const E=typeof l.rendered;return E!=="object"&&E!=="function"?$.jsx("span",{children:l.rendered}):l.rendered},[l.rendered]);return $.jsx(f,{ref:h,"data-focus-visible":H(g),"data-selected":H(y),...J(b,v,ht(l.props,{enabled:p}),d),className:(r=a.td)==null?void 0:r.call(a,{class:w}),children:C})});ew.displayName="NextUI.TableCell";var T7=ew,tw=je((e,t)=>{var n,r;const{as:o,className:i,node:l,rowKey:s,slots:a,state:u,color:c,disableAnimation:d,checkboxesProps:f,selectionMode:p,classNames:h,...b}=e,w=o||"td",g=typeof w=="string",v=Oe(t),{gridCellProps:y}=H4({node:l},u,v),{isFocusVisible:C,focusProps:E}=cn(),{checkboxProps:S}=h7({key:(l==null?void 0:l.parentKey)||l.key},u),D=ae(h==null?void 0:h.td,i,(n=l.props)==null?void 0:n.className),x=p==="single",{onChange:T,...k}=S,M=u.selectionManager.isSelected(s);return $.jsx(w,{ref:v,"data-focus-visible":H(C),"data-selected":H(M),...J(y,E,ht(l.props,{enabled:g}),b),className:(r=a.td)==null?void 0:r.call(a,{class:D}),children:x?$.jsx(Al,{children:S["aria-label"]}):$.jsx(mx,{color:c,disableAnimation:d,onValueChange:T,...J(f,k)})})});tw.displayName="NextUI.TableCheckboxCell";var M7=tw,nw=je((e,t)=>{var n,r;const{as:o,className:i,children:l,node:s,slots:a,state:u,isSelectable:c,classNames:d,...f}=e,p=o||(e!=null&&e.href?"a":"tr"),h=typeof p=="string",b=Oe(t),{rowProps:w}=f7({node:s},u,b),g=ae(d==null?void 0:d.tr,i,(n=s.props)==null?void 0:n.className),{isFocusVisible:v,focusProps:y}=cn(),C=u.disabledKeys.has(s.key),E=u.selectionManager.isSelected(s.key),{isHovered:S,hoverProps:D}=no({isDisabled:C}),{isFirst:x,isLast:T,isMiddle:k,isOdd:M}=m.useMemo(()=>{const I=s.key===u.collection.getFirstKey(),P=s.key===u.collection.getLastKey(),A=!I&&!P,V=s!=null&&s.index?(s.index+1)%2===0:!1;return{isFirst:I,isLast:P,isMiddle:A,isOdd:V}},[s,u.collection]);return $.jsx(p,{ref:b,"data-disabled":H(C),"data-first":H(x),"data-focus-visible":H(v),"data-hover":H(S),"data-last":H(T),"data-middle":H(k),"data-odd":H(M),"data-selected":H(E),...J(w,y,c?D:{},ht(s.props,{enabled:h}),f),className:(r=a.tr)==null?void 0:r.call(a,{class:g}),children:l})});nw.displayName="NextUI.TableRow";var A7=nw,rw=je((e,t)=>{var n;const{as:r,className:o,slots:i,state:l,collection:s,isSelectable:a,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:f,classNames:p,...h}=e,b=r||"tbody",w=typeof b=="string",g=Oe(t),{rowGroupProps:v}=G4(),y=ae(p==null?void 0:p.tbody,o),C=s==null?void 0:s.body.props,E=(C==null?void 0:C.isLoading)||(C==null?void 0:C.loadingState)==="loading"||(C==null?void 0:C.loadingState)==="loadingMore",S=m.useMemo(()=>[...s.body.childNodes].map(T=>$.jsx(A7,{classNames:p,isSelectable:a,node:T,slots:i,state:l,children:[...T.childNodes].map(k=>k.props.isSelectionCell?$.jsx(M7,{checkboxesProps:d,classNames:p,color:u,disableAnimation:c,node:k,rowKey:T.key,selectionMode:f,slots:i,state:l},k.key):$.jsx(T7,{classNames:p,node:k,rowKey:T.key,slots:i,state:l},k.key))},T.key)),[s.body.childNodes,p,a,i,l]);let D,x;return s.size===0&&C.emptyContent&&(D=$.jsx("tr",{role:"row",children:$.jsx("td",{className:i==null?void 0:i.emptyWrapper({class:p==null?void 0:p.emptyWrapper}),colSpan:s.columnCount,role:"gridcell",children:!E&&C.emptyContent})})),E&&C.loadingContent&&(x=$.jsxs("tr",{role:"row",children:[$.jsx("td",{className:i==null?void 0:i.loadingWrapper({class:p==null?void 0:p.loadingWrapper}),colSpan:s.columnCount,role:"gridcell",children:C.loadingContent}),!D&&s.size===0?$.jsx("td",{className:i==null?void 0:i.emptyWrapper({class:p==null?void 0:p.emptyWrapper})}):null]})),$.jsxs(b,{ref:g,...J(v,ht(C,{enabled:w}),h),className:(n=i.tbody)==null?void 0:n.call(i,{class:y}),"data-empty":H(s.size===0),"data-loading":H(E),children:[S,x,D]})});rw.displayName="NextUI.TableBody";var R7=rw,ow=je((e,t)=>{var n,r,o,i,l;const{as:s,className:a,state:u,node:c,slots:d,classNames:f,...p}=e,h=s||"th",b=typeof h=="string",w=Oe(t),{columnHeaderProps:g}=W4({node:c},u,w),v=ae(f==null?void 0:f.th,a,(n=c.props)==null?void 0:n.className),{isFocusVisible:y,focusProps:C}=cn(),{isHovered:E,hoverProps:S}=no({}),{hideHeader:D,...x}=c.props,T=x.allowsSorting;return $.jsxs(h,{ref:w,colSpan:c.colspan,"data-focus-visible":H(y),"data-hover":H(E),"data-sortable":H(T),...J(g,C,ht(x,{enabled:b}),T?S:{},p),className:(r=d.th)==null?void 0:r.call(d,{class:v}),children:[D?$.jsx(Al,{children:c.rendered}):c.rendered,T&&$.jsx($$,{"aria-hidden":"true",className:(o=d.sortIcon)==null?void 0:o.call(d,{class:f==null?void 0:f.sortIcon}),"data-direction":(i=u.sortDescriptor)==null?void 0:i.direction,"data-visible":H(((l=u.sortDescriptor)==null?void 0:l.column)===c.key),strokeWidth:3})]})});ow.displayName="NextUI.TableColumnHeader";var I7=ow,iw=je((e,t)=>{var n,r;const{as:o,className:i,children:l,node:s,slots:a,classNames:u,state:c,...d}=e,f=o||"tr",p=typeof f=="string",h=Oe(t),{rowProps:b}=p7({node:s},c),w=ae(u==null?void 0:u.tr,i,(n=s.props)==null?void 0:n.className);return $.jsx(f,{ref:h,...J(b,ht(s.props,{enabled:p}),d),className:(r=a.tr)==null?void 0:r.call(a,{class:w}),children:l})});iw.displayName="NextUI.TableHeaderRow";var N7=iw,lw=je((e,t)=>{var n;const{as:r,className:o,children:i,slots:l,classNames:s,...a}=e,u=r||"thead",c=Oe(t),{rowGroupProps:d}=G4(),f=ae(s==null?void 0:s.thead,o);return $.jsx(u,{ref:c,className:(n=l.thead)==null?void 0:n.call(l,{class:f}),...J(d,a),children:i})});lw.displayName="NextUI.TableRowGroup";var F7=lw,B7={px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Kg=e=>{var t;return(t=B7[e])!=null?t:e};function L7(e){const[t,n]=ai(e,Ym.variantKeys),{as:r,className:o,x:i=1,y:l=1,...s}=t,a=r||"span",u=m.useMemo(()=>Ym({...n,className:o}),[li(n),o]),c=Kg(i),d=Kg(l);return{Component:a,getSpacerProps:(p={})=>({...p,...s,"aria-hidden":H(!0),className:ae(u,p.className),style:{...p.style,...s.style,marginLeft:c,marginTop:d}})}}var sw=je((e,t)=>{const{Component:n,getSpacerProps:r}=L7({...e});return $.jsx(n,{ref:t,...r()})});sw.displayName="NextUI.Spacer";var z7=sw,aw=je((e,t)=>{const{BaseComponent:n,Component:r,collection:o,values:i,topContent:l,topContentPlacement:s,bottomContentPlacement:a,bottomContent:u,removeWrapper:c,getBaseProps:d,getWrapperProps:f,getTableProps:p}=D7({...e,ref:t}),h=m.useCallback(({children:b})=>c?b:$.jsx(n,{...f(),children:b}),[c,f]);return $.jsxs("div",{...d(),children:[s==="outside"&&l,$.jsx(h,{children:$.jsxs($.Fragment,{children:[s==="inside"&&l,$.jsxs(r,{...p(),children:[$.jsxs(F7,{classNames:i.classNames,slots:i.slots,children:[o.headerRows.map(b=>$.jsx(N7,{classNames:i.classNames,node:b,slots:i.slots,state:i.state,children:[...b.childNodes].map(w=>{var g;return(g=w==null?void 0:w.props)!=null&&g.isSelectionCell?$.jsx(g7,{checkboxesProps:i.checkboxesProps,classNames:i.classNames,color:i.color,disableAnimation:i.disableAnimation,node:w,selectionMode:i.selectionMode,slots:i.slots,state:i.state},w==null?void 0:w.key):$.jsx(I7,{classNames:i.classNames,node:w,slots:i.slots,state:i.state},w==null?void 0:w.key)})},b==null?void 0:b.key)),$.jsx(z7,{as:"tr",tabIndex:-1,y:1})]}),$.jsx(R7,{checkboxesProps:i.checkboxesProps,classNames:i.classNames,collection:i.collection,color:i.color,disableAnimation:i.disableAnimation,isSelectable:i.isSelectable,selectionMode:i.selectionMode,slots:i.slots,state:i.state})]}),a==="inside"&&u]})}),a==="outside"&&u]})});aw.displayName="NextUI.Table";var O7=aw,j7=P7,_7=j7,V7=$7,K7=V7,U7=k7,Ug=U7,W7=E7,Wg=W7,H7=C7,G7=H7;/** + `),()=>{document.head.removeChild(c)}},[t]),$.jsx(Vk,{isPresent:t,childRef:r,sizeRef:o,children:m.cloneElement(e,{ref:r})})}const mc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:l})=>{const s=r1(Uk),a=m.useId(),u=m.useMemo(()=>({id:a,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?[Math.random()]:[n]);return m.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),m.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),l==="popLayout"&&(e=$.jsx(Kk,{isPresent:n,children:e})),$.jsx(Ep.Provider,{value:u,children:e})};function Uk(){return new Map}function Wk(e){return m.useEffect(()=>()=>e(),[])}const Rr=e=>e.key||"";function Hk(e,t){e.forEach(n=>{const r=Rr(n);t.set(r,n)})}function Gk(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const qk=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:l="sync"})=>{const s=m.useContext(Wb).forceRender||_k()[0],a=q1(),u=Gk(e);let c=u;const d=m.useRef(new Map).current,f=m.useRef(c),p=m.useRef(new Map).current,h=m.useRef(!0);if(kp(()=>{h.current=!1,Hk(u,p),f.current=c}),Wk(()=>{h.current=!0,p.clear(),d.clear()}),h.current)return $.jsx($.Fragment,{children:c.map(v=>$.jsx(mc,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:l,children:v},Rr(v)))});c=[...c];const b=f.current.map(Rr),w=u.map(Rr),g=b.length;for(let v=0;v{if(w.indexOf(y)!==-1)return;const C=p.get(y);if(!C)return;const E=b.indexOf(y);let S=v;if(!S){const D=()=>{d.delete(y);const x=Array.from(p.keys()).filter(T=>!w.includes(T));if(x.forEach(T=>p.delete(T)),f.current=u.filter(T=>{const k=Rr(T);return k===y||x.includes(k)}),!d.size){if(a.current===!1)return;s(),r&&r()}};S=$.jsx(mc,{isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:i,mode:l,children:C},Rr(C)),d.set(y,S)}c.splice(E,0,S)}),c=c.map(v=>{const y=v.key;return d.has(y)?v:$.jsx(mc,{isPresent:!0,presenceAffectsLayout:i,mode:l,children:v},Rr(v))}),$.jsx($.Fragment,{children:d.size?c:c.map(v=>m.cloneElement(v))})};function Yk({children:e,features:t,strict:n=!1}){const[,r]=m.useState(!gc(t)),o=m.useRef(void 0);if(!gc(t)){const{renderer:i,...l}=t;o.current=i,Od(l)}return m.useEffect(()=>{gc(t)&&t().then(({renderer:i,...l})=>{Od(l),o.current=i,r(!0)})},[]),$.jsx(Dp.Provider,{value:{renderer:o.current,strict:n},children:e})}function gc(e){return typeof e=="function"}const Qk={renderer:Ok,...Ek,...AE};class Xk{build(t,n){return this.context=n,Tg(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];be.Children.forEach(n,l=>{o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let a of s)i++,yield a}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=o?o.key:null,yield a;return}i=n.renderer(t.value)}if(be.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let f=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${f}> in collection.`)}let u=a.getCollectionNode(i.props,this.context),c=t.index,d=u.next();for(;!d.done&&d.value;){let f=d.value;t.index=c;let p=f.key;p||(p=f.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...f,key:p,index:c,wrapper:Jk(t.wrapper,f.wrapper)},this.getChildState(n,f),r?`${r}${i.key}`:i.key,o)];for(let w of b){if(w.value=f.value||t.value,w.value&&this.cache.set(w.value,w),t.type&&w.type!==t.type)throw new Error(`Unsupported type <${vc(w.type)}> in <${vc(o.type)}>. Only <${vc(t.type)}> is supported.`);c++,yield w}d=u.next(b)}return}if(t.key==null)return;let l=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Tg(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`),u.index=a;let c=l.getFullNode(u,l.getChildState(n,u),s.key,s);for(let d of c)a++,yield d}})};yield s}constructor(){this.cache=new WeakMap}}function Tg(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 Jk(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function vc(e){return e[0].toUpperCase()+e.slice(1)}function Zk(e,t,n){let r=m.useMemo(()=>new Xk,[]),{children:o,items:i,collection:l}=e;return m.useMemo(()=>{if(l)return l;let a=r.build({children:o,items:i},n);return t(a)},[r,o,i,l,n,t])}function Ke(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Mn(e){return er(e,0)}function er(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function lr(e){let t;for(let n of e)t=n;return t}function yc(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Mg(e,t),t],o=[...Mg(e,n),n],i=r.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===t)>=0,-1)}function Mg(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}class nn extends Set{constructor(t,n,r){super(t),t instanceof nn?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}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,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,l=m.useRef(!1),[,s]=m.useState(!1),a=m.useRef(null),u=m.useRef(null),[,c]=m.useState(null),d=m.useMemo(()=>Ag(e.selectedKeys),[e.selectedKeys]),f=m.useMemo(()=>Ag(e.defaultSelectedKeys,new nn),[e.defaultSelectedKeys]),[p,h]=Tl(d,f,e.onSelectionChange),b=m.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,g]=m.useState(o);o==="replace"&&w==="toggle"&&typeof p=="object"&&p.size===0&&g("replace");let v=m.useRef(o);return m.useEffect(()=>{o!==v.current&&(g(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:g,get isFocused(){return l.current},setFocused(y){l.current=y,s(y)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(y,C="first"){a.current=y,u.current=C,c(y)},selectedKeys:p,setSelectedKeys(y){(r||!e6(y,p))&&h(y)},disabledKeys:b,disabledBehavior:i}}function Ag(e,t){return e?e==="all"?"all":new nn(e):t}class n6{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){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}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 n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&yc(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&yc(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}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}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new nn([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new nn(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?yc(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;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}if(t=this.getKey(t),t==null)return;let n=new nn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new nn([t],t,t):new nn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new nn;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(Mn(Ke(o,this.collection)).key)}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 nn)}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){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}var Y1=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,[JM,r6]=Dl({name:"ButtonGroupContext",strict:!1});function Q1(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:l,onPressChange:s,preventFocusOnPress:a,allowFocusWhenDisabled:u,onClick:c,href:d,target:f,rel:p,type:h="button",allowTextSelectionOnPress:b}=e,w;n==="button"?w={type:h,disabled:r}:w={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:d,target:n==="a"?f:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:g,isPressed:v}=un({onPressStart:i,onPressEnd:l,onPressChange:s,onPress:o,isDisabled:r,preventFocusOnPress:a,allowTextSelectionOnPress:b,ref:t}),{focusableProps:y}=Ml(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let C=J(y,g,to(e,{labelable:!0}));return{isPressed:v,buttonProps:J(w,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{c==null||c(E)}})}}var X1=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:o,onClear:i}=e;return $.jsx($.Fragment,{children:t.map(l=>{const s=$2(.01*l.size,.2,l.size>100?.75:.5);return $.jsx(qk,{mode:"popLayout",children:$.jsx($.Fragment,{children:$.jsx(Yk,{features:Qk,children:$.jsx(jk.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:l.y,left:l.x,width:`${l.size}px`,height:`${l.size}px`,...o},transition:{duration:s},onAnimationComplete:()=>{i(l.key)},...n})})})},l.key)})})};X1.displayName="NextUI.Ripple";var J1=X1;function Z1(e={}){const[t,n]=m.useState([]),r=m.useCallback(i=>{const l=i.currentTarget,s=Math.max(l.clientWidth,l.clientHeight),a=l.getBoundingClientRect();n(u=>[...u,{key:C2(u.length.toString()),size:s,x:i.clientX-a.x-s/2,y:i.clientY-a.y-s/2}])},[]),o=m.useCallback(i=>{n(l=>l.filter(s=>s.key!==i))},[]);return{ripples:t,onClick:r,onClear:o,...e}}function o6(e){var t,n,r,o,i,l,s,a;const u=r6(),c=!!u,{ref:d,as:f,children:p,startContent:h,endContent:b,autoFocus:w,className:g,spinner:v,fullWidth:y=(t=u==null?void 0:u.fullWidth)!=null?t:!1,size:C=(n=u==null?void 0:u.size)!=null?n:"md",color:E=(r=u==null?void 0:u.color)!=null?r:"default",variant:S=(o=u==null?void 0:u.variant)!=null?o:"solid",disableAnimation:D=(i=u==null?void 0:u.disableAnimation)!=null?i:!1,radius:x=u==null?void 0:u.radius,disableRipple:T=(l=u==null?void 0:u.disableRipple)!=null?l:!1,isDisabled:k=(s=u==null?void 0:u.isDisabled)!=null?s:!1,isIconOnly:M=(a=u==null?void 0:u.isIconOnly)!=null?a:!1,isLoading:I=!1,spinnerPlacement:P="start",onPress:A,onClick:V,...K}=e,F=f||"button",B=typeof F=="string",O=Oe(d),{isFocusVisible:L,isFocused:W,focusProps:G}=cn({autoFocus:w}),ee=k||I,Q=m.useMemo(()=>y$({size:C,color:E,variant:S,radius:x,fullWidth:y,isDisabled:ee,isInGroup:c,disableAnimation:D,isIconOnly:M,className:g}),[C,E,S,x,y,ee,c,M,D,g]),{onClick:fe,onClear:ne,ripples:ke}=Z1(),Je=m.useCallback(Be=>{T||ee||D||O.current&&fe(Be)},[T,ee,D,O,fe]),{buttonProps:Qt,isPressed:Xt}=Q1({elementType:f,isDisabled:ee,onPress:A,onClick:wr(V,Je),...K},O),{isHovered:xe,hoverProps:He}=no({isDisabled:ee}),Nt=m.useCallback((Be={})=>({"data-disabled":H(ee),"data-focus":H(W),"data-pressed":H(Xt),"data-focus-visible":H(L),"data-hover":H(xe),"data-loading":H(I),...J(Qt,G,He,ht(K,{enabled:B}),ht(Be))}),[I,ee,W,Xt,B,L,xe,Qt,G,He,K]),pe=Be=>m.isValidElement(Be)?m.cloneElement(Be,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,Ze=pe(h),$n=pe(b),dn=m.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[C],[C]),fn=m.useCallback(()=>({ripples:ke,onClear:ne}),[ke,ne]);return{Component:F,children:p,domRef:O,spinner:v,styles:Q,startContent:Ze,endContent:$n,isLoading:I,spinnerPlacement:P,spinnerSize:dn,disableRipple:T,getButtonProps:Nt,getRippleProps:fn,isIconOnly:M}}function i6(e){const[t,n]=ai(e,Qm.variantKeys),{children:r,className:o,classNames:i,label:l,...s}=t,a=m.useMemo(()=>Qm({...n}),[li(n)]),u=ae(i==null?void 0:i.base,o),c=l||r,d=m.useMemo(()=>c&&typeof c=="string"?c:s["aria-label"]?"":"Loading",[r,c,s["aria-label"]]),f=m.useCallback(()=>({"aria-label":d,className:a.base({class:u}),...s}),[d,a,u,s]);return{label:c,slots:a,classNames:i,getSpinnerProps:f}}var ex=je((e,t)=>{const{slots:n,classNames:r,label:o,getSpinnerProps:i}=i6({...e});return $.jsxs("div",{ref:t,...i(),children:[$.jsxs("div",{className:n.wrapper({class:r==null?void 0:r.wrapper}),children:[$.jsx("i",{className:n.circle1({class:r==null?void 0:r.circle1})}),$.jsx("i",{className:n.circle2({class:r==null?void 0:r.circle2})})]}),o&&$.jsx("span",{className:n.label({class:r==null?void 0:r.label}),children:o})]})});ex.displayName="NextUI.Spinner";var l6=ex,tx=je((e,t)=>{const{Component:n,domRef:r,children:o,styles:i,spinnerSize:l,spinner:s=$.jsx(l6,{color:"current",size:l}),spinnerPlacement:a,startContent:u,endContent:c,isLoading:d,disableRipple:f,getButtonProps:p,getRippleProps:h,isIconOnly:b}=o6({...e,ref:t});return $.jsxs(n,{ref:r,className:i,...p(),children:[u,d&&a==="start"&&s,d&&b?null:o,d&&a==="end"&&s,c,!f&&$.jsx(J1,{...h()})]})});tx.displayName="NextUI.Button";var io=tx,[s6,nx]=Dl({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within "}),rx=je((e,t)=>{var n;const{as:r,className:o,children:i,...l}=e,s=r||"div",a=Oe(t),{slots:u,classNames:c}=nx(),d=ae(c==null?void 0:c.body,o);return $.jsx(s,{ref:a,className:(n=u.body)==null?void 0:n.call(u,{class:d}),...l,children:i})});rx.displayName="NextUI.CardBody";var ox=rx,ix=je((e,t)=>{var n;const{as:r,className:o,children:i,...l}=e,s=r||"div",a=Oe(t),{slots:u,classNames:c}=nx(),d=ae(c==null?void 0:c.header,o);return $.jsx(s,{ref:a,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...l,children:i})});ix.displayName="NextUI.CardHeader";var a6=ix;function u6(e){const[t,n]=ai(e,Zm.variantKeys),{ref:r,as:o,children:i,disableRipple:l=!1,onClick:s,onPress:a,autoFocus:u,className:c,classNames:d,allowTextSelectionOnPress:f=!0,...p}=t,h=Oe(r),b=o||(e.isPressable?"button":"div"),w=typeof b=="string",g=ae(d==null?void 0:d.base,c),{onClick:v,onClear:y,ripples:C}=Z1(),E=F=>{!e.disableAnimation&&!l&&h.current&&v(F)},{buttonProps:S,isPressed:D}=Q1({onPress:a,elementType:o,isDisabled:!e.isPressable,onClick:wr(s,E),allowTextSelectionOnPress:f,...p},h),{hoverProps:x,isHovered:T}=no({isDisabled:!e.isHoverable,...p}),{isFocusVisible:k,isFocused:M,focusProps:I}=cn({autoFocus:u}),P=m.useMemo(()=>Zm({...n}),[li(n)]),A=m.useMemo(()=>({isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,disableAnimation:e.disableAnimation,fullWidth:e.fullWidth,slots:P,classNames:d}),[P,d,e.isDisabled,e.isFooterBlurred,e.disableAnimation,e.fullWidth]),V=m.useCallback((F={})=>({ref:h,className:P.base({class:g}),tabIndex:e.isPressable?0:-1,"data-hover":H(T),"data-pressed":H(D),"data-focus":H(M),"data-focus-visible":H(k),"data-disabled":H(e.isDisabled),...J(e.isPressable?{...S,...I,role:"button"}:{},e.isHoverable?x:{},ht(p,{enabled:w}),ht(F))}),[h,P,g,w,e.isPressable,e.isHoverable,e.isDisabled,T,D,k,S,I,x,p]),K=m.useCallback(()=>({ripples:C,onClear:y}),[C,y]);return{context:A,domRef:h,Component:b,classNames:d,children:i,isHovered:T,isPressed:D,isPressable:e.isPressable,isHoverable:e.isHoverable,disableAnimation:e.disableAnimation,disableRipple:l,handleClick:E,isFocusVisible:k,getCardProps:V,getRippleProps:K}}var lx=je((e,t)=>{const{children:n,context:r,Component:o,isPressable:i,disableAnimation:l,disableRipple:s,getCardProps:a,getRippleProps:u}=u6({...e,ref:t});return $.jsxs(o,{...a(),children:[$.jsx(s6,{value:r,children:n}),i&&!l&&!s&&$.jsx(J1,{...u()})]})});lx.displayName="NextUI.Card";var sx=lx;function Yp(e,t,n){let{validationBehavior:r,focus:o}=e;Vn(()=>{if(r==="native"&&(n!=null&&n.current)){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(d6(n.current))}});let i=kt(()=>{t.resetValidation()}),l=kt(a=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!a.defaultPrevented&&n&&c&&f6(c)===n.current){var d;o?o():(d=n.current)===null||d===void 0||d.focus(),s5("keyboard")}a.preventDefault()}),s=kt(()=>{t.commitValidation()});m.useEffect(()=>{let a=n==null?void 0:n.current;if(!a)return;let u=a.form;return a.addEventListener("invalid",l),a.addEventListener("change",s),u==null||u.addEventListener("reset",i),()=>{a.removeEventListener("invalid",l),a.removeEventListener("change",s),u==null||u.removeEventListener("reset",i)}},[n,l,s,i,r])}function c6(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 d6(e){return{isInvalid:!e.validity.valid,validationDetails:c6(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function f6(e){for(let t=0;tRg(m6(l,o)),[l,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=m.useContext(p6),d=m.useMemo(()=>r?Array.isArray(r)?r.flatMap(k=>Jd(c[k])):Jd(c[r]):[],[c,r]),[f,p]=m.useState(c),[h,b]=m.useState(!1);c!==f&&(p(c),b(!1));let w=m.useMemo(()=>Rg(h?[]:d),[h,d]),g=m.useRef(go),[v,y]=m.useState(go),C=m.useRef(go),E=()=>{if(!S)return;D(!1);let k=u||i||g.current;bc(k,C.current)||(C.current=k,y(k))},[S,D]=m.useState(!1);return m.useEffect(E),{realtimeValidation:a||w||u||i||go,displayValidation:s==="native"?a||w||v:a||w||u||i||v,updateValidation(k){s==="aria"&&!bc(v,k)?y(k):g.current=k},resetValidation(){let k=go;bc(k,C.current)||(C.current=k,y(k)),s==="native"&&D(!1),b(!0)},commitValidation(){s==="native"&&D(!0),b(!0)}}}function Jd(e){return e?Array.isArray(e)?e:[e]:[]}function m6(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Jd(n)}return[]}function Rg(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ux}:null}function bc(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 g6(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:l,children:s,"aria-label":a,"aria-labelledby":u,validationState:c="valid",isInvalid:d}=e,f=S=>{S.stopPropagation(),t.setSelected(S.target.checked)},p=s!=null,h=a!=null||u!=null;!p&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:w}=un({isDisabled:r}),{pressProps:g,isPressed:v}=un({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:y}=Ml(e,n),C=J(b,y),E=to(e,{labelable:!0});return vp(n,t.isSelected,t.setSelected),{labelProps:J(g,{onClick:S=>S.preventDefault()}),inputProps:J(E,{"aria-invalid":d||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:f,disabled:r,...i==null?{}:{value:i},name:l,type:"checkbox",...C}),isSelected:t.isSelected,isPressed:w||v,isDisabled:r,isReadOnly:o,isInvalid:d||c==="invalid"}}function cx(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=xr(t);let l=xr(),s={};n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let a=FC({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:a}}function dx(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:l}=cx(e),s=Dm([!!t,!!n,r,o]),a=Dm([!!t,!!n,r,o]);return l=J(l,{"aria-describedby":[s,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:a}}}function fx(e={}){let{isReadOnly:t}=e,[n,r]=Tl(e.isSelected,e.defaultSelected||!1,e.onChange);function o(l){t||r(l)}function i(){t||r(!n)}return{isSelected:n,setSelected:o,toggle:i}}function px(e,t,n){let r=su({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:a,isSelected:u,isPressed:c,isDisabled:d,isReadOnly:f}=g6({...e,isInvalid:o},t,n);Yp(e,r,n);let{isIndeterminate:p,isRequired:h,validationBehavior:b="aria"}=e;return m.useEffect(()=>{n.current&&(n.current.indeterminate=!!p)}),{labelProps:s,inputProps:{...a,checked:u,"aria-required":h&&b==="aria"||void 0,required:h&&b==="native"},isSelected:u,isPressed:c,isDisabled:d,isReadOnly:f,isInvalid:o,validationErrors:i,validationDetails:l}}const v6=new WeakMap;function y6(e,t,n){const r=fx({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(w){w?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(w)}});let{name:o,descriptionId:i,errorMessageId:l,validationBehavior:s}=v6.get(t);var a;s=(a=e.validationBehavior)!==null&&a!==void 0?a:s;let{realtimeValidation:u}=su({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),c=m.useRef(go),d=()=>{t.setInvalid(e.value,u.isInvalid?u:c.current)};m.useEffect(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:u,p=s==="native"?t.displayValidation:f;var h;let b=px({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:(h=e.isRequired)!==null&&h!==void 0?h:t.isRequired,validationBehavior:s,[Xd]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(w){c.current=w,d()}}},r,n);return{...b,inputProps:{...b.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,i].filter(Boolean).join(" ")||void 0}}}var[ZM,b6]=Dl({name:"CheckboxGroupContext",strict:!1});function x6(e){const{isSelected:t,disableAnimation:n,...r}=e;return $.jsx("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...r,children:$.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!n&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function w6(e){const{isSelected:t,disableAnimation:n,...r}=e;return $.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...r,children:$.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function S6(e){const{isIndeterminate:t,...n}=e,r=t?w6:x6;return $.jsx(r,{...n})}function C6(e,t=[]){const n=m.useRef(e);return Y1(()=>{n.current=e}),m.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function $6(e={}){var t,n,r,o,i,l;const s=b6(),a=!!s,{as:u,ref:c,value:d="",children:f,icon:p,name:h,isRequired:b,isReadOnly:w=!1,autoFocus:g=!1,isSelected:v,validationState:y,size:C=(t=s==null?void 0:s.size)!=null?t:"md",color:E=(n=s==null?void 0:s.color)!=null?n:"primary",radius:S=s==null?void 0:s.radius,lineThrough:D=(r=s==null?void 0:s.lineThrough)!=null?r:!1,isDisabled:x=(o=s==null?void 0:s.isDisabled)!=null?o:!1,disableAnimation:T=(i=s==null?void 0:s.disableAnimation)!=null?i:!1,isInvalid:k=y?y==="invalid":(l=s==null?void 0:s.isInvalid)!=null?l:!1,isIndeterminate:M=!1,defaultSelected:I,classNames:P,className:A,onValueChange:V,...K}=e;s&&jy&&(v&&ca("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),I&&ca("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const F=u||"label",B=m.useRef(null),O=m.useRef(null);let L=e.onChange;a&&(L=wr(()=>{s.groupState.resetValidation()},L));const W=m.useId(),G=m.useMemo(()=>({name:h,value:d,children:f,autoFocus:g,defaultSelected:I,isIndeterminate:M,isRequired:b,isInvalid:k,isSelected:v,isDisabled:x,isReadOnly:w,"aria-label":ap(K["aria-label"],f),"aria-labelledby":K["aria-labelledby"]||W,onChange:V}),[d,h,W,f,g,k,M,x,w,v,I,K["aria-label"],K["aria-labelledby"],V]),ee=fx(G),{inputProps:Q,isSelected:fe,isDisabled:ne,isReadOnly:ke,isPressed:Je}=a?y6({...G,isInvalid:k,validationBehavior:"native"},s.groupState,O):px({...G,validationBehavior:"native"},ee,O),Qt=ne||ke,[Xt,xe]=m.useState(!1),{pressProps:He}=un({isDisabled:Qt,onPressStart(Ge){Ge.pointerType!=="keyboard"&&xe(!0)},onPressEnd(Ge){Ge.pointerType!=="keyboard"&&xe(!1)}}),Nt=Qt?!1:Xt||Je;b&&(Q.required=!0);const{hoverProps:pe,isHovered:Ze}=no({isDisabled:Q.disabled}),{focusProps:$n,isFocused:dn,isFocusVisible:fn}=cn({autoFocus:Q.autoFocus}),Be=m.useMemo(()=>v$({color:E,size:C,radius:S,isInvalid:k,lineThrough:D,isDisabled:ne,disableAnimation:T}),[E,C,S,k,D,ne,T]);Y1(()=>{if(!O.current)return;const Ge=!!O.current.checked;ee.setSelected(Ge)},[O.current]);const Ft=C6(L),Ve=m.useCallback(Ge=>{if(ke||ne){Ge.preventDefault();return}Ft==null||Ft(Ge)},[ke,ne,Ft]),En=ae(P==null?void 0:P.base,A),Pn=m.useCallback(()=>({ref:B,className:Be.base({class:En}),"data-disabled":H(ne),"data-selected":H(fe||M),"data-invalid":H(k),"data-hover":H(Ze),"data-focus":H(dn),"data-pressed":H(Nt),"data-readonly":H(Q.readOnly),"data-focus-visible":H(fn),"data-indeterminate":H(M),...J(pe,He,K)}),[Be,En,ne,fe,M,k,Ze,dn,Nt,Q.readOnly,fn,pe,He,K]),Ct=m.useCallback((Ge={})=>({...Ge,"aria-hidden":!0,className:ae(Be.wrapper({class:ae(P==null?void 0:P.wrapper,Ge==null?void 0:Ge.className)}))}),[Be,P==null?void 0:P.wrapper]),ut=m.useCallback(()=>({ref:A2(O,c),...J(Q,$n),onChange:wr(Q.onChange,Ve)}),[Q,$n,Ve]),Pr=m.useCallback(()=>({id:W,className:Be.label({class:P==null?void 0:P.label})}),[Be,P==null?void 0:P.label,ne,fe,k]),pn=m.useCallback(()=>({isSelected:fe,isIndeterminate:!!M,disableAnimation:!!T,className:Be.icon({class:P==null?void 0:P.icon})}),[Be,P==null?void 0:P.icon,fe,M,T]);return{Component:F,icon:p,children:f,isSelected:fe,isDisabled:ne,isInvalid:k,isFocused:dn,isHovered:Ze,isFocusVisible:fn,getBaseProps:Pn,getWrapperProps:Ct,getInputProps:ut,getLabelProps:Pr,getIconProps:pn}}var hx=je((e,t)=>{const{Component:n,children:r,icon:o=$.jsx(S6,{}),getBaseProps:i,getWrapperProps:l,getInputProps:s,getIconProps:a,getLabelProps:u}=$6({...e,ref:t}),c=typeof o=="function"?o(a()):m.cloneElement(o,a());return $.jsxs(n,{...i(),children:[$.jsx(Al,{children:$.jsx("input",{...s()})}),$.jsx("span",{...l(),children:c}),r&&$.jsx("span",{...u(),children:r})]})});hx.displayName="NextUI.Checkbox";var mx=hx;let E6=Math.round(Math.random()*1e10),P6=0;function k6(e){let t=m.useMemo(()=>e.name||`radio-group-${E6}-${++P6}`,[e.name]);var n;let[r,o]=Tl(e.value,(n=e.defaultValue)!==null&&n!==void 0?n:null,e.onChange),[i,l]=m.useState(null),s=su({...e,value:r}),a=c=>{!e.isReadOnly&&!e.isDisabled&&(o(c),s.commitValidation())},u=s.displayValidation.isInvalid;return{...s,name:t,selectedValue:r,setSelectedValue:a,lastFocusedValue:i,setLastFocusedValue:l,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const gx=new WeakMap;function D6(e,t,n){let{value:r,children:o,"aria-label":i,"aria-labelledby":l}=e;const s=e.isDisabled||t.isDisabled;let a=o!=null,u=i!=null||l!=null;!a&&!u&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,d=x=>{x.stopPropagation(),t.setSelectedValue(r)},{pressProps:f,isPressed:p}=un({isDisabled:s}),{pressProps:h,isPressed:b}=un({isDisabled:s,onPress(){t.setSelectedValue(r)}}),{focusableProps:w}=Ml(J(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),g=J(f,w),v=to(e,{labelable:!0}),y=-1;t.selectedValue!=null?t.selectedValue===r&&(y=0):(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(y=0),s&&(y=void 0);let{name:C,descriptionId:E,errorMessageId:S,validationBehavior:D}=gx.get(t);return vp(n,t.selectedValue,t.setSelectedValue),Yp({validationBehavior:D},t,n),{labelProps:J(h,{onClick:x=>x.preventDefault()}),inputProps:J(v,{...g,type:"radio",name:C,tabIndex:y,disabled:s,required:t.isRequired&&D==="native",checked:c,value:r,onChange:d,"aria-describedby":[e["aria-describedby"],t.isInvalid?S:null,E].filter(Boolean).join(" ")||void 0}),isDisabled:s,isSelected:c,isPressed:p||b}}function T6(e,t){let{name:n,isReadOnly:r,isRequired:o,isDisabled:i,orientation:l="vertical",validationBehavior:s="aria"}=e,{direction:a}=Kn(),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:p,descriptionProps:h,errorMessageProps:b}=dx({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||c}),w=to(e,{labelable:!0}),{focusWithinProps:g}=eu({onBlurWithin(C){var E;(E=e.onBlur)===null||E===void 0||E.call(e,C),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),v=C=>{let E;switch(C.key){case"ArrowRight":a==="rtl"&&l!=="vertical"?E="prev":E="next";break;case"ArrowLeft":a==="rtl"&&l!=="vertical"?E="next":E="prev";break;case"ArrowDown":E="next";break;case"ArrowUp":E="prev";break;default:return}C.preventDefault();let S=gl(C.currentTarget,{from:C.target}),D;E==="next"?(D=S.nextNode(),D||(S.currentNode=C.currentTarget,D=S.firstChild())):(D=S.previousNode(),D||(S.currentNode=C.currentTarget,D=S.lastChild())),D&&(D.focus(),t.setSelectedValue(D.value))},y=xr(n);return gx.set(t,{name:y,descriptionId:h.id,errorMessageId:b.id,validationBehavior:s}),{radioGroupProps:J(w,{role:"radiogroup",onKeyDown:v,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":o||void 0,"aria-disabled":i||void 0,"aria-orientation":l,...p,...g}),labelProps:f,descriptionProps:h,errorMessageProps:b,isInvalid:u,validationErrors:c,validationDetails:d}}function M6(e){const{as:t,ref:n,classNames:r,children:o,label:i,value:l,name:s,isInvalid:a,validationState:u,size:c="md",color:d="primary",isDisabled:f=!1,disableAnimation:p=!1,orientation:h="vertical",isRequired:b=!1,isReadOnly:w,errorMessage:g,description:v,className:y,onChange:C,onValueChange:E,...S}=e,D=t||"div",x=typeof D=="string",T=Oe(n),k=m.useMemo(()=>({...S,value:l,name:s,"aria-label":ap(S["aria-label"],i),isRequired:b,isReadOnly:w,isInvalid:u==="invalid"||a,orientation:h,validationBehavior:"native",onChange:E}),[S,l,s,i,b,w,a,u,h,E]),M=k6(k),{labelProps:I,radioGroupProps:P,errorMessageProps:A,descriptionProps:V,isInvalid:K,validationErrors:F,validationDetails:B}=T6(k,M),O=k.isInvalid||K,L=m.useMemo(()=>({size:c,color:d,groupState:M,isRequired:b,isInvalid:O,isDisabled:f,disableAnimation:p,onChange:C}),[c,d,b,f,O,C,p,M.name,M==null?void 0:M.isDisabled,M==null?void 0:M.isReadOnly,M==null?void 0:M.isRequired,M==null?void 0:M.selectedValue,M==null?void 0:M.lastFocusedValue]),W=m.useMemo(()=>g$({isRequired:b,isInvalid:O,disableAnimation:p}),[O,b,p]),G=ae(r==null?void 0:r.base,y),ee=m.useCallback(()=>({ref:T,className:W.base({class:G}),...J(P,ht(S,{enabled:x}))}),[T,W,G,P,S]),Q=m.useCallback(()=>({className:W.label({class:r==null?void 0:r.label}),...I}),[W,r==null?void 0:r.label,I,r==null?void 0:r.label]),fe=m.useCallback(()=>({className:W.wrapper({class:r==null?void 0:r.wrapper}),role:"presentation","data-orientation":h}),[W,r==null?void 0:r.wrapper,h,W.wrapper]),ne=m.useCallback((Je={})=>({...Je,...V,className:W.description({class:ae(r==null?void 0:r.description,Je==null?void 0:Je.className)})}),[W,r==null?void 0:r.description,V,W.description]),ke=m.useCallback((Je={})=>({...Je,...A,className:W.errorMessage({class:ae(r==null?void 0:r.errorMessage,Je==null?void 0:Je.className)})}),[W,r==null?void 0:r.errorMessage,A]);return{Component:D,children:o,label:i,context:L,description:v,isInvalid:O,errorMessage:typeof g=="function"?g({isInvalid:O,validationErrors:F,validationDetails:B}):g||(F==null?void 0:F.join(" ")),getGroupProps:ee,getLabelProps:Q,getWrapperProps:fe,getDescriptionProps:ne,getErrorMessageProps:ke}}var[A6,R6]=Dl({name:"RadioGroupContext",strict:!1}),vx=je((e,t)=>{const{Component:n,children:r,label:o,context:i,description:l,isInvalid:s,errorMessage:a,getGroupProps:u,getLabelProps:c,getWrapperProps:d,getDescriptionProps:f,getErrorMessageProps:p}=M6({...e,ref:t});return $.jsxs(n,{...u(),children:[o&&$.jsx("span",{...c(),children:o}),$.jsx("div",{...d(),children:$.jsx(A6,{value:i,children:r})}),s&&a?$.jsx("div",{...p(),children:a}):l?$.jsx("div",{...f(),children:l}):null]})});vx.displayName="NextUI.RadioGroup";var Ig=vx;function I6(e){var t,n,r,o;const i=R6(),{as:l,ref:s,classNames:a,id:u,value:c,children:d,description:f,size:p=(t=i==null?void 0:i.size)!=null?t:"md",color:h=(n=i==null?void 0:i.color)!=null?n:"primary",isDisabled:b=(r=i==null?void 0:i.isDisabled)!=null?r:!1,disableAnimation:w=(o=i==null?void 0:i.disableAnimation)!=null?o:!1,onChange:g=i==null?void 0:i.onChange,autoFocus:v=!1,className:y,...C}=e;i&&jy&&("checked"in C&&ca('Remove props "checked" if in the Radio.Group.',"Radio"),c===void 0&&ca('Props "value" must be defined if in the Radio.Group.',"Radio"));const E=l||"label",S=Oe(s),D=m.useRef(null),x=m.useId(),T=m.useMemo(()=>{var pe;return(pe=i.isRequired)!=null?pe:!1},[i.isRequired]),k=i.isInvalid,M=m.useMemo(()=>{const pe=C["aria-label"]||typeof d=="string"?d:void 0,Ze=C["aria-describedby"]||typeof f=="string"?f:void 0;return{id:u,isRequired:T,isDisabled:b,"aria-label":pe,"aria-labelledby":C["aria-labelledby"]||x,"aria-describedby":Ze}},[x,u,b,T]),{inputProps:I,isDisabled:P,isSelected:A,isPressed:V}=D6({value:c,children:d,...i,...M},i.groupState,D),{focusProps:K,isFocused:F,isFocusVisible:B}=cn({autoFocus:v}),O=P||I.readOnly,[L,W]=m.useState(!1),{pressProps:G}=un({isDisabled:O,onPressStart(pe){pe.pointerType!=="keyboard"&&W(!0)},onPressEnd(pe){pe.pointerType!=="keyboard"&&W(!1)}}),{hoverProps:ee,isHovered:Q}=no({isDisabled:O}),fe=O?!1:L||V,ne=m.useMemo(()=>m$({color:h,size:p,isInvalid:k,isDisabled:P,disableAnimation:w}),[h,p,P,k,w]),ke=ae(a==null?void 0:a.base,y),Je=m.useCallback((pe={})=>({...pe,ref:S,className:ne.base({class:ke}),"data-disabled":H(P),"data-focus":H(F),"data-focus-visible":H(B),"data-selected":H(A),"data-invalid":H(k),"data-hover":H(Q),"data-pressed":H(fe),"data-hover-unselected":H(Q&&!A),"data-readonly":H(I.readOnly),"aria-required":H(T),...J(ee,G,C)}),[ne,ke,S,P,F,B,A,k,Q,fe,I.readOnly,T,C]),Qt=m.useCallback((pe={})=>({...pe,"aria-hidden":!0,className:ae(ne.wrapper({class:ae(a==null?void 0:a.wrapper,pe.className)}))}),[ne,a==null?void 0:a.wrapper]),Xt=m.useCallback((pe={})=>({ref:D,...J(pe,I,K,{required:T}),onChange:wr(I.onChange,g)}),[I,K,T,g]),xe=m.useCallback((pe={})=>({...pe,id:x,className:ne.label({class:a==null?void 0:a.label})}),[ne,a==null?void 0:a.label,P,A,k]),He=m.useCallback((pe={})=>({...pe,className:ne.labelWrapper({class:a==null?void 0:a.labelWrapper})}),[ne,a==null?void 0:a.labelWrapper]),Nt=m.useCallback((pe={})=>({...pe,className:ne.control({class:a==null?void 0:a.control})}),[ne,a==null?void 0:a.control]);return{Component:E,children:d,slots:ne,classNames:a,description:f,isSelected:A,isDisabled:P,isInvalid:k,isFocusVisible:B,getBaseProps:Je,getWrapperProps:Qt,getInputProps:Xt,getLabelProps:xe,getLabelWrapperProps:He,getControlProps:Nt}}var yx=je((e,t)=>{const{Component:n,children:r,slots:o,classNames:i,description:l,getBaseProps:s,getWrapperProps:a,getInputProps:u,getLabelProps:c,getLabelWrapperProps:d,getControlProps:f}=I6({...e,ref:t});return $.jsxs(n,{...s(),children:[$.jsx(Al,{children:$.jsx("input",{...u()})}),$.jsx("span",{...a(),children:$.jsx("span",{...f()})}),$.jsxs("div",{...d(),children:[r&&$.jsx("span",{...c(),children:r}),l&&$.jsx("span",{className:o.description({class:i==null?void 0:i.description}),children:l})]})]})});yx.displayName="NextUI.Radio";var Ng=yx;function N6(e={}){const{rerender:t=!1,delay:n=0}=e,r=m.useRef(!1),[o,i]=m.useState(!1);return m.useEffect(()=>{r.current=!0;let l=null;return t&&(n>0?l=setTimeout(()=>{i(!0)},n):i(!0)),()=>{r.current=!1,t&&i(!1),l&&clearTimeout(l)}},[t]),[m.useCallback(()=>r.current,[]),o]}function F6(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:o,isIndeterminate:i,formatOptions:l={style:"percent"}}=e,s=to(e,{labelable:!0}),{labelProps:a,fieldProps:u}=cx({...e,labelElementType:"span"});t=hC(t,n,r);let c=(t-n)/(r-n),d=qC(l);if(!i&&!o){let f=l.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:J(s,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:a}}function B6(e){var t;const[n,r]=ai(e,eg.variantKeys),{ref:o,as:i,id:l,className:s,classNames:a,label:u,valueLabel:c,value:d=void 0,minValue:f=0,maxValue:p=100,strokeWidth:h,showValueLabel:b=!1,formatOptions:w={style:"percent"},...g}=n,v=i||"div",y=Oe(o),C=ae(a==null?void 0:a.base,s),[,E]=N6({rerender:!0,delay:100}),S=((t=e.isIndeterminate)!=null?t:!0)&&d===void 0,{progressBarProps:D,labelProps:x}=F6({id:l,label:u,value:d,minValue:f,maxValue:p,valueLabel:c,formatOptions:w,isIndeterminate:S,"aria-labelledby":e["aria-labelledby"],"aria-label":e["aria-label"]}),T=m.useMemo(()=>eg({...r,isIndeterminate:S}),[li(r),S]),k=e.disableAnimation?!0:E,M=16,I=h||(e.size==="sm"?2:3),P=16-I,A=2*P*Math.PI,V=m.useMemo(()=>k?S?.25:d?E2((d-f)/(p-f),1):0:0,[k,d,f,p,S]),K=A-V*A,F=m.useCallback((G={})=>({ref:y,"data-indeterminate":H(S),"data-disabled":H(e.isDisabled),className:T.base({class:C}),...J(D,g,G)}),[y,T,S,e.isDisabled,C,D,g]),B=m.useCallback((G={})=>({className:T.label({class:a==null?void 0:a.label}),...J(x,G)}),[T,a,x]),O=m.useCallback((G={})=>({viewBox:"0 0 32 32",fill:"none",strokeWidth:I,className:T.svg({class:a==null?void 0:a.svg}),...G}),[I,T,a]),L=m.useCallback((G={})=>({cx:M,cy:M,r:P,role:"presentation",strokeDasharray:`${A} ${A}`,strokeDashoffset:K,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:T.indicator({class:a==null?void 0:a.indicator}),...G}),[T,a,K,A,P]),W=m.useCallback((G={})=>({cx:M,cy:M,r:P,role:"presentation",strokeDasharray:`${A} ${A}`,strokeDashoffset:0,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:T.track({class:a==null?void 0:a.track}),...G}),[T,a,A,P]);return{Component:v,domRef:y,slots:T,classNames:a,label:u,showValueLabel:b,getProgressBarProps:F,getLabelProps:B,getSvgProps:O,getIndicatorProps:L,getTrackProps:W}}var bx=je((e,t)=>{const{Component:n,slots:r,classNames:o,label:i,showValueLabel:l,getProgressBarProps:s,getLabelProps:a,getSvgProps:u,getIndicatorProps:c,getTrackProps:d}=B6({ref:t,...e}),f=s();return $.jsxs(n,{...f,children:[$.jsxs("div",{className:r.svgWrapper({class:o==null?void 0:o.svgWrapper}),children:[$.jsxs("svg",{...u(),children:[$.jsx("circle",{...d()}),$.jsx("circle",{...c()})]}),l&&$.jsx("span",{className:r.value({class:o==null?void 0:o.value}),children:f["aria-valuetext"]})]}),i&&$.jsx("span",{...a(),children:i})]})});bx.displayName="NextUI.CircularProgress";var xx=bx;function L6(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=e,[a,u]=Tl(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=Ml(e,t),d=su({...e,value:a}),{isInvalid:f,validationErrors:p,validationDetails:h}=d.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:g,errorMessageProps:v}=dx({...e,isInvalid:f,errorMessage:e.errorMessage||p}),y=to(e,{labelable:!0});const C={type:l,pattern:e.pattern};return vp(t,a,u),Yp(e,d,t),m.useEffect(()=>{if(t.current instanceof Kt(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:J(y,n==="input"&&C,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:a,onChange:E=>u(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,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,...c,...w}),descriptionProps:g,errorMessageProps:v,isInvalid:f,validationErrors:p,validationDetails:h}}function wx(e){var t,n,r;const[o,i]=ai(e,Jm.variantKeys),{ref:l,as:s,type:a,label:u,baseRef:c,wrapperRef:d,description:f,className:p,classNames:h,autoFocus:b,startContent:w,endContent:g,onClear:v,onChange:y,validationState:C,innerWrapperRef:E,onValueChange:S=()=>{},...D}=o,x=m.useCallback(z=>{S(z??"")},[S]),[T,k]=m.useState(!1),M=s||"div",I=Oe(l),P=Oe(c),A=Oe(d),V=Oe(E),[K,F]=Tl(o.value,(t=o.defaultValue)!=null?t:"",x),B=["date","time","month","week","range"].includes(a),O=!D2(K)||B,L=O||T,W=ae(h==null?void 0:h.base,p,O?"is-filled":""),G=e.isMultiline,ee=m.useCallback(()=>{var z;F(""),v==null||v(),(z=I.current)==null||z.focus()},[F,v]),{labelProps:Q,inputProps:fe,isInvalid:ne,validationErrors:ke,validationDetails:Je,descriptionProps:Qt,errorMessageProps:Xt}=L6({...e,validationBehavior:"native",autoCapitalize:e.autoCapitalize,value:(r=(n=I==null?void 0:I.current)==null?void 0:n.value)!=null?r:K,"aria-label":ap(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:G?"textarea":"input",onChange:F},I),{isFocusVisible:xe,isFocused:He,focusProps:Nt}=cn({autoFocus:b,isTextInput:!0}),{isHovered:pe,hoverProps:Ze}=no({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:$n,isFocusVisible:dn}=cn(),{focusWithinProps:fn}=eu({onFocusWithinChange:k}),{pressProps:Be}=un({isDisabled:!!(e!=null&&e.isDisabled),onPress:ee}),Ft=C==="invalid"||e.isInvalid||ne,Ve=m.useMemo(()=>{var z;return(!e.labelPlacement||e.labelPlacement==="inside")&&!u?"outside":(z=e.labelPlacement)!=null?z:"inside"},[e.labelPlacement,u]),En=typeof o.errorMessage=="function"?o.errorMessage({isInvalid:Ft,validationErrors:ke,validationDetails:Je}):o.errorMessage||(ke==null?void 0:ke.join(" ")),Pn=!!v||e.isClearable,Ct=!!u||!!f||!!En,ut=!!o.placeholder,Pr=!!u,pn=!!f||!!En,Ge=Ve==="outside"||Ve==="outside-left",hn=Ve==="inside",kr=I.current?(!I.current.value||I.current.value===""||!K||K==="")&&ut:!1,jl=Ve==="outside-left",Bt=!!w,xu=Ge?Ve==="outside-left"||ut||Ve==="outside"&&Bt:!1,_l=Ve==="outside"&&!ut&&!Bt,Ce=m.useMemo(()=>Jm({...i,isInvalid:Ft,labelPlacement:Ve,isClearable:Pn}),[li(i),Ft,Ve,Pn,Bt]),Vl=m.useCallback((z={})=>({ref:P,className:Ce.base({class:W}),"data-slot":"base","data-filled":H(O||ut||Bt||kr),"data-filled-within":H(L||ut||Bt||kr),"data-focus-within":H(T),"data-focus-visible":H(xe),"data-readonly":H(e.isReadOnly),"data-focus":H(He),"data-hover":H(pe),"data-required":H(e.isRequired),"data-invalid":H(Ft),"data-disabled":H(e.isDisabled),"data-has-elements":H(Ct),"data-has-helper":H(pn),"data-has-label":H(Pr),"data-has-value":H(!kr),...fn,...z}),[Ce,W,O,He,pe,Ft,pn,Pr,Ct,kr,Bt,T,xe,L,ut,fn,e.isReadOnly,e.isRequired,e.isDisabled]),hi=m.useCallback((z={})=>({"data-slot":"label",className:Ce.label({class:h==null?void 0:h.label}),...Q,...z}),[Ce,Q,h==null?void 0:h.label]),wu=m.useCallback((z={})=>({ref:I,"data-slot":"input","data-filled":H(O),"data-filled-within":H(L),"data-has-start-content":H(Bt),"data-has-end-content":H(!!g),className:Ce.input({class:ae(h==null?void 0:h.input,O?"is-filled":"")}),...J(Nt,fe,ht(D,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(fe))}),z),required:e.isRequired,"aria-readonly":H(e.isReadOnly),"aria-required":H(e.isRequired),onChange:wr(fe.onChange,y)}),[Ce,K,Nt,fe,D,O,L,Bt,g,h==null?void 0:h.input,e.isReadOnly,e.isRequired,y]),Kl=m.useCallback((z={})=>({ref:A,"data-slot":"input-wrapper","data-hover":H(pe),"data-focus-visible":H(xe),"data-focus":H(He),className:Ce.inputWrapper({class:ae(h==null?void 0:h.inputWrapper,O?"is-filled":"")}),...J(z,Ze),onClick:q=>{I.current&&q.currentTarget===q.target&&I.current.focus()},style:{cursor:"text",...z.style}}),[Ce,pe,xe,He,K,h==null?void 0:h.inputWrapper]),Su=m.useCallback((z={})=>({...z,ref:V,"data-slot":"inner-wrapper",onClick:q=>{I.current&&q.currentTarget===q.target&&I.current.focus()},className:Ce.innerWrapper({class:ae(h==null?void 0:h.innerWrapper,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.innerWrapper]),Ul=m.useCallback((z={})=>({...z,"data-slot":"main-wrapper",className:Ce.mainWrapper({class:ae(h==null?void 0:h.mainWrapper,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.mainWrapper]),Cu=m.useCallback((z={})=>({...z,"data-slot":"helper-wrapper",className:Ce.helperWrapper({class:ae(h==null?void 0:h.helperWrapper,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.helperWrapper]),R=m.useCallback((z={})=>({...z,...Qt,"data-slot":"description",className:Ce.description({class:ae(h==null?void 0:h.description,z==null?void 0:z.className)})}),[Ce,h==null?void 0:h.description]),N=m.useCallback((z={})=>({...z,...Xt,"data-slot":"error-message",className:Ce.errorMessage({class:ae(h==null?void 0:h.errorMessage,z==null?void 0:z.className)})}),[Ce,Xt,h==null?void 0:h.errorMessage]),j=m.useCallback((z={})=>({...z,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":H(dn),className:Ce.clearButton({class:ae(h==null?void 0:h.clearButton,z==null?void 0:z.className)}),...J(Be,$n)}),[Ce,dn,Be,$n,h==null?void 0:h.clearButton]);return{Component:M,classNames:h,domRef:I,label:u,description:f,startContent:w,endContent:g,labelPlacement:Ve,isClearable:Pn,hasHelper:pn,hasStartContent:Bt,isLabelOutside:xu,isOutsideLeft:jl,isLabelOutsideAsPlaceholder:_l,shouldLabelBeOutside:Ge,shouldLabelBeInside:hn,hasPlaceholder:ut,isInvalid:Ft,errorMessage:En,getBaseProps:Vl,getLabelProps:hi,getInputProps:wu,getMainWrapperProps:Ul,getInputWrapperProps:Kl,getInnerWrapperProps:Su,getHelperWrapperProps:Cu,getDescriptionProps:R,getErrorMessageProps:N,getClearButtonProps:j}}var Sx=je((e,t)=>{const{Component:n,label:r,description:o,isClearable:i,startContent:l,endContent:s,labelPlacement:a,hasHelper:u,isOutsideLeft:c,shouldLabelBeOutside:d,errorMessage:f,isInvalid:p,getBaseProps:h,getLabelProps:b,getInputProps:w,getInnerWrapperProps:g,getInputWrapperProps:v,getMainWrapperProps:y,getHelperWrapperProps:C,getDescriptionProps:E,getErrorMessageProps:S,getClearButtonProps:D}=wx({...e,ref:t}),x=r?$.jsx("label",{...b(),children:r}):null,T=m.useMemo(()=>i?$.jsx("span",{...D(),children:s||$.jsx(C$,{})}):s,[i,D]),k=m.useMemo(()=>u?$.jsx("div",{...C(),children:p&&f?$.jsx("div",{...S(),children:f}):o?$.jsx("div",{...E(),children:o}):null}):null,[u,p,f,o,C,S,E]),M=m.useMemo(()=>l||T?$.jsxs("div",{...g(),children:[l,$.jsx("input",{...w()}),T]}):$.jsx("div",{...g(),children:$.jsx("input",{...w()})}),[l,T,w,g]),I=m.useMemo(()=>d?$.jsxs("div",{...y(),children:[$.jsxs("div",{...v(),children:[c?null:x,M]}),k]}):$.jsxs($.Fragment,{children:[$.jsxs("div",{...v(),children:[x,M]}),k]}),[a,k,d,x,M,f,o,y,v,S,E]);return $.jsxs(n,{...h(),children:[c?x:null,I]})});Sx.displayName="NextUI.Input";var Zd=Sx;function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}var O6=m.useLayoutEffect,j6=function(t){var n=m.useRef(t);return O6(function(){n.current=t}),n},Fg=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},_6=function(t,n){var r=m.useRef();return m.useCallback(function(o){t.current=o,r.current&&Fg(r.current,null),r.current=n,n&&Fg(n,o)},[n])},Bg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},V6=function(t){Object.keys(Bg).forEach(function(n){t.style.setProperty(n,Bg[n],"important")})},Lg=V6,ct=null,zg=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function K6(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),ct||(ct=document.createElement("textarea"),ct.setAttribute("tabindex","-1"),ct.setAttribute("aria-hidden","true"),Lg(ct)),ct.parentNode===null&&document.body.appendChild(ct);var o=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(f){var p=f;ct.style[p]=l[p]}),Lg(ct),ct.value=t;var a=zg(ct,e);ct.value=t,a=zg(ct,e),ct.value="x";var u=ct.scrollHeight-o,c=u*n;s==="border-box"&&(c=c+o+i),a=Math.max(c,a);var d=u*r;return s==="border-box"&&(d=d+o+i),a=Math.min(d,a),[a,u]}var Og=function(){},U6=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},W6=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],H6=!!document.documentElement.currentStyle,G6=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=U6(W6,n),o=r.boxSizing;if(o==="")return null;H6&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:l}},q6=G6;function Cx(e,t,n){var r=j6(n);m.useLayoutEffect(function(){var o=function(l){return r.current(l)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var Y6=function(t){Cx(window,"resize",t)},Q6=function(t){Cx(document.fonts,"loadingdone",t)},X6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],J6=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,l=t.onChange,s=l===void 0?Og:l,a=t.onHeightChange,u=a===void 0?Og:a,c=z6(t,X6),d=c.value!==void 0,f=m.useRef(null),p=_6(f,n),h=m.useRef(0),b=m.useRef(),w=function(){var y=f.current,C=r&&b.current?b.current:q6(y);if(C){b.current=C;var E=K6(C,y.value||y.placeholder||"x",i,o),S=E[0],D=E[1];h.current!==S&&(h.current=S,y.style.setProperty("height",S+"px","important"),u(S,{rowHeight:D}))}},g=function(y){d||w(),s(y)};return m.useLayoutEffect(w),Y6(w),Q6(w),m.createElement("textarea",ef({},c,{onChange:g,ref:p}))},Z6=m.forwardRef(J6),$x=je(({style:e,minRows:t=3,maxRows:n=8,cacheMeasurements:r=!1,disableAutosize:o=!1,onHeightChange:i,...l},s)=>{const{Component:a,label:u,description:c,startContent:d,endContent:f,hasHelper:p,shouldLabelBeOutside:h,shouldLabelBeInside:b,isInvalid:w,errorMessage:g,getBaseProps:v,getLabelProps:y,getInputProps:C,getInnerWrapperProps:E,getInputWrapperProps:S,getHelperWrapperProps:D,getDescriptionProps:x,getErrorMessageProps:T}=wx({...l,ref:s,isMultiline:!0}),[k,M]=m.useState(t>1),[I,P]=m.useState(!1),A=u?$.jsx("label",{...y(),children:u}):null,V=C(),K=(O,L)=>{if(t===1&&M(O>=L.rowHeight*2),n>t){const W=O>=n*L.rowHeight;P(W)}i==null||i(O,L)},F=o?$.jsx("textarea",{...V,style:J(V.style,e??{})}):$.jsx(Z6,{...V,cacheMeasurements:r,"data-hide-scroll":H(!I),maxRows:n,minRows:t,style:J(V.style,e??{}),onHeightChange:K}),B=m.useMemo(()=>d||f?$.jsxs("div",{...E(),children:[d,F,f]}):$.jsx("div",{...E(),children:F}),[d,V,f,E]);return $.jsxs(a,{...v(),children:[h?A:null,$.jsxs("div",{...S(),"data-has-multiple-rows":H(k),children:[b?A:null,B]}),p?$.jsx("div",{...D(),children:w&&g?$.jsx("div",{...T(),children:g}):c?$.jsx("div",{...x(),children:c}):null}):null]})});$x.displayName="NextUI.Textarea";var e7=$x,Ex={};Ex={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Px={};Px={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var kx={};kx={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Dx={};Dx={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Tx={};Tx={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var Mx={};Mx={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var Ax={};Ax={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var Rx={};Rx={ascending:"de subida",ascendingSort:e=>`ordenado por columna ${e.columnName} en orden de subida`,columnSize:e=>`${e.value} píxeles`,descending:"de bajada",descendingSort:e=>`ordenado por columna ${e.columnName} en orden de bajada`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Ix={};Ix={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Nx={};Nx={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Fx={};Fx={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Bx={};Bx={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var Lx={};Lx={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var zx={};zx={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Ox={};Ox={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var jx={};jx={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var _x={};_x={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Vx={};Vx={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Kx={};Kx={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var Ux={};Ux={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Wx={};Wx={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var Hx={};Hx={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var Gx={};Gx={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var qx={};qx={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var Yx={};Yx={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var Qx={};Qx={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var Xx={};Xx={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var Jx={};Jx={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var Zx={};Zx={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var e4={};e4={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var t4={};t4={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var n4={};n4={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var r4={};r4={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var o4={};o4={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var i4={};i4={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var l4={};l4={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var s4={};s4={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var a4={};a4={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var u4={};u4={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var c4={};c4={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var d4={};d4={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var f4={};f4={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var p4={};p4={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var h4={};h4={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var m4={};m4={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var g4={};g4={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var v4={};v4={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var y4={};y4={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var b4={};b4={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var x4={};x4={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var w4={};w4={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var S4={};S4={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var C4={};C4={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var $4={};$4={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var E4={};E4={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var P4={};P4={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var k4={};k4={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var D4={};D4={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var T4={};T4={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var M4={};M4={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var A4={};A4={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var R4={};R4={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var I4={};I4={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var N4={};N4={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var F4={};F4={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var B4={};B4={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var L4={};L4={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var z4={};z4={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};class Ro{copy(){return new Ro(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return this.x===0&&this.y===0}constructor(t=0,n=0){this.x=t,this.y=n}}class Io{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new Ro(this.x,this.y)}get topRight(){return new Ro(this.maxX,this.y)}get bottomLeft(){return new Ro(this.x,this.maxY)}get bottomRight(){return new Ro(this.maxX,this.maxY)}intersects(t){return this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let n of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[n]))return n;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let n=Math.min(this.x,t.x),r=Math.min(this.y,t.y),o=Math.max(this.maxX,t.maxX)-n,i=Math.max(this.maxY,t.maxY)-r;return new Io(n,r,o,i)}intersection(t){if(!this.intersects(t))return new Io(0,0,0,0);let n=Math.max(this.x,t.x),r=Math.max(this.y,t.y);return new Io(n,r,Math.min(this.maxX,t.maxX)-n,Math.min(this.maxY,t.maxY)-r)}copy(){return new Io(this.x,this.y,this.width,this.height)}constructor(t=0,n=0,r=0,o=0){this.x=t,this.y=n,this.width=r,this.height=o}}let vo=typeof window<"u"?window.performance:null,jg=vo&&(vo.now||vo.webkitNow||vo.msNow||vo.mozNow);jg&&jg.bind(vo);const O4=7e3;let xc=null;function j4(e,t="assertive",n=O4){xc||(xc=new t7),xc.announce(e,t,n)}class t7{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=O4){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Qp(e){return e&&e.__esModule?e.default:e}class _4{isCell(t){return t.type==="cell"}isRow(t){return t.type==="row"||t.type==="item"}findPreviousKey(t,n){let r=t!=null?this.collection.getKeyBefore(t):this.collection.getLastKey();for(;r!=null;){let o=this.collection.getItem(r);if(!this.disabledKeys.has(r)&&(!n||n(o)))return r;r=this.collection.getKeyBefore(r)}}findNextKey(t,n){let r=t!=null?this.collection.getKeyAfter(t):this.collection.getFirstKey();for(;r!=null;){let o=this.collection.getItem(r);if(!this.disabledKeys.has(r)&&(!n||n(o)))return r;r=this.collection.getKeyAfter(r)}}getKeyBelow(t){let n=this.collection.getItem(t);if(n&&(this.isCell(n)&&(t=n.parentKey),t=this.findNextKey(t),t!=null)){if(this.isCell(n)){let r=this.collection.getItem(t);return er(Ke(r,this.collection),n.index).key}if(this.focusMode==="row")return t}}getKeyAbove(t){let n=this.collection.getItem(t);if(n&&(this.isCell(n)&&(t=n.parentKey),t=this.findPreviousKey(t),t!=null)){if(this.isCell(n)){let r=this.collection.getItem(t);return er(Ke(r,this.collection),n.index).key}if(this.focusMode==="row")return t}}getKeyRightOf(t){let n=this.collection.getItem(t);if(n){if(this.isRow(n)){let r=Ke(n,this.collection);return this.direction==="rtl"?lr(r).key:Mn(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),o=Ke(r,this.collection),i=this.direction==="rtl"?er(o,n.index-1):er(o,n.index+1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getFirstKey(t):this.getLastKey(t)}}}getKeyLeftOf(t){let n=this.collection.getItem(t);if(n){if(this.isRow(n)){let r=Ke(n,this.collection);return this.direction==="rtl"?Mn(r).key:lr(r).key}if(this.isCell(n)){let r=this.collection.getItem(n.parentKey),o=Ke(r,this.collection),i=this.direction==="rtl"?er(o,n.index+1):er(o,n.index-1);return i?i.key:this.focusMode==="row"?n.parentKey:this.direction==="rtl"?this.getLastKey(t):this.getFirstKey(t)}}}getFirstKey(t,n){let r;if(t!=null){if(r=this.collection.getItem(t),!r)return;if(this.isCell(r)&&!n){let o=this.collection.getItem(r.parentKey);return Mn(Ke(o,this.collection)).key}}if(t=this.findNextKey(),t!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let o=this.collection.getItem(t);t=Mn(Ke(o,this.collection)).key}return t}getLastKey(t,n){let r;if(t!=null){if(r=this.collection.getItem(t),!r)return;if(this.isCell(r)&&!n){let o=this.collection.getItem(r.parentKey),i=Ke(o,this.collection);return lr(i).key}}if(t=this.findPreviousKey(),t!=null&&r&&this.isCell(r)&&n||this.focusMode==="cell"){let o=this.collection.getItem(t),i=Ke(o,this.collection);t=lr(i).key}return t}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getItemRect(t){var n;if(this.layout)return(n=this.layout.getLayoutInfo(t))===null||n===void 0?void 0:n.rect;let r=this.getItem(t);if(r)return new Io(r.offsetLeft,r.offsetTop,r.offsetWidth,r.offsetHeight)}getPageHeight(){var t,n,r;return this.layout?(t=this.layout.virtualizer)===null||t===void 0?void 0:t.visibleRect.height:(r=this.ref)===null||r===void 0||(n=r.current)===null||n===void 0?void 0:n.offsetHeight}getContentHeight(){var t,n;return this.layout?this.layout.getContentSize().height:(n=this.ref)===null||n===void 0||(t=n.current)===null||t===void 0?void 0:t.scrollHeight}getKeyPageAbove(t){let n=this.getItemRect(t);if(!n)return null;let r=Math.max(0,n.maxY-this.getPageHeight());for(;n&&n.y>r;)t=this.getKeyAbove(t),n=this.getItemRect(t);return t}getKeyPageBelow(t){let n=this.getItemRect(t);if(!n)return null;let r=this.getPageHeight(),o=Math.min(this.getContentHeight(),n.y+r);for(;n&&n.maxY{var s,a,u,c;return(c=(s=(a=t.collection).getTextValue)===null||s===void 0?void 0:s.call(a,l))!==null&&c!==void 0?c:(u=t.collection.getItem(l))===null||u===void 0?void 0:u.textValue}}=e,r=si(Qp(au),"@react-aria/grid"),o=t.selectionManager.rawSelection,i=m.useRef(o);ub(()=>{var l;if(!t.selectionManager.isFocused){i.current=o;return}let s=_g(o,i.current),a=_g(i.current,o),u=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&u){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let d=n(t.selectionManager.selectedKeys.keys().next().value);d&&c.push(r.format("selectedItem",{item:d}))}}else if(s.size===1&&a.size===0){let d=n(s.keys().next().value);d&&c.push(r.format("selectedItem",{item:d}))}else if(a.size===1&&s.size===0&&t.collection.getItem(a.keys().next().value)){let d=n(a.keys().next().value);d&&c.push(r.format("deselectedItem",{item:d}))}t.selectionManager.selectionMode==="multiple"&&(c.length===0||o==="all"||o.size>1||i.current==="all"||((l=i.current)===null||l===void 0?void 0:l.size)>1)&&c.push(o==="all"?r.format("selectedAll"):r.format("selectedCount",{count:o.size})),c.length>0&&j4(c.join(" ")),i.current=o},[o])}function _g(e,t){let n=new Set;if(e==="all"||t==="all")return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function r7(e){let t=si(Qp(au),"@react-aria/grid"),n=a5(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window<"u"&&"ontouchstart"in window,o=m.useMemo(()=>{let l=e.selectionManager.selectionMode,s=e.selectionManager.selectionBehavior,a;return r&&(a=t.format("longPressToSelect")),s==="replace"&&l!=="none"&&e.hasItemActions?a:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return Ja(o)}function o7(e,t,n){let{isVirtualized:r,keyboardDelegate:o,focusMode:i,scrollRef:l,getRowText:s,onRowAction:a,onCellAction:u}=e,{selectionManager:c}=t;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let d=vb({usage:"search",sensitivity:"base"}),{direction:f}=Kn(),p=t.selectionManager.disabledBehavior,h=m.useMemo(()=>o||new _4({collection:t.collection,disabledKeys:p==="selection"?new Set:t.disabledKeys,ref:n,direction:f,collator:d,focusMode:i}),[o,t.collection,t.disabledKeys,p,n,f,d,i]),{collectionProps:b}=S$({ref:n,selectionManager:c,keyboardDelegate:h,isVirtualized:r,scrollRef:l}),w=xr(e.id);Xp.set(t,{keyboardDelegate:h,actions:{onRowAction:a,onCellAction:u}});let g=r7({selectionManager:c,hasItemActions:!!(a||u)}),v=to(e,{labelable:!0}),y=m.useCallback(D=>{if(c.isFocused){D.currentTarget.contains(D.target)||c.setFocused(!1);return}D.currentTarget.contains(D.target)&&c.setFocused(!0)},[c]),C=m.useMemo(()=>({onBlur:b.onBlur,onFocus:y}),[y,b.onBlur]),E=S5(n,{isDisabled:t.collection.size!==0}),S=J(v,{role:"grid",id:w,"aria-multiselectable":c.selectionMode==="multiple"?"true":void 0},t.isKeyboardNavigationDisabled?C:b,t.collection.size===0&&{tabIndex:E?-1:0},g);return r&&(S["aria-rowcount"]=t.collection.size,S["aria-colcount"]=t.collection.columnCount),n7({getRowText:s},t),{gridProps:S}}function i7(){return{rowGroupProps:{role:"rowgroup"}}}function l7(e,t,n){let{node:r,isVirtualized:o,shouldSelectOnPressUp:i,onAction:l}=e,{actions:{onRowAction:s}}=Xp.get(t),{itemProps:a,...u}=jb({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,shouldSelectOnPressUp:i,onAction:s?()=>s(r.key):l,isDisabled:t.collection.size===0}),c=t.selectionManager.isSelected(r.key),d={role:"row","aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0,"aria-disabled":u.isDisabled||void 0,...a};return o&&(d["aria-rowindex"]=r.index+1),{rowProps:d,...u}}function V4(e,t,n){let{node:r,isVirtualized:o,focusMode:i="child",shouldSelectOnPressUp:l,onAction:s}=e,{direction:a}=Kn(),{keyboardDelegate:u,actions:{onCellAction:c}}=Xp.get(t),d=m.useRef(null),f=()=>{let y=gl(n.current);if(i==="child"){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let C=t.selectionManager.childFocusStrategy==="last"?wc(y):y.firstChild();if(C){Lt(C);return}}(d.current!=null&&r.key!==d.current||!n.current.contains(document.activeElement))&&Lt(n.current)},{itemProps:p,isPressed:h}=jb({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,focus:f,shouldSelectOnPressUp:l,onAction:c?()=>c(r.key):s,isDisabled:t.collection.size===0}),g=J(p,{role:"gridcell",onKeyDownCapture:y=>{if(!y.currentTarget.contains(y.target)||t.isKeyboardNavigationDisabled)return;let C=gl(n.current);switch(C.currentNode=document.activeElement,y.key){case"ArrowLeft":{let E=a==="rtl"?C.nextNode():C.previousNode();if(i==="child"&&E===n.current&&(E=null),E)y.preventDefault(),y.stopPropagation(),Lt(E),Zn(E,{containingElement:Jn(n.current)});else{if(u.getKeyLeftOf(r.key)!==r.key)break;y.preventDefault(),y.stopPropagation(),i==="cell"&&a==="rtl"?(Lt(n.current),Zn(n.current,{containingElement:Jn(n.current)})):(C.currentNode=n.current,E=a==="rtl"?C.firstChild():wc(C),E&&(Lt(E),Zn(E,{containingElement:Jn(n.current)})))}break}case"ArrowRight":{let E=a==="rtl"?C.previousNode():C.nextNode();if(i==="child"&&E===n.current&&(E=null),E)y.preventDefault(),y.stopPropagation(),Lt(E),Zn(E,{containingElement:Jn(n.current)});else{if(u.getKeyRightOf(r.key)!==r.key)break;y.preventDefault(),y.stopPropagation(),i==="cell"&&a==="ltr"?(Lt(n.current),Zn(n.current,{containingElement:Jn(n.current)})):(C.currentNode=n.current,E=a==="rtl"?wc(C):C.firstChild(),E&&(Lt(E),Zn(E,{containingElement:Jn(n.current)})))}break}case"ArrowUp":case"ArrowDown":!y.altKey&&n.current.contains(y.target)&&(y.stopPropagation(),y.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(y.nativeEvent.type,y.nativeEvent)));break}},onFocus:y=>{if(d.current=r.key,y.target!==n.current){bp()||t.selectionManager.setFocusedKey(r.key);return}requestAnimationFrame(()=>{i==="child"&&document.activeElement===n.current&&f()})}});var v;return o&&(g["aria-colindex"]=((v=r.colIndex)!==null&&v!==void 0?v:r.index)+1),l&&g.tabIndex!=null&&g.onPointerDown==null&&(g.onPointerDown=y=>{let C=y.currentTarget,E=C.getAttribute("tabindex");C.removeAttribute("tabindex"),requestAnimationFrame(()=>{C.setAttribute("tabindex",E)})}),{gridCellProps:g,isPressed:h}}function wc(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}function s7(e,t){let{key:n}=e,r=t.selectionManager,o=xr(),i=!t.selectionManager.canSelectItem(n),l=t.selectionManager.isSelected(n),s=()=>r.select(n);const a=si(Qp(au),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":a.format("select"),isSelected:l,isDisabled:i,onChange:s}}}let a7=!1;function ka(){return a7}function Jp(e){return e&&e.__esModule?e.default:e}const Zp=new WeakMap;function tf(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function u7(e,t){let n=Zp.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${tf(t)}`}function K4(e,t,n){let r=Zp.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${tf(t)}-${tf(n)}`}function U4(e,t){return[...e.collection.rowHeaderColumnKeys].map(n=>K4(e,t,n)).join(" ")}var uu={};uu={"ar-AE":Ex,"bg-BG":Px,"cs-CZ":kx,"da-DK":Dx,"de-DE":Tx,"el-GR":Mx,"en-US":Ax,"es-ES":Rx,"et-EE":Ix,"fi-FI":Nx,"fr-FR":Fx,"he-IL":Bx,"hr-HR":Lx,"hu-HU":zx,"it-IT":Ox,"ja-JP":jx,"ko-KR":_x,"lt-LT":Vx,"lv-LV":Kx,"nb-NO":Ux,"nl-NL":Wx,"pl-PL":Hx,"pt-BR":Gx,"pt-PT":qx,"ro-RO":Yx,"ru-RU":Qx,"sk-SK":Xx,"sl-SI":Jx,"sr-SP":Zx,"sv-SE":e4,"tr-TR":t4,"uk-UA":n4,"zh-CN":r4,"zh-TW":o4};class c7 extends _4{isCell(t){return t.type==="cell"||t.type==="rowheader"||t.type==="column"}getKeyBelow(t){let n=this.collection.getItem(t);if(n){if(n.type==="column"){let r=Mn(Ke(n,this.collection));if(r)return r.key;let o=this.getFirstKey();if(o==null)return;let i=this.collection.getItem(o);return er(Ke(i,this.collection),n.index).key}return super.getKeyBelow(t)}}getKeyAbove(t){let n=this.collection.getItem(t);if(!n)return;if(n.type==="column"){let o=this.collection.getItem(n.parentKey);return o&&o.type==="column"?o.key:void 0}let r=super.getKeyAbove(t);return r!=null&&this.collection.getItem(r).type!=="headerrow"?r:this.isCell(n)?this.collection.columns[n.index].key:this.collection.columns[0].key}findNextColumnKey(t){let n=this.findNextKey(t.key,o=>o.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level];for(let o of Ke(r,this.collection))if(o.type==="column")return o.key}findPreviousColumnKey(t){let n=this.findPreviousKey(t.key,i=>i.type==="column");if(n!=null)return n;let r=this.collection.headerRows[t.level],o=[...Ke(r,this.collection)];for(let i=o.length-1;i>=0;i--){let l=o[i];if(l.type==="column")return l.key}}getKeyRightOf(t){let n=this.collection.getItem(t);if(n)return n.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(n):this.findNextColumnKey(n):super.getKeyRightOf(t)}getKeyLeftOf(t){let n=this.collection.getItem(t);if(n)return n.type==="column"?this.direction==="rtl"?this.findNextColumnKey(n):this.findPreviousColumnKey(n):super.getKeyLeftOf(t)}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,o=n??this.getFirstKey();if(o==null)return null;let i=r.getItem(o);i.type==="cell"&&(o=i.parentKey);let l=!1;for(;o!=null;){let s=r.getItem(o);for(let a of Ke(s,this.collection)){let u=r.columns[a.index];if(r.rowHeaderColumnKeys.has(u.key)&&a.textValue){let c=a.textValue.slice(0,t.length);if(this.collator.compare(c,t)===0)return(n!=null?r.getItem(n):i).type==="cell"?a.key:s.key}}o=this.getKeyBelow(o),o==null&&!l&&(o=this.getFirstKey(),l=!0)}return null}}function d7(e,t,n){let{keyboardDelegate:r,isVirtualized:o,layout:i}=e,l=vb({usage:"search",sensitivity:"base"}),{direction:s}=Kn(),a=t.selectionManager.disabledBehavior,u=m.useMemo(()=>r||new c7({collection:t.collection,disabledKeys:a==="selection"?new Set:t.disabledKeys,ref:n,direction:s,collator:l,layout:i}),[r,t.collection,t.disabledKeys,a,n,s,l,i]),c=xr(e.id);Zp.set(t,c);let{gridProps:d}=o7({...e,id:c,keyboardDelegate:u},t,n);o&&(d["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),ka()&&"expandedKeys"in t&&(d.role="treegrid");let{column:f,direction:p}=t.sortDescriptor||{},h=si(Jp(uu),"@react-aria/table"),b=m.useMemo(()=>{var g;let v=(g=t.collection.columns.find(y=>y.key===f))===null||g===void 0?void 0:g.textValue;return p&&f?h.format(`${p}Sort`,{columnName:v}):void 0},[p,f,t.collection.columns]),w=Ja(b);return ub(()=>{j4(b,"assertive",500)},[b]),{gridProps:J(d,w,{"aria-describedby":[w["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")})}}function W4(e,t,n){var r,o;let{node:i}=e,l=i.props.allowsSorting,{gridCellProps:s}=V4({...e,focusMode:"child"},t,n),a=i.props.isSelectionCell&&t.selectionManager.selectionMode==="single",{pressProps:u}=un({isDisabled:!l||a,onPress(){t.sort(i.key)},ref:n}),{focusableProps:c}=Ml({},n),d=null,f=((r=t.sortDescriptor)===null||r===void 0?void 0:r.column)===i.key,p=(o=t.sortDescriptor)===null||o===void 0?void 0:o.direction;i.props.allowsSorting&&!ha()&&(d=f?p:"none");let h=si(Jp(uu),"@react-aria/table"),b;l&&(b=`${h.format("sortable")}`,f&&p&&ha()&&(b=`${b}, ${h.format(p)}`));let w=Ja(b),g=t.collection.size===0;return m.useEffect(()=>{g&&t.selectionManager.focusedKey===i.key&&t.selectionManager.setFocusedKey(null)},[g,t.selectionManager,i.key]),{columnHeaderProps:{...J(s,u,c,w,g&&{tabIndex:-1}),role:"columnheader",id:u7(t,i.key),"aria-colspan":i.colspan&&i.colspan>1?i.colspan:null,"aria-sort":d}}}const Vg={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function f7(e,t,n){let{node:r,isVirtualized:o}=e,{rowProps:i,...l}=l7(e,t,n),{direction:s}=Kn();o&&!(ka()&&"expandedKeys"in t)?i["aria-rowindex"]=r.index+1+t.collection.headerRows.length:delete i["aria-rowindex"];let a={};if(ka()&&"expandedKeys"in t){let p=t.keyMap.get(r.key);if(p!=null){var u,c,d;let h=((u=p.props)===null||u===void 0?void 0:u.UNSTABLE_childItems)||((d=p.props)===null||d===void 0||(c=d.children)===null||c===void 0?void 0:c.length)>t.userColumnCount;a={onKeyDown:b=>{(b.key===Vg.expand[s]&&t.selectionManager.focusedKey===p.key&&h&&t.expandedKeys!=="all"&&!t.expandedKeys.has(p.key)||b.key===Vg.collapse[s]&&t.selectionManager.focusedKey===p.key&&h&&(t.expandedKeys==="all"||t.expandedKeys.has(p.key)))&&(t.toggleKey(p.key),b.stopPropagation())},"aria-expanded":h?t.expandedKeys==="all"||t.expandedKeys.has(r.key):void 0,"aria-level":p.level,"aria-posinset":p.indexOfType+1,"aria-setsize":p.level>1?lr(t.keyMap.get(p==null?void 0:p.parentKey).childNodes).indexOfType+1:lr(t.keyMap.get(t.collection.body.key).childNodes).indexOfType+1}}}let f=l.hasAction?NC(r.props):{};return{rowProps:{...J(i,a,f),"aria-labelledby":U4(t,r.key)},...l}}function p7(e,t,n){let{node:r,isVirtualized:o}=e,i={role:"row"};return o&&!(ka()&&"expandedKeys"in t)&&(i["aria-rowindex"]=r.index+1),{rowProps:i}}function H4(e,t,n){let{gridCellProps:r,isPressed:o}=V4(e,t,n),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=K4(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:o}}function h7(e,t){let{key:n}=e;const{checkboxProps:r}=s7(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${U4(t,n)}`}}}function m7(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":si(Jp(uu),"@react-aria/table").format(r==="single"?"select":"selectAll"),isSelected:n,isDisabled:r!=="multiple"||e.collection.size===0,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function G4(){return i7()}var q4=je((e,t)=>{var n,r;const{as:o,className:i,node:l,slots:s,state:a,selectionMode:u,color:c,checkboxesProps:d,disableAnimation:f,classNames:p,...h}=e,b=o||"th",w=typeof b=="string",g=Oe(t),{columnHeaderProps:v}=W4({node:l},a,g),{isFocusVisible:y,focusProps:C}=cn(),{checkboxProps:E}=m7(a),S=ae(p==null?void 0:p.th,i,(n=l.props)==null?void 0:n.className),D=u==="single",{onChange:x,...T}=E;return $.jsx(b,{ref:g,"data-focus-visible":H(y),...J(v,C,ht(l.props,{enabled:w}),ht(h,{enabled:w})),className:(r=s.th)==null?void 0:r.call(s,{class:S}),children:D?$.jsx(Al,{children:E["aria-label"]}):$.jsx(mx,{color:c,disableAnimation:f,onValueChange:x,...J(d,T)})})});q4.displayName="NextUI.TableSelectAllCheckbox";var g7=q4;function v7(e){let{collection:t,focusMode:n}=e,r=t6(e),o=m.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=r.setFocusedKey;r.setFocusedKey=(a,u)=>{if(n==="cell"&&a!=null){let f=t.getItem(a);if((f==null?void 0:f.type)==="item"){var c,d;let p=Ke(f,t);u==="last"?a=(c=lr(p))===null||c===void 0?void 0:c.key:a=(d=Mn(p))===null||d===void 0?void 0:d.key}}i(a,u)};let l=m.useMemo(()=>new n6(t,r),[t,r]);const s=m.useRef(null);return m.useEffect(()=>{if(r.focusedKey!=null&&!t.getItem(r.focusedKey)){const a=s.current.getItem(r.focusedKey),u=a.parentKey!=null&&(a.type==="cell"||a.type==="rowheader"||a.type==="column")?s.current.getItem(a.parentKey):a,c=s.current.rows,d=t.rows,f=c.length-d.length;let p=Math.min(f>1?Math.max(u.index-f+1,0):u.index,d.length-1),h;for(;p>=0;){if(!l.isDisabled(d[p].key)&&d[p].type!=="headerrow"){h=d[p];break}pu.index&&(p=u.index),p--)}if(h){const b=h.hasChildNodes?[...Ke(h,t)]:[],w=h.hasChildNodes&&u!==a&&a.index{let l=this.keyMap.get(i.key);t.visitNode&&(i=t.visitNode(i)),this.keyMap.set(i.key,i);let s=new Set,a;for(let u of i.childNodes)u.type==="cell"&&u.parentKey==null&&(u.parentKey=i.key),s.add(u.key),a?(a.nextKey=u.key,u.prevKey=a.key):u.prevKey=null,n(u),a=u;if(a&&(a.nextKey=null),l)for(let u of l.childNodes)s.has(u.key)||r(u)},r=i=>{this.keyMap.delete(i.key);for(let l of i.childNodes)this.keyMap.get(l.key)===l&&r(l)},o;t.items.forEach((i,l)=>{let s={level:0,key:"row-"+l,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...i.childNodes],rendered:void 0,textValue:void 0,...i};o?(o.nextKey=s.key,s.prevKey=o.key):s.prevKey=null,this.rows.push(s),n(s),o=s}),o&&(o.nextKey=null)}}const Y4="row-header-column-"+Math.random().toString(36).slice(2);let nf="row-header-column-"+Math.random().toString(36).slice(2);for(;Y4===nf;)nf="row-header-column-"+Math.random().toString(36).slice(2);function b7(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let a of t){let u=a.parentKey,c=[a];for(;u;){let d=e.get(u);if(!d)break;if(r.has(d)){d.colspan++;let{column:f,index:p}=r.get(d);if(p>c.length)break;for(let h=p;ha.length)),i=Array(o).fill(0).map(()=>[]),l=0;for(let a of n){let u=o-1;for(let c of a){if(c){let d=i[u],f=d.reduce((p,h)=>p+h.colspan,0);if(f0&&(d[d.length-1].nextKey=p.key,p.prevKey=d[d.length-1].key),d.push(p)}d.length>0&&(d[d.length-1].nextKey=c.key,c.prevKey=d[d.length-1].key),c.level=u,c.colIndex=l,d.push(c)}u--}l++}let s=0;for(let a of i){let u=a.reduce((c,d)=>c+d.colspan,0);if(u({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:a,textValue:null}))}class x7 extends y7{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){var t;return(t=Mn(this.body.childNodes))===null||t===void 0?void 0:t.key}getLastKey(){var t;return(t=lr(this.body.childNodes))===null||t===void 0?void 0:t.key}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getTextValue(t){let n=this.getItem(t);if(!n)return"";if(n.textValue)return n.textValue;let r=this.rowHeaderColumnKeys;if(r){let o=[];for(let i of n.childNodes){let l=this.columns[i.index];if(r.has(l.key)&&i.textValue&&o.push(i.textValue),o.length===r.size)break}return o.join(" ")}return""}constructor(t,n,r){let o=new Set,i,l=[];if(r!=null&&r.showSelectionCheckboxes){let d={type:"column",key:Y4,value:null,textValue:"",level:0,index:r!=null&&r.showDragButtons?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};l.unshift(d)}if(r!=null&&r.showDragButtons){let d={type:"column",key:nf,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};l.unshift(d)}let s=[],a=new Map,u=d=>{switch(d.type){case"body":i=d;break;case"column":a.set(d.key,d),d.hasChildNodes||(l.push(d),d.props.isRowHeader&&o.add(d.key));break;case"item":s.push(d);return}for(let f of d.childNodes)u(f)};for(let d of t)u(d);let c=b7(a,l);c.forEach((d,f)=>s.splice(f,0,d)),super({columnCount:l.length,items:s,visitNode:d=>(d.column=l[d.index],d)}),this._size=0,this.columns=l,this.rowHeaderColumnKeys=o,this.body=i,this.headerRows=c,this._size=[...i.childNodes].length,this.rowHeaderColumnKeys.size===0&&this.rowHeaderColumnKeys.add(this.columns.find(d=>{var f,p;return!(!((f=d.props)===null||f===void 0)&&f.isDragButtonCell)&&!(!((p=d.props)===null||p===void 0)&&p.isSelectionCell)}).key)}}const w7={ascending:"descending",descending:"ascending"};function S7(e){let[t,n]=m.useState(!1),{selectionMode:r="none",showSelectionCheckboxes:o,showDragButtons:i}=e,l=m.useMemo(()=>({showSelectionCheckboxes:o&&r!=="none",showDragButtons:i,selectionMode:r,columns:[]}),[e.children,o,r,i]),s=Zk(e,m.useCallback(c=>new x7(c,null,l),[l]),l),{disabledKeys:a,selectionManager:u}=v7({...e,collection:s,disabledBehavior:e.disabledBehavior||"selection"});return{collection:s,disabledKeys:a,selectionManager:u,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,isKeyboardNavigationDisabled:s.size===0||t,setKeyboardNavigationDisabled:n,sort(c,d){var f;e.onSortChange({column:c,direction:d??(((f=e.sortDescriptor)===null||f===void 0?void 0:f.column)===c?w7[e.sortDescriptor.direction]:"ascending")})}}}function Q4(e){return null}Q4.getCollectionNode=function*(t,n){let{children:r,columns:o}=t;if(n.columns=[],typeof r=="function"){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let i of o)yield{type:"column",value:i,renderer:r}}else{let i=[];be.Children.forEach(r,l=>{i.push({type:"column",element:l})}),yield*i}};let C7=Q4;function X4(e){return null}X4.getCollectionNode=function*(t){let{children:n,items:r}=t;yield{type:"body",hasChildNodes:!0,props:t,*childNodes(){if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of r)yield{type:"item",value:o,renderer:n}}else{let o=[];be.Children.forEach(n,i=>{o.push({type:"item",element:i})}),yield*o}}}};let $7=X4;function J4(e){return null}J4.getCollectionNode=function*(t,n){let{title:r,children:o,childColumns:i}=t,l=r||o,s=t.textValue||(typeof l=="string"?l:"")||t["aria-label"],a=yield{type:"column",hasChildNodes:!!i||r&&be.Children.count(o)>0,rendered:l,textValue:s,props:t,*childNodes(){if(i)for(let c of i)yield{type:"column",value:c};else if(r){let c=[];be.Children.forEach(o,d=>{c.push({type:"column",element:d})}),yield*c}},shouldInvalidate(c){return u(c),!1}},u=c=>{for(let d of a)d.hasChildNodes||c.columns.push(d)};u(n)};let E7=J4;function rf(e){return null}rf.getCollectionNode=function*(t,n){let{children:r,textValue:o,UNSTABLE_childItems:i}=t;yield{type:"item",props:t,textValue:o,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(n.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),n.showSelectionCheckboxes&&n.selectionMode!=="none"&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),typeof r=="function"){for(let l of n.columns)yield{type:"cell",element:r(l.key),key:l.key};if(i)for(let l of i)yield{type:"item",value:l}}else{let l=[],s=[];if(be.Children.forEach(r,a=>{if(a.type===rf){if(l.lengths.key!==n.columns[a].key)||l.showSelectionCheckboxes!==n.showSelectionCheckboxes||l.showDragButtons!==n.showDragButtons||l.selectionMode!==n.selectionMode}}};let P7=rf;function Z4(e){return null}Z4.getCollectionNode=function*(t){let{children:n}=t,r=t.textValue||(typeof n=="string"?n:"")||t["aria-label"]||"";yield{type:"cell",props:t,rendered:n,textValue:r,"aria-label":t["aria-label"],hasChildNodes:!1}};let k7=Z4;function D7(e){const[t,n]=ai(e,Xm.variantKeys),{ref:r,as:o,baseRef:i,children:l,className:s,classNames:a,layoutNode:u,removeWrapper:c=!1,disableAnimation:d=!1,selectionMode:f="none",topContentPlacement:p="inside",bottomContentPlacement:h="inside",selectionBehavior:b=f==="none"?null:"toggle",disabledBehavior:w="selection",showSelectionCheckboxes:g=f==="multiple"&&b!=="replace",BaseComponent:v="div",checkboxesProps:y,topContent:C,bottomContent:E,onRowAction:S,onCellAction:D,...x}=t,T=o||"table",k=typeof T=="string",M=Oe(r),I=Oe(i),P=S7({...e,children:l,showSelectionCheckboxes:g}),{collection:A}=P,{gridProps:V}=d7({...e,layout:u},P,M),K=f!=="none",F=f==="multiple",B=m.useMemo(()=>Xm({...n,isSelectable:K,isMultiSelectable:F}),[li(n),K,F]),O=ae(a==null?void 0:a.base,s),L=m.useMemo(()=>{var Q;return{state:P,slots:B,isSelectable:K,collection:A,classNames:a,color:e==null?void 0:e.color,disableAnimation:d,checkboxesProps:y,isHeaderSticky:(Q=e==null?void 0:e.isHeaderSticky)!=null?Q:!1,selectionMode:f,selectionBehavior:b,disabledBehavior:w,showSelectionCheckboxes:g,onRowAction:S,onCellAction:D}},[B,P,A,K,a,f,b,y,w,d,g,e==null?void 0:e.color,e==null?void 0:e.isHeaderSticky,S,D]),W=m.useCallback(Q=>({...Q,ref:I,className:B.base({class:ae(O,Q==null?void 0:Q.className)})}),[O,B]),G=m.useCallback(Q=>({...Q,ref:I,className:B.wrapper({class:ae(a==null?void 0:a.wrapper,Q==null?void 0:Q.className)})}),[a==null?void 0:a.wrapper,B]),ee=m.useCallback(Q=>({...J(V,ht(x,{enabled:k}),Q),ref:M,className:B.table({class:ae(a==null?void 0:a.table,Q==null?void 0:Q.className)})}),[a==null?void 0:a.table,k,B,V,x]);return{BaseComponent:v,Component:T,children:l,state:P,collection:A,values:L,topContent:C,bottomContent:E,removeWrapper:c,topContentPlacement:p,bottomContentPlacement:h,getBaseProps:W,getWrapperProps:G,getTableProps:ee}}var ew=je((e,t)=>{var n,r;const{as:o,className:i,node:l,rowKey:s,slots:a,state:u,classNames:c,...d}=e,f=o||"td",p=typeof f=="string",h=Oe(t),{gridCellProps:b}=H4({node:l},u,h),w=ae(c==null?void 0:c.td,i,(n=l.props)==null?void 0:n.className),{isFocusVisible:g,focusProps:v}=cn(),y=u.selectionManager.isSelected(s),C=m.useMemo(()=>{const E=typeof l.rendered;return E!=="object"&&E!=="function"?$.jsx("span",{children:l.rendered}):l.rendered},[l.rendered]);return $.jsx(f,{ref:h,"data-focus-visible":H(g),"data-selected":H(y),...J(b,v,ht(l.props,{enabled:p}),d),className:(r=a.td)==null?void 0:r.call(a,{class:w}),children:C})});ew.displayName="NextUI.TableCell";var T7=ew,tw=je((e,t)=>{var n,r;const{as:o,className:i,node:l,rowKey:s,slots:a,state:u,color:c,disableAnimation:d,checkboxesProps:f,selectionMode:p,classNames:h,...b}=e,w=o||"td",g=typeof w=="string",v=Oe(t),{gridCellProps:y}=H4({node:l},u,v),{isFocusVisible:C,focusProps:E}=cn(),{checkboxProps:S}=h7({key:(l==null?void 0:l.parentKey)||l.key},u),D=ae(h==null?void 0:h.td,i,(n=l.props)==null?void 0:n.className),x=p==="single",{onChange:T,...k}=S,M=u.selectionManager.isSelected(s);return $.jsx(w,{ref:v,"data-focus-visible":H(C),"data-selected":H(M),...J(y,E,ht(l.props,{enabled:g}),b),className:(r=a.td)==null?void 0:r.call(a,{class:D}),children:x?$.jsx(Al,{children:S["aria-label"]}):$.jsx(mx,{color:c,disableAnimation:d,onValueChange:T,...J(f,k)})})});tw.displayName="NextUI.TableCheckboxCell";var M7=tw,nw=je((e,t)=>{var n,r;const{as:o,className:i,children:l,node:s,slots:a,state:u,isSelectable:c,classNames:d,...f}=e,p=o||(e!=null&&e.href?"a":"tr"),h=typeof p=="string",b=Oe(t),{rowProps:w}=f7({node:s},u,b),g=ae(d==null?void 0:d.tr,i,(n=s.props)==null?void 0:n.className),{isFocusVisible:v,focusProps:y}=cn(),C=u.disabledKeys.has(s.key),E=u.selectionManager.isSelected(s.key),{isHovered:S,hoverProps:D}=no({isDisabled:C}),{isFirst:x,isLast:T,isMiddle:k,isOdd:M}=m.useMemo(()=>{const I=s.key===u.collection.getFirstKey(),P=s.key===u.collection.getLastKey(),A=!I&&!P,V=s!=null&&s.index?(s.index+1)%2===0:!1;return{isFirst:I,isLast:P,isMiddle:A,isOdd:V}},[s,u.collection]);return $.jsx(p,{ref:b,"data-disabled":H(C),"data-first":H(x),"data-focus-visible":H(v),"data-hover":H(S),"data-last":H(T),"data-middle":H(k),"data-odd":H(M),"data-selected":H(E),...J(w,y,c?D:{},ht(s.props,{enabled:h}),f),className:(r=a.tr)==null?void 0:r.call(a,{class:g}),children:l})});nw.displayName="NextUI.TableRow";var A7=nw,rw=je((e,t)=>{var n;const{as:r,className:o,slots:i,state:l,collection:s,isSelectable:a,color:u,disableAnimation:c,checkboxesProps:d,selectionMode:f,classNames:p,...h}=e,b=r||"tbody",w=typeof b=="string",g=Oe(t),{rowGroupProps:v}=G4(),y=ae(p==null?void 0:p.tbody,o),C=s==null?void 0:s.body.props,E=(C==null?void 0:C.isLoading)||(C==null?void 0:C.loadingState)==="loading"||(C==null?void 0:C.loadingState)==="loadingMore",S=m.useMemo(()=>[...s.body.childNodes].map(T=>$.jsx(A7,{classNames:p,isSelectable:a,node:T,slots:i,state:l,children:[...T.childNodes].map(k=>k.props.isSelectionCell?$.jsx(M7,{checkboxesProps:d,classNames:p,color:u,disableAnimation:c,node:k,rowKey:T.key,selectionMode:f,slots:i,state:l},k.key):$.jsx(T7,{classNames:p,node:k,rowKey:T.key,slots:i,state:l},k.key))},T.key)),[s.body.childNodes,p,a,i,l]);let D,x;return s.size===0&&C.emptyContent&&(D=$.jsx("tr",{role:"row",children:$.jsx("td",{className:i==null?void 0:i.emptyWrapper({class:p==null?void 0:p.emptyWrapper}),colSpan:s.columnCount,role:"gridcell",children:!E&&C.emptyContent})})),E&&C.loadingContent&&(x=$.jsxs("tr",{role:"row",children:[$.jsx("td",{className:i==null?void 0:i.loadingWrapper({class:p==null?void 0:p.loadingWrapper}),colSpan:s.columnCount,role:"gridcell",children:C.loadingContent}),!D&&s.size===0?$.jsx("td",{className:i==null?void 0:i.emptyWrapper({class:p==null?void 0:p.emptyWrapper})}):null]})),$.jsxs(b,{ref:g,...J(v,ht(C,{enabled:w}),h),className:(n=i.tbody)==null?void 0:n.call(i,{class:y}),"data-empty":H(s.size===0),"data-loading":H(E),children:[S,x,D]})});rw.displayName="NextUI.TableBody";var R7=rw,ow=je((e,t)=>{var n,r,o,i,l;const{as:s,className:a,state:u,node:c,slots:d,classNames:f,...p}=e,h=s||"th",b=typeof h=="string",w=Oe(t),{columnHeaderProps:g}=W4({node:c},u,w),v=ae(f==null?void 0:f.th,a,(n=c.props)==null?void 0:n.className),{isFocusVisible:y,focusProps:C}=cn(),{isHovered:E,hoverProps:S}=no({}),{hideHeader:D,...x}=c.props,T=x.allowsSorting;return $.jsxs(h,{ref:w,colSpan:c.colspan,"data-focus-visible":H(y),"data-hover":H(E),"data-sortable":H(T),...J(g,C,ht(x,{enabled:b}),T?S:{},p),className:(r=d.th)==null?void 0:r.call(d,{class:v}),children:[D?$.jsx(Al,{children:c.rendered}):c.rendered,T&&$.jsx($$,{"aria-hidden":"true",className:(o=d.sortIcon)==null?void 0:o.call(d,{class:f==null?void 0:f.sortIcon}),"data-direction":(i=u.sortDescriptor)==null?void 0:i.direction,"data-visible":H(((l=u.sortDescriptor)==null?void 0:l.column)===c.key),strokeWidth:3})]})});ow.displayName="NextUI.TableColumnHeader";var I7=ow,iw=je((e,t)=>{var n,r;const{as:o,className:i,children:l,node:s,slots:a,classNames:u,state:c,...d}=e,f=o||"tr",p=typeof f=="string",h=Oe(t),{rowProps:b}=p7({node:s},c),w=ae(u==null?void 0:u.tr,i,(n=s.props)==null?void 0:n.className);return $.jsx(f,{ref:h,...J(b,ht(s.props,{enabled:p}),d),className:(r=a.tr)==null?void 0:r.call(a,{class:w}),children:l})});iw.displayName="NextUI.TableHeaderRow";var N7=iw,lw=je((e,t)=>{var n;const{as:r,className:o,children:i,slots:l,classNames:s,...a}=e,u=r||"thead",c=Oe(t),{rowGroupProps:d}=G4(),f=ae(s==null?void 0:s.thead,o);return $.jsx(u,{ref:c,className:(n=l.thead)==null?void 0:n.call(l,{class:f}),...J(d,a),children:i})});lw.displayName="NextUI.TableRowGroup";var F7=lw,B7={px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Kg=e=>{var t;return(t=B7[e])!=null?t:e};function L7(e){const[t,n]=ai(e,Ym.variantKeys),{as:r,className:o,x:i=1,y:l=1,...s}=t,a=r||"span",u=m.useMemo(()=>Ym({...n,className:o}),[li(n),o]),c=Kg(i),d=Kg(l);return{Component:a,getSpacerProps:(p={})=>({...p,...s,"aria-hidden":H(!0),className:ae(u,p.className),style:{...p.style,...s.style,marginLeft:c,marginTop:d}})}}var sw=je((e,t)=>{const{Component:n,getSpacerProps:r}=L7({...e});return $.jsx(n,{ref:t,...r()})});sw.displayName="NextUI.Spacer";var z7=sw,aw=je((e,t)=>{const{BaseComponent:n,Component:r,collection:o,values:i,topContent:l,topContentPlacement:s,bottomContentPlacement:a,bottomContent:u,removeWrapper:c,getBaseProps:d,getWrapperProps:f,getTableProps:p}=D7({...e,ref:t}),h=m.useCallback(({children:b})=>c?b:$.jsx(n,{...f(),children:b}),[c,f]);return $.jsxs("div",{...d(),children:[s==="outside"&&l,$.jsx(h,{children:$.jsxs($.Fragment,{children:[s==="inside"&&l,$.jsxs(r,{...p(),children:[$.jsxs(F7,{classNames:i.classNames,slots:i.slots,children:[o.headerRows.map(b=>$.jsx(N7,{classNames:i.classNames,node:b,slots:i.slots,state:i.state,children:[...b.childNodes].map(w=>{var g;return(g=w==null?void 0:w.props)!=null&&g.isSelectionCell?$.jsx(g7,{checkboxesProps:i.checkboxesProps,classNames:i.classNames,color:i.color,disableAnimation:i.disableAnimation,node:w,selectionMode:i.selectionMode,slots:i.slots,state:i.state},w==null?void 0:w.key):$.jsx(I7,{classNames:i.classNames,node:w,slots:i.slots,state:i.state},w==null?void 0:w.key)})},b==null?void 0:b.key)),$.jsx(z7,{as:"tr",tabIndex:-1,y:1})]}),$.jsx(R7,{checkboxesProps:i.checkboxesProps,classNames:i.classNames,collection:i.collection,color:i.color,disableAnimation:i.disableAnimation,isSelectable:i.isSelectable,selectionMode:i.selectionMode,slots:i.slots,state:i.state})]}),a==="inside"&&u]})}),a==="outside"&&u]})});aw.displayName="NextUI.Table";var O7=aw,j7=P7,_7=j7,V7=$7,K7=V7,U7=k7,Ug=U7,W7=E7,Wg=W7,H7=C7,G7=H7;/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -73,7 +73,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function uT(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=m.useState(n.state),[l,s]=m.useState(),[a,u]=m.useState({isTransitioning:!1}),[c,d]=m.useState(),[f,p]=m.useState(),[h,b]=m.useState(),w=m.useRef(new Map),{v7_startTransition:g}=r||{},v=m.useCallback(D=>{g?sT(D):D()},[g]),y=m.useCallback((D,x)=>{let{deletedFetchers:T,unstable_flushSync:k,unstable_viewTransitionOpts:M}=x;T.forEach(P=>w.current.delete(P)),D.fetchers.forEach((P,A)=>{P.data!==void 0&&w.current.set(A,P.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){k?Ai(()=>i(D)):v(()=>i(D));return}if(k){Ai(()=>{f&&(c&&c.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let P=n.window.document.startViewTransition(()=>{Ai(()=>i(D))});P.finished.finally(()=>{Ai(()=>{d(void 0),p(void 0),s(void 0),u({isTransitioning:!1})})}),Ai(()=>p(P));return}f?(c&&c.resolve(),f.skipTransition(),b({state:D,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(s(D),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,f,c,w,v]);m.useLayoutEffect(()=>n.subscribe(y),[n,y]),m.useEffect(()=>{a.isTransitioning&&!a.flushSync&&d(new aT)},[a]),m.useEffect(()=>{if(c&&l&&n.window){let D=l,x=c.promise,T=n.window.document.startViewTransition(async()=>{v(()=>i(D)),await x});T.finished.finally(()=>{d(void 0),p(void 0),s(void 0),u({isTransitioning:!1})}),p(T)}},[v,l,c,n.window]),m.useEffect(()=>{c&&l&&o.location.key===l.location.key&&c.resolve()},[c,f,o.location,l]),m.useEffect(()=>{!a.isTransitioning&&h&&(s(h.state),u({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),b(void 0))},[a.isTransitioning,h]),m.useEffect(()=>{},[]);let C=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:D=>n.navigate(D),push:(D,x,T)=>n.navigate(D,{state:x,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(D,x,T)=>n.navigate(D,{replace:!0,state:x,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),E=n.basename||"/",S=m.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return m.createElement(m.Fragment,null,m.createElement(cu.Provider,{value:S},m.createElement(ww.Provider,{value:o},m.createElement(oT.Provider,{value:w.current},m.createElement(rT.Provider,{value:a},m.createElement(XD,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?m.createElement(cT,{routes:n.routes,future:n.future,state:o}):t))))),null)}function cT(e){let{routes:t,future:n,state:r}=e;return OD(t,void 0,r,n)}var uv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uv||(uv={}));var cv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cv||(cv={}));const dT="/HACKATHON/img/stock1.jpg",fT="/HACKATHON/logo.svg",Ma=()=>$.jsxs("header",{className:"flex w-full justify-start items-center gap-3 absolute top-0 left-0 px-10 py-5 header",children:[$.jsx("img",{src:fT,alt:""}),$.jsx("h3",{className:"text-black text-3xl",children:"DiAIgnosis"})]});function pT(){const e=hu();return $.jsxs("div",{children:[$.jsx(Ma,{}),$.jsxs("main",{className:"flex gap-10 items-center",children:[$.jsxs("div",{className:"flex flex-col items-center gap-3",children:[$.jsx("h1",{className:"text-black text-7xl font-bold text-center",style:{fontSize:"clamp(40px, 5vw, 80px)"},children:"AI-Powered Diagnostics for Better Health."}),$.jsx("p",{className:"text-black text-xl font-thin",children:"The AI surveys and analyzes patient responses and structures the information to make it easier for the doctor to make a diagnosis"}),$.jsx(io,{size:"lg",color:"primary",variant:"ghost",onClick:()=>e("/consultation"),children:"Get Started"})]}),$.jsx("img",{className:"w-[50vw] object-center background-img",src:dT,alt:"medicine"})]})]})}const hT={user:null,setUser:()=>{}},nh=m.createContext(hT),mT=({children:e})=>{const[t,n]=m.useState(null);return $.jsx(nh.Provider,{value:{user:t,setUser:n},children:e})},dv=[{name:"Alexander Polin",email:"alexander.polin@gmail.com",password:"pjatk12345678"},{name:"Jean-Luc Momprivé",email:"jean.luc.momprive@gmail.com",password:"intel12345678"},{name:"Wojciech Jankowski",email:"wojciech.jankowski@gmail.com",password:"h@sl0Dyrector@"},{name:"Bartłomiej Przybyciel",email:"bartlomiej.przybyciel@gmail.com",password:"h@sl0Dyrector@"},{name:"Marcin Szulc",email:"marcin.szulc@gmail.com",password:"theStrongestPassword"}],gT=e=>$.jsx(io,{style:{background:"transparent"},isIconOnly:!0,...e,children:e.isClosed?$.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"grey",className:"w-6 h-6",children:[$.jsx("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),$.jsx("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),$.jsx("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})]}):$.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"grey",className:"w-6 h-6",children:[$.jsx("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),$.jsx("path",{fillRule:"evenodd",d:"M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 0 1 0-1.113ZM17.25 12a5.25 5.25 0 1 1-10.5 0 5.25 5.25 0 0 1 10.5 0Z",clipRule:"evenodd"})]})}),vT=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(""),[o,i]=m.useState(!1),[l,s]=m.useState(!1),{setUser:a}=m.useContext(nh),u=hu(),c=(d,f)=>{var p;return f===((p=dv.find(h=>h.email.toLowerCase()===d.toLowerCase()))==null?void 0:p.password)};return $.jsxs("div",{className:"flex flex-col gap-6 items-center",children:[$.jsx("h1",{className:"text-6xl font-medium",children:"Login"}),$.jsxs("div",{className:"flex flex-col w-[300px] flex-wrap md:flex-nowrap gap-3",children:[$.jsx(Zd,{type:"email",label:"Email",value:n,onChange:d=>r(d.currentTarget.value)}),$.jsx(Zd,{type:o?"text":"password",label:"Password",isInvalid:l,errorMessage:"Password is incorrect",value:e,onChange:d=>t(d.currentTarget.value),endContent:$.jsx(gT,{isClosed:!o,className:"focus:outline-none",type:"button",onClick:()=>i(!o)}),className:"max-w-xs"})]}),$.jsx(io,{onClick:()=>{c(n,e)?(a(dv.find(d=>d.email===n)??null),u("/consultation")):s(!0)},className:"w-[190px]",variant:"solid",size:"lg",color:"primary",children:"Login"})]})};function kw(e,t){return function(){return e.apply(t,arguments)}}const{toString:yT}=Object.prototype,{getPrototypeOf:rh}=Object,mu=(e=>t=>{const n=yT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cn=e=>(e=e.toLowerCase(),t=>mu(t)===e),gu=e=>t=>typeof t===e,{isArray:pi}=Array,Sl=gu("undefined");function bT(e){return e!==null&&!Sl(e)&&e.constructor!==null&&!Sl(e.constructor)&&Wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Dw=Cn("ArrayBuffer");function xT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Dw(e.buffer),t}const wT=gu("string"),Wt=gu("function"),Tw=gu("number"),vu=e=>e!==null&&typeof e=="object",ST=e=>e===!0||e===!1,Ls=e=>{if(mu(e)!=="object")return!1;const t=rh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CT=Cn("Date"),$T=Cn("File"),ET=Cn("Blob"),PT=Cn("FileList"),kT=e=>vu(e)&&Wt(e.pipe),DT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wt(e.append)&&((t=mu(e))==="formdata"||t==="object"&&Wt(e.toString)&&e.toString()==="[object FormData]"))},TT=Cn("URLSearchParams"),MT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Aw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rw=e=>!Sl(e)&&e!==Aw;function uf(){const{caseless:e}=Rw(this)&&this||{},t={},n=(r,o)=>{const i=e&&Mw(t,o)||o;Ls(t[i])&&Ls(r)?t[i]=uf(t[i],r):Ls(r)?t[i]=uf({},r):pi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(zl(t,(o,i)=>{n&&Wt(o)?e[i]=kw(o,n):e[i]=o},{allOwnKeys:r}),e),RT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},NT=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&rh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},FT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},BT=e=>{if(!e)return null;if(pi(e))return e;let t=e.length;if(!Tw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},LT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rh(Uint8Array)),zT=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},OT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jT=Cn("HTMLFormElement"),_T=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),fv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VT=Cn("RegExp"),Iw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zl(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},KT=e=>{Iw(e,(t,n)=>{if(Wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Wt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},UT=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return pi(e)?r(e):r(String(e).split(t)),n},WT=()=>{},HT=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ec="abcdefghijklmnopqrstuvwxyz",pv="0123456789",Nw={DIGIT:pv,ALPHA:Ec,ALPHA_DIGIT:Ec+Ec.toUpperCase()+pv},GT=(e=16,t=Nw.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function qT(e){return!!(e&&Wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const YT=e=>{const t=new Array(10),n=(r,o)=>{if(vu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=pi(r)?[]:{};return zl(r,(l,s)=>{const a=n(l,o+1);!Sl(a)&&(i[s]=a)}),t[o]=void 0,i}}return r};return n(e,0)},QT=Cn("AsyncFunction"),XT=e=>e&&(vu(e)||Wt(e))&&Wt(e.then)&&Wt(e.catch),_={isArray:pi,isArrayBuffer:Dw,isBuffer:bT,isFormData:DT,isArrayBufferView:xT,isString:wT,isNumber:Tw,isBoolean:ST,isObject:vu,isPlainObject:Ls,isUndefined:Sl,isDate:CT,isFile:$T,isBlob:ET,isRegExp:VT,isFunction:Wt,isStream:kT,isURLSearchParams:TT,isTypedArray:LT,isFileList:PT,forEach:zl,merge:uf,extend:AT,trim:MT,stripBOM:RT,inherits:IT,toFlatObject:NT,kindOf:mu,kindOfTest:Cn,endsWith:FT,toArray:BT,forEachEntry:zT,matchAll:OT,isHTMLForm:jT,hasOwnProperty:fv,hasOwnProp:fv,reduceDescriptors:Iw,freezeMethods:KT,toObjectSet:UT,toCamelCase:_T,noop:WT,toFiniteNumber:HT,findKey:Mw,global:Aw,isContextDefined:Rw,ALPHABET:Nw,generateString:GT,isSpecCompliantForm:qT,toJSONObject:YT,isAsyncFn:QT,isThenable:XT};function he(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}_.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fw=he.prototype,Bw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Bw[e]={value:e}});Object.defineProperties(he,Bw);Object.defineProperty(Fw,"isAxiosError",{value:!0});he.from=(e,t,n,r,o,i)=>{const l=Object.create(Fw);return _.toFlatObject(e,l,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),he.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const JT=null;function cf(e){return _.isPlainObject(e)||_.isArray(e)}function Lw(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function hv(e,t,n){return e?e.concat(t).map(function(o,i){return o=Lw(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ZT(e){return _.isArray(e)&&!e.some(cf)}const eM=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function yu(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,w){return!_.isUndefined(w[b])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(_.isDate(h))return h.toISOString();if(!a&&_.isBlob(h))throw new he("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(h)||_.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,b,w){let g=h;if(h&&!w&&typeof h=="object"){if(_.endsWith(b,"{}"))b=r?b:b.slice(0,-2),h=JSON.stringify(h);else if(_.isArray(h)&&ZT(h)||(_.isFileList(h)||_.endsWith(b,"[]"))&&(g=_.toArray(h)))return b=Lw(b),g.forEach(function(y,C){!(_.isUndefined(y)||y===null)&&t.append(l===!0?hv([b],C,i):l===null?b:b+"[]",u(y))}),!1}return cf(h)?!0:(t.append(hv(w,b,i),u(h)),!1)}const d=[],f=Object.assign(eM,{defaultVisitor:c,convertValue:u,isVisitable:cf});function p(h,b){if(!_.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(h),_.forEach(h,function(g,v){(!(_.isUndefined(g)||g===null)&&o.call(t,g,_.isString(v)?v.trim():v,b,f))===!0&&p(g,b?b.concat(v):[v])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return p(e),t}function mv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function oh(e,t){this._pairs=[],e&&yu(e,this,t)}const zw=oh.prototype;zw.append=function(t,n){this._pairs.push([t,n])};zw.toString=function(t){const n=t?function(r){return t.call(this,r,mv)}:mv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function tM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ow(e,t,n){if(!t)return e;const r=n&&n.encode||tM,o=n&&n.serialize;let i;if(o?i=o(t,n):i=_.isURLSearchParams(t)?t.toString():new oh(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class gv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nM=typeof URLSearchParams<"u"?URLSearchParams:oh,rM=typeof FormData<"u"?FormData:null,oM=typeof Blob<"u"?Blob:null,iM={isBrowser:!0,classes:{URLSearchParams:nM,FormData:rM,Blob:oM},protocols:["http","https","file","blob","url","data"]},_w=typeof window<"u"&&typeof document<"u",lM=(e=>_w&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),sM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_w,hasStandardBrowserEnv:lM,hasStandardBrowserWebWorkerEnv:sM},Symbol.toStringTag,{value:"Module"})),yn={...aM,...iM};function uM(e,t){return yu(e,new yn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return yn.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function cM(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dM(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&_.isArray(o)?o.length:l,a?(_.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!_.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&_.isArray(o[l])&&(o[l]=dM(o[l])),!s)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,o)=>{t(cM(r),o,n,0)}),n}return null}function fM(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ih={transitional:jw,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=_.isObject(t);if(i&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return o?JSON.stringify(Vw(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uM(t,this.formSerializer).toString();if((s=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return yu(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),fM(t)):t}],transformResponse:[function(t){const n=this.transitional||ih.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&_.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?he.from(s,he.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yn.classes.FormData,Blob:yn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{ih.headers[e]={}});const lh=ih,pM=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hM=e=>{const t={};let n,r,o;return e&&e.split(` + */function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function uT(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=m.useState(n.state),[l,s]=m.useState(),[a,u]=m.useState({isTransitioning:!1}),[c,d]=m.useState(),[f,p]=m.useState(),[h,b]=m.useState(),w=m.useRef(new Map),{v7_startTransition:g}=r||{},v=m.useCallback(D=>{g?sT(D):D()},[g]),y=m.useCallback((D,x)=>{let{deletedFetchers:T,unstable_flushSync:k,unstable_viewTransitionOpts:M}=x;T.forEach(P=>w.current.delete(P)),D.fetchers.forEach((P,A)=>{P.data!==void 0&&w.current.set(A,P.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){k?Ai(()=>i(D)):v(()=>i(D));return}if(k){Ai(()=>{f&&(c&&c.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let P=n.window.document.startViewTransition(()=>{Ai(()=>i(D))});P.finished.finally(()=>{Ai(()=>{d(void 0),p(void 0),s(void 0),u({isTransitioning:!1})})}),Ai(()=>p(P));return}f?(c&&c.resolve(),f.skipTransition(),b({state:D,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(s(D),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,f,c,w,v]);m.useLayoutEffect(()=>n.subscribe(y),[n,y]),m.useEffect(()=>{a.isTransitioning&&!a.flushSync&&d(new aT)},[a]),m.useEffect(()=>{if(c&&l&&n.window){let D=l,x=c.promise,T=n.window.document.startViewTransition(async()=>{v(()=>i(D)),await x});T.finished.finally(()=>{d(void 0),p(void 0),s(void 0),u({isTransitioning:!1})}),p(T)}},[v,l,c,n.window]),m.useEffect(()=>{c&&l&&o.location.key===l.location.key&&c.resolve()},[c,f,o.location,l]),m.useEffect(()=>{!a.isTransitioning&&h&&(s(h.state),u({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),b(void 0))},[a.isTransitioning,h]),m.useEffect(()=>{},[]);let C=m.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:D=>n.navigate(D),push:(D,x,T)=>n.navigate(D,{state:x,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(D,x,T)=>n.navigate(D,{replace:!0,state:x,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),E=n.basename||"/",S=m.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return m.createElement(m.Fragment,null,m.createElement(cu.Provider,{value:S},m.createElement(ww.Provider,{value:o},m.createElement(oT.Provider,{value:w.current},m.createElement(rT.Provider,{value:a},m.createElement(XD,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?m.createElement(cT,{routes:n.routes,future:n.future,state:o}):t))))),null)}function cT(e){let{routes:t,future:n,state:r}=e;return OD(t,void 0,r,n)}var uv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uv||(uv={}));var cv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cv||(cv={}));const dT="/DiAIgnosis/img/stock1.jpg",fT="/DiAIgnosis/logo.svg",Ma=()=>$.jsxs("header",{className:"flex w-full justify-start items-center gap-3 absolute top-0 left-0 px-10 py-5 header",children:[$.jsx("img",{src:fT,alt:""}),$.jsx("h3",{className:"text-black text-3xl",children:"DiAIgnosis"})]});function pT(){const e=hu();return $.jsxs("div",{children:[$.jsx(Ma,{}),$.jsxs("main",{className:"flex gap-10 items-center",children:[$.jsxs("div",{className:"flex flex-col items-center gap-3",children:[$.jsx("h1",{className:"text-black text-7xl font-bold text-center",style:{fontSize:"clamp(40px, 5vw, 80px)"},children:"AI-Powered Diagnostics for Better Health."}),$.jsx("p",{className:"text-black text-xl font-thin",children:"The AI surveys and analyzes patient responses and structures the information to make it easier for the doctor to make a diagnosis"}),$.jsx(io,{size:"lg",color:"primary",variant:"ghost",onClick:()=>e("/consultation"),children:"Get Started"})]}),$.jsx("img",{className:"w-[50vw] object-center background-img",src:dT,alt:"medicine"})]})]})}const hT={user:null,setUser:()=>{}},nh=m.createContext(hT),mT=({children:e})=>{const[t,n]=m.useState(null);return $.jsx(nh.Provider,{value:{user:t,setUser:n},children:e})},dv=[{name:"Alexander Polin",email:"alexander.polin@gmail.com",password:"pjatk12345678"},{name:"Jean-Luc Momprivé",email:"jean.luc.momprive@gmail.com",password:"intel12345678"},{name:"Wojciech Jankowski",email:"wojciech.jankowski@gmail.com",password:"h@sl0Dyrector@"},{name:"Bartłomiej Przybyciel",email:"bartlomiej.przybyciel@gmail.com",password:"h@sl0Dyrector@"},{name:"Marcin Szulc",email:"marcin.szulc@gmail.com",password:"theStrongestPassword"}],gT=e=>$.jsx(io,{style:{background:"transparent"},isIconOnly:!0,...e,children:e.isClosed?$.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"grey",className:"w-6 h-6",children:[$.jsx("path",{d:"M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"}),$.jsx("path",{d:"M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"}),$.jsx("path",{d:"M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"})]}):$.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"grey",className:"w-6 h-6",children:[$.jsx("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),$.jsx("path",{fillRule:"evenodd",d:"M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 0 1 0-1.113ZM17.25 12a5.25 5.25 0 1 1-10.5 0 5.25 5.25 0 0 1 10.5 0Z",clipRule:"evenodd"})]})}),vT=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(""),[o,i]=m.useState(!1),[l,s]=m.useState(!1),{setUser:a}=m.useContext(nh),u=hu(),c=(d,f)=>{var p;return f===((p=dv.find(h=>h.email.toLowerCase()===d.toLowerCase()))==null?void 0:p.password)};return $.jsxs("div",{className:"flex flex-col gap-6 items-center",children:[$.jsx("h1",{className:"text-6xl font-medium",children:"Login"}),$.jsxs("div",{className:"flex flex-col w-[300px] flex-wrap md:flex-nowrap gap-3",children:[$.jsx(Zd,{type:"email",label:"Email",value:n,onChange:d=>r(d.currentTarget.value)}),$.jsx(Zd,{type:o?"text":"password",label:"Password",isInvalid:l,errorMessage:"Password is incorrect",value:e,onChange:d=>t(d.currentTarget.value),endContent:$.jsx(gT,{isClosed:!o,className:"focus:outline-none",type:"button",onClick:()=>i(!o)}),className:"max-w-xs"})]}),$.jsx(io,{onClick:()=>{c(n,e)?(a(dv.find(d=>d.email===n)??null),u("/consultation")):s(!0)},className:"w-[190px]",variant:"solid",size:"lg",color:"primary",children:"Login"})]})};function kw(e,t){return function(){return e.apply(t,arguments)}}const{toString:yT}=Object.prototype,{getPrototypeOf:rh}=Object,mu=(e=>t=>{const n=yT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cn=e=>(e=e.toLowerCase(),t=>mu(t)===e),gu=e=>t=>typeof t===e,{isArray:pi}=Array,Sl=gu("undefined");function bT(e){return e!==null&&!Sl(e)&&e.constructor!==null&&!Sl(e.constructor)&&Wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Dw=Cn("ArrayBuffer");function xT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Dw(e.buffer),t}const wT=gu("string"),Wt=gu("function"),Tw=gu("number"),vu=e=>e!==null&&typeof e=="object",ST=e=>e===!0||e===!1,Ls=e=>{if(mu(e)!=="object")return!1;const t=rh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CT=Cn("Date"),$T=Cn("File"),ET=Cn("Blob"),PT=Cn("FileList"),kT=e=>vu(e)&&Wt(e.pipe),DT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wt(e.append)&&((t=mu(e))==="formdata"||t==="object"&&Wt(e.toString)&&e.toString()==="[object FormData]"))},TT=Cn("URLSearchParams"),MT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),pi(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Aw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rw=e=>!Sl(e)&&e!==Aw;function uf(){const{caseless:e}=Rw(this)&&this||{},t={},n=(r,o)=>{const i=e&&Mw(t,o)||o;Ls(t[i])&&Ls(r)?t[i]=uf(t[i],r):Ls(r)?t[i]=uf({},r):pi(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(zl(t,(o,i)=>{n&&Wt(o)?e[i]=kw(o,n):e[i]=o},{allOwnKeys:r}),e),RT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},NT=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&rh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},FT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},BT=e=>{if(!e)return null;if(pi(e))return e;let t=e.length;if(!Tw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},LT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rh(Uint8Array)),zT=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},OT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jT=Cn("HTMLFormElement"),_T=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),fv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VT=Cn("RegExp"),Iw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zl(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},KT=e=>{Iw(e,(t,n)=>{if(Wt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Wt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},UT=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return pi(e)?r(e):r(String(e).split(t)),n},WT=()=>{},HT=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ec="abcdefghijklmnopqrstuvwxyz",pv="0123456789",Nw={DIGIT:pv,ALPHA:Ec,ALPHA_DIGIT:Ec+Ec.toUpperCase()+pv},GT=(e=16,t=Nw.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function qT(e){return!!(e&&Wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const YT=e=>{const t=new Array(10),n=(r,o)=>{if(vu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=pi(r)?[]:{};return zl(r,(l,s)=>{const a=n(l,o+1);!Sl(a)&&(i[s]=a)}),t[o]=void 0,i}}return r};return n(e,0)},QT=Cn("AsyncFunction"),XT=e=>e&&(vu(e)||Wt(e))&&Wt(e.then)&&Wt(e.catch),_={isArray:pi,isArrayBuffer:Dw,isBuffer:bT,isFormData:DT,isArrayBufferView:xT,isString:wT,isNumber:Tw,isBoolean:ST,isObject:vu,isPlainObject:Ls,isUndefined:Sl,isDate:CT,isFile:$T,isBlob:ET,isRegExp:VT,isFunction:Wt,isStream:kT,isURLSearchParams:TT,isTypedArray:LT,isFileList:PT,forEach:zl,merge:uf,extend:AT,trim:MT,stripBOM:RT,inherits:IT,toFlatObject:NT,kindOf:mu,kindOfTest:Cn,endsWith:FT,toArray:BT,forEachEntry:zT,matchAll:OT,isHTMLForm:jT,hasOwnProperty:fv,hasOwnProp:fv,reduceDescriptors:Iw,freezeMethods:KT,toObjectSet:UT,toCamelCase:_T,noop:WT,toFiniteNumber:HT,findKey:Mw,global:Aw,isContextDefined:Rw,ALPHABET:Nw,generateString:GT,isSpecCompliantForm:qT,toJSONObject:YT,isAsyncFn:QT,isThenable:XT};function he(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}_.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fw=he.prototype,Bw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Bw[e]={value:e}});Object.defineProperties(he,Bw);Object.defineProperty(Fw,"isAxiosError",{value:!0});he.from=(e,t,n,r,o,i)=>{const l=Object.create(Fw);return _.toFlatObject(e,l,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),he.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const JT=null;function cf(e){return _.isPlainObject(e)||_.isArray(e)}function Lw(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function hv(e,t,n){return e?e.concat(t).map(function(o,i){return o=Lw(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ZT(e){return _.isArray(e)&&!e.some(cf)}const eM=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function yu(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,w){return!_.isUndefined(w[b])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(_.isDate(h))return h.toISOString();if(!a&&_.isBlob(h))throw new he("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(h)||_.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,b,w){let g=h;if(h&&!w&&typeof h=="object"){if(_.endsWith(b,"{}"))b=r?b:b.slice(0,-2),h=JSON.stringify(h);else if(_.isArray(h)&&ZT(h)||(_.isFileList(h)||_.endsWith(b,"[]"))&&(g=_.toArray(h)))return b=Lw(b),g.forEach(function(y,C){!(_.isUndefined(y)||y===null)&&t.append(l===!0?hv([b],C,i):l===null?b:b+"[]",u(y))}),!1}return cf(h)?!0:(t.append(hv(w,b,i),u(h)),!1)}const d=[],f=Object.assign(eM,{defaultVisitor:c,convertValue:u,isVisitable:cf});function p(h,b){if(!_.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(h),_.forEach(h,function(g,v){(!(_.isUndefined(g)||g===null)&&o.call(t,g,_.isString(v)?v.trim():v,b,f))===!0&&p(g,b?b.concat(v):[v])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return p(e),t}function mv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function oh(e,t){this._pairs=[],e&&yu(e,this,t)}const zw=oh.prototype;zw.append=function(t,n){this._pairs.push([t,n])};zw.toString=function(t){const n=t?function(r){return t.call(this,r,mv)}:mv;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function tM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ow(e,t,n){if(!t)return e;const r=n&&n.encode||tM,o=n&&n.serialize;let i;if(o?i=o(t,n):i=_.isURLSearchParams(t)?t.toString():new oh(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class gv{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nM=typeof URLSearchParams<"u"?URLSearchParams:oh,rM=typeof FormData<"u"?FormData:null,oM=typeof Blob<"u"?Blob:null,iM={isBrowser:!0,classes:{URLSearchParams:nM,FormData:rM,Blob:oM},protocols:["http","https","file","blob","url","data"]},_w=typeof window<"u"&&typeof document<"u",lM=(e=>_w&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),sM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_w,hasStandardBrowserEnv:lM,hasStandardBrowserWebWorkerEnv:sM},Symbol.toStringTag,{value:"Module"})),yn={...aM,...iM};function uM(e,t){return yu(e,new yn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return yn.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function cM(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dM(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&_.isArray(o)?o.length:l,a?(_.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!_.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&_.isArray(o[l])&&(o[l]=dM(o[l])),!s)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,o)=>{t(cM(r),o,n,0)}),n}return null}function fM(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ih={transitional:jw,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=_.isObject(t);if(i&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return o?JSON.stringify(Vw(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uM(t,this.formSerializer).toString();if((s=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return yu(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),fM(t)):t}],transformResponse:[function(t){const n=this.transitional||ih.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&_.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?he.from(s,he.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yn.classes.FormData,Blob:yn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{ih.headers[e]={}});const lh=ih,pM=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hM=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&pM[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},vv=Symbol("internals");function Ri(e){return e&&String(e).trim().toLowerCase()}function zs(e){return e===!1||e==null?e:_.isArray(e)?e.map(zs):String(e)}function mM(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const gM=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pc(e,t,n,r,o){if(_.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function vM(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function yM(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class bu{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,a,u){const c=Ri(a);if(!c)throw new Error("header name must be a non-empty string");const d=_.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||a]=zs(s))}const l=(s,a)=>_.forEach(s,(u,c)=>i(u,c,a));return _.isPlainObject(t)||t instanceof this.constructor?l(t,n):_.isString(t)&&(t=t.trim())&&!gM(t)?l(hM(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ri(t),t){const r=_.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return mM(o);if(_.isFunction(n))return n.call(this,o,r);if(_.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ri(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Pc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Ri(l),l){const s=_.findKey(r,l);s&&(!n||Pc(r,r[s],s,n))&&(delete r[s],o=!0)}}return _.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Pc(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return _.forEach(this,(o,i)=>{const l=_.findKey(r,i);if(l){n[l]=zs(o),delete n[i];return}const s=t?vM(i):String(i).trim();s!==i&&delete n[i],n[s]=zs(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[vv]=this[vv]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=Ri(l);r[s]||(yM(o,l),r[s]=!0)}return _.isArray(t)?t.forEach(i):i(t),this}}bu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(bu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_.freezeMethods(bu);const Fn=bu;function kc(e,t){const n=this||lh,r=t||n,o=Fn.from(r.headers);let i=r.data;return _.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Kw(e){return!!(e&&e.__CANCEL__)}function Ol(e,t,n){he.call(this,e??"canceled",he.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Ol,he,{__CANCEL__:!0});function bM(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const xM=yn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),_.isString(r)&&l.push("path="+r),_.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SM(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Uw(e,t){return e&&!wM(t)?SM(e,t):t}const CM=yn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=_.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function $M(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function EM(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[i];l||(l=u),n[o]=a,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-n,a=r(s),u=i<=l;n=i;const c={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:a||void 0,estimated:a&&l&&u?(l-i)/a:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const PM=typeof XMLHttpRequest<"u",kM=PM&&function(e){return new Promise(function(n,r){let o=e.data;const i=Fn.from(e.headers).normalize();let{responseType:l,withXSRFToken:s}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;if(_.isFormData(o)){if(yn.hasStandardBrowserEnv||yn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[b,...w]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([b||"multipart/form-data",...w].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(b+":"+w))}const f=Uw(e.baseURL,e.url);d.open(e.method.toUpperCase(),Ow(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const b=Fn.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:e,request:d};bM(function(y){n(y),u()},function(y){r(y),u()},g),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new he("Request aborted",he.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new he("Network Error",he.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||jw;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new he(w,g.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,d)),d=null},yn.hasStandardBrowserEnv&&(s&&_.isFunction(s)&&(s=s(e)),s||s!==!1&&CM(f))){const b=e.xsrfHeaderName&&e.xsrfCookieName&&xM.read(e.xsrfCookieName);b&&i.set(e.xsrfHeaderName,b)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&_.forEach(i.toJSON(),function(w,g){d.setRequestHeader(g,w)}),_.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),l&&l!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",yv(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",yv(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=b=>{d&&(r(!b||b.type?new Ol(null,e,d):b),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=$M(f);if(h&&yn.protocols.indexOf(h)===-1){r(new he("Unsupported protocol "+h+":",he.ERR_BAD_REQUEST,e));return}d.send(o||null)})},df={http:JT,xhr:kM};_.forEach(df,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bv=e=>`- ${e}`,DM=e=>_.isFunction(e)||e===null||e===!1,Ww={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : `+i.map(bv).join(` diff --git a/index.html b/index.html index c323b37..5826fbe 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,11 @@ - + DiAIgnosis - - + +