(function(Y){typeof define=="function"&&define.amd?define(Y):Y()})(function(){"use strict";var l$=Object.defineProperty,u$=Object.defineProperties;var c$=Object.getOwnPropertyDescriptors;var al=Object.getOwnPropertySymbols;var Ev=Object.prototype.hasOwnProperty,$v=Object.prototype.propertyIsEnumerable;var kf=(Y,Q)=>(Q=Symbol[Y])?Q:Symbol.for("Symbol."+Y),Tf=Math.pow,Cv=(Y,Q,ne)=>Q in Y?l$(Y,Q,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Y[Q]=ne,S=(Y,Q)=>{for(var ne in Q||(Q={}))Ev.call(Q,ne)&&Cv(Y,ne,Q[ne]);if(al)for(var ne of al(Q))$v.call(Q,ne)&&Cv(Y,ne,Q[ne]);return Y},A=(Y,Q)=>u$(Y,c$(Q));var G=(Y,Q)=>{var ne={};for(var Se in Y)Ev.call(Y,Se)&&Q.indexOf(Se)<0&&(ne[Se]=Y[Se]);if(Y!=null&&al)for(var Se of al(Y))Q.indexOf(Se)<0&&$v.call(Y,Se)&&(ne[Se]=Y[Se]);return ne};var ie=(Y,Q,ne)=>new Promise((Se,Z)=>{var Ne=ut=>{try{Qn(ne.next(ut))}catch(wi){Z(wi)}},Vt=ut=>{try{Qn(ne.throw(ut))}catch(wi){Z(wi)}},Qn=ut=>ut.done?Se(ut.value):Promise.resolve(ut.value).then(Ne,Vt);Qn((ne=ne.apply(Y,Q)).next())}),d$=function(Y,Q){this[0]=Y,this[1]=Q};var ll=Y=>{var Q=Y[kf("asyncIterator")],ne=!1,Se,Z={};return Q==null?(Q=Y[kf("iterator")](),Se=Ne=>Z[Ne]=Vt=>Q[Ne](Vt)):(Q=Q.call(Y),Se=Ne=>Z[Ne]=Vt=>{if(ne){if(ne=!1,Ne==="throw")throw Vt;return Vt}return ne=!0,{done:!1,value:new d$(new Promise(Qn=>{var ut=Q[Ne](Vt);if(!(ut instanceof Object))throw TypeError("Object expected");Qn(ut)}),1)}}),Z[kf("iterator")]=()=>Z,Se("next"),"throw"in Q?Se("throw"):Z.throw=Ne=>{throw Ne},"return"in Q&&Se("return"),Z};function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q={exports:{}},ne={},Se={exports:{}},Z={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ne=Symbol.for("react.element"),Vt=Symbol.for("react.portal"),Qn=Symbol.for("react.fragment"),ut=Symbol.for("react.strict_mode"),wi=Symbol.for("react.profiler"),Pv=Symbol.for("react.provider"),kv=Symbol.for("react.context"),Tv=Symbol.for("react.forward_ref"),Dv=Symbol.for("react.suspense"),Mv=Symbol.for("react.memo"),Lv=Symbol.for("react.lazy"),Df=Symbol.iterator;function Av(e){return e===null||typeof e!="object"?null:(e=Df&&e[Df]||e["@@iterator"],typeof e=="function"?e:null)}var Mf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lf=Object.assign,Af={};function $r(e,t,n){this.props=e,this.context=t,this.refs=Af,this.updater=n||Mf}$r.prototype.isReactComponent={},$r.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},$r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _f(){}_f.prototype=$r.prototype;function ul(e,t,n){this.props=e,this.context=t,this.refs=Af,this.updater=n||Mf}var cl=ul.prototype=new _f;cl.constructor=ul,Lf(cl,$r.prototype),cl.isPureReactComponent=!0;var Nf=Array.isArray,If=Object.prototype.hasOwnProperty,dl={current:null},jf={key:!0,ref:!0,__self:!0,__source:!0};function zf(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)If.call(t,r)&&!jf.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,U=I[H];if(0>>1;Hi(Ft,_))xti(Yn,Ft)?(I[H]=Yn,I[xt]=_,H=xt):(I[H]=Ft,I[we]=_,H=we);else if(xti(Yn,_))I[H]=Yn,I[xt]=_,H=xt;else break e}}return F}function i(I,F){var _=I.sortIndex-F.sortIndex;return _!==0?_:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,p=3,h=!1,v=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(I){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=I)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function $(I){if(w=!1,y(I),!v)if(n(l)!==null)v=!0,V(T);else{var F=n(u);F!==null&&j($,F.startTime-I)}}function T(I,F){v=!1,w&&(w=!1,g(M),M=-1),h=!0;var _=p;try{for(y(F),f=n(l);f!==null&&(!(f.expirationTime>F)||I&&!K());){var H=f.callback;if(typeof H=="function"){f.callback=null,p=f.priorityLevel;var U=H(f.expirationTime<=F);F=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(l)&&r(l),y(F)}else r(l);f=n(l)}if(f!==null)var Ge=!0;else{var we=n(u);we!==null&&j($,we.startTime-F),Ge=!1}return Ge}finally{f=null,p=_,h=!1}}var L=!1,z=null,M=-1,b=5,P=-1;function K(){return!(e.unstable_now()-PI||125H?(I.sortIndex=_,t(u,I),n(l)===null&&I===n(u)&&(w?(g(M),M=-1):w=!0,j($,_-H))):(I.sortIndex=U,t(l,I),v||h||(v=!0,V(T))),I},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(I){var F=p;return function(){var _=p;p=F;try{return I.apply(this,arguments)}finally{p=_}}}})(Kf),Of.exports=Kf;var Kv=Of.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Hv=d,rt=Kv;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Ke(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Me[e]=new Ke(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Me[t]=new Ke(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Me[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Me[e]=new Ke(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Me[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Me[e]=new Ke(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Me[e]=new Ke(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Me[e]=new Ke(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Me[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var gl=/[\-:]([a-z])/g;function vl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gl,vl);Me[t]=new Ke(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gl,vl);Me[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gl,vl);Me[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Me[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)}),Me.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Me[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function yl(e,t,n,r){var i=Me.hasOwnProperty(t)?Me[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Pl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Si(e):""}function qv(e){switch(e.tag){case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return Si("Suspense");case 19:return Si("SuspenseList");case 0:case 2:case 15:return e=kl(e.type,!1),e;case 11:return e=kl(e.type.render,!1),e;case 1:return e=kl(e.type,!0),e;default:return""}}function Tl(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 Tr:return"Fragment";case kr:return"Portal";case bl:return"Profiler";case wl:return"StrictMode";case Sl:return"Suspense";case Cl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gf:return(e.displayName||"Context")+".Consumer";case Zf:return(e._context.displayName||"Context")+".Provider";case xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case El:return t=e.displayName||null,t!==null?t:Tl(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Tl(e(t))}catch(n){}}return null}function Yv(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 Tl(t);case 8:return t===wl?"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 mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qv(e){var t=Qf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gs(e){e._valueTracker||(e._valueTracker=Qv(e))}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qs(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Dl(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Jf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mn(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 ep(e,t){t=t.checked,t!=null&&yl(e,"checked",t,!1)}function Ml(e,t){ep(e,t);var n=mn(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")?Ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ll(e,t.type,mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tp(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 Ll(e,t,n){(t!=="number"||qs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ci=Array.isArray;function Dr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ei(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},Xv=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){Xv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function ap(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function lp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ap(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Jv=fe({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 Nl(e,t){if(t){if(Jv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Il(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 jl=null;function zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,Mr=null,Lr=null;function up(e){if(e=Zi(e)){if(typeof Bl!="function")throw Error(R(280));var t=e.stateNode;t&&(t=bo(t),Bl(e.stateNode,e.type,t))}}function cp(e){Mr?Lr?Lr.push(e):Lr=[e]:Mr=e}function dp(){if(Mr){var e=Mr,t=Lr;if(Lr=Mr=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(cy(e)/dy|0)|0}var to=64,no=4194304;function Di(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 ro(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Di(a):(s&=o,s!==0&&(r=Di(s)))}else o=n&~i,o!==0?r=Di(o):s!==0&&(r=Di(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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 Mi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-St(t),e[t]=n}function my(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=Bi),Rp=" ",Fp=!1;function Vp(e,t){switch(e){case"keyup":return Ky.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Op(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nr=!1;function Uy(e,t){switch(e){case"compositionend":return Op(t);case"keypress":return t.which!==32?null:(Fp=!0,Rp);case"textInput":return e=t.data,e===Rp&&Fp?null:e;default:return null}}function Wy(e,t){if(Nr)return e==="compositionend"||!nu&&Vp(e,t)?(e=_p(),lo=Yl=bn=null,Nr=!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=qp(n)}}function Qp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xp(){for(var e=window,t=qs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=qs(e.document)}return t}function su(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 t5(e){var t=Xp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qp(n.ownerDocument.documentElement,n)){if(r!==null&&su(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Yp(n,s);var o=Yp(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,Ir=null,ou=null,Oi=null,au=!1;function Jp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;au||Ir==null||Ir!==qs(r)||(r=Ir,"selectionStart"in r&&su(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}),Oi&&Vi(Oi,r)||(Oi=r,r=vo(ou,"onSelect"),0Fr||(e.current=wu[Fr],wu[Fr]=null,Fr--)}function se(e,t){Fr++,wu[Fr]=e.current,e.current=t}var En={},Ie=Cn(En),qe=Cn(!1),tr=En;function Vr(e,t){var n=e.type.contextTypes;if(!n)return En;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ye(e){return e=e.childContextTypes,e!=null}function xo(){le(qe),le(Ie)}function h0(e,t,n){if(Ie.current!==En)throw Error(R(168));se(Ie,t),se(qe,n)}function m0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,Yv(e)||"Unknown",i));return fe({},n,r)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,tr=Ie.current,se(Ie,e),se(qe,qe.current),!0}function g0(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=m0(e,t,tr),r.__reactInternalMemoizedMergedChildContext=e,le(qe),le(Ie),se(Ie,e)):le(qe),se(qe,n)}var Ut=null,Co=!1,bu=!1;function v0(e){Ut===null?Ut=[e]:Ut.push(e)}function p5(e){Co=!0,v0(e)}function $n(){if(!bu&&Ut!==null){bu=!0;var e=0,t=te;try{var n=Ut;for(te=1;e>=o,i-=o,Wt=1<<32-St(t)+i|n<M?(b=z,z=null):b=z.sibling;var P=p(g,z,y[M],$);if(P===null){z===null&&(z=b);break}e&&z&&P.alternate===null&&t(g,z),m=s(P,m,M),L===null?T=P:L.sibling=P,L=P,z=b}if(M===y.length)return n(g,z),de&&rr(g,M),T;if(z===null){for(;MM?(b=z,z=null):b=z.sibling;var K=p(g,z,P.value,$);if(K===null){z===null&&(z=b);break}e&&z&&K.alternate===null&&t(g,z),m=s(K,m,M),L===null?T=K:L.sibling=K,L=K,z=b}if(P.done)return n(g,z),de&&rr(g,M),T;if(z===null){for(;!P.done;M++,P=y.next())P=f(g,P.value,$),P!==null&&(m=s(P,m,M),L===null?T=P:L.sibling=P,L=P);return de&&rr(g,M),T}for(z=r(g,z);!P.done;M++,P=y.next())P=h(z,g,M,P.value,$),P!==null&&(e&&P.alternate!==null&&z.delete(P.key===null?M:P.key),m=s(P,m,M),L===null?T=P:L.sibling=P,L=P);return e&&z.forEach(function(x){return t(g,x)}),de&&rr(g,M),T}function C(g,m,y,$){if(typeof y=="object"&&y!==null&&y.type===Tr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Zs:e:{for(var T=y.key,L=m;L!==null;){if(L.key===T){if(T=y.type,T===Tr){if(L.tag===7){n(g,L.sibling),m=i(L,y.props.children),m.return=g,g=m;break e}}else if(L.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===hn&&C0(T)===L.type){n(g,L.sibling),m=i(L,y.props),m.ref=Gi(g,L,y),m.return=g,g=m;break e}n(g,L);break}else t(g,L);L=L.sibling}y.type===Tr?(m=dr(y.props.children,g.mode,$,y.key),m.return=g,g=m):($=Qo(y.type,y.key,y.props,null,g.mode,$),$.ref=Gi(g,m,y),$.return=g,g=$)}return o(g);case kr:e:{for(L=y.key;m!==null;){if(m.key===L)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=i(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=vc(y,g.mode,$),m.return=g,g=m}return o(g);case hn:return L=y._init,C(g,m,L(y._payload),$)}if(Ci(y))return v(g,m,y,$);if(xi(y))return w(g,m,y,$);ko(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,y),m.return=g,g=m):(n(g,m),m=gc(y,g.mode,$),m.return=g,g=m),o(g)):n(g,m)}return C}var Ur=E0(!0),$0=E0(!1),To=Cn(null),Do=null,Wr=null,Pu=null;function ku(){Pu=Wr=Do=null}function Tu(e){var t=To.current;le(To),e._currentValue=t}function Du(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zr(e,t){Do=e,Pu=Wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function ft(e){var t=e._currentValue;if(Pu!==e)if(e={context:e,memoizedValue:t,next:null},Wr===null){if(Do===null)throw Error(R(308));Wr=e,Do.dependencies={lanes:0,firstContext:e}}else Wr=Wr.next=e;return t}var ir=null;function Mu(e){ir===null?ir=[e]:ir.push(e)}function P0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Mu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Gt(e,r)}function Gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pn=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function k0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gt(e,n)}return i=r.interleaved,i===null?(t.next=t,Mu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gt(e,n)}function Mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ul(e,n)}}function T0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lo(e,t,n,r){var i=e.updateQueue;Pn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,c=u=l=null,a=s;do{var p=a.lane,h=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,w=a;switch(p=t,h=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=fe({},f,p);break e;case 2:Pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else h={eventTime:h,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ar|=o,e.lanes=o,e.memoizedState=f}}function D0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ju.transition;ju.transition={};try{e(!1),t()}finally{te=n,ju.transition=r}}function G0(){return pt().memoizedState}function v5(e,t,n){var r=Ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},q0(e))Y0(t,n);else if(n=P0(e,t,n,r),n!==null){var i=Ue();Tt(n,e,r,i),Q0(n,t,r)}}function y5(e,t,n){var r=Ln(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(q0(e))Y0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ct(a,o)){var l=t.interleaved;l===null?(i.next=i,Mu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(u){}finally{}n=P0(e,t,i,r),n!==null&&(i=Ue(),Tt(n,e,r,i),Q0(n,t,r))}}function q0(e){var t=e.alternate;return e===he||t!==null&&t===he}function Y0(e,t){Xi=No=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Q0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ul(e,n)}}var zo={readContext:ft,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},w5={readContext:ft,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:F0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Io(4194308,4,K0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Io(4194308,4,e,t)},useInsertionEffect:function(e,t){return Io(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();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=v5.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:B0,useDebugValue:Ku,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=B0(!1),t=e[0];return e=g5.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=he,i=It();if(de){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Te===null)throw Error(R(349));or&30||_0(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,F0(I0.bind(null,r,s,e),[e]),r.flags|=2048,ts(9,N0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=It(),t=Te.identifierPrefix;if(de){var n=Zt,r=Wt;n=(r&~(1<<32-St(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ji++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_t]=t,e[Wi]=r,vh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Il(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;iXr&&(t.flags|=128,r=!0,ns(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ao(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!de)return ze(t),null}else 2*be()-s.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,ns(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=be(),t.sibling=null,n=pe.current,se(pe,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?at&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function k5(e,t){switch(Su(t),t.tag){case 1:return Ye(t.type)&&xo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),le(qe),le(Ie),Iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _u(t),null;case 13:if(le(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(pe),null;case 4:return Gr(),null;case 10:return Tu(t.type._context),null;case 22:case 23:return pc(),null;case 24:return null;default:return null}}var Vo=!1,Be=!1,T5=typeof WeakSet=="function"?WeakSet:Set,O=null;function Yr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function tc(e,t,n){try{n()}catch(r){ye(e,t,r)}}var bh=!1;function D5(e,t){if(pu=oo,e=Xp(),su(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch($){n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(a=o),p===s&&++c===r&&(l=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hu={focusedElem:e,selectionRange:n},oo=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,C=v.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:$t(t.type,w),C);g.__reactInternalSnapshotBeforeUpdate=m}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(R(163))}}catch($){ye(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return v=bh,bh=!1,v}function rs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&tc(t,n,s)}i=i.next}while(i!==r)}}function Oo(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 nc(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 xh(e){var t=e.alternate;t!==null&&(e.alternate=null,xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Wi],delete t[yu],delete t[d5],delete t[f5])),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 Sh(e){return e.tag===5||e.tag===3||e.tag===4}function Ch(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sh(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 rc(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=wo));else if(r!==4&&(e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function ic(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(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}var Le=null,Pt=!1;function Tn(e,t,n){for(n=n.child;n!==null;)Eh(e,t,n),n=n.sibling}function Eh(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(eo,n)}catch(a){}switch(n.tag){case 5:Be||Yr(n,t);case 6:var r=Le,i=Pt;Le=null,Tn(e,t,n),Le=r,Pt=i,Le!==null&&(Pt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Pt?(e=Le,n=n.stateNode,e.nodeType===8?vu(e.parentNode,n):e.nodeType===1&&vu(e,n),Ii(e)):vu(Le,n.stateNode));break;case 4:r=Le,i=Pt,Le=n.stateNode.containerInfo,Pt=!0,Tn(e,t,n),Le=r,Pt=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&tc(n,t,o),i=i.next}while(i!==r)}Tn(e,t,n);break;case 1:if(!Be&&(Yr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,t,a)}Tn(e,t,n);break;case 21:Tn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,Tn(e,t,n),Be=r):Tn(e,t,n);break;default:Tn(e,t,n)}}function $h(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new T5),t.forEach(function(r){var i=B5.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*L5(r/1960))-r,10e?16:e,Mn===null)var r=!1;else{if(e=Mn,Mn=null,Zo=0,X&6)throw Error(R(331));var i=X;for(X|=4,O=e.current;O!==null;){var s=O,o=s.child;if(O.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lbe()-ac?ur(e,0):oc|=n),Je(e,t)}function Bh(e,t){t===0&&(e.mode&1?(t=no,no<<=1,!(no&130023424)&&(no=4194304)):t=1);var n=Ue();e=Gt(e,t),e!==null&&(Mi(e,t,n),Je(e,n))}function z5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bh(e,n)}function B5(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Bh(e,n)}var Rh;Rh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,$5(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,de&&t.flags&1048576&&y0(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fo(e,t),e=t.pendingProps;var i=Vr(t,Ie.current);Zr(t,n),i=Bu(null,t,r,e,i,n);var s=Ru();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ye(r)?(s=!0,So(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Lu(t),i.updater=Bo,t.stateNode=i,i._reactInternals=t,Uu(t,r,e,n),t=qu(null,t,r,!0,s,n)):(t.tag=0,de&&s&&xu(t),He(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=F5(r),e=$t(r,e),i){case 0:t=Gu(null,t,r,e,n);break e;case 1:t=dh(null,t,r,e,n);break e;case 11:t=oh(null,t,r,e,n);break e;case 14:t=ah(null,t,r,$t(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),Gu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),dh(e,t,r,i,n);case 3:e:{if(fh(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,i=s.element,k0(e,t),Lo(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qr(Error(R(423)),t),t=ph(e,t,r,n,i);break e}else if(r!==i){i=qr(Error(R(424)),t),t=ph(e,t,r,n,i);break e}else for(ot=Sn(t.stateNode.containerInfo.firstChild),st=t,de=!0,Et=null,n=$0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hr(),r===i){t=Yt(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return M0(t),e===null&&Eu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,mu(r,i)?o=null:s!==null&&mu(r,s)&&(t.flags|=32),ch(e,t),He(e,t,o,n),t.child;case 6:return e===null&&Eu(t),null;case 13:return hh(e,t,n);case 4:return Au(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),oh(e,t,r,i,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,se(To,r._currentValue),r._currentValue=o,s!==null)if(Ct(s.value,o)){if(s.children===i.children&&!qe.current){t=Yt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=qt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Du(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Du(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}He(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Zr(t,n),i=ft(i),r=r(i),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,i=$t(r,t.pendingProps),i=$t(r.type,i),ah(e,t,r,i,n);case 15:return lh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$t(r,i),Fo(e,t),t.tag=1,Ye(r)?(e=!0,So(t)):e=!1,Zr(t,n),J0(t,r,i),Uu(t,r,i,n),qu(null,t,r,!0,e,n);case 19:return gh(e,t,n);case 22:return uh(e,t,n)}throw Error(R(156,t.tag))};function Fh(e,t){return wp(e,t)}function R5(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 mt(e,t,n,r){return new R5(e,t,n,r)}function mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function F5(e){if(typeof e=="function")return mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xl)return 11;if(e===El)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=mt(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 Qo(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")mc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tr:return dr(n.children,i,s,t);case wl:o=8,i|=8;break;case bl:return e=mt(12,n,t,i|2),e.elementType=bl,e.lanes=s,e;case Sl:return e=mt(13,n,t,i),e.elementType=Sl,e.lanes=s,e;case Cl:return e=mt(19,n,t,i),e.elementType=Cl,e.lanes=s,e;case qf:return Xo(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zf:o=10;break e;case Gf:o=9;break e;case xl:o=11;break e;case El:o=14;break e;case hn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=mt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function dr(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Xo(e,t,n,r){return e=mt(22,e,r,t),e.elementType=qf,e.lanes=n,e.stateNode={isHidden:!1},e}function gc(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function vc(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function V5(e,t,n,r,i){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=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function yc(e,t,n,r,i,s,o,a,l){return e=new V5(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=mt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lu(s),e}function O5(e,t,n){var r=3e,isStatic:!1,reducedMotion:"never"}),oa=d.createContext({}),aa=d.createContext(null),Cc=typeof document!="undefined",la=Cc?d.useLayoutEffect:d.useEffect,qh=d.createContext({strict:!1}),Ec=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Yh="data-"+Ec("framerAppearId"),Z5={skipAnimations:!1,useManualTiming:!1};class Qh{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 G5(e){let t=new Qh,n=new Qh,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const f=c&&i,p=f?t:n;return u&&o.add(l),p.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[p]=G5(()=>n=!0),f),{}),o=f=>{s[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,q5),1),i.timestamp=f,i.isProcessing=!0,ua.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:ua.reduce((f,p)=>{const h=s[p];return f[p]=(v,w=!1,C=!1)=>(n||l(),h.schedule(v,w,C)),f},{}),cancel:f=>ua.forEach(p=>s[p].cancel(f)),state:i,steps:s}}const{schedule:$c,cancel:p$}=Xh(queueMicrotask,!1);function Y5(e,t,n,r){const{visualElement:i}=d.useContext(oa),s=d.useContext(qh),o=d.useContext(aa),a=d.useContext(Sc).reducedMotion,l=d.useRef();r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;d.useInsertionEffect(()=>{u&&u.update(n,o)});const c=d.useRef(!!(n[Yh]&&!window.HandoffComplete));return la(()=>{u&&($c.render(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),d.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function ei(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Q5(e,t,n){return d.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ei(n)&&(n.current=r))},[t])}function ls(e){return typeof e=="string"||Array.isArray(e)}function ca(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Pc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kc=["initial",...Pc];function da(e){return ca(e.animate)||kc.some(t=>ls(e[t]))}function Jh(e){return!!(da(e)||e.variants)}function X5(e,t){if(da(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ls(n)?n:void 0,animate:ls(r)?r:void 0}}return e.inherit!==!1?t:{}}function J5(e){const{initial:t,animate:n}=X5(e,d.useContext(oa));return d.useMemo(()=>({initial:t,animate:n}),[e1(t),e1(n)])}function e1(e){return Array.isArray(e)?e.join(" "):e}const t1={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"]},us={};for(const e in t1)us[e]={isEnabled:t=>t1[e].some(n=>!!t[n])};function e8(e){for(const t in e)us[t]=S(S({},us[t]),e[t])}const Tc=d.createContext({}),n1=d.createContext({}),t8=Symbol.for("motionComponentSymbol");function n8({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&e8(e);function s(a,l){let u;const c=A(S(S({},d.useContext(Sc)),a),{layoutId:r8(a)}),{isStatic:f}=c,p=J5(a),h=r(a,f);if(!f&&Cc){p.visualElement=Y5(i,h,c,t);const v=d.useContext(n1),w=d.useContext(qh).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,w,e,v))}return E.jsxs(oa.Provider,{value:p,children:[u&&p.visualElement?E.jsx(u,S({visualElement:p.visualElement},c)):null,n(i,a,Q5(h,p.visualElement,l),h,f,p.visualElement)]})}const o=d.forwardRef(s);return o[t8]=i,o}function r8({layoutId:e}){const t=d.useContext(Tc).id;return t&&e!==void 0?t+"-"+e:e}function i8(e){function t(r,i={}){return n8(e(r,i))}if(typeof Proxy=="undefined")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const s8=["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 Dc(e){return typeof e!="string"||e.includes("-")?!1:!!(s8.indexOf(e)>-1||/[A-Z]/u.test(e))}const fa={};function o8(e){Object.assign(fa,e)}const cs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fr=new Set(cs);function r1(e,{layout:t,layoutId:n}){return fr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fa[e]||e==="opacity")}const Re=e=>!!(e&&e.getVelocity),a8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l8=cs.length;function u8(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),s1=i1("--"),c8=i1("var(--"),Mc=e=>c8(e)?d8.test(e.split("/*")[0].trim()):!1,d8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,f8=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Nn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},ds=A(S({},ti),{transform:e=>Nn(0,1,e)}),pa=A(S({},ti),{default:1}),fs=e=>Math.round(e*1e5)/1e5,Lc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p8=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,h8=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function ps(e){return typeof e=="string"}const hs=e=>({test:t=>ps(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),In=hs("deg"),zt=hs("%"),W=hs("px"),m8=hs("vh"),g8=hs("vw"),o1=A(S({},zt),{parse:e=>zt.parse(e)/100,transform:e=>zt.transform(e*100)}),a1=A(S({},ti),{transform:Math.round}),l1={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,size:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:pa,scaleX:pa,scaleY:pa,scaleZ:pa,skew:In,skewX:In,skewY:In,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ds,originX:o1,originY:o1,originZ:W,zIndex:a1,backgroundPositionX:W,backgroundPositionY:W,fillOpacity:ds,strokeOpacity:ds,numOctaves:a1};function Ac(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const f in t){const p=t[f];if(s1(f)){s[f]=p;continue}const h=l1[f],v=f8(p,h);if(fr.has(f)){if(l=!0,o[f]=v,!c)continue;p!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=v):i[f]=v}if(t.transform||(l||r?i.transform=u8(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:p="50%",originZ:h=0}=a;i.transformOrigin=`${f} ${p} ${h}`}}const _c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function u1(e,t,n){for(const r in t)!Re(t[r])&&!r1(r,n)&&(e[r]=t[r])}function v8({transformTemplate:e},t,n){return d.useMemo(()=>{const r=_c();return Ac(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function y8(e,t,n){const r=e.style||{},i={};return u1(i,r,e),Object.assign(i,v8(e,t,n)),i}function w8(e,t,n){const r={},i=y8(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,r}const b8=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 ha(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||b8.has(e)}let c1=e=>!ha(e);function x8(e){e&&(c1=t=>t.startsWith("on")?!ha(t):e(t))}try{x8(require("@emotion/is-prop-valid").default)}catch(e){}function S8(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(c1(i)||n===!0&&ha(i)||!t&&!ha(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function d1(e,t,n){return typeof e=="string"?e:W.transform(t+n*e)}function C8(e,t,n){const r=d1(t,e.x,e.width),i=d1(n,e.y,e.height);return`${r} ${i}`}const E8={offset:"stroke-dashoffset",array:"stroke-dasharray"},$8={offset:"strokeDashoffset",array:"strokeDasharray"};function P8(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?E8:$8;e[s.offset]=W.transform(-r);const o=W.transform(t),a=W.transform(n);e[s.array]=`${o} ${a}`}function Nc(e,h,c,f,p){var v=h,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0}=v,u=G(v,["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"]);if(Ac(e,u,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:w,style:C,dimensions:g}=e;w.transform&&(g&&(C.transform=w.transform),delete w.transform),g&&(i!==void 0||s!==void 0||C.transform)&&(C.transformOrigin=C8(g,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(w.x=t),n!==void 0&&(w.y=n),r!==void 0&&(w.scale=r),o!==void 0&&P8(w,o,a,l,!1)}const f1=()=>A(S({},_c()),{attrs:{}}),Ic=e=>typeof e=="string"&&e.toLowerCase()==="svg";function k8(e,t,n,r){const i=d.useMemo(()=>{const s=f1();return Nc(s,t,{enableHardwareAcceleration:!1},Ic(r),e.transformTemplate),A(S({},s.attrs),{style:S({},s.style)})},[t]);if(e.style){const s={};u1(s,e.style,e),i.style=S(S({},s),i.style)}return i}function T8(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Dc(n)?k8:w8)(r,s,o,n),u=S8(r,typeof n=="string",e),c=n!==d.Fragment?A(S(S({},u),l),{ref:i}):{},{children:f}=r,p=d.useMemo(()=>Re(f)?f.get():f,[f]);return d.createElement(n,A(S({},c),{children:p}))}}function p1(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const h1=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 m1(e,t,n,r){p1(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(h1.has(i)?i:Ec(i),t.attrs[i])}function jc(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(Re(i[o])||t.style&&Re(t.style[o])||r1(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function g1(e,t,n){const r=jc(e,t,n);for(const i in e)if(Re(e[i])||Re(t[i])){const s=cs.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function v1(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zc(e,t,n,r){if(typeof t=="function"){const[i,s]=v1(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=v1(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Bc(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}const Rc=e=>Array.isArray(e),D8=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),M8=e=>Rc(e)?e[e.length-1]||0:e;function ma(e){const t=Re(e)?e.get():e;return D8(t)?t.toValue():t}function L8({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:A8(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const y1=e=>(t,n)=>{const r=d.useContext(oa),i=d.useContext(aa),s=()=>L8(e,t,r,i);return n?s():Bc(s)};function A8(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=ma(s[p]);let{initial:o,animate:a}=e;const l=da(e),u=Jh(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;return f&&typeof f!="boolean"&&!ca(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const v=zc(e,h);if(!v)return;const m=v,{transitionEnd:w,transition:C}=m,g=G(m,["transitionEnd","transition"]);for(const y in g){let $=g[y];if(Array.isArray($)){const T=c?$.length-1:0;$=$[T]}$!==null&&(i[y]=$)}for(const y in w)i[y]=w[y]}),i}const _e=e=>e,{schedule:J,cancel:Xt,state:De,steps:Fc}=Xh(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:_e,!0),_8={useVisualState:y1({scrapeMotionValuesFromProps:g1,createRenderState:f1,onMount:(e,t,{renderState:n,latestValues:r})=>{J.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}}),J.render(()=>{Nc(n,r,{enableHardwareAcceleration:!1},Ic(t.tagName),e.transformTemplate),m1(t,n)})}})},N8={useVisualState:y1({scrapeMotionValuesFromProps:jc,createRenderState:_c})};function I8(e,{forwardMotionProps:t=!1},n,r){const i=Dc(e)?_8:N8;return A(S({},i),{preloadedFeatures:n,useRender:T8(t),createVisualElement:r,Component:e})}function Jt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const w1=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ga(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const j8=e=>t=>w1(t)&&e(t,ga(t));function en(e,t,n,r){return Jt(e,t,j8(n),r)}const z8=(e,t)=>n=>t(e(n)),tn=(...e)=>e.reduce(z8);function b1(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const x1=b1("dragHorizontal"),S1=b1("dragVertical");function C1(e){let t=!1;if(e==="y")t=S1();else if(e==="x")t=x1();else{const n=x1(),r=S1();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function E1(){const e=C1(!0);return e?(e(),!1):!0}class jn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function $1(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(s,o)=>{if(s.pointerType==="touch"||E1())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&J.postRender(()=>l(s,o))};return en(e.current,n,i,{passive:!e.getProps()[r]})}class B8 extends jn{mount(){this.unmount=tn($1(this.node,!0),$1(this.node,!1))}unmount(){}}class R8 extends jn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(n){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=tn(Jt(this.node.current,"focus",()=>this.onFocus()),Jt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const P1=(e,t)=>t?e===t?!0:P1(e,t.parentElement):!1;function Vc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ga(n))}class F8 extends jn{constructor(){super(...arguments),this.removeStartListeners=_e,this.removeEndListeners=_e,this.removeAccessibleListeners=_e,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=en(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),p=!f&&!P1(this.node.current,a.target)?c:u;p&&J.update(()=>p(a,l))},{passive:!(r.onTap||r.onPointerUp)}),o=en(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=tn(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Vc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&J.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Jt(this.node.current,"keyup",o),Vc("down",(a,l)=>{this.startPress(a,l)})},n=Jt(this.node.current,"keydown",t),r=()=>{this.isPressing&&Vc("cancel",(s,o)=>this.cancelPress(s,o))},i=Jt(this.node.current,"blur",r);this.removeAccessibleListeners=tn(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&J.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!E1()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&J.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=en(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Jt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Oc=new WeakMap,Kc=new WeakMap,V8=e=>{const t=Oc.get(e.target);t&&t(e)},O8=e=>{e.forEach(V8)};function K8(n){var r=n,{root:e}=r,t=G(r,["root"]);const i=e||document;Kc.has(i)||Kc.set(i,{});const s=Kc.get(i),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(O8,S({root:e},t))),s[o]}function H8(e,t,n){const r=K8(t);return Oc.set(e,n),r.observe(e),()=>{Oc.delete(e),r.unobserve(e)}}const U8={some:0,all:1};class W8 extends jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:U8[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),p=u?c:f;p&&p(l)};return H8(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Z8(t,n))&&this.startObserver()}unmount(){}}function Z8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const G8={inView:{Feature:W8},tap:{Feature:F8},focus:{Feature:R8},hover:{Feature:B8}};function k1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,nn=e=>e/1e3,q8={type:"spring",stiffness:500,damping:25,restSpeed:10},Y8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Q8={type:"keyframes",duration:.8},X8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},J8=(e,{keyframes:t})=>t.length>2?Q8:fr.has(e)?e.startsWith("scale")?Y8(t[1]):q8:X8;function e6(f){var p=f,{when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u}=p,c=G(p,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}function Hc(e,t){return e[t]||e.default||e}const t6=e=>e!==null;function ya(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(t6),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}let wa;function n6(){wa=void 0}const Bn={now:()=>(wa===void 0&&Bn.set(De.isProcessing||Z5.useManualTiming?De.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(n6)}},T1=e=>/^0[^.\s]+$/u.test(e);function r6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||T1(e):!0}let i6=_e,Uc=_e;const D1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),s6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o6(e){const t=s6.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n!=null?n:r}`,i]}function M1(e,t,n=1){const[r,i]=o6(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return D1(o)?parseFloat(o):o}return Mc(i)?M1(i,t,n+1):i}const a6=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),L1=e=>e===ti||e===W,A1=(e,t)=>parseFloat(e.split(", ")[t]),_1=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return A1(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?A1(s[1],e):0}},l6=new Set(["x","y","z"]),u6=cs.filter(e=>!l6.has(e));function c6(e){const t=[];return u6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ni={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:_1(4,13),y:_1(5,14)};ni.translateX=ni.x,ni.translateY=ni.y;const N1=e=>t=>t.test(e),I1=[ti,W,zt,In,g8,m8,{test:e=>e==="auto",parse:e=>e}],j1=e=>I1.find(N1(e)),pr=new Set;let Wc=!1,Zc=!1;function z1(){if(Zc){const e=Array.from(pr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=c6(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zc=!1,Wc=!1,pr.forEach(e=>e.complete()),pr.clear()}function B1(){pr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zc=!0)})}function d6(){B1(),z1()}class Gc{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(pr.add(this),Wc||(Wc=!0,J.read(B1),J.resolveKeyframes(z1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;sn=>!!(ps(n)&&h8.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),R1=(e,t,n)=>r=>{if(!ps(r))return r;const[i,s,o,a]=r.match(Lc);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},f6=e=>Nn(0,255,e),Yc=A(S({},ti),{transform:e=>Math.round(f6(e))}),hr={test:qc("rgb","red"),parse:R1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yc.transform(e)+", "+Yc.transform(t)+", "+Yc.transform(n)+", "+fs(ds.transform(r))+")"};function p6(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Qc={test:qc("#"),parse:p6,transform:hr.transform},ri={test:qc("hsl","hue"),parse:R1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zt.transform(fs(t))+", "+zt.transform(fs(n))+", "+fs(ds.transform(r))+")"},Fe={test:e=>hr.test(e)||Qc.test(e)||ri.test(e),parse:e=>hr.test(e)?hr.parse(e):ri.test(e)?ri.parse(e):Qc.parse(e),transform:e=>ps(e)?e:e.hasOwnProperty("red")?hr.transform(e):ri.transform(e)};function h6(e){var t,n;return isNaN(e)&&ps(e)&&(((t=e.match(Lc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(p8))===null||n===void 0?void 0:n.length)||0)>0}const F1="number",V1="color",m6="var",g6="var(",O1="${}",v6=/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 ms(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(v6,l=>(Fe.test(l)?(r.color.push(s),i.push(V1),n.push(Fe.parse(l))):l.startsWith(g6)?(r.var.push(s),i.push(m6),n.push(l)):(r.number.push(s),i.push(F1),n.push(parseFloat(l))),++s,O1)).split(O1);return{values:n,split:a,indexes:r,types:i}}function K1(e){return ms(e).values}function H1(e){const{split:t,types:n}=ms(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function w6(e){const t=K1(e);return H1(e)(t.map(y6))}const Rn={test:h6,parse:K1,createTransformer:H1,getAnimatableNone:w6},b6=new Set(["brightness","contrast","saturate","opacity"]);function x6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lc)||[];if(!r)return e;const i=n.replace(r,"");let s=b6.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const S6=/\b([a-z-]*)\(.*?\)/gu,Xc=A(S({},Rn),{getAnimatableNone:e=>{const t=e.match(S6);return t?t.map(x6).join(" "):e}}),C6=A(S({},l1),{color:Fe,backgroundColor:Fe,outlineColor:Fe,fill:Fe,stroke:Fe,borderColor:Fe,borderTopColor:Fe,borderRightColor:Fe,borderBottomColor:Fe,borderLeftColor:Fe,filter:Xc,WebkitFilter:Xc}),Jc=e=>C6[e];function U1(e,t){let n=Jc(e);return n!==Xc&&(n=Rn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const E6=new Set(["auto","none","0"]);function $6(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function P6(e){let t;return()=>(t===void 0&&(t=e()),t)}const Z1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Rn.test(e)||e==="0")&&!e.startsWith("url("));function k6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function ed(e,t){return t?e*(1e3/t):0}const D6=5;function q1(e,t,n){const r=Math.max(t-D6,0);return ed(n-e(r),t-r)}const td=.001,M6=.01,L6=10,A6=.05,_6=1;function N6({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Nn(A6,_6,o),e=Nn(M6,L6,nn(e)),o<1?(i=u=>{const c=u*o,f=c*e,p=c-n,h=nd(u,o),v=Math.exp(-f);return td-p/h*v},s=u=>{const f=u*o*e,p=f*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-f),w=nd(Math.pow(u,2),o);return(-i(u)+td>0?-1:1)*((p-h)*v)/w}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-td+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=j6(i,s,a);if(e=zn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const I6=12;function j6(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function R6(e){let t=S({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Y1(e,B6)&&Y1(e,z6)){const n=N6(e);t=A(S(S({},t),n),{mass:1}),t.isResolvedFromDuration=!0}return t}function Q1(i){var s=i,{keyframes:e,restDelta:t,restSpeed:n}=s,r=G(s,["keyframes","restDelta","restSpeed"]);const o=e[0],a=e[e.length-1],l={done:!1,value:o},{stiffness:u,damping:c,mass:f,duration:p,velocity:h,isResolvedFromDuration:v}=R6(A(S({},r),{velocity:-nn(r.velocity||0)})),w=h||0,C=c/(2*Math.sqrt(u*f)),g=a-o,m=nn(Math.sqrt(u/f)),y=Math.abs(g)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let $;if(C<1){const T=nd(m,C);$=L=>{const z=Math.exp(-C*m*L);return a-z*((w+C*m*g)/T*Math.sin(T*L)+g*Math.cos(T*L))}}else if(C===1)$=T=>a-Math.exp(-m*T)*(g+(w+m*g)*T);else{const T=m*Math.sqrt(C*C-1);$=L=>{const z=Math.exp(-C*m*L),M=Math.min(T*L,300);return a-z*((w+C*m*g)*Math.sinh(M)+T*g*Math.cosh(M))/T}}return{calculatedDuration:v&&p||null,next:T=>{const L=$(T);if(v)l.done=T>=p;else{let z=w;T!==0&&(C<1?z=q1($,T,L):z=0);const M=Math.abs(z)<=n,b=Math.abs(a-L)<=t;l.done=M&&b}return l.value=l.done?a:L,l}}}function X1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},h=M=>a!==void 0&&Ml,v=M=>a===void 0?l:l===void 0||Math.abs(a-M)-w*Math.exp(-M/r),y=M=>g+m(M),$=M=>{const b=m(M),P=y(M);p.done=Math.abs(b)<=u,p.value=p.done?g:P};let T,L;const z=M=>{h(p.value)&&(T=M,L=Q1({keyframes:[p.value,v(p.value)],velocity:q1(y,M,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return z(0),{calculatedDuration:null,next:M=>{let b=!1;return!L&&T===void 0&&(b=!0,$(M),z(M)),T!==void 0&&M>=T?L.next(M-T):(!b&&$(M),p)}}}const J1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F6=1e-7,V6=12;function O6(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=J1(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>F6&&++aO6(s,0,1,e,n);return s=>s===0||s===1?s:J1(i(s),t,r)}const K6=gs(.42,0,1,1),H6=gs(0,0,.58,1),em=gs(.42,0,.58,1),U6=e=>Array.isArray(e)&&typeof e[0]!="number",tm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nm=e=>t=>1-e(1-t),rd=e=>1-Math.sin(Math.acos(e)),rm=nm(rd),W6=tm(rd),im=gs(.33,1.53,.69,.99),id=nm(im),Z6=tm(id),sm={linear:_e,easeIn:K6,easeInOut:em,easeOut:H6,circIn:rd,circInOut:W6,circOut:rm,backIn:id,backInOut:Z6,backOut:im,anticipate:e=>(e*=2)<1?.5*id(e):.5*(2-Math.pow(2,-10*(e-1)))},om=e=>{if(Array.isArray(e)){Uc(e.length===4);const[t,n,r,i]=e;return gs(t,n,r,i)}else if(typeof e=="string")return Uc(sm[e]!==void 0),sm[e];return e},ii=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},me=(e,t,n)=>e+(t-e)*n;function sd(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 G6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=sd(l,a,e+1/3),s=sd(l,a,e),o=sd(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const od=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},q6=[Qc,hr,ri],Y6=e=>q6.find(t=>t.test(e));function am(e){const t=Y6(e);let n=t.parse(e);return t===ri&&(n=G6(n)),n}const lm=(e,t)=>{const n=am(e),r=am(t),i=S({},n);return s=>(i.red=od(n.red,r.red,s),i.green=od(n.green,r.green,s),i.blue=od(n.blue,r.blue,s),i.alpha=me(n.alpha,r.alpha,s),hr.transform(i))},ad=new Set(["none","hidden"]);function Q6(e,t){return ad.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ld(e,t){return n=>n>0?t:e}function X6(e,t){return n=>me(e,t,n)}function ud(e){return typeof e=="number"?X6:typeof e=="string"?Mc(e)?ld:Fe.test(e)?lm:t7:Array.isArray(e)?um:typeof e=="object"?Fe.test(e)?lm:J6:ld}function um(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>ud(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function e7(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=Rn.createTransformer(t),r=ms(e),i=ms(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ad.has(e)&&!i.values.length||ad.has(t)&&!r.values.length?Q6(e,t):tn(um(e7(r,i),i.values),n):ld(e,t)};function cm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?me(e,t,n):ud(e)(e,t)}function n7(e,t,n){const r=[],i=n||cm,s=e.length-1;for(let o=0;ot[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=n7(t,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(Nn(e[0],e[s-1],u)):l}function r7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ii(0,t,r);e.push(me(n,1,i))}}function fm(e){const t=[0];return r7(t,e.length-1),t}function i7(e,t){return e.map(n=>n*t)}function s7(e,t){return e.map(()=>t||em).splice(0,e.length-1)}function ba({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=U6(r)?r.map(om):om(r),s={done:!1,value:t[0]},o=i7(n&&n.length===t.length?n:fm(t),e),a=dm(o,t,{ease:Array.isArray(i)?i:s7(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const pm=2e4;function o7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=pm?1/0:t}const a7=e=>{const t=({timestamp:n})=>e(n);return{start:()=>J.update(t,!0),stop:()=>Xt(t),now:()=>De.isProcessing?De.timestamp:Bn.now()}},l7={decay:X1,inertia:X1,tween:ba,keyframes:ba,spring:Q1},u7=e=>e/100;class cd extends G1{constructor(r){var i=r,{KeyframeResolver:t=Gc}=i,n=G(i,["KeyframeResolver"]);super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:s,motionValue:o,keyframes:a}=this.options,l=(u,c)=>this.onKeyframesResolved(u,c);s&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(a,l,s,o):this.resolver=new t(a,l,s,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=l7[n]||ba;let l,u;a!==ba&&typeof t[0]!="number"&&(l=tn(u7,cm(t[0],t[1])),t=[0,100]);const c=a(A(S({},this.options),{keyframes:t}));s==="mirror"&&(u=a(A(S({},this.options),{keyframes:[...t].reverse(),velocity:-o}))),c.calculatedDuration===null&&(c.calculatedDuration=o7(c));const{calculatedDuration:f}=c,p=f+i,h=p*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}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:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:p,repeat:h,repeatType:v,repeatDelay:w,onUpdate:C}=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-p*(this.speed>=0?1:-1),m=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,$=s;if(h){const M=Math.min(this.currentTime,c)/f;let b=Math.floor(M),P=M%1;!P&&M>=1&&(P=1),P===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(v==="reverse"?(P=1-P,w&&(P-=w/f)):v==="mirror"&&($=o)),y=Nn(0,1,P)*f}const T=m?{done:!1,value:l[0]}:$.next(y);a&&(T.value=a(T.value));let{done:L}=T;!m&&u!==null&&(L=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return z&&i!==void 0&&(T.value=ya(l,this.options,i)),C&&C(T.value),z&&this.finish(),T}get duration(){const{resolved:t}=this;return t?nn(t.calculatedDuration):0}get time(){return nn(this.currentTime)}set time(t){t=zn(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=nn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=a7,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),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}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 hm=e=>Array.isArray(e)&&typeof e[0]=="number";function mm(e){return!!(!e||typeof e=="string"&&e in dd||hm(e)||Array.isArray(e)&&e.every(mm))}const vs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,dd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vs([0,.65,.55,1]),circOut:vs([.55,0,1,.45]),backIn:vs([.31,.01,.66,-.59]),backOut:vs([.33,1.53,.69,.99])};function c7(e){return gm(e)||dd.easeOut}function gm(e){if(e)return hm(e)?vs(e):Array.isArray(e)?e.map(c7):dd[e]}function d7(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=gm(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const f7=P6(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),p7=new Set(["opacity","clipPath","filter","transform"]),xa=10,h7=2e4;function m7(e){return e.type==="spring"||e.name==="backgroundColor"||!mm(e.ease)}function g7(e,t){const n=new cd(A(S({},t),{keyframes:e,repeat:0,delay:0,isGenerator:!0}));let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&sthis.onKeyframesResolved(s,o),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:s,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(m7(this.options)){const f=this.options,{onComplete:p,onUpdate:h,motionValue:v}=f,w=G(f,["onComplete","onUpdate","motionValue"]),C=g7(t,w);t=C.keyframes,t.length===1&&(t[1]=t[0]),i=C.duration,s=C.times,o=C.ease,a="keyframes"}const c=d7(l.owner.current,u,t,A(S({},this.options),{duration:i,times:s,ease:o}));return c.startTime=Bn.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:p}=this.options;l.set(ya(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return nn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return nn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=zn(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 _e;const{animation:r}=n;r.timeline=t,r.onfinish=null}return _e}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:i,type:s,ease:o,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const l=this.options,{motionValue:u,onUpdate:c,onComplete:f}=l,p=G(l,["motionValue","onUpdate","onComplete"]),h=new cd(A(S({},p),{keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0})),v=zn(this.time);u.setWithVelocity(h.sample(v-xa).value,h.sample(v).value,xa)}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:i,repeatType:s,damping:o,type:a}=t;return f7()&&r&&p7.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const fd=(e,t,n,r={},i,s)=>o=>{const a=Hc(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-zn(l);let c=A(S({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity()},a),{delay:-u,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i});e6(a)||(c=S(S({},c),J8(e,c))),c.duration&&(c.duration=zn(c.duration)),c.repeatDelay&&(c.repeatDelay=zn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const p=ya(c.keyframes,a);if(p!==void 0){J.update(()=>{c.onUpdate(p),c.onComplete()});return}}return!s&&vm.supports(c)?new vm(c):new cd(c)};function Sa(e){return!!(Re(e)&&e.add)}function pd(e,t){e.indexOf(t)===-1&&e.push(t)}function hd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class md{constructor(){this.subscriptions=[]}add(t){return pd(this.subscriptions,t),()=>hd(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class y7{constructor(t,n={}){this.version="11.2.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Bn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Bn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=v7(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new md);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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=Bn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ym)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ym);return ed(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 rn(e,t){return new y7(e,t)}function w7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rn(n))}function b7(e,t){let o=va(e,t)||{},{transitionEnd:r={},transition:i={}}=o,s=G(o,["transitionEnd","transition"]);s=S(S({},s),r);for(const a in s){const l=M8(s[a]);w7(e,a,l)}}function x7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let p=t,{transition:o=e.getDefaultTransition(),transitionEnd:a}=p,l=G(p,["transition","transitionEnd"]);const u=e.getValue("willChange");r&&(o=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const v=e.getValue(h,(s=e.latestValues[h])!==null&&s!==void 0?s:null),w=l[h];if(w===void 0||f&&x7(f,h))continue;const C=S({delay:n,elapsed:0},Hc(o||{},h));let g=!1;if(window.HandoffAppearAnimations){const $=e.getProps()[Yh];if($){const T=window.HandoffAppearAnimations($,h,v,J);T!==null&&(C.elapsed=T,g=!0)}}v.start(fd(h,v,w,e.shouldReduceMotion&&fr.has(h)?{type:!1}:C,e,g));const m=v.animation;m&&(Sa(u)&&(u.add(h),m.then(()=>u.remove(h))),c.push(m))}return a&&Promise.all(c).then(()=>{J.update(()=>{a&&b7(e,a)})}),c}function gd(e,t,n={}){var r;const i=va(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(wm(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=s;return S7(e,t,c+u,f,p,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function S7(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(C7).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(gd(u,t,A(S({},s),{delay:n+l(c)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function C7(e,t){return e.sortNodePosition(t)}function E7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>gd(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=gd(e,t,n);else{const i=typeof t=="function"?va(e,t,n.custom):t;r=Promise.all(wm(e,i,n))}return r.then(()=>{J.postRender(()=>{e.notify("AnimationComplete",t)})})}const $7=[...Pc].reverse(),P7=Pc.length;function k7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>E7(e,n,r)))}function T7(e){let t=k7(e);const n=M7();let r=!0;const i=l=>(u,c)=>{var f;const p=va(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const h=p,{transition:v,transitionEnd:w}=h,C=G(h,["transition","transitionEnd"]);u=S(S(S({},u),C),w)}return u};function s(l){t=l(e)}function o(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],p=new Set;let h={},v=1/0;for(let C=0;Cv&&$,b=!1;const P=Array.isArray(y)?y:[y];let K=P.reduce(i(g),{});T===!1&&(K={});const{prevResolvedValues:x={}}=m,N=S(S({},x),K),k=D=>{M=!0,p.has(D)&&(b=!0,p.delete(D)),m.needsAnimating[D]=!0;const V=e.getValue(D);V&&(V.liveStyle=!1)};for(const D in N){const V=K[D],j=x[D];if(h.hasOwnProperty(D))continue;let I=!1;Rc(V)&&Rc(j)?I=!k1(V,j):I=V!==j,I?V!=null?k(D):p.add(D):V!==void 0&&p.has(D)?k(D):m.protectedKeys[D]=!0}m.prevProp=y,m.prevResolvedValues=K,m.isActive&&(h=S(S({},h),K)),r&&e.blockInitialAnimation&&(M=!1),M&&(!L||b)&&f.push(...P.map(D=>({animation:D,options:{type:g}})))}if(p.size){const C={};p.forEach(g=>{const m=e.getBaseTarget(g),y=e.getValue(g);y&&(y.liveStyle=!0),C[g]=m!=null?m:null}),f.push({animation:C})}let w=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(f):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const f=o(l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n}}function D7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!k1(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function M7(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class L7 extends jn{constructor(t){super(t),t.animationState||(t.animationState=T7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ca(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 A7=0;class _7 extends jn{constructor(){super(...arguments),this.id=A7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const N7={animation:{Feature:L7},exit:{Feature:_7}},bm=(e,t)=>Math.abs(e-t);function I7(e,t){const n=bm(e.x,t.x),r=bm(e.y,t.y);return Math.sqrt(Tf(n,2)+Tf(r,2))}class xm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=yd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=I7(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=f,{timestamp:w}=De;this.history.push(A(S({},v),{timestamp:w}));const{onStart:C,onMove:g}=this.handlers;p||(C&&C(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=vd(p,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=yd(f.type==="pointercancel"?this.lastMoveEventInfo:vd(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,C),v&&v(f,C)},!w1(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=ga(t),a=vd(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=De;this.history=[A(S({},l),{timestamp:u})];const{onSessionStart:c}=n;c&&c(t,yd(a,this.history)),this.removeListeners=tn(en(this.contextWindow,"pointermove",this.handlePointerMove),en(this.contextWindow,"pointerup",this.handlePointerUp),en(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xt(this.updatePoint)}}function vd(e,t){return t?{point:t(e.point)}:e}function Sm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yd({point:e},t){return{point:e,delta:Sm(e,Cm(t)),offset:Sm(e,j7(t)),velocity:z7(t,.1)}}function j7(e){return e[0]}function Cm(e){return e[e.length-1]}function z7(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Cm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>zn(t)));)n--;if(!r)return{x:0,y:0};const s=nn(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function lt(e){return e.max-e.min}function wd(e,t=0,n=.01){return Math.abs(e-t)<=n}function Em(e,t,n,r=.5){e.origin=r,e.originPoint=me(t.min,t.max,e.origin),e.scale=lt(n)/lt(t),(wd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=me(n.min,n.max,e.origin)-e.originPoint,(wd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ys(e,t,n,r){Em(e.x,t.x,n.x,r?r.originX:void 0),Em(e.y,t.y,n.y,r?r.originY:void 0)}function $m(e,t,n){e.min=n.min+t.min,e.max=e.min+lt(t)}function B7(e,t,n){$m(e.x,t.x,n.x),$m(e.y,t.y,n.y)}function Pm(e,t,n){e.min=t.min-n.min,e.max=e.min+lt(t)}function ws(e,t,n){Pm(e.x,t.x,n.x),Pm(e.y,t.y,n.y)}function R7(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?me(n,e,r.max):Math.min(e,n)),e}function km(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function F7(e,{top:t,left:n,bottom:r,right:i}){return{x:km(e.x,n,i),y:km(e.y,t,r)}}function Tm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ii(t.min,t.max-r,e.min):r>i&&(n=ii(e.min,e.max-i,t.min)),Nn(0,1,n)}function K7(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bd=.35;function H7(e=bd){return e===!1?e=0:e===!0&&(e=bd),{x:Dm(e,"left","right"),y:Dm(e,"top","bottom")}}function Dm(e,t,n){return{min:Mm(e,t),max:Mm(e,n)}}function Mm(e,t){return typeof e=="number"?e:e[t]||0}const Lm=()=>({translate:0,scale:1,origin:0,originPoint:0}),si=()=>({x:Lm(),y:Lm()}),Am=()=>({min:0,max:0}),xe=()=>({x:Am(),y:Am()});function gt(e){return[e("x"),e("y")]}function _m({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function U7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function W7(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 xd(e){return e===void 0||e===1}function Sd({scale:e,scaleX:t,scaleY:n}){return!xd(e)||!xd(t)||!xd(n)}function gr(e){return Sd(e)||Nm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Nm(e){return Im(e.x)||Im(e.y)}function Im(e){return e&&e!=="0%"}function Ca(e,t,n){const r=e-n,i=t*r;return n+i}function jm(e,t,n,r,i){return i!==void 0&&(e=Ca(e,i,r)),Ca(e,n,r)+t}function Cd(e,t=0,n=1,r,i){e.min=jm(e.min,t,n,r,i),e.max=jm(e.max,t,n,r,i)}function zm(e,{x:t,y:n}){Cd(e.x,t.translate,t.scale,t.originPoint),Cd(e.y,n.translate,n.scale,n.originPoint)}function Z7(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Fn(e,t){e.min=e.min+t,e.max=e.max+t}function Rm(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=me(e.min,e.max,s);Cd(e,t[n],t[r],o,t.scale)}const G7=["x","scaleX","originX"],q7=["y","scaleY","originY"];function oi(e,t){Rm(e.x,t,G7),Rm(e.y,t,q7)}function Fm(e,t){return _m(W7(e.getBoundingClientRect(),t))}function Y7(e,t,n){const r=Fm(e,n),{scroll:i}=t;return i&&(Fn(r.x,i.offset.x),Fn(r.y,i.offset.y)),r}const Vm=({current:e})=>e?e.ownerDocument.defaultView:null,Q7=new WeakMap;class X7{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ga(c,"page").point)},s=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=C1(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gt(C=>{let g=this.getAxisMotionValue(C).get()||0;if(zt.test(g)){const{projection:m}=this.visualElement;if(m&&m.layout){const y=m.layout.layoutBox[C];y&&(g=lt(y)*(parseFloat(g)/100))}}this.originPoint[C]=g}),v&&J.postRender(()=>v(c,f));const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:v,onDrag:w}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:C}=f;if(h&&this.currentDirection===null){this.currentDirection=J7(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),w&&w(c,f)},a=(c,f)=>this.stop(c,f),l=()=>gt(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new xm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Vm(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&J.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ea(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=R7(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&ei(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=F7(i.layoutBox,n):this.constraints=!1,this.elastic=H7(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&>(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=K7(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ei(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Y7(r,i.root,this.visualElement.getTransformPagePoint());let o=V7(i.layout.layoutBox,s);if(n){const a=n(U7(o));this.hasMutatedConstraints=!!a,a&&(o=_m(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=gt(c=>{if(!Ea(c,n,this.currentDirection))return;let f=l&&l[c]||{};o&&(f={min:0,max:0});const p=i?200:1e6,h=i?40:1e7,v=S(S({type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),f);return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(fd(t,r,0,n,this.visualElement))}stopAnimation(){gt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){gt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){gt(n=>{const{drag:r}=this.getProps();if(!Ea(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-me(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ei(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};gt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=O7({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),gt(o=>{if(!Ea(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(me(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Q7.set(this.visualElement,this);const t=this.visualElement.current,n=en(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ei(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=Jt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(gt(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=bd,dragMomentum:a=!0}=t;return A(S({},t),{drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a})}}function Ea(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function J7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class e9 extends jn{constructor(t){super(t),this.removeGroupControls=_e,this.removeListeners=_e,this.controls=new X7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_e}unmount(){this.removeGroupControls(),this.removeListeners()}}const Om=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class t9 extends jn{constructor(){super(...arguments),this.removePointerDownListener=_e}onPointerDown(t){this.session=new xm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Om(t),onStart:Om(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&J.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=en(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function n9(){const e=d.useContext(aa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=d.useId();return d.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const $a={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Km(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=Km(e,t.target.x),r=Km(e,t.target.y);return`${n}% ${r}%`}},r9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Rn.parse(e);if(i.length>5)return r;const s=Rn.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=me(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class i9 extends d.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;o8(s9),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(A(S({},s.options),{onExitComplete:()=>this.safeToRemove()}))),$a.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||J.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$c.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Hm(e){const[t,n]=n9(),r=d.useContext(Tc);return E.jsx(i9,A(S({},e),{layoutGroup:r,switchLayoutGroup:d.useContext(n1),isPresent:t,safeToRemove:n}))}const s9={borderRadius:A(S({},bs),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:bs,borderTopRightRadius:bs,borderBottomLeftRadius:bs,borderBottomRightRadius:bs,boxShadow:r9},Um=["TopLeft","TopRight","BottomLeft","BottomRight"],o9=Um.length,Wm=e=>typeof e=="string"?parseFloat(e):e,Zm=e=>typeof e=="number"||W.test(e);function a9(e,t,n,r,i,s){i?(e.opacity=me(0,n.opacity!==void 0?n.opacity:1,l9(r)),e.opacityExit=me(t.opacity!==void 0?t.opacity:1,0,u9(r))):s&&(e.opacity=me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(ii(e,t,r))}function Ym(e,t){e.min=t.min,e.max=t.max}function vt(e,t){Ym(e.x,t.x),Ym(e.y,t.y)}function Qm(e,t,n,r,i){return e-=t,e=Ca(e,1/n,r),i!==void 0&&(e=Ca(e,1/i,r)),e}function c9(e,t=0,n=1,r=.5,i,s=e,o=e){if(zt.test(t)&&(t=parseFloat(t),t=me(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=me(s.min,s.max,r);e===s&&(a-=t),e.min=Qm(e.min,t,n,a,i),e.max=Qm(e.max,t,n,a,i)}function Xm(e,t,[n,r,i],s,o){c9(e,t[n],t[r],t[i],t.scale,s,o)}const d9=["x","scaleX","originX"],f9=["y","scaleY","originY"];function Jm(e,t,n,r){Xm(e.x,t,d9,n?n.x:void 0,r?r.x:void 0),Xm(e.y,t,f9,n?n.y:void 0,r?r.y:void 0)}function e2(e){return e.translate===0&&e.scale===1}function t2(e){return e2(e.x)&&e2(e.y)}function p9(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function n2(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function r2(e){return lt(e.x)/lt(e.y)}class h9{constructor(){this.members=[]}add(t){pd(this.members,t),t.scheduleRender()}remove(t){if(hd(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function i2(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:p,skewX:h,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const m9=(e,t)=>e.depth-t.depth;class g9{constructor(){this.children=[],this.isDirty=!1}add(t){pd(this.children,t),this.isDirty=!0}remove(t){hd(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(m9),this.isDirty=!1,this.children.forEach(t)}}function v9(e,t){const n=Bn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Xt(r),e(s-t))};return J.read(r,!0),()=>Xt(r)}function y9(e){window.MotionDebug&&window.MotionDebug.record(e)}function w9(e){return e instanceof SVGElement&&e.tagName!=="svg"}function b9(e,t,n){const r=Re(e)?e:rn(e);return r.start(fd("",r,t,n)),r.animation}const Ed=["","X","Y","Z"],x9={visibility:"hidden"},s2=1e3;let S9=0;const vr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function $d(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function o2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=S9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vr.totalNodes=vr.resolvedTargetDeltas=vr.recalculatedProjection=0,this.nodes.forEach($9),this.nodes.forEach(M9),this.nodes.forEach(L9),this.nodes.forEach(P9),y9(vr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=v9(p,250),$a.hasAnimatedSinceResize&&($a.hasAnimatedSinceResize=!1,this.nodes.forEach(l2))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||j9,{onLayoutAnimationStart:C,onLayoutAnimationComplete:g}=c.getProps(),m=!this.targetLayout||!n2(this.targetLayout,v)||h,y=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||p&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const $=A(S({},Hc(w,"layout")),{onPlay:C,onComplete:g});(c.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||l2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes&&this.nodes.forEach(A9),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(k9),this.sharedNodes.forEach(_9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,J.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=$/1e3;u2(f.x,o.x,T),u2(f.y,o.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ws(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),N9(this.relativeTarget,this.relativeTargetOrigin,p,T),y&&p9(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=xe()),vt(y,this.relativeTarget)),w&&(this.animationValues=c,a9(c,u,this.latestValues,T,m,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{$a.hasAnimatedSinceResize=!0,this.currentAnimation=b9(0,s2,A(S({},o),{onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(s2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&h2(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||xe();const f=lt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const p=lt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}vt(a,l),oi(a,c),ys(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new h9),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&$d("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(a2),this.root.sharedNodes.clear()}}}function C9(e){e.updateLayout()}function E9(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?gt(f=>{const p=o?n.measuredBox[f]:n.layoutBox[f],h=lt(p);p.min=r[f].min,p.max=p.min+h}):h2(s,n.layoutBox,r)&>(f=>{const p=o?n.measuredBox[f]:n.layoutBox[f],h=lt(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=si();ys(a,r,n.layoutBox);const l=si();o?ys(l,e.applyTransform(i,!0),n.measuredBox):ys(l,r,n.layoutBox);const u=!t2(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const v=xe();ws(v,n.layoutBox,p.layoutBox);const w=xe();ws(w,r,h.layoutBox),n2(v,w)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $9(e){vr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function P9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function k9(e){e.clearSnapshot()}function a2(e){e.clearMeasurements()}function T9(e){e.isLayoutDirty=!1}function D9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function l2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function M9(e){e.resolveTargetDelta()}function L9(e){e.calcProjection()}function A9(e){e.resetSkewAndRotation()}function _9(e){e.removeLeadSnapshot()}function u2(e,t,n){e.translate=me(t.translate,0,n),e.scale=me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function c2(e,t,n,r){e.min=me(t.min,n.min,r),e.max=me(t.max,n.max,r)}function N9(e,t,n,r){c2(e.x,t.x,n.x,r),c2(e.y,t.y,n.y,r)}function I9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const j9={duration:.45,ease:[.4,0,.1,1]},d2=e=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),f2=d2("applewebkit/")&&!d2("chrome/")?Math.round:_e;function p2(e){e.min=f2(e.min),e.max=f2(e.max)}function z9(e){p2(e.x),p2(e.y)}function h2(e,t,n){return e==="position"||e==="preserve-aspect"&&!wd(r2(t),r2(n),.2)}const B9=o2({attachResizeListener:(e,t)=>Jt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pd={current:void 0},m2=o2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pd.current){const e=new B9({});e.mount(window),e.setOptions({layoutScroll:!0}),Pd.current=e}return Pd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),R9={pan:{Feature:t9},drag:{Feature:e9,ProjectionNode:m2,MeasureLayout:Hm}},kd={current:null},g2={current:!1};function F9(){if(g2.current=!0,!!Cc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kd.current=e.matches;e.addListener(t),t()}else kd.current=!1}function V9(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(Re(s))e.addValue(i,s),Sa(r)&&r.add(i);else if(Re(o))e.addValue(i,rn(s,{owner:e})),Sa(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,rn(a!==void 0?a:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const v2=new WeakMap,O9=[...I1,Fe,Rn],K9=e=>O9.find(N1(e)),y2=Object.keys(us),H9=y2.length,w2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],U9=kc.length;function b2(e){if(e)return e.options.allowProjection!==!1?e.projection:b2(e.parent)}class W9{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.resolveKeyframes=(h,v,w,C)=>new this.KeyframeResolver(h,v,w,C,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gc,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=()=>J.render(this.render,!1,!0);const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget=S({},l),this.initialValues=n.initial?S({},l):{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=da(n),this.isVariantNode=Jh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const p=this.scrapeMotionValuesFromProps(n,{},this),{willChange:c}=p,f=G(p,["willChange"]);for(const h in f){const v=f[h];l[h]!==void 0&&Re(v)&&(v.set(l[h],!1),Sa(c)&&c.add(h))}}mount(t){this.current=t,v2.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)),g2.current||F9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;v2.delete(this.current),this.projection&&this.projection.unmount(),Xt(this.notifyUpdate),Xt(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=fr.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(o,r,i,s){var a=o,{children:t}=a,n=G(a,["children"]);let l,u;for(let c=0;cthis.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:s,layoutScroll:v,layoutRoot:w})}return u}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):xe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=rn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=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 i!=null&&(typeof i=="string"&&(D1(i)||T1(i))?i=parseFloat(i):!K9(i)&&Rn.test(n)&&(i=U1(t,n)),this.setBaseTarget(t,Re(i)?i.get():i)),Re(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=zc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Re(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new md),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class x2 extends W9{constructor(){super(...arguments),this.KeyframeResolver=W1}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 Z9(e){return window.getComputedStyle(e)}class G9 extends x2{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(fr.has(n)){const r=Jc(n);return r&&r.default||0}else{const r=Z9(t),i=(s1(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fm(t,n)}build(t,n,r,i){Ac(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jc(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Re(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){p1(t,n,r,i)}}class q9 extends x2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fr.has(n)){const r=Jc(n);return r&&r.default||0}return n=h1.has(n)?n:Ec(n),t.getAttribute(n)}measureInstanceViewportBox(){return xe()}scrapeMotionValuesFromProps(t,n,r){return g1(t,n,r)}build(t,n,r,i){Nc(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){m1(t,n,r,i)}mount(t){this.isSVGTag=Ic(t.tagName),super.mount(t)}}const Y9=(e,t)=>Dc(e)?new q9(t,{enableHardwareAcceleration:!1}):new G9(t,{allowProjection:e!==d.Fragment,enableHardwareAcceleration:!0}),Q9={layout:{ProjectionNode:m2,MeasureLayout:Hm}},X9=S(S(S(S({},N7),G8),R9),Q9),re=i8((e,t)=>I8(e,t,X9,Y9));function S2(){const e=d.useRef(!1);return la(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function J9(){const e=S2(),[t,n]=d.useState(0),r=d.useCallback(()=>{e.current&&n(t+1)},[t]);return[d.useCallback(()=>J.postRender(r),[r]),t]}class ew extends d.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 tw({children:e,isPresent:t}){const n=d.useId(),r=d.useRef(null),i=d.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=d.useContext(Sc);return d.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${a}px !important; top: ${l}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(c)}},[t]),E.jsx(ew,{isPresent:t,childRef:r,sizeRef:i,children:d.cloneElement(e,{ref:r})})}const Td=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=Bc(nw),l=d.useId(),u=d.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const f of a.values())if(!f)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),s?[Math.random()]:[n]);return d.useMemo(()=>{a.forEach((c,f)=>a.set(f,!1))},[n]),d.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=E.jsx(tw,{isPresent:n,children:e})),E.jsx(aa.Provider,{value:u,children:e})};function nw(){return new Map}function rw(e){return d.useEffect(()=>()=>e(),[])}const yr=e=>e.key||"";function iw(e,t){e.forEach(n=>{const r=yr(n);t.set(r,n)})}function sw(e){const t=[];return d.Children.forEach(e,n=>{d.isValidElement(n)&&t.push(n)}),t}const Vn=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=d.useContext(Tc).forceRender||J9()[0],l=S2(),u=sw(e);let c=u;const f=d.useRef(new Map).current,p=d.useRef(c),h=d.useRef(new Map).current,v=d.useRef(!0);if(la(()=>{v.current=!1,iw(u,h),p.current=c}),rw(()=>{v.current=!0,h.clear(),f.clear()}),v.current)return E.jsx(E.Fragment,{children:c.map(m=>E.jsx(Td,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o,children:m},yr(m)))});c=[...c];const w=p.current.map(yr),C=u.map(yr),g=w.length;for(let m=0;m{if(C.indexOf(y)!==-1)return;const $=h.get(y);if(!$)return;const T=w.indexOf(y);let L=m;if(!L){const z=()=>{f.delete(y);const M=Array.from(h.keys()).filter(b=>!C.includes(b));if(M.forEach(b=>h.delete(b)),p.current=u.filter(b=>{const P=yr(b);return P===y||M.includes(P)}),!f.size){if(l.current===!1)return;a(),r&&r()}};L=E.jsx(Td,{isPresent:!1,onExitComplete:z,custom:t,presenceAffectsLayout:s,mode:o,children:$},yr($)),f.set(y,L)}c.splice(T,0,L)}),c=c.map(m=>{const y=m.key;return f.has(y)?m:E.jsx(Td,{isPresent:!0,presenceAffectsLayout:s,mode:o,children:m},yr(m))}),E.jsx(E.Fragment,{children:f.size?c:c.map(m=>d.cloneElement(m))})};function ow(e,t,n){d.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function aw(e,t,n){return typeof e=="string"?e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const Pa=new WeakMap;let On;function lw(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function uw({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Pa.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return lw(e,n)}})})}function cw(e){e.forEach(uw)}function dw(){typeof ResizeObserver!="undefined"&&(On=new ResizeObserver(cw))}function fw(e,t){On||dw();const n=aw(e);return n.forEach(r=>{let i=Pa.get(r);i||(i=new Set,Pa.set(r,i)),i.add(t),On==null||On.observe(r)}),()=>{n.forEach(r=>{const i=Pa.get(r);i==null||i.delete(t),i!=null&&i.size||On==null||On.unobserve(r)})}}const ka=new Set;let xs;function pw(){xs=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};ka.forEach(n=>n(t))},window.addEventListener("resize",xs)}function hw(e){return ka.add(e),xs||pw(),()=>{ka.delete(e),!ka.size&&xs&&(xs=void 0)}}function mw(e,t){return typeof e=="function"?hw(e):fw(e,t)}const gw=50,C2=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),vw=()=>({time:0,x:C2(),y:C2()}),yw={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function E2(e,t,n,r){const i=n[t],{length:s,position:o}=yw[t],a=i.current,l=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=ii(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>gw?0:ed(i.current-a,u)}function ww(e,t,n){E2(e,"x",t,n),E2(e,"y",t,n),t.time=n}function bw(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const xw={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Dd={start:0,center:.5,end:1};function $2(e,t,n=0){let r=0;if(e in Dd&&(e=Dd[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const Sw=[0,0];function Cw(e,t,n,r){let i=Array.isArray(e)?e:Sw,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,Dd[e]?e:"0"]),s=$2(i[0],n,r),o=$2(i[1],t),s-o}const Ew={x:0,y:0};function $w(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Pw(e,t,n){const{offset:r=xw.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?bw(i,e):Ew,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:$w(i),u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let c=!t[s].interpolate;const f=r.length;for(let p=0;pkw(e,r.target,n),update:i=>{ww(e,n,i),(r.offset||r.target)&&Pw(e,n,r)},notify:()=>t(n)}}const Ss=new WeakMap,P2=new WeakMap,Md=new WeakMap,k2=e=>e===document.documentElement?window:e;function Dw(e,r={}){var i=r,{container:t=document.documentElement}=i,n=G(i,["container"]);let s=Md.get(t);s||(s=new Set,Md.set(t,s));const o=vw(),a=Tw(t,e,o,n);if(s.add(a),!Ss.has(t)){const u=()=>{for(const v of s)v.measure()},c=()=>{for(const v of s)v.update(De.timestamp)},f=()=>{for(const v of s)v.notify()},p=()=>{J.read(u,!1,!0),J.read(c,!1,!0),J.update(f,!1,!0)};Ss.set(t,p);const h=k2(t);window.addEventListener("resize",p,{passive:!0}),t!==document.documentElement&&P2.set(t,mw(t,p)),h.addEventListener("scroll",p,{passive:!0})}const l=Ss.get(t);return J.read(l,!1,!0),()=>{var u;Xt(l);const c=Md.get(t);if(!c||(c.delete(a),c.size))return;const f=Ss.get(t);Ss.delete(t),f&&(k2(t).removeEventListener("scroll",f),(u=P2.get(t))===null||u===void 0||u(),window.removeEventListener("resize",f))}}function T2(e,t){i6(!!(!t||t.current))}const Mw=()=>({scrollX:rn(0),scrollY:rn(0),scrollXProgress:rn(0),scrollYProgress:rn(0)});function Lw(i={}){var s=i,{container:e,target:t,layoutEffect:n=!0}=s,r=G(s,["container","target","layoutEffect"]);const o=Bc(Mw);return(n?la:d.useEffect)(()=>(T2("target",t),T2("container",e),Dw(({x:l,y:u})=>{o.scrollX.set(l.current),o.scrollXProgress.set(l.progress),o.scrollY.set(u.current),o.scrollYProgress.set(u.progress)},A(S({},r),{container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}))),[e,t,JSON.stringify(r.offset)]),o}const D2=d.createContext(null);d.createContext(null),d.createContext(null),d.createContext(null),d.createContext(null);const M2=d.createContext({}),ge=typeof document!="undefined"?B.useLayoutEffect:()=>{};function We(e){const t=d.useRef(null);return ge(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Aw(e){let[t,n]=d.useState(e),r=d.useRef(null),i=We(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});ge(()=>{r.current&&i()});let s=We(o=>{r.current=o(t),i()});return[t,s]}const Ta={prefix:String(Math.round(Math.random()*1e10)),current:0},L2=B.createContext(Ta),_w=B.createContext(!1);let Nw=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Ld=new WeakMap;function Iw(e=!1){let t=d.useContext(L2),n=d.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let o=Ld.get(s);o==null?Ld.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Ld.delete(s))}n.current=++t.current}return n.current}function jw(e){let t=d.useContext(L2);t===Ta&&!Nw&&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=Iw(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function zw(e){let t=B.useId(),[n]=d.useState(Kn()),r=n?"react-aria":`react-aria${Ta.prefix}`;return e||`${r}-${t}`}const Bw=typeof B.useId=="function"?zw:jw;function Rw(){return!1}function Fw(){return!0}function Vw(e){return()=>{}}function Kn(){return typeof B.useSyncExternalStore=="function"?B.useSyncExternalStore(Vw,Rw,Fw):d.useContext(_w)}let Ow=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Da=new Map;function sn(e){let[t,n]=d.useState(e),r=d.useRef(null),i=Bw(t),s=d.useCallback(o=>{r.current=o},[]);return Ow&&Da.set(i,s),ge(()=>{let o=i;return()=>{Da.delete(o)}},[i]),d.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function Kw(e,t){if(e===t)return e;let n=Da.get(e);if(n)return n(t),t;let r=Da.get(t);return r?(r(e),e):t}function Ma(e=[]){let t=sn(),[n,r]=Aw(t),i=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ge(i,[t,i,...e]),n}function ai(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ue=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Dt=e=>e&&"window"in e&&e.window===e?e:ue(e).defaultView||window;function A2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=ai(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?t[i]=Hw(s,o):i==="id"&&s&&o?t.id=Kw(s,o):t[i]=o!==void 0?o:s}}return t}function Ad(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Uw=new Set(["id"]),Ww=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Zw=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Gw=/^(data-.*)$/;function Ze(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Uw.has(o)||n&&Ww.has(o)||r&&Zw.has(o)||i!=null&&i.has(o)||Gw.test(o))&&(s[o]=e[o]);return s}function on(e){if(qw())e.focus({preventScroll:!0});else{let t=Yw(e);e.focus(),Qw(t)}}let La=null;function qw(){if(La==null){La=!1;try{document.createElement("div").focus({get preventScroll(){return La=!0,!0}})}catch(e){}}return La}function Yw(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeighte.test(n.brand)))||e.test(window.navigator.userAgent)}function _d(e){var t;return typeof window!="undefined"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function wr(){return _d(/^Mac/i)}function Xw(){return _d(/^iPhone/i)}function _2(){return _d(/^iPad/i)||wr()&&navigator.maxTouchPoints>1}function _a(){return Xw()||_2()}function Jw(){return wr()||_a()}function eb(){return Aa(/AppleWebKit/i)&&!tb()}function tb(){return Aa(/Chrome/i)}function N2(){return Aa(/Android/i)}function nb(){return Aa(/Firefox/i)}const rb=d.createContext({isNative:!0,open:sb,useHref:e=>e});function I2(){return d.useContext(rb)}function br(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=t;nb()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(wr()?s=!0:o=!0);let u=eb()&&wr()&&!_2()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});br.isOpening=n,on(e),e.dispatchEvent(u),br.isOpening=!1}br.isOpening=!1;function ib(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 sb(e,t){ib(e,n=>br(n,t))}function j2(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 li=new Map,Nd=new Set;function z2(){if(typeof window=="undefined")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=li.get(r.target);i||(i=new Set,li.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=li.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),li.delete(r.target)),li.size===0)){for(let s of Nd)s();Nd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document!="undefined"&&(document.readyState!=="loading"?z2():document.addEventListener("DOMContentLoaded",z2));function B2(e){requestAnimationFrame(()=>{li.size===0?e():Nd.add(e)})}function R2(){let e=d.useRef(new Map),t=d.useCallback((i,s,o,a)=>{let l=a!=null&&a.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:s,eventTarget:i,fn:l,options:a}),i.addEventListener(s,o,a)},[]),n=d.useCallback((i,s,o,a)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(s,u,a),e.current.delete(o)},[]),r=d.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return d.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function F2(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=sn(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function Hn(e){const t=d.useRef(null);return d.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function ob(e,t){const n=d.useRef(!0),r=d.useRef(null);d.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),d.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function Id(e,t){ge(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Cs(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}function Un(e,t){let n=e;for(Cs(n,t)&&(n=n.parentElement);n&&!Cs(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ab(e,t){const n=[];for(;e&&e!==document.documentElement;)Cs(e,t)&&n.push(e),e=e.parentElement;return n}let yt=typeof document!="undefined"&&window.visualViewport;function lb(){let e=Kn(),[t,n]=d.useState(()=>e?{width:0,height:0}:V2());return d.useEffect(()=>{let r=()=>{n(i=>{let s=V2();return s.width===i.width&&s.height===i.height?i:s})};return yt?yt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{yt?yt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function V2(){return{width:yt&&(yt==null?void 0:yt.width)||window.innerWidth,height:yt&&(yt==null?void 0:yt.height)||window.innerHeight}}let ub=0;const jd=new Map;function zd(e){let[t,n]=d.useState();return ge(()=>{if(!e)return;let r=jd.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${ub++}`;n(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=e,document.body.appendChild(s),r={refCount:0,element:s},jd.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),jd.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function cb(e,t,n,r){let i=We(n),s=n==null;d.useEffect(()=>{if(s||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,s,i])}function O2(e,t){let n=K2(e,t,"left"),r=K2(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,o=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(l,10),p=c+e.clientWidth,h=f+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>p&&(o+=n+i-p),r<=f?a=r-parseInt(l,10):r+s>h&&(a+=r+s-h),e.scrollLeft=o,e.scrollTop=a}function K2(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Wn(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=ab(e);for(let u of l)O2(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-f)>1){var r,i,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function Bd(e){return e.mozInputSource===0&&e.isTrusted?!0:N2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function db(e){return!N2()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fb(e,t,n){let r=d.useRef(t),i=We(()=>{n&&n(r.current)});d.useEffect(()=>{var s;let o=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}function Rd(e,t,n){let[r,i]=d.useState(e||t),s=d.useRef(e!==void 0),o=e!==void 0;d.useEffect(()=>{let u=s.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let a=o?e:r,l=d.useCallback((u,...c)=>{let f=(p,...h)=>{n&&(Object.is(a,p)||n(p,...h)),o||(a=p)};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"),i((h,...v)=>{let w=u(o?a:h,...v);return f(w,...c),o?h:w})):(o||i(u),f(u,...c))},[o,a,n]);return[a,l]}let ui="default",Fd="",Na=new WeakMap;function H2(e){if(_a()){if(ui==="default"){const t=ue(e);Fd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ui="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Na.set(e,e.style.userSelect),e.style.userSelect="none")}function Ia(e){if(_a()){if(ui!=="disabled")return;ui="restoring",setTimeout(()=>{B2(()=>{if(ui==="restoring"){const t=ue(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Fd||""),Fd="",ui="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Na.has(e)){let t=Na.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Na.delete(e)}}const Es=B.createContext({register:()=>{}});Es.displayName="PressResponderContext";function pb(e,t){return t.get?t.get.call(e):t.value}function U2(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function hb(e,t){var n=U2(e,t,"get");return pb(e,n)}function mb(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gb(e,t,n){mb(e,t),t.set(e,n)}function vb(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function W2(e,t,n){var r=U2(e,t,"set");return vb(e,r,n),n}function yb(e){let t=d.useContext(Es);if(t){let n=t,{register:r}=n,i=G(n,["register"]);e=ee(i,e),r()}return Id(t,e.ref),e}var ja=new WeakMap;class za{continuePropagation(){W2(this,ja,!1)}get shouldStopPropagation(){return hb(this,ja)}constructor(t,n,r){gb(this,ja,{writable:!0,value:void 0}),W2(this,ja,!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 Z2=Symbol("linkClicked");function $s(e){let M=yb(e),{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,isDisabled:o,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f}=M,p=G(M,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),[h,v]=d.useState(!1),w=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:g}=R2(),m=We((b,P)=>{let K=w.current;if(o||K.didFirePressStart)return!1;let x=!0;if(K.isTriggeringEvent=!0,r){let N=new za("pressstart",P,b);r(N),x=N.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,v(!0),x}),y=We((b,P,K=!0)=>{let x=w.current;if(!x.didFirePressStart)return!1;x.ignoreClickAfterPress=!0,x.didFirePressStart=!1,x.isTriggeringEvent=!0;let N=!0;if(i){let k=new za("pressend",P,b);i(k),N=k.shouldStopPropagation}if(n&&n(!1),v(!1),t&&K&&!o){let k=new za("press",P,b);t(k),N&&(N=k.shouldStopPropagation)}return x.isTriggeringEvent=!1,N}),$=We((b,P)=>{let K=w.current;if(o)return!1;if(s){K.isTriggeringEvent=!0;let x=new za("pressup",P,b);return s(x),K.isTriggeringEvent=!1,x.shouldStopPropagation}return!0}),T=We(b=>{let P=w.current;P.isPressed&&P.target&&(P.isOverTarget&&P.pointerType!=null&&y(an(P.target,b),P.pointerType,!1),P.isPressed=!1,P.isOverTarget=!1,P.activePointerId=null,P.pointerType=null,g(),c||Ia(P.target))}),L=We(b=>{u&&T(b)}),z=d.useMemo(()=>{let b=w.current,P={onKeyDown(x){if(Od(x.nativeEvent,x.currentTarget)&&x.currentTarget.contains(x.target)){var N;q2(x.target,x.key)&&x.preventDefault();let k=!0;if(!b.isPressed&&!x.repeat){b.target=x.currentTarget,b.isPressed=!0,k=m(x,"keyboard");let D=x.currentTarget,V=j=>{Od(j,D)&&!j.repeat&&D.contains(j.target)&&b.target&&$(an(b.target,j),"keyboard")};C(ue(x.currentTarget),"keyup",ai(V,K),!0)}k&&x.stopPropagation(),x.metaKey&&wr()&&((N=b.metaKeyEvents)===null||N===void 0||N.set(x.key,x.nativeEvent))}else x.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(x){if(!(x&&!x.currentTarget.contains(x.target))&&x&&x.button===0&&!b.isTriggeringEvent&&!br.isOpening){let N=!0;if(o&&x.preventDefault(),!b.ignoreClickAfterPress&&!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||Bd(x.nativeEvent))){!o&&!l&&on(x.currentTarget);let k=m(x,"virtual"),D=$(x,"virtual"),V=y(x,"virtual");N=k&&D&&V}b.ignoreEmulatedMouseEvents=!1,b.ignoreClickAfterPress=!1,N&&x.stopPropagation()}}},K=x=>{var N;if(b.isPressed&&b.target&&Od(x,b.target)){var k;q2(x.target,x.key)&&x.preventDefault();let V=x.target;y(an(b.target,x),"keyboard",b.target.contains(V)),g(),x.key!=="Enter"&&Vd(b.target)&&b.target.contains(V)&&!x[Z2]&&(x[Z2]=!0,br(b.target,x,!1)),b.isPressed=!1,(k=b.metaKeyEvents)===null||k===void 0||k.delete(x.key)}else if(x.key==="Meta"&&(!((N=b.metaKeyEvents)===null||N===void 0)&&N.size)){var D;let V=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let j of V.values())(D=b.target)===null||D===void 0||D.dispatchEvent(new KeyboardEvent("keyup",j))}};if(typeof PointerEvent!="undefined"){P.onPointerDown=D=>{if(D.button!==0||!D.currentTarget.contains(D.target))return;if(db(D.nativeEvent)){b.pointerType="virtual";return}Kd(D.currentTarget)&&D.preventDefault(),b.pointerType=D.pointerType;let V=!0;b.isPressed||(b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=D.pointerId,b.target=D.currentTarget,!o&&!l&&on(D.currentTarget),c||H2(b.target),V=m(D,b.pointerType),C(ue(D.currentTarget),"pointermove",x,!1),C(ue(D.currentTarget),"pointerup",N,!1),C(ue(D.currentTarget),"pointercancel",k,!1)),V&&D.stopPropagation()},P.onMouseDown=D=>{D.currentTarget.contains(D.target)&&D.button===0&&(Kd(D.currentTarget)&&D.preventDefault(),D.stopPropagation())},P.onPointerUp=D=>{!D.currentTarget.contains(D.target)||b.pointerType==="virtual"||D.button===0&&ci(D,D.currentTarget)&&$(D,b.pointerType||D.pointerType)};let x=D=>{D.pointerId===b.activePointerId&&(b.target&&ci(D,b.target)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,m(an(b.target,D),b.pointerType)):b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,y(an(b.target,D),b.pointerType,!1),L(D)))},N=D=>{D.pointerId===b.activePointerId&&b.isPressed&&D.button===0&&b.target&&(ci(D,b.target)&&b.pointerType!=null?y(an(b.target,D),b.pointerType):b.isOverTarget&&b.pointerType!=null&&y(an(b.target,D),b.pointerType,!1),b.isPressed=!1,b.isOverTarget=!1,b.activePointerId=null,b.pointerType=null,g(),c||Ia(b.target))},k=D=>{T(D)};P.onDragStart=D=>{D.currentTarget.contains(D.target)&&T(D)}}else{P.onMouseDown=k=>{if(k.button!==0||!k.currentTarget.contains(k.target))return;if(Kd(k.currentTarget)&&k.preventDefault(),b.ignoreEmulatedMouseEvents){k.stopPropagation();return}b.isPressed=!0,b.isOverTarget=!0,b.target=k.currentTarget,b.pointerType=Bd(k.nativeEvent)?"virtual":"mouse",!o&&!l&&on(k.currentTarget),m(k,b.pointerType)&&k.stopPropagation(),C(ue(k.currentTarget),"mouseup",x,!1)},P.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let D=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,D=m(k,b.pointerType)),D&&k.stopPropagation()},P.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let D=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,D=y(k,b.pointerType,!1),L(k)),D&&k.stopPropagation()},P.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!b.ignoreEmulatedMouseEvents&&k.button===0&&$(k,b.pointerType||"mouse")};let x=k=>{if(k.button===0){if(b.isPressed=!1,g(),b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&ci(k,b.target)&&b.pointerType!=null?y(an(b.target,k),b.pointerType):b.target&&b.isOverTarget&&b.pointerType!=null&&y(an(b.target,k),b.pointerType,!1),b.isOverTarget=!1}};P.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let D=wb(k.nativeEvent);if(!D)return;b.activePointerId=D.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=k.currentTarget,b.pointerType="touch",!o&&!l&&on(k.currentTarget),c||H2(b.target),m(k,b.pointerType)&&k.stopPropagation(),C(Dt(k.currentTarget),"scroll",N,!0)},P.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!b.isPressed){k.stopPropagation();return}let D=G2(k.nativeEvent,b.activePointerId),V=!0;D&&ci(D,k.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,V=m(k,b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,V=y(k,b.pointerType,!1),L(k)),V&&k.stopPropagation()},P.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!b.isPressed){k.stopPropagation();return}let D=G2(k.nativeEvent,b.activePointerId),V=!0;D&&ci(D,k.currentTarget)&&b.pointerType!=null?($(k,b.pointerType),V=y(k,b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(V=y(k,b.pointerType,!1)),V&&k.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!c&&Ia(b.target),g()},P.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),b.isPressed&&T(k))};let N=k=>{b.isPressed&&k.target.contains(b.target)&&T({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};P.onDragStart=k=>{k.currentTarget.contains(k.target)&&T(k)}}return P},[C,o,l,g,c,T,L,y,m,$]);return d.useEffect(()=>()=>{var b;c||Ia((b=w.current.target)!==null&&b!==void 0?b:void 0)},[c]),{isPressed:a||h,pressProps:ee(p,z)}}function Vd(e){return e.tagName==="A"&&e.hasAttribute("href")}function Od(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Dt(i).HTMLInputElement&&!Y2(i,n)||i instanceof Dt(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&Vd(i))&&n!=="Enter")}function wb(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function G2(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 ci(e,t){let n=t.getBoundingClientRect(),r=bb(e);return xb(n,r)}function Kd(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function q2(e,t){return e instanceof HTMLInputElement?!Y2(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Vd(e)}const Sb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Y2(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Sb.has(e.type)}const Cb=B.forwardRef((r,n)=>{var i=r,{children:e}=i,t=G(i,["children"]);let s=d.useRef(!1),o=d.useContext(Es);n=Hn(n||(o==null?void 0:o.ref));let a=ee(o||{},A(S({},t),{ref:n,register(){s.current=!0,o&&o.register()}}));return Id(o,n),d.useEffect(()=>{s.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with component."),s.current=!0)},[]),B.createElement(Es.Provider,{value:a},e)});function Eb({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return B.createElement(Es.Provider,{value:t},e)}class $b{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 Q2(e){let t=d.useRef({isFocused:!1,observer:null});ge(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=We(r=>{e==null||e(r)});return d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=o=>{t.current.isFocused=!1,i.disabled&&n(new $b("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function X2(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=d.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=Q2(s),a=d.useCallback(l=>{const u=ue(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?s:void 0}}}let ln=null,Ps=new Set,ks=new Map,xr=!1,Hd=!1;const Pb={Tab:!0,Escape:!0};function Ba(e,t){for(let n of Ps)n(e,t)}function kb(e){return!(e.metaKey||!wr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ra(e){xr=!0,kb(e)&&(ln="keyboard",Ba("keyboard",e))}function wt(e){ln="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(xr=!0,Ba("pointer",e))}function J2(e){Bd(e)&&(xr=!0,ln="virtual")}function eg(e){e.target===window||e.target===document||(!xr&&!Hd&&(ln="virtual",Ba("virtual",e)),xr=!1,Hd=!1)}function tg(){xr=!1,Hd=!0}function Fa(e){if(typeof window=="undefined"||ks.get(Dt(e)))return;const t=Dt(e),n=ue(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){xr=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ra,!0),n.addEventListener("keyup",Ra,!0),n.addEventListener("click",J2,!0),t.addEventListener("focus",eg,!0),t.addEventListener("blur",tg,!1),typeof PointerEvent!="undefined"?(n.addEventListener("pointerdown",wt,!0),n.addEventListener("pointermove",wt,!0),n.addEventListener("pointerup",wt,!0)):(n.addEventListener("mousedown",wt,!0),n.addEventListener("mousemove",wt,!0),n.addEventListener("mouseup",wt,!0)),t.addEventListener("beforeunload",()=>{ng(e)},{once:!0}),ks.set(t,{focus:r})}const ng=(e,t)=>{const n=Dt(e),r=ue(e);t&&r.removeEventListener("DOMContentLoaded",t),ks.has(n)&&(n.HTMLElement.prototype.focus=ks.get(n).focus,r.removeEventListener("keydown",Ra,!0),r.removeEventListener("keyup",Ra,!0),r.removeEventListener("click",J2,!0),n.removeEventListener("focus",eg,!0),n.removeEventListener("blur",tg,!1),typeof PointerEvent!="undefined"?(r.removeEventListener("pointerdown",wt,!0),r.removeEventListener("pointermove",wt,!0),r.removeEventListener("pointerup",wt,!0)):(r.removeEventListener("mousedown",wt,!0),r.removeEventListener("mousemove",wt,!0),r.removeEventListener("mouseup",wt,!0)),ks.delete(n))};function Tb(e){const t=ue(e);let n;return t.readyState!=="loading"?Fa(e):(n=()=>{Fa(e)},t.addEventListener("DOMContentLoaded",n)),()=>ng(e,n)}typeof document!="undefined"&&Tb();function Ud(){return ln!=="pointer"}function Wd(){return ln}function Db(e){ln=e,Ba(e,null)}function rg(){Fa();let[e,t]=d.useState(ln);return d.useEffect(()=>{let n=()=>{t(ln)};return Ps.add(n),()=>{Ps.delete(n)}},[]),Kn()?null:e}const Mb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Lb(e,t,n){var r;const i=typeof window!="undefined"?Dt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window!="undefined"?Dt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window!="undefined"?Dt(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window!="undefined"?Dt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Mb.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof s||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!Pb[n.key])}function Ab(e,t,n){Fa(),d.useEffect(()=>{let r=(i,s)=>{Lb(!!(n!=null&&n.isTextInput),i,s)&&e(Ud())};return Ps.add(r),()=>{Ps.delete(r)}},t)}function Va(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=d.useRef({isFocusWithin:!1}),o=d.useCallback(u=>{s.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,s]),a=Q2(o),l=d.useCallback(u=>{!s.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),s.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let Oa=!1,Zd=0;function Gd(){Oa=!0,setTimeout(()=>{Oa=!1},50)}function ig(e){e.pointerType==="touch"&&Gd()}function _b(){if(typeof document!="undefined")return typeof PointerEvent!="undefined"?document.addEventListener("pointerup",ig):document.addEventListener("touchend",Gd),Zd++,()=>{Zd--,!(Zd>0)&&(typeof PointerEvent!="undefined"?document.removeEventListener("pointerup",ig):document.removeEventListener("touchend",Gd))}}function Ka(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=d.useState(!1),a=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(_b,[]);let{hoverProps:l,triggerHoverEnd:u}=d.useMemo(()=>{let c=(h,v)=>{if(a.pointerType=v,i||v==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let w=h.currentTarget;a.target=w,t&&t({type:"hoverstart",target:w,pointerType:v}),n&&n(!0),o(!0)},f=(h,v)=>{if(a.pointerType="",a.target=null,v==="touch"||!a.isHovered)return;a.isHovered=!1;let w=h.currentTarget;r&&r({type:"hoverend",target:w,pointerType:v}),n&&n(!1),o(!1)},p={};return typeof PointerEvent!="undefined"?(p.onPointerEnter=h=>{Oa&&h.pointerType==="mouse"||c(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Oa&&c(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,i,a]);return d.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:s}}function Nb(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=We(l=>{n&&Ha(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),a=We(l=>{n&&n(l)});d.useEffect(()=>{let l=s.current;if(r)return;const u=t.current,c=ue(u);if(typeof PointerEvent!="undefined"){let f=p=>{l.isPointerDown&&Ha(p,t)&&a(p),l.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Ha(h,t)&&a(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Ha(h,t)&&a(h),l.isPointerDown=!1};return c.addEventListener("mousedown",o,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",o,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",o,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",o,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,o,a])}function Ha(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function sg(e){if(!e)return;let t=!0;return n=>{let r=A(S({},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 Ib(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:sg(e.onKeyDown),onKeyUp:sg(e.onKeyUp)}}}const jb=500;function zb(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=jb,accessibilityDescription:o}=e;const a=d.useRef();let{addGlobalListener:l,removeGlobalListener:u}=R2(),{pressProps:c}=$s({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n(A(S({},p),{type:"longpressstart"})),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i(A(S({},p),{type:"longpress"})),a.current=void 0},s),p.pointerType==="touch")){let h=v=>{v.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r(A(S({},p),{type:"longpressend"}))}}),f=zd(i&&!t?o:void 0);return{longPressProps:ee(c,f)}}function et(e){const t=ue(e);if(Wd()==="virtual"){let n=t.activeElement;B2(()=>{t.activeElement===n&&e.isConnected&&on(e)})}else on(e)}function Bb(e){const t=Dt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:o,visibility:a}=s(e);i=o!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Rb(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function og(e,t){return e.nodeName!=="#comment"&&Bb(e)&&Rb(e,t)&&(!e.parentElement||og(e.parentElement,e))}const ag=B.createContext(null);let oe=null;function lg(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=d.useRef(null),o=d.useRef(null),a=d.useRef([]),{parentNode:l}=d.useContext(ag)||{},u=d.useMemo(()=>new Qd({scopeRef:a}),[a]);ge(()=>{let p=l||Ee.root;if(Ee.getTreeNode(p.scopeRef)&&oe&&!Wa(oe,p.scopeRef)){let h=Ee.getTreeNode(oe);h&&(p=h)}p.addChild(u),Ee.addNode(u)},[u,l]),ge(()=>{let p=Ee.getTreeNode(a);p&&(p.contain=!!n)},[n]),ge(()=>{var p;let h=(p=s.current)===null||p===void 0?void 0:p.nextSibling,v=[];for(;h&&h!==o.current;)v.push(h),h=h.nextSibling;a.current=v},[t]),Wb(a,r,n),Kb(a,n),Gb(a,r,n),Ub(a,i),d.useEffect(()=>{const p=ue(a.current?a.current[0]:void 0).activeElement;let h=null;if(Ve(p,a.current)){for(let v of Ee.traverse())v.scopeRef&&Ve(p,v.scopeRef.current)&&(h=v);h===Ee.getTreeNode(a)&&(oe=h.scopeRef)}},[a]),ge(()=>()=>{var p,h,v;let w=(v=(h=Ee.getTreeNode(a))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&v!==void 0?v:null;(a===oe||Wa(a,oe))&&(!w||Ee.getTreeNode(w))&&(oe=w),Ee.removeTreeNode(a)},[a]);let c=d.useMemo(()=>Fb(a),[]),f=d.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return B.createElement(ag.Provider,{value:f},B.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,B.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Fb(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t,a=r||ue(n[0]).activeElement,l=n[0].previousElementSibling,u=Sr(n),c=Mt(u,{tabbable:i,accept:o},n);c.currentNode=Ve(a,n)?a:l;let f=c.nextNode();return!f&&s&&(c.currentNode=l,f=c.nextNode()),f&&un(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t,a=r||ue(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=Sr(n),c=Mt(u,{tabbable:i,accept:o},n);c.currentNode=Ve(a,n)?a:l;let f=c.previousNode();return!f&&s&&(c.currentNode=l,f=c.previousNode()),f&&un(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=Sr(n),o=Mt(s,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let a=o.nextNode();return a&&un(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=Sr(n),o=Mt(s,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let a=o.previousNode();return a&&un(a,!0),a}}}const qd=["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]"],Vb=qd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";qd.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ob=qd.join(':not([hidden]):not([tabindex="-1"]),');function Sr(e){return e[0].parentElement}function Ts(e){let t=Ee.getTreeNode(oe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Kb(e,t){let n=d.useRef(),r=d.useRef();ge(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=ue(i?i[0]:void 0);let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Ts(e)||u.isComposing)return;let c=s.activeElement,f=e.current;if(!f||!Ve(c,f))return;let p=Sr(f),h=Mt(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let v=u.shiftKey?h.previousNode():h.nextNode();v||(h.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,v=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),v&&un(v,!0)},a=u=>{(!oe||Wa(oe,e))&&Ve(u.target,e.current)?(oe=e,n.current=u.target):Ts(e)&&!Ua(u.target,e)?n.current?n.current.focus():oe&&oe.current&&Za(oe.current):Ts(e)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(s.activeElement&&Ts(e)&&!Ua(s.activeElement,e))if(oe=e,s.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else oe.current&&Za(oe.current)})};return s.addEventListener("keydown",o,!1),s.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",o,!1),s.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),ge(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function ug(e){return Ua(e)}function Ve(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ua(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ee.traverse(Ee.getTreeNode(t)))if(n&&Ve(e,n.current))return!0;return!1}function Hb(e){return Ua(e,oe)}function Wa(e,t){var n;let r=(n=Ee.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function un(e,t=!1){if(e!=null&&!t)try{et(e)}catch(n){}else if(e!=null)try{e.focus()}catch(n){}}function Za(e,t=!0){let n=e[0].previousElementSibling,r=Sr(e),i=Mt(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();t&&!s&&(r=Sr(e),i=Mt(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),un(s)}function Ub(e,t){const n=B.useRef(t);d.useEffect(()=>{if(n.current){oe=e;const r=ue(e.current?e.current[0]:void 0);!Ve(r.activeElement,oe.current)&&e.current&&Za(e.current)}n.current=!1},[e])}function Wb(e,t,n){ge(()=>{if(t||n)return;let r=e.current;const i=ue(r?r[0]:void 0);let s=o=>{let a=o.target;Ve(a,e.current)?oe=e:ug(a)||(oe=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,t,n])}function Zb(e){let t=Ee.getTreeNode(oe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Gb(e,t,n){const r=d.useRef(typeof document!="undefined"?ue(e.current?e.current[0]:void 0).activeElement:null);ge(()=>{let i=e.current;const s=ue(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!oe||Wa(oe,e))&&Ve(s.activeElement,e.current)&&(oe=e)};return s.addEventListener("focusin",o,!1),i==null||i.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{s.removeEventListener("focusin",o,!1),i==null||i.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,n]),ge(()=>{const i=ue(e.current?e.current[0]:void 0);if(!t)return;let s=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!Ts(e)||o.isComposing)return;let a=i.activeElement;if(!Ve(a,e.current))return;let l=Ee.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=Mt(i.body,{tabbable:!0});c.currentNode=a;let f=o.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,l.nodeToRestore=void 0),(!f||!Ve(f,e.current))&&u){c.currentNode=u;do f=o.shiftKey?c.previousNode():c.nextNode();while(Ve(f,e.current));o.preventDefault(),o.stopPropagation(),f?un(f,!0):ug(u)?un(u,!0):a.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),ge(()=>{const i=ue(e.current?e.current[0]:void 0);if(!t)return;let s=Ee.getTreeNode(e);if(s){var o;return s.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let a=Ee.getTreeNode(e);if(!a)return;let l=a.nodeToRestore;if(t&&l&&(Ve(i.activeElement,e.current)||i.activeElement===i.body&&Zb(e))){let u=Ee.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){un(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ee.getTreeNode(c.scopeRef)){Za(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Mt(e,t,n){let r=t!=null&&t.tabbable?Ob:Vb,i=ue(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(s)?NodeFilter.FILTER_REJECT:s.matches(r)&&og(s)&&(!n||Ve(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}class Yd{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n!=null?n:null);if(!i)return;let s=new Qd({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ve(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*ll(this.traverse(n))}clone(){var t;let n=new Yd;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Qd({scopeRef:null}),this.fastMap.set(null,this.root)}}class Qd{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ee=new Yd;function di(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=d.useRef({isFocused:!1,isFocusVisible:t||Ud()}),[s,o]=d.useState(!1),[a,l]=d.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=d.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=d.useCallback(h=>{i.current.isFocused=h,o(h),u()},[u]);Ab(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:f}=X2({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Va({isDisabled:!r,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:a,focusProps:r?p:f}}let qb=B.createContext(null);function Yb(e){let t=d.useContext(qb)||{};Id(t,e);let i=t,{ref:n}=i;return G(i,["ref"])}function cg(e,t){let{focusProps:n}=X2(e),{keyboardProps:r}=Ib(e),i=ee(n,r),s=Yb(t),o=e.isDisabled?{}:s,a=d.useRef(e.autoFocus);return d.useEffect(()=>{a.current&&t.current&&et(t.current),a.current=!1},[t]),{focusableProps:ee(A(S({},i),{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),o)}}function Qb(e,t){let n=t==null?void 0:t.isDisabled,[r,i]=d.useState(!1);return ge(()=>{if(e!=null&&e.current&&!n){let s=()=>{if(e.current){let a=Mt(e.current,{tabbable:!0});i(!!a.nextNode())}};s();let o=new MutationObserver(s);return o.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:r}const Xb=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Jb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ex(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 Xb.has(n.script)}let t=e.split("-")[0];return Jb.has(t)}const tx=Symbol.for("react-aria.i18n.locale");function dg(){let e=typeof window!="undefined"&&window[tx]||typeof navigator!="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:ex(e)?"rtl":"ltr"}}let Xd=dg(),Ds=new Set;function fg(){Xd=dg();for(let e of Ds)e(Xd)}function nx(){let e=Kn(),[t,n]=d.useState(Xd);return d.useEffect(()=>(Ds.size===0&&window.addEventListener("languagechange",fg),Ds.add(n),()=>{Ds.delete(n),Ds.size===0&&window.removeEventListener("languagechange",fg)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const rx=B.createContext(null);function Ms(){let e=nx();return d.useContext(rx)||e}const ix=Symbol.for("react-aria.i18n.locale"),sx=Symbol.for("react-aria.i18n.strings");let fi;class Ga{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=ox(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window=="undefined")return null;let n=window[ix];if(fi===void 0){let i=window[sx];if(!i)return null;fi={};for(let s in i)fi[s]=new Ga({[n]:i[s]},n)}let r=fi==null?void 0:fi[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function ox(e,t,n="en-US"){if(t[e])return t[e];let r=ax(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function ax(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const pg=new Map,hg=new Map;class lx{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,o=pg.get(s);o||(o=new Intl.PluralRules(this.locale,{type:r}),pg.set(s,o));let a=o.select(t);return i=n[a]||n.other,typeof i=="function"?i():i}number(t){let n=hg.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),hg.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const mg=new WeakMap;function ux(e){let t=mg.get(e);return t||(t=new Ga(e),mg.set(e,t)),t}function cx(e,t){return t&&Ga.getGlobalDictionaryForPackage(t)||ux(e)}function Ls(e,t){let{locale:n}=Ms(),r=cx(e,t);return d.useMemo(()=>new lx(n,r),[n,r])}let Jd=new Map;function dx(e){let{locale:t}=Ms(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]{f&&(f(T),console.warn("onClick is deprecated, please use onPress"))}})}}const gg=7e3;let ef=null;function px(e,t="assertive",n=gg){ef||(ef=new hx),ef.announce(e,t,n)}class hx{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=gg){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.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 mx(e,t,n){let{validationBehavior:r,focus:i}=e;ge(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(vx(n.current))}});let s=We(()=>{t.resetValidation()}),o=We(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&yx(c)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),Db("keyboard")}l.preventDefault()}),a=We(()=>{t.commitValidation()});d.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",a),u==null||u.addEventListener("reset",s),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",a),u==null||u.removeEventListener("reset",s)}},[n,o,a,s,r])}function gx(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 vx(e){return{isInvalid:!e.validity.valid,validationDetails:gx(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function yx(e){for(let t=0;tbg(xx(o,i)),[o,i]);s!=null&&s.validationDetails.valid&&(s=null);let c=d.useContext(wx),f=d.useMemo(()=>r?Array.isArray(r)?r.flatMap(P=>nf(c[P])):nf(c[r]):[],[c,r]),[p,h]=d.useState(c),[v,w]=d.useState(!1);c!==p&&(h(c),w(!1));let C=d.useMemo(()=>bg(v?[]:f),[v,f]),g=d.useRef(pi),[m,y]=d.useState(pi),$=d.useRef(pi),T=()=>{if(!L)return;z(!1);let P=u||s||g.current;rf(P,$.current)||($.current=P,y(P))},[L,z]=d.useState(!1);return d.useEffect(T),{realtimeValidation:l||C||u||s||pi,displayValidation:a==="native"?l||C||m:l||C||u||s||m,updateValidation(P){a==="aria"&&!rf(m,P)?y(P):g.current=P},resetValidation(){let P=pi;rf(P,$.current)||($.current=P,y(P)),a==="native"&&z(!1),w(!0)},commitValidation(){a==="native"&&z(!0),w(!0)}}}function nf(e){return e?Array.isArray(e)?e:[e]:[]}function xx(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return nf(n)}return[]}function bg(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:yg}:null}function rf(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 Sx(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:s,name:o,children:a,"aria-label":l,"aria-labelledby":u,validationState:c="valid",isInvalid:f}=e,p=L=>{L.stopPropagation(),t.setSelected(L.target.checked)},h=a!=null,v=l!=null||u!=null;!h&&!v&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:w,isPressed:C}=$s({isDisabled:r}),{pressProps:g,isPressed:m}=$s({isDisabled:r||i,onPress(){t.toggle()}}),{focusableProps:y}=cg(e,n),$=ee(w,y),T=Ze(e,{labelable:!0});return fb(n,t.isSelected,t.setSelected),{labelProps:ee(g,{onClick:L=>L.preventDefault()}),inputProps:ee(T,S(A(S({"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:p,disabled:r},s==null?{}:{value:s}),{name:o,type:"checkbox"}),$)),isSelected:t.isSelected,isPressed:C||m,isDisabled:r,isReadOnly:i,isInvalid:f||c==="invalid"}}function xg(e,t,n){let r=wg(A(S({},e),{value:t.isSelected})),{isInvalid:i,validationErrors:s,validationDetails:o}=r.displayValidation,{labelProps:a,inputProps:l,isSelected:u,isPressed:c,isDisabled:f,isReadOnly:p}=Sx(A(S({},e),{isInvalid:i}),t,n);mx(e,r,n);let{isIndeterminate:h,isRequired:v,validationBehavior:w="aria"}=e;return d.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:a,inputProps:A(S({},l),{checked:u,"aria-required":v&&w==="aria"||void 0,required:v&&w==="native"}),isSelected:u,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:i,validationErrors:s,validationDetails:o}}const Cx=new WeakMap;function Ex(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=sn(t);let o=sn(),a={};n?(r=r?`${o} ${r}`:o,a={id:o,htmlFor:s==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=F2({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function $x(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:o}=Ex(e),a=Ma([!!t,!!n,r,i]),l=Ma([!!t,!!n,r,i]);return o=ee(o,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:o,descriptionProps:{id:a},errorMessageProps:{id:l}}}function Sg(e={}){let{isReadOnly:t}=e,[n,r]=Rd(e.isSelected,e.defaultSelected||!1,e.onChange);function i(o){t||r(o)}function s(){t||r(!n)}return{isSelected:n,setSelected:i,toggle:s}}function Px(e,t,n){const r=Sg({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(C){C?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(C)}});let{name:i,descriptionId:s,errorMessageId:o,validationBehavior:a}=Cx.get(t);var l;a=(l=e.validationBehavior)!==null&&l!==void 0?l:a;let{realtimeValidation:u}=wg(A(S({},e),{value:r.isSelected,name:void 0,validationBehavior:"aria"})),c=d.useRef(pi),f=()=>{t.setInvalid(e.value,u.isInvalid?u:c.current)};d.useEffect(f);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:u,h=a==="native"?t.displayValidation:p;var v;let w=xg(A(S({},e),{isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,isRequired:(v=e.isRequired)!==null&&v!==void 0?v:t.isRequired,validationBehavior:a,[tf]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(C){c.current=C,f()}}}),r,n);return A(S({},w),{inputProps:A(S({},w.inputProps),{"aria-describedby":[e["aria-describedby"],t.isInvalid?o:null,s].filter(Boolean).join(" ")||void 0})})}const kx=new WeakMap,cn=[];function Tx(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:a}=e;d.useEffect(()=>(i&&cn.push(t),()=>{let v=cn.indexOf(t);v>=0&&cn.splice(v,1)}),[i,t]);let l=()=>{cn[cn.length-1]===t&&n&&n()},u=v=>{(!a||a(v.target))&&cn[cn.length-1]===t&&(v.stopPropagation(),v.preventDefault())},c=v=>{(!a||a(v.target))&&(cn[cn.length-1]===t&&(v.stopPropagation(),v.preventDefault()),l())},f=v=>{v.key==="Escape"&&!o&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),l())};Nb({ref:t,onInteractOutside:s&&i?c:null,onInteractOutsideStart:u});let{focusWithinProps:p}=Va({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||Hb(v.relatedTarget)||(!a||a(v.relatedTarget))&&n()}}),h=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:S({onKeyDown:f},p),underlayProps:{onPointerDown:h}}}function Dx(e,t,n){let{type:r}=e,{isOpen:i}=t;d.useEffect(()=>{n&&n.current&&kx.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let o=sn();return{triggerProps:{"aria-haspopup":s,"aria-expanded":i,"aria-controls":i?o:null,onPress:t.toggle},overlayProps:{id:o}}}const sf=typeof document!="undefined"&&window.visualViewport,Mx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let qa=0,of;function Lx(e={}){let{isDisabled:t}=e;ge(()=>{if(!t)return qa++,qa===1&&(_a()?of=_x():of=Ax()),()=>{qa--,qa===0&&of()}},[t])}function Ax(){return ai(hi(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hi(document.documentElement,"overflow","hidden"))}function _x(){let e,t,n=u=>{e=Un(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=hi(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},i=u=>{let c=u.target;Eg(c)&&c!==document.activeElement&&(u.preventDefault(),a(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},s=u=>{let c=u.target;Eg(c)&&(a(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",sf&&(sf.height{Cg(c)}):sf.addEventListener("resize",()=>Cg(c),{once:!0}))}))},o=null,a=()=>{if(o)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;o=ai(As(window,"scroll",u),hi(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hi(document.documentElement,"overflow","hidden"),hi(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=ai(As(document,"touchstart",n,{passive:!1,capture:!0}),As(document,"touchmove",r,{passive:!1,capture:!0}),As(document,"touchend",i,{passive:!1,capture:!0}),As(document,"focus",s,!0));return()=>{t==null||t(),o==null||o(),l()}}function hi(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function As(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Cg(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Un(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>r+e.clientHeight&&(n.scrollTop+=i-r)}e=n.parentElement}}function Eg(e){return e instanceof HTMLInputElement&&!Mx.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var $g={};$g={dismiss:"تجاهل"};var Pg={};Pg={dismiss:"Отхвърляне"};var kg={};kg={dismiss:"Odstranit"};var Tg={};Tg={dismiss:"Luk"};var Dg={};Dg={dismiss:"Schließen"};var Mg={};Mg={dismiss:"Απόρριψη"};var Lg={};Lg={dismiss:"Dismiss"};var Ag={};Ag={dismiss:"Descartar"};var _g={};_g={dismiss:"Lõpeta"};var Ng={};Ng={dismiss:"Hylkää"};var Ig={};Ig={dismiss:"Rejeter"};var jg={};jg={dismiss:"התעלם"};var zg={};zg={dismiss:"Odbaci"};var Bg={};Bg={dismiss:"Elutasítás"};var Rg={};Rg={dismiss:"Ignora"};var Fg={};Fg={dismiss:"閉じる"};var Vg={};Vg={dismiss:"무시"};var Og={};Og={dismiss:"Atmesti"};var Kg={};Kg={dismiss:"Nerādīt"};var Hg={};Hg={dismiss:"Lukk"};var Ug={};Ug={dismiss:"Negeren"};var Wg={};Wg={dismiss:"Zignoruj"};var Zg={};Zg={dismiss:"Descartar"};var Gg={};Gg={dismiss:"Dispensar"};var qg={};qg={dismiss:"Revocare"};var Yg={};Yg={dismiss:"Пропустить"};var Qg={};Qg={dismiss:"Zrušiť"};var Xg={};Xg={dismiss:"Opusti"};var Jg={};Jg={dismiss:"Odbaci"};var e4={};e4={dismiss:"Avvisa"};var t4={};t4={dismiss:"Kapat"};var n4={};n4={dismiss:"Скасувати"};var r4={};r4={dismiss:"取消"};var i4={};i4={dismiss:"關閉"};var s4={};s4={"ar-AE":$g,"bg-BG":Pg,"cs-CZ":kg,"da-DK":Tg,"de-DE":Dg,"el-GR":Mg,"en-US":Lg,"es-ES":Ag,"et-EE":_g,"fi-FI":Ng,"fr-FR":Ig,"he-IL":jg,"hr-HR":zg,"hu-HU":Bg,"it-IT":Rg,"ja-JP":Fg,"ko-KR":Vg,"lt-LT":Og,"lv-LV":Kg,"nb-NO":Hg,"nl-NL":Ug,"pl-PL":Wg,"pt-BR":Zg,"pt-PT":Gg,"ro-RO":qg,"ru-RU":Yg,"sk-SK":Qg,"sl-SI":Xg,"sr-SP":Jg,"sv-SE":e4,"tr-TR":t4,"uk-UA":n4,"zh-CN":r4,"zh-TW":i4};const o4={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 Ya(e={}){let{style:t,isFocusable:n}=e,[r,i]=d.useState(!1),{focusWithinProps:s}=Va({isDisabled:!n,onFocusWithinChange:a=>i(a)}),o=d.useMemo(()=>r?t:t?S(S({},o4),t):o4,[r]);return{visuallyHiddenProps:A(S({},s),{style:o})}}function a4(e){let a=e,{children:t,elementType:n="div",isFocusable:r,style:i}=a,s=G(a,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=Ya(e);return B.createElement(n,ee(s,o),t)}function Nx(e){return e&&e.__esModule?e.default:e}function Ix(e){let o=e,{onDismiss:t}=o,n=G(o,["onDismiss"]),r=Ls(Nx(s4),"@react-aria/overlays"),i=F2(n,r.format("dismiss")),s=()=>{t&&t()};return B.createElement(a4,null,B.createElement("button",A(S({},i),{tabIndex:-1,onClick:s,style:{width:1,height:1}})))}let _s=new WeakMap,bt=[];function jx(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let u=p=>{if(n.has(p)||r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(l);if(f===NodeFilter.FILTER_ACCEPT&&s(l),f!==NodeFilter.FILTER_REJECT){let p=c.nextNode();for(;p!=null;)s(p),p=c.nextNode()}},s=l=>{var u;let c=(u=_s.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),_s.set(l,c+1))};bt.length&&bt[bt.length-1].disconnect(),i(t);let o=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&i(c)}});o.observe(t,{childList:!0,subtree:!0});let a={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return bt.push(a),()=>{o.disconnect();for(let l of r){let u=_s.get(l);u===1?(l.removeAttribute("aria-hidden"),_s.delete(l)):_s.set(l,u-1)}a===bt[bt.length-1]?(bt.pop(),bt.length&&bt[bt.length-1].observe()):bt.splice(bt.indexOf(a),1)}}const zx=d.createContext({});function Bx(){var e;return(e=d.useContext(zx))!==null&&e!==void 0?e:{}}const l4=B.createContext(null);function Rx(e){let t=Kn(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=d.useState(!1),o=d.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:a}=Bx();if(!e.portalContainer&&a&&(n=a()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=B.createElement(lg,{restoreFocus:!0,contain:i&&!r},l)),l=B.createElement(l4.Provider,{value:o},B.createElement(Eb,null,l)),Zh.createPortal(l,n)}function u4(){let e=d.useContext(l4),t=e==null?void 0:e.setContain;ge(()=>{t==null||t(!0)},[t])}function Fx(e,t,n){let{overlayProps:r,underlayProps:i}=Tx(A(S({},e),{isOpen:t.isOpen,onClose:t.close}),n);return Lx({isDisabled:!t.isOpen}),u4(),d.useEffect(()=>{if(t.isOpen)return jx([n.current])},[t.isOpen,n]),{modalProps:ee(r),underlayProps:i}}function af(e){return Jw()?e.altKey:e.ctrlKey}function mi(e){return wr()?e.metaKey:e.ctrlKey}const Vx=1e3;function Ox(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=d.useRef({search:"",timeout:null}).current,s=o=>{let a=Kx(o.key);if(!a||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;a===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=a;let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Vx)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:null}}}function Kx(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Hx(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:a=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:h=r,linkBehavior:v="action"}=e,{direction:w}=Ms(),C=I2(),g=P=>{if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!r.current.contains(P.target))return;const K=(_,H)=>{if(_!=null){if(t.isLink(_)&&v==="selection"&&l&&!af(P)){sa.flushSync(()=>{t.setFocusedKey(_,H)});let U=h.current.querySelector(`[data-key="${CSS.escape(_.toString())}"]`),Ge=t.getItemProps(_);C.open(U,P,Ge.href,Ge.routerOptions);return}if(t.setFocusedKey(_,H),t.isLink(_)&&v==="override")return;P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_):l&&!af(P)&&t.replaceSelection(_)}};switch(P.key){case"ArrowDown":if(n.getKeyBelow){var x,N;P.preventDefault();let _=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(x=n.getFirstKey)===null||x===void 0?void 0:x.call(n);_==null&&s&&(_=(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),K(_)}break;case"ArrowUp":if(n.getKeyAbove){var k,D;P.preventDefault();let _=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(k=n.getLastKey)===null||k===void 0?void 0:k.call(n);_==null&&s&&(_=(D=n.getLastKey)===null||D===void 0?void 0:D.call(n,t.focusedKey)),K(_)}break;case"ArrowLeft":if(n.getKeyLeftOf){var V,j;P.preventDefault();let _=n.getKeyLeftOf(t.focusedKey);_==null&&s&&(_=w==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),K(_,w==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var I,F;P.preventDefault();let _=n.getKeyRightOf(t.focusedKey);_==null&&s&&(_=w==="rtl"?(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,t.focusedKey):(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n,t.focusedKey)),K(_,w==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){P.preventDefault();let _=n.getFirstKey(t.focusedKey,mi(P));t.setFocusedKey(_),mi(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_):l&&t.replaceSelection(_)}break;case"End":if(n.getLastKey){P.preventDefault();let _=n.getLastKey(t.focusedKey,mi(P));t.setFocusedKey(_),mi(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_):l&&t.replaceSelection(_)}break;case"PageDown":if(n.getKeyPageBelow){P.preventDefault();let _=n.getKeyPageBelow(t.focusedKey);K(_)}break;case"PageUp":if(n.getKeyPageAbove){P.preventDefault();let _=n.getKeyPageAbove(t.focusedKey);K(_)}break;case"a":mi(P)&&t.selectionMode==="multiple"&&a!==!0&&(P.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(P.stopPropagation(),P.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(P.shiftKey)r.current.focus();else{let _=Mt(r.current,{tabbable:!0}),H,U;do U=_.lastChild(),U&&(H=U);while(U);H&&!H.contains(document.activeElement)&&on(H)}break}}},m=d.useRef({top:0,left:0});cb(h,"scroll",p?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let y=P=>{if(t.isFocused){P.currentTarget.contains(P.target)||t.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(t.setFocused(!0),t.focusedKey==null){let N=D=>{D!=null&&(t.setFocusedKey(D),l&&t.replaceSelection(D))},k=P.relatedTarget;var K,x;k&&P.currentTarget.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING?N((K=t.lastSelectedKey)!==null&&K!==void 0?K:n.getLastKey()):N((x=t.firstSelectedKey)!==null&&x!==void 0?x:n.getFirstKey())}else p||(h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left);if(!p&&t.focusedKey!=null){let N=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);N&&(N.contains(document.activeElement)||on(N),Wd()==="keyboard"&&Wn(N,{containingElement:r.current}))}}},$=P=>{P.currentTarget.contains(P.relatedTarget)||t.setFocused(!1)};const T=d.useRef(i);d.useEffect(()=>{if(T.current){let P=null;i==="first"&&(P=n.getFirstKey()),i==="last"&&(P=n.getLastKey());let K=t.selectedKeys;if(K.size){for(let x of K)if(t.canSelectItem(x)){P=x;break}}t.setFocused(!0),t.setFocusedKey(P),P==null&&!c&&et(r.current)}},[]);let L=d.useRef(t.focusedKey);d.useEffect(()=>{let P=Wd();if(t.isFocused&&t.focusedKey!=null&&(h!=null&&h.current)){let K=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);K&&(P==="keyboard"||T.current)&&(p||O2(h.current,K),P!=="virtual"&&Wn(K,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&L.current!=null&&et(r.current),L.current=t.focusedKey,T.current=!1},[p,h,t.focusedKey,t.isFocused,r]);let z={onKeyDown:g,onFocus:y,onBlur:$,onMouseDown(P){h.current===P.target&&P.preventDefault()}},{typeSelectProps:M}=Ox({keyboardDelegate:n,selectionManager:t});u||(z=ee(M,z));let b;return c||(b=t.focusedKey==null?0:-1),{collectionProps:A(S({},z),{tabIndex:b})}}function Ux(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:o,isDisabled:a,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=I2(),p=j=>{if(j.pointerType==="keyboard"&&af(j))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){let I=t.getItemProps(n);f.open(r.current,j,I.href,I.routerOptions),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):j&&j.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||j&&(mi(j)||j.pointerType==="touch"||j.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};d.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!s&&(o?o():document.activeElement!==r.current&&et(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),a=a||t.isDisabled(n);let h={};!s&&!a?h={tabIndex:n===t.focusedKey?0:-1,onFocus(j){j.target===r.current&&t.setFocusedKey(n)}}:a&&(h.onMouseDown=j=>{j.preventDefault()});let v=t.isLink(n)&&c==="override",w=t.isLink(n)&&c!=="selection"&&c!=="none",C=!a&&t.canSelectItem(n)&&!v,g=(l||w)&&!a,m=g&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),y=g&&C&&t.selectionBehavior==="replace",$=m||y,T=d.useRef(null),L=$&&C,z=d.useRef(!1),M=d.useRef(!1),b=j=>{if(l&&l(),w){let I=t.getItemProps(n);f.open(r.current,j,I.href,I.routerOptions)}},P={};i?(P.onPressStart=j=>{T.current=j.pointerType,z.current=L,j.pointerType==="keyboard"&&(!$||d4())&&p(j)},u?(P.onPressUp=m?null:j=>{j.pointerType!=="keyboard"&&C&&p(j)},P.onPress=m?b:null):P.onPress=j=>{if(m||y&&j.pointerType!=="mouse"){if(j.pointerType==="keyboard"&&!c4())return;b(j)}else j.pointerType!=="keyboard"&&C&&p(j)}):(P.onPressStart=j=>{T.current=j.pointerType,z.current=L,M.current=m,C&&(j.pointerType==="mouse"&&!m||j.pointerType==="keyboard"&&(!g||d4()))&&p(j)},P.onPress=j=>{(j.pointerType==="touch"||j.pointerType==="pen"||j.pointerType==="virtual"||j.pointerType==="keyboard"&&$&&c4()||j.pointerType==="mouse"&&M.current)&&($?b(j):C&&p(j))}),h["data-key"]=n,P.preventFocusOnPress=s;let{pressProps:K,isPressed:x}=$s(P),N=y?j=>{T.current==="mouse"&&(j.stopPropagation(),j.preventDefault(),b(j))}:void 0,{longPressProps:k}=zb({isDisabled:!L,onLongPress(j){j.pointerType==="touch"&&(p(j),t.setSelectionBehavior("toggle"))}}),D=j=>{T.current==="touch"&&z.current&&j.preventDefault()},V=t.isLink(n)?j=>{br.isOpening||j.preventDefault()}:void 0;return{itemProps:ee(h,C||m?K:{},L?k:{},{onDoubleClick:N,onDragStartCapture:D,onClick:V}),isPressed:x,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:a,allowsSelection:C,hasAction:$}}function c4(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function d4(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class lf{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let i=this.getItem(t);if(!i)return null;let s=i.getBoundingClientRect();do t=n(t),i=this.getItem(t);while(i&&r(s,i.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return t!==null?this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Cs(n))return this.getFirstKey();let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-n.scrollLeft,a=Math.max(0,s.x-o+s.width-i.width);for(;r&&s.x-o>a;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),s=r==null?void 0:r.getBoundingClientRect()}else{let o=i.y-n.scrollTop,a=Math.max(0,s.y-o+s.height-i.height);for(;r&&s.y-o>a;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),s=r==null?void 0:r.getBoundingClientRect()}return t!=null?t:this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!Cs(n))return this.getLastKey();let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-n.scrollLeft,a=Math.min(n.scrollWidth,s.x-o-s.width+i.width);for(;r&&s.x-os||new lf({collection:n,disabledKeys:r,disabledBehavior:a,ref:i,collator:o}),[s,n,r,i,o,a]),{collectionProps:u}=Hx(A(S({},e),{ref:i,selectionManager:t,keyboardDelegate:l}));return{listProps:u}}class Zx{build(t,n){return this.context=n,f4(()=>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 i of t.items)yield*ll(this.getFullNode({value:i},{renderer:n}))}else{let i=[];B.Children.forEach(n,o=>{i.push(o)});let s=0;for(let o of i){let a=this.getFullNode({element:o,index:s},{});for(let l of a)s++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let s=n.value;if(s!=null){var o;let a=(o=s.key)!==null&&o!==void 0?o:s.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){let s=t.element;if(!s&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=i?i.key:null,yield l;return}s=n.renderer(t.value)}if(B.isValidElement(s)){let l=s.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let p=typeof s.type=="function"?s.type.name:s.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=l.getCollectionNode(s.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let p=f.value;t.index=c;let h=p.key;h||(h=p.element?null:this.getKey(s,t,n,r));let w=[...this.getFullNode(A(S({},p),{key:h,index:c,wrapper:Gx(t.wrapper,p.wrapper)}),this.getChildState(n,p),r?`${r}${s.key}`:s.key,i)];for(let C of w){if(C.value=p.value||t.value,C.value&&this.cache.set(C.value,C),t.type&&C.type!==t.type)throw new Error(`Unsupported type <${uf(C.type)}> in <${uf(i.type)}>. Only <${uf(t.type)}> is supported.`);c++,yield C}f=u.next(w)}return}if(t.key==null)return;let o=this,a={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value,level:i?i.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:f4(function*(){if(!t.hasChildNodes)return;let l=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${a.key}${u.key}`),u.index=l;let c=o.getFullNode(u,o.getChildState(n,u),a.key,a);for(let f of c)l++,yield f}})};yield a}constructor(){this.cache=new WeakMap}}function f4(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 Gx(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function uf(e){return e[0].toUpperCase()+e.slice(1)}function qx(e,t,n){let r=d.useMemo(()=>new Zx,[]),{children:i,items:s,collection:o}=e;return d.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,o,n,t])}function Yx(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Qx(e){return Xx(e)}function Xx(e,t){for(let n of e)return n}function Jx(e){let t;for(let n of e)t=n;return t}function cf(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...p4(e,t),t],i=[...p4(e,n),n],s=r.slice(0,i.length).findIndex((o,a)=>o!==i[a]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function p4(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}function eS(e,t){let{role:n="dialog"}=e,r=Ma();r=e["aria-label"]?void 0:r;let i=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){et(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),et(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),u4(),{dialogProps:A(S({},Ze(e,{labelable:!0})),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}}),titleProps:{id:r}}}const df=new WeakMap;function ff(e,t){let{id:n}=df.get(e);if(!n)throw new Error("Unknown list");return`${n}-${tS(t)}`}function tS(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var h4={};h4={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 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 g4={};g4={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 v4={};v4={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 y4={};y4={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 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 b4={};b4={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 x4={};x4={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 S4={};S4={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 C4={};C4={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 E4={};E4={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 $4={};$4={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 P4={};P4={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 k4={};k4={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 T4={};T4={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 D4={};D4={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 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 L4={};L4={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 A4={};A4={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 N4={};N4={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 I4={};I4={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 j4={};j4={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 z4={};z4={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 B4={};B4={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 R4={};R4={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 F4={};F4={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 V4={};V4={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 O4={};O4={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 K4={};K4={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 H4={};H4={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 U4={};U4={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 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}」。`};var Qa={};Qa={"ar-AE":h4,"bg-BG":m4,"cs-CZ":g4,"da-DK":v4,"de-DE":y4,"el-GR":w4,"en-US":b4,"es-ES":x4,"et-EE":S4,"fi-FI":C4,"fr-FR":E4,"he-IL":$4,"hr-HR":P4,"hu-HU":k4,"it-IT":T4,"ja-JP":D4,"ko-KR":M4,"lt-LT":L4,"lv-LV":A4,"nb-NO":_4,"nl-NL":N4,"pl-PL":I4,"pt-BR":j4,"pt-PT":z4,"ro-RO":B4,"ru-RU":R4,"sk-SK":F4,"sl-SI":V4,"sr-SP":O4,"sv-SE":K4,"tr-TR":H4,"uk-UA":U4,"zh-CN":W4,"zh-TW":Z4};function nS(e){return e&&e.__esModule?e.default:e}function rS(e,t){let{getRowText:n=o=>{var a,l,u,c;return(c=(a=(l=t.collection).getTextValue)===null||a===void 0?void 0:a.call(l,o))!==null&&c!==void 0?c:(u=t.collection.getItem(o))===null||u===void 0?void 0:u.textValue}}=e,r=Ls(nS(Qa),"@react-aria/grid"),i=t.selectionManager.rawSelection,s=d.useRef(i);ob(()=>{var o;if(!t.selectionManager.isFocused){s.current=i;return}let a=G4(i,s.current),l=G4(s.current,i),u=t.selectionManager.selectionBehavior==="replace",c=[];if(t.selectionManager.selectedKeys.size===1&&u){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let f=n(t.selectionManager.selectedKeys.keys().next().value);f&&c.push(r.format("selectedItem",{item:f}))}}else if(a.size===1&&l.size===0){let f=n(a.keys().next().value);f&&c.push(r.format("selectedItem",{item:f}))}else if(l.size===1&&a.size===0&&t.collection.getItem(l.keys().next().value)){let f=n(l.keys().next().value);f&&c.push(r.format("deselectedItem",{item:f}))}t.selectionManager.selectionMode==="multiple"&&(c.length===0||i==="all"||i.size>1||s.current==="all"||((o=s.current)===null||o===void 0?void 0:o.size)>1)&&c.push(i==="all"?r.format("selectedAll"):r.format("selectedCount",{count:i.size})),c.length>0&&px(c.join(" ")),s.current=i},[i])}function G4(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 iS(e){return e&&e.__esModule?e.default:e}function sS(e){let t=Ls(iS(Qa),"@react-aria/grid"),n=rg(),r=(n==="pointer"||n==="virtual"||n==null)&&typeof window!="undefined"&&"ontouchstart"in window,i=d.useMemo(()=>{let o=e.selectionManager.selectionMode,a=e.selectionManager.selectionBehavior,l;return r&&(l=t.format("longPressToSelect")),a==="replace"&&o!=="none"&&e.hasItemActions?l:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return zd(i)}function oS(e){return e&&e.__esModule?e.default:e}function aS(e,t){let{key:n}=e,r=t.selectionManager,i=sn(),s=!t.selectionManager.canSelectItem(n),o=t.selectionManager.isSelected(n),a=()=>r.select(n);const l=Ls(oS(Qa),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":l.format("select"),isSelected:o,isDisabled:s,onChange:a}}}function q4(e,t,n){let{isVirtualized:r,keyboardDelegate:i,onAction:s,linkBehavior:o="action"}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:a}=Wx({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,isVirtualized:r,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:o}),l=sn(e.id);df.set(t,{id:l,onAction:s,linkBehavior:o});let u=sS({selectionManager:t.selectionManager,hasItemActions:!!s}),c=Qb(n,{isDisabled:t.collection.size!==0}),f=Ze(e,{labelable:!0}),p=ee(f,{role:"grid",id:l,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:c?-1:0}:a,u);return r&&(p["aria-rowcount"]=t.collection.size,p["aria-colcount"]=1),rS({},t),{gridProps:p}}const Y4={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Q4(e,t,n){var r,i;let{node:s,isVirtualized:o,shouldSelectOnPressUp:a}=e,{direction:l}=Ms(),{onAction:u,linkBehavior:c}=df.get(t),f=Ma(),p=d.useRef(null),h=()=>{var b;(p.current!=null&&s.key!==p.current||!(!((b=n.current)===null||b===void 0)&&b.contains(document.activeElement)))&&et(n.current)},v={},w,C=t.selectionManager.isLink(s.key);s!=null&&"expandedKeys"in t&&(w=[...t.collection.getChildren(s.key)].length>1,u==null&&!C&&t.selectionManager.selectionMode==="none"&&w&&(u=()=>t.toggleKey(s.key)),v={"aria-expanded":w?t.expandedKeys.has(s.key):void 0,"aria-level":s.level+1,"aria-posinset":(s==null?void 0:s.index)+1,"aria-setsize":s.level>0?Jx(t.collection.getChildren(s==null?void 0:s.parentKey)).index+1:[...t.collection].filter(P=>P.level===0).at(-1).index+1});let M=Ux({selectionManager:t.selectionManager,key:s.key,ref:n,isVirtualized:o,shouldSelectOnPressUp:a,onAction:u||!((r=s.props)===null||r===void 0)&&r.onAction?ai((i=s.props)===null||i===void 0?void 0:i.onAction,u?()=>u(s.key):void 0):void 0,focus:h,linkBehavior:c}),{itemProps:g}=M,m=G(M,["itemProps"]),y=b=>{if(!b.currentTarget.contains(b.target))return;let P=Mt(n.current);if(P.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===n.current){if(b.key===Y4.expand[l]&&t.selectionManager.focusedKey===s.key&&w&&!t.expandedKeys.has(s.key)){t.toggleKey(s.key),b.stopPropagation();return}else if(b.key===Y4.collapse[l]&&t.selectionManager.focusedKey===s.key&&w&&t.expandedKeys.has(s.key)){t.toggleKey(s.key),b.stopPropagation();return}}switch(b.key){case"ArrowLeft":{let K=l==="rtl"?P.nextNode():P.previousNode();if(K)b.preventDefault(),b.stopPropagation(),et(K),Wn(K,{containingElement:Un(n.current)});else if(b.preventDefault(),b.stopPropagation(),l==="rtl")et(n.current),Wn(n.current,{containingElement:Un(n.current)});else{P.currentNode=n.current;let x=X4(P);x&&(et(x),Wn(x,{containingElement:Un(n.current)}))}break}case"ArrowRight":{let K=l==="rtl"?P.previousNode():P.nextNode();if(K)b.preventDefault(),b.stopPropagation(),et(K),Wn(K,{containingElement:Un(n.current)});else if(b.preventDefault(),b.stopPropagation(),l==="ltr")et(n.current),Wn(n.current,{containingElement:Un(n.current)});else{P.currentNode=n.current;let x=X4(P);x&&(et(x),Wn(x,{containingElement:Un(n.current)}))}break}case"ArrowUp":case"ArrowDown":!b.altKey&&n.current.contains(b.target)&&(b.stopPropagation(),b.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(b.nativeEvent.type,b.nativeEvent)));break}},$=b=>{if(p.current=s.key,b.target!==n.current){Ud()||t.selectionManager.setFocusedKey(s.key);return}},T=m.hasAction?j2(s.props):{},L=ee(g,T,{role:"row",onKeyDownCapture:y,onFocus:$,"aria-label":s.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(s.key)?t.selectionManager.isSelected(s.key):void 0,"aria-disabled":t.selectionManager.isDisabled(s.key)||void 0,"aria-labelledby":f&&s.textValue?`${ff(t,s.key)} ${f}`:void 0,id:ff(t,s.key)});o&&(L["aria-rowindex"]=s.index+1);let z={role:"gridcell","aria-colindex":1};return S({rowProps:S({},ee(L,v)),gridCellProps:z,descriptionProps:{id:f}},m)}function X4(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}function lS(e,t){let{key:n}=e;const{checkboxProps:r}=aS(e,t);return{checkboxProps:A(S({},r),{"aria-labelledby":`${r.id} ${ff(t,n)}`})}}const J4=new WeakMap;function uS(e,t,n){let{direction:r}=Ms(),i=e.keyboardDelegate||new lf({collection:t.collection,ref:n,orientation:"horizontal",direction:r,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:s,fieldProps:o,descriptionProps:a,errorMessageProps:l}=$x(A(S({},e),{labelElementType:"span"})),{gridProps:u}=q4(A(S(S({},e),o),{keyboardDelegate:i,shouldFocusWrap:!0,linkBehavior:"override"}),t,n),[c,f]=d.useState(!1),{focusWithinProps:p}=Va({onFocusWithinChange:f}),h=Ze(e),v=d.useRef(t.collection.size);return d.useEffect(()=>{n.current&&v.current>0&&t.collection.size===0&&c&&n.current.focus(),v.current=t.collection.size},[t.collection.size,c,n]),J4.set(t,{onRemove:e.onRemove}),{gridProps:ee(u,h,S(S({role:t.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":c?"polite":"off"},p),o)),labelProps:s,descriptionProps:a,errorMessageProps:l}}var e3={};e3={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var t3={};t3={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var n3={};n3={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var r3={};r3={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var i3={};i3={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var s3={};s3={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var o3={};o3={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var a3={};a3={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var l3={};l3={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var u3={};u3={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var c3={};c3={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var d3={};d3={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var f3={};f3={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var p3={};p3={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var h3={};h3={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var m3={};m3={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var g3={};g3={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var v3={};v3={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var y3={};y3={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var w3={};w3={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var b3={};b3={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var x3={};x3={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var S3={};S3={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var C3={};C3={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var E3={};E3={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var $3={};$3={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var P3={};P3={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var k3={};k3={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var T3={};T3={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var D3={};D3={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var M3={};M3={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var L3={};L3={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var A3={};A3={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var _3={};_3={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var N3={};N3={"ar-AE":e3,"bg-BG":t3,"cs-CZ":n3,"da-DK":r3,"de-DE":i3,"el-GR":s3,"en-US":o3,"es-ES":a3,"et-EE":l3,"fi-FI":u3,"fr-FR":c3,"he-IL":d3,"hr-HR":f3,"hu-HU":p3,"it-IT":h3,"ja-JP":m3,"ko-KR":g3,"lt-LT":v3,"lv-LV":y3,"nb-NO":w3,"nl-NL":b3,"pl-PL":x3,"pt-BR":S3,"pt-PT":C3,"ro-RO":E3,"ru-RU":$3,"sk-SK":P3,"sl-SI":k3,"sr-SP":T3,"sv-SE":D3,"tr-TR":M3,"uk-UA":L3,"zh-CN":A3,"zh-TW":_3};function cS(e){return e&&e.__esModule?e.default:e}function dS(e,t,n){let{item:r}=e,i=Ls(cS(N3),"@react-aria/tag"),s=sn(),{onRemove:o}=J4.get(t)||{},y=Q4({node:r},t,n),{rowProps:a,gridCellProps:l}=y,u=G(y,["rowProps","gridCellProps"]);delete a.onKeyDownCapture;let $=u,{descriptionProps:c}=$,f=G($,["descriptionProps"]),p=T=>{(T.key==="Delete"||T.key==="Backspace")&&(T.preventDefault(),t.selectionManager.isSelected(r.key)?o==null||o(new Set(t.selectionManager.selectedKeys)):o==null||o(new Set([r.key])))},h=rg();h==="virtual"&&typeof window!="undefined"&&"ontouchstart"in window&&(h="pointer");let v=o&&(h==="keyboard"||h==="virtual")?i.format("removeDescription"):"",w=zd(v),C=r.key===t.selectionManager.focusedKey,g=Ze(r.props),m=j2(r.props);return A(S({removeButtonProps:{"aria-label":i.format("removeButtonLabel"),"aria-labelledby":`${s} ${a.id}`,id:s,onPress:()=>o?o(new Set([r.key])):null,excludeFromTabOrder:!0},rowProps:ee(a,g,m,{tabIndex:C||t.selectionManager.focusedKey==null?0:-1,onKeyDown:o?p:void 0,"aria-describedby":w["aria-describedby"]}),gridCellProps:ee(l,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]})},f),{allowsRemoving:!!o})}var I3={exports:{}},j3={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var gi=d;function fS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pS=typeof Object.is=="function"?Object.is:fS,hS=gi.useState,mS=gi.useEffect,gS=gi.useLayoutEffect,vS=gi.useDebugValue;function yS(e,t){var n=t(),r=hS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return gS(function(){i.value=n,i.getSnapshot=t,pf(i)&&s({inst:i})},[e,n,t]),mS(function(){return pf(i)&&s({inst:i}),e(function(){pf(i)&&s({inst:i})})},[e]),vS(n),n}function pf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pS(e,n)}catch(r){return!0}}function wS(e,t){return t()}var bS=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?wS:yS;j3.useSyncExternalStore=gi.useSyncExternalStore!==void 0?gi.useSyncExternalStore:bS,I3.exports=j3;var xS=I3.exports;class hf{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new hf(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t}constructor(t,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=t,this.key=n}}class z3{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}appendChild(t){this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(t,n){if(n==null)return this.appendChild(t);this.ownerDocument.startTransaction(),t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=n,t.previousSibling=n.previousSibling,t.index=n.index,this.firstChild===n?this.firstChild=t:n.previousSibling&&(n.previousSibling.nextSibling=t),n.previousSibling=t,t.parentNode=n.parentNode;let r=n;for(;r;)r.index++,r=r.nextSibling;t.hasSetProps&&this.ownerDocument.addNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(t){if(t.parentNode!==this)return;this.ownerDocument.startTransaction();let n=t.nextSibling;for(;n;)n.index--,n=n.nextSibling;t.nextSibling&&(t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.removeNode(t),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=t}}class Ns extends z3{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ns?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var t,n,r,i;let s=this.ownerDocument.getMutableNode(this);s.index=this.index,s.level=this.level,s.parentKey=this.parentNode instanceof Ns?this.parentNode.node.key:null;var o;s.prevKey=(o=(t=this.previousSibling)===null||t===void 0?void 0:t.node.key)!==null&&o!==void 0?o:null;var a;s.nextKey=(a=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,s.hasChildNodes=!!this.firstChild;var l;s.firstChildKey=(l=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var u;s.lastChildKey=(u=(i=this.lastChild)===null||i===void 0?void 0:i.node.key)!==null&&u!==void 0?u:null}setProps(t,n,r){let i=this.ownerDocument.getMutableNode(this),u=t,{value:s,textValue:o,id:a}=u,l=G(u,["value","textValue","id"]);if(l.ref=n,i.props=l,i.rendered=r,i.value=s,i.textValue=o||(typeof r=="string"?r:"")||t["aria-label"]||"",a!=null&&a!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=a}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new hf(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class SS{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(t),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(t){let n=this.keyMap.get(t);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(t){let n=this.keyMap.get(t);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,n=new t;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=n,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class CS extends z3{get isConnected(){return!0}createElement(t){return new Ns(t,this)}getMutableNode(t){let n=t.node;return this.mutatedNodes.has(t)||(n=t.node.clone(),this.mutatedNodes.add(t),t.node=n),this.markDirty(t),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(t){this.dirtyNodes.add(t)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(t){let n=this.getMutableCollection();if(!n.getItem(t.node.key)){n.addNode(t.node);for(let r of t)this.addNode(r)}this.markDirty(t)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key),this.markDirty(t)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof Ns&&s.isConnected&&s.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var t,n;let s=this.getMutableCollection();for(let o of this.mutatedNodes)o.isConnected&&s.addNode(o.node);var r,i;s.commit((r=(t=this.firstChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let t of this.subscriptions)t()}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function mf(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:s=[]}=e,o=d.useMemo(()=>new WeakMap,s);return d.useMemo(()=>{if(n&&typeof t=="function"){let u=[];for(let c of n){let f=o.get(c);if(!f){f=t(c);var a,l;let p=(l=(a=f.props.id)!==null&&a!==void 0?a:c.key)!==null&&l!==void 0?l:c.id;if(p==null)throw new Error("Could not determine key for item");r&&(p=r+":"+p),f=d.cloneElement(f,i?{key:p,id:p,value:c}:{key:p}),o.set(c,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,n,o,r,i])}function ES(e){return mf(A(S({},e),{addIdAndValue:!0}))}const $S=d.createContext(!1);function PS(e,t){let{collection:n,document:r}=B3(t);return{portal:F3(e,r),collection:n}}function kS(e,t,n){let r=Kn(),i=d.useRef(r);i.current=r;let s=d.useCallback(()=>i.current?n():t(),[t,n]);return xS.useSyncExternalStore(e,s)}const TS=typeof B.useSyncExternalStore=="function"?B.useSyncExternalStore:kS;function B3(e){let t=d.useMemo(()=>new CS(e||new SS),[e]),n=d.useCallback(o=>t.subscribe(o),[t]),r=d.useCallback(()=>{let o=t.getCollection();return t.isSSR&&t.resetAfterSSR(),o},[t]),i=d.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:TS(n,r,i),document:t}}const gf=d.createContext(null),R3=d.createContext(null);function F3(e,t){let n=d.useContext(R3),r=t!=null?t:n,i=ES(e),s=d.useMemo(()=>B.createElement($S.Provider,{value:!0},i),[i]);return Kn()?B.createElement(gf.Provider,{value:r},s):sa.createPortal(s,r)}function DS(e,t,n){return d.useCallback(r=>{r==null||r.setProps(e,t,n)},[e,t,n])}function V3(e,t,n,r,i){let s=DS(t,n,r),o=d.useContext(gf);if(o){let a=o.ownerDocument.nodesByProps.get(t);return a||(a=o.ownerDocument.createElement(e),a.setProps(t,n,r),o.appendChild(a),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,a)),i?B.createElement(gf.Provider,{value:a},i):null}return B.createElement(e,{ref:s},i)}const Xa=Symbol("default");function Cr({values:e,children:t}){for(let[n,r]of e)t=B.createElement(n.Provider,{value:r},t);return t}function dn(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:s,defaultStyle:o,values:a}=e;return d.useMemo(()=>{let l,u,c;return typeof t=="function"?l=t(A(S({},a),{defaultClassName:i})):l=t,typeof n=="function"?u=n(A(S({},a),{defaultStyle:o||{}})):u=n,typeof r=="function"?c=r(A(S({},a),{defaultChildren:s})):r==null?c=s:c=r,{className:l!=null?l:i,style:u||o?S(S({},o),u):void 0,children:c!=null?c:s,"data-rac":""}},[t,n,r,i,s,o,a])}function MS(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function O3(e,t){let n=d.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!t&&!n.slots[Xa])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=t||Xa;if(!n.slots[i])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[i]}return n}function Zn(e,t,n){let l=O3(n,e.slot)||{},{ref:i}=l,s=G(l,["ref"]),o=Hn(d.useMemo(()=>Ad(t,i),[t,i])),a=ee(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?a.style=u=>{let c=typeof s.style=="function"?s.style(u):s.style,f=S(S({},u.defaultStyle),c),p=typeof e.style=="function"?e.style(A(S({},u),{defaultStyle:f})):e.style;return S(S({},f),p)}:a.style=S(S({},s.style),e.style)),[a,o]}function LS(){let[e,t]=d.useState(!0),n=d.useRef(!1),r=d.useCallback(i=>{n.current=!0,t(!!i)},[]);return ge(()=>{n.current||t(!1)},[]),[r,e]}function K3(e,t=!0){let[n,r]=d.useState(!0);return U3(e,n&&t,d.useCallback(()=>r(!1),[])),n&&t}function H3(e,t){let[n,r]=d.useState(!1),[i,s]=d.useState("idle");return!t&&e.current&&i==="idle"&&(n=!0,r(!0),s("exiting")),!e.current&&i==="exited"&&s("idle"),U3(e,n,d.useCallback(()=>{s("exited"),r(!1)},[])),n}function U3(e,t,n){let r=d.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),ge(()=>{if(t&&e.current){let i=window.getComputedStyle(e.current);if(i.animationName&&i.animationName!=="none"&&i.animation!==r.current){let s=a=>{a.target===e.current&&(o.removeEventListener("animationend",s),Zh.flushSync(()=>{n()}))},o=e.current;return o.addEventListener("animationend",s),()=>{o.removeEventListener("animationend",s)}}else n()}},[e,t,n])}if(typeof HTMLTemplateElement!="undefined"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const AS=d.createContext(!1);typeof DocumentFragment!="undefined"&&new DocumentFragment;function _S(e){let t=(n,r)=>d.useContext(AS)?null:e(n,r);return t.displayName=e.displayName||e.name,B.forwardRef(t)}const NS=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),vf=d.createContext({});function IS(e,t){[e,t]=Zn(e,t,vf);let n=e,{buttonProps:r,isPressed:i}=fx(e,t),{focusProps:s,isFocused:o,isFocusVisible:a}=di(e),{hoverProps:l,isHovered:u}=Ka(e),c=dn(A(S({},e),{values:{isHovered:u,isPressed:i,isFocused:o,isFocusVisible:a,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"}));return B.createElement("button",A(S(S(S({},Ze(e,{propNames:NS})),ee(r,s,l)),c),{ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-pressed":n.isPressed||i||void 0,"data-hovered":u||void 0,"data-focused":o||void 0,"data-focus-visible":a||void 0}))}const vi=_S(IS),W3=d.createContext({});class Z3{*[Symbol.iterator](){yield*ll(this.iterable)}get size(){return this.keyMap.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(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let o of s.childNodes)n(o)};for(let s of t)n(s);let r,i=0;for(let[s,o]of this.keyMap)r?(r.nextKey=s,o.prevKey=r.key):(this.firstKey=s,o.prevKey=void 0),o.type==="item"&&(o.index=i++),r=o,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}class Lt extends Set{constructor(t,n,r){super(t),t instanceof Lt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function jS(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zS(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,o=d.useRef(!1),[,a]=d.useState(!1),l=d.useRef(null),u=d.useRef(null),[,c]=d.useState(null),f=d.useMemo(()=>G3(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>G3(e.defaultSelectedKeys,new Lt),[e.defaultSelectedKeys]),[h,v]=Rd(f,p,e.onSelectionChange),w=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,g]=d.useState(i);i==="replace"&&C==="toggle"&&typeof h=="object"&&h.size===0&&g("replace");let m=d.useRef(i);return d.useEffect(()=>{i!==m.current&&(g(i),m.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:g,get isFocused(){return o.current},setFocused(y){o.current=y,a(y)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(y,$="first"){l.current=y,u.current=$,c(y)},selectedKeys:h,setSelectedKeys(y){(r||!jS(y,h))&&v(y)},disabledKeys:w,disabledBehavior:s}}function G3(e,t){return e?e==="all"?"all":new Lt(e):t}class BS{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&&cf(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&&cf(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 Lt([t],t,t);else{let r=this.state.selectedKeys,i=r.anchorKey||t;n=new Lt(r,i,t);for(let s of this.getKeyRange(i,r.currentKey||t))n.delete(s);for(let s of this.getKeyRange(t,i))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?cf(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],i=t;for(;i;){let s=this.collection.getItem(i);if((s&&s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}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 Lt(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 Lt([t],t,t):new Lt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Lt;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 i=this.collection.getItem(r);i.type==="item"&&t.push(r),i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n(Qx(Yx(i,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 Lt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null}}function q3(e){let{filter:t}=e,n=zS(e),r=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=d.useCallback(u=>t?new Z3(t(u)):new Z3(u),[t]),s=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=qx(e,i,s),a=d.useMemo(()=>new BS(o,n),[o,n]);const l=d.useRef(null);return d.useEffect(()=>{if(n.focusedKey!=null&&!o.getItem(n.focusedKey)){const u=l.current.getItem(n.focusedKey),c=[...l.current.getKeys()].map(w=>{const C=l.current.getItem(w);return C.type==="item"?C:null}).filter(w=>w!==null),f=[...o.getKeys()].map(w=>{const C=o.getItem(w);return C.type==="item"?C:null}).filter(w=>w!==null),p=c.length-f.length;let h=Math.min(p>1?Math.max(u.index-p+1,0):u.index,f.length-1),v;for(;h>=0;){if(!a.isDisabled(f[h].key)){v=f[h];break}hu.index&&(h=u.index),h--)}n.setFocusedKey(v?v.key:null)}l.current=o},[o,a,n,n.focusedKey]),{collection:o,disabledKeys:r,selectionManager:a}}function Y3(e){let[t,n]=Rd(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=d.useCallback(()=>{n(!0)},[n]),i=d.useCallback(()=>{n(!1)},[n]),s=d.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}const RS=d.createContext(null),FS=d.createContext({}),VS=d.createContext(null);function OS(e,t){let b=e,{inputRef:n=null}=b,r=G(b,["inputRef"]);[e,t]=Zn(r,t,D2);let{validationBehavior:i}=O3(RS)||{};var s,o;let a=(o=(s=e.validationBehavior)!==null&&s!==void 0?s:i)!==null&&o!==void 0?o:"native",l=d.useContext(VS),u=Hn(Ad(n,e.inputRef!==void 0?e.inputRef:null)),{labelProps:c,inputProps:f,isSelected:p,isDisabled:h,isReadOnly:v,isPressed:w,isInvalid:C}=l?Px(A(S({},e),{value:e.value,children:typeof e.children=="function"?!0:e.children}),l,u):xg(A(S({},e),{children:typeof e.children=="function"?!0:e.children,validationBehavior:a}),Sg(e),u),{isFocused:g,isFocusVisible:m,focusProps:y}=di(),$=h||v,{hoverProps:T,isHovered:L}=Ka(A(S({},e),{isDisabled:$})),z=dn(A(S({},e),{defaultClassName:"react-aria-Checkbox",values:{isSelected:p,isIndeterminate:e.isIndeterminate||!1,isPressed:w,isHovered:L,isFocused:g,isFocusVisible:m,isDisabled:h,isReadOnly:v,isInvalid:C,isRequired:e.isRequired||!1}})),M=Ze(e);return delete M.id,B.createElement("label",A(S({},ee(M,c,T,z)),{ref:t,slot:e.slot||void 0,"data-selected":p||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":w||void 0,"data-hovered":L||void 0,"data-focused":g||void 0,"data-focus-visible":m||void 0,"data-disabled":h||void 0,"data-readonly":v||void 0,"data-invalid":C||void 0,"data-required":e.isRequired||void 0}),B.createElement(a4,{elementType:"span"},B.createElement("input",A(S({},ee(f,y)),{ref:u}))),z.children)}const KS=d.forwardRef(OS),Q3=d.createContext(null);function HS(e,t){let{render:n}=d.useContext(Q3);return B.createElement(B.Fragment,null,n(e,t))}const US=d.forwardRef(HS),Ja=d.createContext({}),Is=d.createContext(null),WS=d.createContext(null),X3=d.createContext(null),js=d.createContext(null);function ZS(e){let t=Y3(e),n=d.useRef(null),{triggerProps:r,overlayProps:i}=Dx({type:"dialog"},t,n);return r.id=sn(),i["aria-labelledby"]=r.id,B.createElement(Cr,{values:[[js,t],[X3,i],[WS,{trigger:"DialogTrigger",triggerRef:n}]]},B.createElement(Cb,A(S({},r),{ref:n,isPressed:t.isOpen}),e.children))}function GS(e,t){let n=e["aria-labelledby"];[e,t]=Zn(e,t,X3);let{dialogProps:r,titleProps:i}=eS(A(S({},e),{"aria-labelledby":n}),t),s=d.useContext(js),o=e.children;typeof o=="function"&&(o=o({close:(s==null?void 0:s.close)||(()=>{})})),!r["aria-label"]&&!r["aria-labelledby"]&&(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a , it must have an aria-label or aria-labelledby attribute for accessibility.'));var a;return B.createElement("section",A(S(S({},Ze(e)),r),{ref:t,slot:e.slot||void 0,style:e.style,className:(a=e.className)!==null&&a!==void 0?a:"react-aria-Dialog"}),B.createElement(Cr,{values:[[M2,{slots:{[Xa]:{},title:A(S({},i),{level:2})}}]]},o))}const qS=d.forwardRef(GS),YS=d.createContext(null);function QS(e,t){[e,t]=Zn(e,t,YS);let{collection:n,portal:r}=PS(e);return B.createElement(B.Fragment,null,r,B.createElement(XS,{props:e,collection:n,gridListRef:t}))}function XS({props:e,collection:t,gridListRef:n}){let{dragAndDropHooks:r}=e,i=q3(A(S({},e),{collection:t,children:void 0})),{gridProps:s}=q4(e,i,n),o=mf({items:t,children:b=>{switch(b.type){case"item":return B.createElement(nC,{item:b});default:throw new Error("Unsupported node type in GridList: "+b.type)}}}),a=i.selectionManager,l=!!(r!=null&&r.useDraggableCollectionState),u=!!(r!=null&&r.useDroppableCollectionState),c=d.useRef(l),f=d.useRef(u);d.useEffect(()=>{c.current!==l&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==u&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[l,u]);let p,h,v,w=!1,C=null,g=d.useRef(null);if(l&&r){p=r.useDraggableCollectionState({collection:t,selectionManager:a,preview:r.renderDragPreview?g:void 0}),r.useDraggableCollection({},p,n);let b=r.DragPreview;C=r.renderDragPreview?B.createElement(b,{ref:g},r.renderDragPreview):null}if(u&&r){h=r.useDroppableCollectionState({collection:t,selectionManager:a});let b=new lf({collection:t,disabledKeys:a.disabledKeys,disabledBehavior:a.disabledBehavior,ref:n}),P=r.dropTargetDelegate||new r.ListDropTargetDelegate(t,n);v=r.useDroppableCollection({keyboardDelegate:b,dropTargetDelegate:P},h,n),w=h.isDropTarget({type:"root"})}let{focusProps:m,isFocused:y,isFocusVisible:$}=di(),T={isDropTarget:w,isEmpty:i.collection.size===0,isFocused:y,isFocusVisible:$,state:i},L=dn({className:e.className,style:e.style,defaultClassName:"react-aria-GridList",values:T}),z=null,M=null;if(i.collection.size===0&&e.renderEmptyState){let b=e.renderEmptyState(T);z=B.createElement("div",{role:"row",style:{display:"contents"}},B.createElement("div",{role:"gridcell",style:{display:"contents"}},b))}return B.createElement(lg,null,B.createElement("div",A(S(S(S({},Ze(e)),L),ee(s,m,v==null?void 0:v.collectionProps,M)),{ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":w||void 0,"data-empty":i.collection.size===0||void 0,"data-focused":y||void 0,"data-focus-visible":$||void 0}),B.createElement(Cr,{values:[[Is,i],[Ja,{dragAndDropHooks:r,dragState:p,dropState:h}],[Q3,{render:rC}]]},u&&B.createElement(oC,null),o),z,C))}const JS=d.forwardRef(QS);function eC(e,t){return V3("item",e,t,e.children)}const tC=d.forwardRef(eC);function nC({item:e}){let t=d.useContext(Is),{dragAndDropHooks:n,dragState:r,dropState:i}=d.useContext(Ja),s=Hn(e.props.ref),M=Q4({node:e,shouldSelectOnPressUp:!!r},t,s),{rowProps:o,gridCellProps:a,descriptionProps:l}=M,u=G(M,["rowProps","gridCellProps","descriptionProps"]),{hoverProps:c,isHovered:f}=Ka({isDisabled:!u.allowsSelection&&!u.hasAction,onHoverStart:e.props.onHoverStart,onHoverChange:e.props.onHoverChange,onHoverEnd:e.props.onHoverEnd}),{isFocusVisible:p,focusProps:h}=di(),{checkboxProps:v}=lS({key:e.key},t),w=null;r&&n&&(w=n.useDraggableItem({key:e.key,hasDragButton:!0},r));let C=null,g=d.useRef(null),{visuallyHiddenProps:m}=Ya();i&&n&&(C=n.useDropIndicator({target:{type:"item",key:e.key,dropPosition:"on"}},i,g));let y=e.props,$=r&&r.isDragging(e.key),T=dn(A(S({},y),{id:void 0,children:e.rendered,defaultClassName:"react-aria-GridListItem",values:A(S({},u),{isHovered:f,isFocusVisible:p,selectionMode:t.selectionManager.selectionMode,selectionBehavior:t.selectionManager.selectionBehavior,allowsDragging:!!r,isDragging:$,isDropTarget:C==null?void 0:C.isDropTarget})})),L=(n==null?void 0:n.renderDropIndicator)||(b=>B.createElement(US,{target:b})),z=d.useRef(null);return d.useEffect(()=>{r&&!z.current&&console.warn('Draggable items in a GridList must contain a