(function(X){typeof define=="function"&&define.amd?define(X):X()})(function(){"use strict";var sP=Object.defineProperty,oP=Object.defineProperties;var aP=Object.getOwnPropertyDescriptors;var pl=Object.getOwnPropertySymbols;var ly=Object.prototype.hasOwnProperty,uy=Object.prototype.propertyIsEnumerable;var Ff=(X,Q)=>(Q=Symbol[X])?Q:Symbol.for("Symbol."+X),lP=X=>{throw TypeError(X)},Vf=Math.pow,ay=(X,Q,re)=>Q in X?sP(X,Q,{enumerable:!0,configurable:!0,writable:!0,value:re}):X[Q]=re,S=(X,Q)=>{for(var re in Q||(Q={}))ly.call(Q,re)&&ay(X,re,Q[re]);if(pl)for(var re of pl(Q))uy.call(Q,re)&&ay(X,re,Q[re]);return X},N=(X,Q)=>oP(X,aP(Q));var Y=(X,Q)=>{var re={};for(var Se in X)ly.call(X,Se)&&Q.indexOf(Se)<0&&(re[Se]=X[Se]);if(X!=null&&pl)for(var Se of pl(X))Q.indexOf(Se)<0&&uy.call(X,Se)&&(re[Se]=X[Se]);return re};var se=(X,Q,re)=>new Promise((Se,G)=>{var ze=dt=>{try{er(re.next(dt))}catch(Pi){G(Pi)}},Wt=dt=>{try{er(re.throw(dt))}catch(Pi){G(Pi)}},er=dt=>dt.done?Se(dt.value):Promise.resolve(dt.value).then(ze,Wt);er((re=re.apply(X,Q)).next())}),uP=function(X,Q){this[0]=X,this[1]=Q};var $i=X=>{var Q=X[Ff("asyncIterator")],re=!1,Se,G={};return Q==null?(Q=X[Ff("iterator")](),Se=ze=>G[ze]=Wt=>Q[ze](Wt)):(Q=Q.call(X),Se=ze=>G[ze]=Wt=>{if(re){if(re=!1,ze==="throw")throw Wt;return Wt}return re=!0,{done:!1,value:new uP(new Promise(er=>{var dt=Q[ze](Wt);dt instanceof Object||lP("Object expected"),er(dt)}),1)}}),G[Ff("iterator")]=()=>G,Se("next"),"throw"in Q?Se("throw"):G.throw=ze=>{throw ze},"return"in Q&&Se("return"),G};function X(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q={exports:{}},re={},Se={exports:{}},G={};/** * @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 ze=Symbol.for("react.element"),Wt=Symbol.for("react.portal"),er=Symbol.for("react.fragment"),dt=Symbol.for("react.strict_mode"),Pi=Symbol.for("react.profiler"),cy=Symbol.for("react.provider"),dy=Symbol.for("react.context"),fy=Symbol.for("react.forward_ref"),py=Symbol.for("react.suspense"),hy=Symbol.for("react.memo"),my=Symbol.for("react.lazy"),Of=Symbol.iterator;function gy(e){return e===null||typeof e!="object"?null:(e=Of&&e[Of]||e["@@iterator"],typeof e=="function"?e:null)}var Kf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uf=Object.assign,Hf={};function Tr(e,t,n){this.props=e,this.context=t,this.refs=Hf,this.updater=n||Kf}Tr.prototype.isReactComponent={},Tr.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")},Tr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wf(){}Wf.prototype=Tr.prototype;function hl(e,t,n){this.props=e,this.context=t,this.refs=Hf,this.updater=n||Kf}var ml=hl.prototype=new Wf;ml.constructor=hl,Uf(ml,Tr.prototype),ml.isPureReactComponent=!0;var Zf=Array.isArray,Gf=Object.prototype.hasOwnProperty,gl={current:null},Yf={key:!0,ref:!0,__self:!0,__source:!0};function qf(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)Gf.call(t,r)&&!Yf.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,Z=z[H];if(0>>1;Hi(Le,O))kei(Nt,Le)?(z[H]=Nt,z[ke]=O,H=ke):(z[H]=Le,z[K]=O,H=K);else if(kei(Nt,O))z[H]=Nt,z[ke]=O,H=ke;else break e}}return R}function i(z,R){var O=z.sortIndex-R.sortIndex;return O!==0?O:z.id-R.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,y=!1,b=!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 v(z){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=z)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function E(z){if(b=!1,v(z),!y)if(n(l)!==null)y=!0,D(P);else{var R=n(u);R!==null&&L(E,R.startTime-z)}}function P(z,R){y=!1,b&&(b=!1,g(M),M=-1),h=!0;var O=p;try{for(v(R),f=n(l);f!==null&&(!(f.expirationTime>R)||z&&!B());){var H=f.callback;if(typeof H=="function"){f.callback=null,p=f.priorityLevel;var Z=H(f.expirationTime<=R);R=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(l)&&r(l),v(R)}else r(l);f=n(l)}if(f!==null)var Ue=!0;else{var K=n(u);K!==null&&L(E,K.startTime-R),Ue=!1}return Ue}finally{f=null,p=O,h=!1}}var A=!1,j=null,M=-1,x=5,k=-1;function B(){return!(e.unstable_now()-kz||125H?(z.sortIndex=O,t(u,z),n(l)===null&&z===n(u)&&(b?(g(M),M=-1):b=!0,L(E,O-H))):(z.sortIndex=Z,t(l,z),y||h||(y=!0,D(P))),z},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(z){var R=p;return function(){var O=p;p=R;try{return z.apply(this,arguments)}finally{p=O}}}})(np),tp.exports=np;var ky=tp.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 Ty=d,st=ky;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function We(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 Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new We(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new We(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new We(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){Ae[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new We(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ae[e]=new We(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ae[e]=new We(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ae[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var xl=/[\-:]([a-z])/g;function Sl(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(xl,Sl);Ae[t]=new We(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(xl,Sl);Ae[t]=new We(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(xl,Sl);Ae[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)}),Ae.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ae[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cl(e,t,n,r){var i=Ae.hasOwnProperty(t)?Ae[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{Ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Di(e):""}function _y(e){switch(e.tag){case 5:return Di(e.type);case 16:return Di("Lazy");case 13:return Di("Suspense");case 19:return Di("SuspenseList");case 0:case 2:case 15:return e=Al(e.type,!1),e;case 11:return e=Al(e.type.render,!1),e;case 1:return e=Al(e.type,!0),e;default:return""}}function _l(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 Lr:return"Fragment";case Mr:return"Portal";case $l:return"Profiler";case El:return"StrictMode";case kl:return"Suspense";case Tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ap:return(e.displayName||"Context")+".Consumer";case op:return(e._context.displayName||"Context")+".Provider";case Pl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Dl:return t=e.displayName||null,t!==null?t:_l(e.type)||"Memo";case bn:t=e._payload,e=e._init;try{return _l(e(t))}catch(n){}}return null}function Ny(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 _l(t);case 8:return t===El?"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 xn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iy(e){var t=cp(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 ro(e){e._valueTracker||(e._valueTracker=Iy(e))}function dp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function io(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 Nl(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function fp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xn(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 pp(e,t){t=t.checked,t!=null&&Cl(e,"checked",t,!1)}function Il(e,t){pp(e,t);var n=xn(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")?zl(e,t.type,n):t.hasOwnProperty("defaultValue")&&zl(e,t.type,xn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hp(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 zl(e,t,n){(t!=="number"||io(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mi=Array.isArray;function Ar(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=so.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Li(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ai={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},zy=["Webkit","ms","Moz","O"];Object.keys(Ai).forEach(function(e){zy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ai[t]=Ai[e]})});function bp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ai.hasOwnProperty(e)&&Ai[e]?(""+t).trim():t+"px"}function xp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jy=he({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 Bl(e,t){if(t){if(jy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Fl(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 Vl=null;function Ol(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,_r=null,Nr=null;function Sp(e){if(e=es(e)){if(typeof Kl!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Do(t),Kl(e.stateNode,e.type,t))}}function Cp(e){_r?Nr?Nr.push(e):Nr=[e]:_r=e}function Ep(){if(_r){var e=_r,t=Nr;if(Nr=_r=null,Sp(e),t)for(e=0;e>>=0,e===0?32:31-(Gy(e)/Yy|0)|0}var co=64,fo=4194304;function zi(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 po(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=zi(a):(s&=o,s!==0&&(r=zi(s)))}else o=n&~i,o!==0?r=zi(o):s!==0&&(r=zi(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 ji(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function Jy(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=Hi),Qp=" ",Jp=!1;function e0(e,t){switch(e){case"keyup":return k5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jr=!1;function D5(e,t){switch(e){case"compositionend":return t0(t);case"keypress":return t.which!==32?null:(Jp=!0,Qp);case"textInput":return e=t.data,e===Qp&&Jp?null:e;default:return null}}function M5(e,t){if(jr)return e==="compositionend"||!au&&e0(e,t)?(e=Wp(),yo=tu=Pn=null,jr=!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=l0(n)}}function c0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?c0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function d0(){for(var e=window,t=io();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=io(e.document)}return t}function cu(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 B5(e){var t=d0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&c0(n.ownerDocument.documentElement,n)){if(r!==null&&cu(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=u0(n,s);var o=u0(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,Rr=null,du=null,Yi=null,fu=!1;function f0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fu||Rr==null||Rr!==io(r)||(r=Rr,"selectionStart"in r&&cu(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}),Yi&&Gi(Yi,r)||(Yi=r,r=Po(du,"onSelect"),0Kr||(e.current=Eu[Kr],Eu[Kr]=null,Kr--)}function oe(e,t){Kr++,Eu[Kr]=e.current,e.current=t}var Mn={},je=Dn(Mn),Xe=Dn(!1),ir=Mn;function Ur(e,t){var n=e.type.contextTypes;if(!n)return Mn;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 Qe(e){return e=e.childContextTypes,e!=null}function Mo(){ue(Xe),ue(je)}function k0(e,t,n){if(je.current!==Mn)throw Error(F(168));oe(je,t),oe(Xe,n)}function T0(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(F(108,Ny(e)||"Unknown",i));return he({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,ir=je.current,oe(je,e),oe(Xe,Xe.current),!0}function D0(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=T0(e,t,ir),r.__reactInternalMemoizedMergedChildContext=e,ue(Xe),ue(je),oe(je,e)):ue(Xe),oe(Xe,n)}var qt=null,Ao=!1,$u=!1;function M0(e){qt===null?qt=[e]:qt.push(e)}function X5(e){Ao=!0,M0(e)}function Ln(){if(!$u&&qt!==null){$u=!0;var e=0,t=ne;try{var n=qt;for(ne=1;e>=o,i-=o,Xt=1<<32-Et(t)+i|n<M?(x=j,j=null):x=j.sibling;var k=p(g,j,v[M],E);if(k===null){j===null&&(j=x);break}e&&j&&k.alternate===null&&t(g,j),m=s(k,m,M),A===null?P=k:A.sibling=k,A=k,j=x}if(M===v.length)return n(g,j),fe&&or(g,M),P;if(j===null){for(;MM?(x=j,j=null):x=j.sibling;var B=p(g,j,k.value,E);if(B===null){j===null&&(j=x);break}e&&j&&B.alternate===null&&t(g,j),m=s(B,m,M),A===null?P=B:A.sibling=B,A=B,j=x}if(k.done)return n(g,j),fe&&or(g,M),P;if(j===null){for(;!k.done;M++,k=v.next())k=f(g,k.value,E),k!==null&&(m=s(k,m,M),A===null?P=k:A.sibling=k,A=k);return fe&&or(g,M),P}for(j=r(g,j);!k.done;M++,k=v.next())k=h(j,g,M,k.value,E),k!==null&&(e&&k.alternate!==null&&j.delete(k.key===null?M:k.key),m=s(k,m,M),A===null?P=k:A.sibling=k,A=k);return e&&j.forEach(function(w){return t(g,w)}),fe&&or(g,M),P}function C(g,m,v,E){if(typeof v=="object"&&v!==null&&v.type===Lr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case no:e:{for(var P=v.key,A=m;A!==null;){if(A.key===P){if(P=v.type,P===Lr){if(A.tag===7){n(g,A.sibling),m=i(A,v.props.children),m.return=g,g=m;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===bn&&z0(P)===A.type){n(g,A.sibling),m=i(A,v.props),m.ref=ts(g,A,v),m.return=g,g=m;break e}n(g,A);break}else t(g,A);A=A.sibling}v.type===Lr?(m=hr(v.props.children,g.mode,E,v.key),m.return=g,g=m):(E=oa(v.type,v.key,v.props,null,g.mode,E),E.ref=ts(g,m,v),E.return=g,g=E)}return o(g);case Mr:e:{for(A=v.key;m!==null;){if(m.key===A)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(g,m.sibling),m=i(m,v.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Sc(v,g.mode,E),m.return=g,g=m}return o(g);case bn:return A=v._init,C(g,m,A(v._payload),E)}if(Mi(v))return y(g,m,v,E);if(Ti(v))return b(g,m,v,E);zo(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,v),m.return=g,g=m):(n(g,m),m=xc(v,g.mode,E),m.return=g,g=m),o(g)):n(g,m)}return C}var Gr=j0(!0),R0=j0(!1),jo=Dn(null),Ro=null,Yr=null,Lu=null;function Au(){Lu=Yr=Ro=null}function _u(e){var t=jo.current;ue(jo),e._currentValue=t}function Nu(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 qr(e,t){Ro=e,Lu=Yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Je=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(Lu!==e)if(e={context:e,memoizedValue:t,next:null},Yr===null){if(Ro===null)throw Error(F(308));Yr=e,Ro.dependencies={lanes:0,firstContext:e}}else Yr=Yr.next=e;return t}var ar=null;function Iu(e){ar===null?ar=[e]:ar.push(e)}function B0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Iu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Jt(e,r)}function Jt(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 An=!1;function zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function F0(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 en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Jt(e,n)}return i=r.interleaved,i===null?(t.next=t,Iu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Jt(e,n)}function Bo(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,ql(e,n)}}function V0(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 Fo(e,t,n,r){var i=e.updateQueue;An=!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 y=e,b=a;switch(p=t,h=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){f=y.call(h,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,p=typeof y=="function"?y.call(h,f,p):y,p==null)break e;f=he({},f,p);break e;case 2:An=!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);cr|=o,e.lanes=o,e.memoizedState=f}}function O0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Vu.transition;Vu.transition={};try{e(!1),t()}finally{ne=n,Vu.transition=r}}function ah(){return mt().memoizedState}function t8(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lh(e))uh(t,n);else if(n=B0(e,t,n,r),n!==null){var i=Ge();Mt(n,e,r,i),ch(n,t,r)}}function n8(e,t,n){var r=jn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lh(e))uh(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,$t(a,o)){var l=t.interleaved;l===null?(i.next=i,Iu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(u){}finally{}n=B0(e,t,i,r),n!==null&&(i=Ge(),Mt(n,e,r,i),ch(n,t,r))}}function lh(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function uh(e,t){ss=Ko=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ch(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ql(e,n)}}var Wo={readContext:ht,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},r8={readContext:ht,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:J0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Uo(4194308,4,nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var n=Rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rt();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=t8.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:X0,useDebugValue:Gu,useDeferredValue:function(e){return Rt().memoizedState=e},useTransition:function(){var e=X0(!1),t=e[0];return e=e8.bind(null,e[1]),Rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=Rt();if(fe){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),De===null)throw Error(F(349));ur&30||W0(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,J0(G0.bind(null,r,s,e),[e]),r.flags|=2048,ls(9,Z0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Rt(),t=De.identifierPrefix;if(fe){var n=Qt,r=Xt;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=os++,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[zt]=t,e[Ji]=r,Mh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Fl(n,r),n){case"dialog":le("cancel",e),le("close",e),i=r;break;case"iframe":case"object":case"embed":le("load",e),i=r;break;case"video":case"audio":for(i=0;iti&&(t.flags|=128,r=!0,us(s,!1),t.lanes=4194304)}else{if(!r)if(e=Vo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),us(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!fe)return Be(t),null}else 2*be()-s.renderingStartTime>ti&&n!==1073741824&&(t.flags|=128,r=!0,us(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=me.current,oe(me,r?n&1|2:n&1),t):(Be(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ut&1073741824&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function d8(e,t){switch(ku(t),t.tag){case 1:return Qe(t.type)&&Mo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xr(),ue(Xe),ue(je),Fu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ru(t),null;case 13:if(ue(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(me),null;case 4:return Xr(),null;case 10:return _u(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var qo=!1,Fe=!1,f8=typeof WeakSet=="function"?WeakSet:Set,U=null;function Jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function oc(e,t,n){try{n()}catch(r){we(e,t,r)}}var _h=!1;function p8(e,t){if(yu=go,e=d0(),cu(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(E){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(wu={focusedElem:e,selectionRange:n},go=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,C=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:kt(t.type,b),C);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(E){we(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return y=_h,_h=!1,y}function cs(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&&oc(t,n,s)}i=i.next}while(i!==r)}}function Xo(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 ac(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 Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Ji],delete t[Cu],delete t[Y5],delete t[q5])),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 Ih(e){return e.tag===5||e.tag===3||e.tag===4}function zh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ih(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 lc(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=To));else if(r!==4&&(e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}function uc(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(uc(e,t,n),e=e.sibling;e!==null;)uc(e,t,n),e=e.sibling}var _e=null,Tt=!1;function Nn(e,t,n){for(n=n.child;n!==null;)jh(e,t,n),n=n.sibling}function jh(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(uo,n)}catch(a){}switch(n.tag){case 5:Fe||Jr(n,t);case 6:var r=_e,i=Tt;_e=null,Nn(e,t,n),_e=r,Tt=i,_e!==null&&(Tt?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(Tt?(e=_e,n=n.stateNode,e.nodeType===8?Su(e.parentNode,n):e.nodeType===1&&Su(e,n),Oi(e)):Su(_e,n.stateNode));break;case 4:r=_e,i=Tt,_e=n.stateNode.containerInfo,Tt=!0,Nn(e,t,n),_e=r,Tt=i;break;case 0:case 11:case 14:case 15:if(!Fe&&(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)&&oc(n,t,o),i=i.next}while(i!==r)}Nn(e,t,n);break;case 1:if(!Fe&&(Jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}Nn(e,t,n);break;case 21:Nn(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,Nn(e,t,n),Fe=r):Nn(e,t,n);break;default:Nn(e,t,n)}}function Rh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new f8),t.forEach(function(r){var i=S8.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Dt(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*m8(r/1960))-r,10e?16:e,zn===null)var r=!1;else{if(e=zn,zn=null,na=0,J&6)throw Error(F(331));var i=J;for(J|=4,U=e.current;U!==null;){var s=U,o=s.child;if(U.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lbe()-fc?fr(e,0):dc|=n),tt(e,t)}function Xh(e,t){t===0&&(e.mode&1?(t=fo,fo<<=1,!(fo&130023424)&&(fo=4194304)):t=1);var n=Ge();e=Jt(e,t),e!==null&&(ji(e,t,n),tt(e,n))}function x8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xh(e,n)}function S8(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(F(314))}r!==null&&r.delete(t),Xh(e,n)}var Qh;Qh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Je=!1,u8(e,t,n);Je=!!(e.flags&131072)}else Je=!1,fe&&t.flags&1048576&&L0(t,No,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yo(e,t),e=t.pendingProps;var i=Ur(t,je.current);qr(t,n),i=Ku(null,t,r,e,i,n);var s=Uu();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,Qe(r)?(s=!0,Lo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zu(t),i.updater=Zo,t.stateNode=i,i._reactInternals=t,qu(t,r,e,n),t=ec(null,t,r,!0,s,n)):(t.tag=0,fe&&s&&Pu(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=E8(r),e=kt(r,e),i){case 0:t=Ju(null,t,r,e,n);break e;case 1:t=Eh(null,t,r,e,n);break e;case 11:t=wh(null,t,r,e,n);break e;case 14:t=bh(null,t,r,kt(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Ju(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Eh(e,t,r,i,n);case 3:e:{if($h(t),e===null)throw Error(F(387));r=t.pendingProps,s=t.memoizedState,i=s.element,F0(e,t),Fo(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(F(423)),t),t=Ph(e,t,r,n,i);break e}else if(r!==i){i=Qr(Error(F(424)),t),t=Ph(e,t,r,n,i);break e}else for(lt=Tn(t.stateNode.containerInfo.firstChild),at=t,fe=!0,Pt=null,n=R0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zr(),r===i){t=tn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return K0(t),e===null&&Du(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,bu(r,i)?o=null:s!==null&&bu(r,s)&&(t.flags|=32),Ch(e,t),Ze(e,t,o,n),t.child;case 6:return e===null&&Du(t),null;case 13:return kh(e,t,n);case 4:return ju(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gr(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),wh(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(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,oe(jo,r._currentValue),r._currentValue=o,s!==null)if($t(s.value,o)){if(s.children===i.children&&!Xe.current){t=tn(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=en(-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),Nu(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(F(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Nu(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}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,qr(t,n),i=ht(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),bh(e,t,r,i,n);case 15:return xh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Yo(e,t),t.tag=1,Qe(r)?(e=!0,Lo(t)):e=!1,qr(t,n),fh(t,r,i),qu(t,r,i,n),ec(null,t,r,!0,e,n);case 19:return Dh(e,t,n);case 22:return Sh(e,t,n)}throw Error(F(156,t.tag))};function Jh(e,t){return Ap(e,t)}function C8(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new C8(e,t,n,r)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function E8(e){if(typeof e=="function")return bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pl)return 11;if(e===Dl)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oa(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")bc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Lr:return hr(n.children,i,s,t);case El:o=8,i|=8;break;case $l:return e=vt(12,n,t,i|2),e.elementType=$l,e.lanes=s,e;case kl:return e=vt(13,n,t,i),e.elementType=kl,e.lanes=s,e;case Tl:return e=vt(19,n,t,i),e.elementType=Tl,e.lanes=s,e;case lp:return aa(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case op:o=10;break e;case ap:o=9;break e;case Pl:o=11;break e;case Dl:o=14;break e;case bn:o=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=vt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function hr(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function aa(e,t,n,r){return e=vt(22,e,r,t),e.elementType=lp,e.lanes=n,e.stateNode={isHidden:!1},e}function xc(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function Sc(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $8(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=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cc(e,t,n,r,i,s,o,a,l){return e=new $8(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=vt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zu(s),e}function P8(e,t,n){var r=3e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function ha(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const kc=e=>Array.isArray(e);function l1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tc(e,t,n,r){if(typeof t=="function"){const[i,s]=u1(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]=u1(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function ma(e,t,n){const r=e.getProps();return Tc(r,t,n!==void 0?n:r.custom,e)}const Dc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mc=["initial",...Dc],vs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mr=new Set(vs),rn=e=>e*1e3,sn=e=>e/1e3,A8={type:"spring",stiffness:500,damping:25,restSpeed:10},_8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),N8={type:"keyframes",duration:.8},I8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},z8=(e,{keyframes:t})=>t.length>2?N8:mr.has(e)?e.startsWith("scale")?_8(t[1]):A8:I8;function Lc(e,t){return e?e[t]||e.default||e:void 0}const j8={skipAnimations:!1,useManualTiming:!1},R8=e=>e!==null;function ga(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(R8),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const Ie=e=>e;function B8(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&s.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,i&&(i=!1,l.process(u))}};return l}const va=["read","resolveKeyframes","update","preRender","render","postRender"],F8=40;function c1(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=va.reduce((g,m)=>(g[m]=B8(s),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:p}=o,h=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,F8),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},y=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:va.reduce((g,m)=>{const v=o[m];return g[m]=(E,P=!1,A=!1)=>(n||y(),v.schedule(E,P,A)),g},{}),cancel:g=>{for(let m=0;m(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,V8=1e-7,O8=12;function K8(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=d1(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>V8&&++aK8(s,0,1,e,n);return s=>s===0||s===1?s:d1(i(s),t,r)}const f1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,p1=e=>t=>1-e(1-t),h1=ys(.33,1.53,.69,.99),_c=p1(h1),m1=f1(_c),g1=e=>(e*=2)<1?.5*_c(e):.5*(2-Math.pow(2,-10*(e-1))),Nc=e=>1-Math.sin(Math.acos(e)),v1=p1(Nc),y1=f1(Nc),w1=e=>/^0[^.\s]+$/u.test(e);function U8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||w1(e):!0}let H8=Ie,Ic=Ie;const b1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),x1=e=>t=>typeof t=="string"&&t.startsWith(e),S1=x1("--"),W8=x1("var(--"),zc=e=>W8(e)?Z8.test(e.split("/*")[0].trim()):!1,Z8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,G8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Y8(e){const t=G8.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n!=null?n:r}`,i]}function C1(e,t,n=1){const[r,i]=Y8(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return b1(o)?parseFloat(o):o}return zc(i)?C1(i,t,n+1):i}const Fn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},ws=N(S({},ri),{transform:e=>Fn(0,1,e)}),ya=N(S({},ri),{default:1}),bs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vn=bs("deg"),Vt=bs("%"),W=bs("px"),q8=bs("vh"),X8=bs("vw"),E1=N(S({},Vt),{parse:e=>Vt.parse(e)/100,transform:e=>Vt.transform(e*100)}),Q8=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$1=e=>e===ri||e===W,P1=(e,t)=>parseFloat(e.split(", ")[t]),k1=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return P1(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?P1(s[1],e):0}},J8=new Set(["x","y","z"]),e6=vs.filter(e=>!J8.has(e));function t6(e){const t=[];return e6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ii={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:k1(4,13),y:k1(5,14)};ii.translateX=ii.x,ii.translateY=ii.y;const T1=e=>t=>t.test(e),D1=[ri,W,Vt,Vn,X8,q8,{test:e=>e==="auto",parse:e=>e}],M1=e=>D1.find(T1(e)),gr=new Set;let jc=!1,Rc=!1;function L1(){if(Rc){const e=Array.from(gr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=t6(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)})}Rc=!1,jc=!1,gr.forEach(e=>e.complete()),gr.clear()}function A1(){gr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Rc=!0)})}function n6(){A1(),L1()}class Bc{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?(gr.add(this),jc||(jc=!0,ee.read(A1),ee.resolveKeyframes(L1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;sMath.round(e*1e5)/1e5,Fc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function r6(e){return e==null}const i6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vc=(e,t)=>n=>!!(typeof n=="string"&&i6.test(n)&&n.startsWith(e)||t&&!r6(n)&&Object.prototype.hasOwnProperty.call(n,t)),_1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Fc);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},s6=e=>Fn(0,255,e),Oc=N(S({},ri),{transform:e=>Math.round(s6(e))}),vr={test:Vc("rgb","red"),parse:_1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Oc.transform(e)+", "+Oc.transform(t)+", "+Oc.transform(n)+", "+xs(ws.transform(r))+")"};function o6(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 Kc={test:Vc("#"),parse:o6,transform:vr.transform},si={test:Vc("hsl","hue"),parse:_1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vt.transform(xs(t))+", "+Vt.transform(xs(n))+", "+xs(ws.transform(r))+")"},Ve={test:e=>vr.test(e)||Kc.test(e)||si.test(e),parse:e=>vr.test(e)?vr.parse(e):si.test(e)?si.parse(e):Kc.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vr.transform(e):si.transform(e)},a6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function l6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Fc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(a6))===null||n===void 0?void 0:n.length)||0)>0}const N1="number",I1="color",u6="var",c6="var(",z1="${}",d6=/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 Ss(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(d6,l=>(Ve.test(l)?(r.color.push(s),i.push(I1),n.push(Ve.parse(l))):l.startsWith(c6)?(r.var.push(s),i.push(u6),n.push(l)):(r.number.push(s),i.push(N1),n.push(parseFloat(l))),++s,z1)).split(z1);return{values:n,split:a,indexes:r,types:i}}function j1(e){return Ss(e).values}function R1(e){const{split:t,types:n}=Ss(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function p6(e){const t=j1(e);return R1(e)(t.map(f6))}const On={test:l6,parse:j1,createTransformer:R1,getAnimatableNone:p6},h6=new Set(["brightness","contrast","saturate","opacity"]);function m6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fc)||[];if(!r)return e;const i=n.replace(r,"");let s=h6.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const g6=/\b([a-z-]*)\(.*?\)/gu,Uc=N(S({},On),{getAnimatableNone:e=>{const t=e.match(g6);return t?t.map(m6).join(" "):e}}),v6={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,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,backgroundPositionX:W,backgroundPositionY:W},y6={rotate:Vn,rotateX:Vn,rotateY:Vn,rotateZ:Vn,scale:ya,scaleX:ya,scaleY:ya,scaleZ:ya,skew:Vn,skewX:Vn,skewY:Vn,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ws,originX:E1,originY:E1,originZ:W},B1=N(S({},ri),{transform:Math.round}),Hc=N(S(S({},v6),y6),{zIndex:B1,size:W,fillOpacity:ws,strokeOpacity:ws,numOctaves:B1}),w6=N(S({},Hc),{color:Ve,backgroundColor:Ve,outlineColor:Ve,fill:Ve,stroke:Ve,borderColor:Ve,borderTopColor:Ve,borderRightColor:Ve,borderBottomColor:Ve,borderLeftColor:Ve,filter:Uc,WebkitFilter:Uc}),Wc=e=>w6[e];function F1(e,t){let n=Wc(e);return n!==Uc&&(n=On),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const b6=new Set(["auto","none","0"]);function x6(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Zc(e){return typeof e=="function"}let wa;function S6(){wa=void 0}const Ot={now:()=>(wa===void 0&&Ot.set(Me.isProcessing||j8.useManualTiming?Me.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(S6)}},O1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(On.test(e)||e==="0")&&!e.startsWith("url("));function C6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n$6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&n6(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ot.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!E6(t,r,i,s))if(o)this.options.duration=0;else{l==null||l(ga(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved=S({keyframes:t,finalKeyframe:n},c),this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Gc(e,t){return t?e*(1e3/t):0}const P6=5;function U1(e,t,n){const r=Math.max(t-P6,0);return Gc(n-e(r),t-r)}const Yc=.001,k6=.01,T6=10,D6=.05,M6=1;function L6({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Fn(D6,M6,o),e=Fn(k6,T6,sn(e)),o<1?(i=u=>{const c=u*o,f=c*e,p=c-n,h=qc(u,o),y=Math.exp(-f);return Yc-p/h*y},s=u=>{const f=u*o*e,p=f*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-f),b=qc(Math.pow(u,2),o);return(-i(u)+Yc>0?-1:1)*((p-h)*y)/b}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Yc+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=_6(i,s,a);if(e=rn(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 A6=12;function _6(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function z6(e){let t=S({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!H1(e,I6)&&H1(e,N6)){const n=L6(e);t=N(S(S({},t),n),{mass:1}),t.isResolvedFromDuration=!0}return t}function W1(i){var s=i,{keyframes:e,restDelta:t,restSpeed:n}=s,r=Y(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:y}=z6(N(S({},r),{velocity:-sn(r.velocity||0)})),b=h||0,C=c/(2*Math.sqrt(u*f)),g=a-o,m=sn(Math.sqrt(u/f)),v=Math.abs(g)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let E;if(C<1){const P=qc(m,C);E=A=>{const j=Math.exp(-C*m*A);return a-j*((b+C*m*g)/P*Math.sin(P*A)+g*Math.cos(P*A))}}else if(C===1)E=P=>a-Math.exp(-m*P)*(g+(b+m*g)*P);else{const P=m*Math.sqrt(C*C-1);E=A=>{const j=Math.exp(-C*m*A),M=Math.min(P*A,300);return a-j*((b+C*m*g)*Math.sinh(M)+P*g*Math.cosh(M))/P}}return{calculatedDuration:y&&p||null,next:P=>{const A=E(P);if(y)l.done=P>=p;else{let j=0;C<1&&(j=P===0?rn(b):U1(E,P,A));const M=Math.abs(j)<=n,x=Math.abs(a-A)<=t;l.done=M&&x}return l.value=l.done?a:A,l}}}function Z1({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,y=M=>a===void 0?l:l===void 0||Math.abs(a-M)-b*Math.exp(-M/r),v=M=>g+m(M),E=M=>{const x=m(M),k=v(M);p.done=Math.abs(x)<=u,p.value=p.done?g:k};let P,A;const j=M=>{h(p.value)&&(P=M,A=W1({keyframes:[p.value,y(p.value)],velocity:U1(v,M,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:M=>{let x=!1;return!A&&P===void 0&&(x=!0,E(M),j(M)),P!==void 0&&M>=P?A.next(M-P):(!x&&E(M),p)}}}const j6=ys(.42,0,1,1),R6=ys(0,0,.58,1),G1=ys(.42,0,.58,1),B6=e=>Array.isArray(e)&&typeof e[0]!="number",Xc=e=>Array.isArray(e)&&typeof e[0]=="number",Y1={linear:Ie,easeIn:j6,easeInOut:G1,easeOut:R6,circIn:Nc,circInOut:y1,circOut:v1,backIn:_c,backInOut:m1,backOut:h1,anticipate:g1},q1=e=>{if(Xc(e)){Ic(e.length===4);const[t,n,r,i]=e;return ys(t,n,r,i)}else if(typeof e=="string")return Ic(Y1[e]!==void 0),Y1[e];return e},F6=(e,t)=>n=>t(e(n)),on=(...e)=>e.reduce(F6),yr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ve=(e,t,n)=>e+(t-e)*n;function Qc(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 V6({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=Qc(l,a,e+1/3),s=Qc(l,a,e),o=Qc(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function ba(e,t){return n=>n>0?t:e}const Jc=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},O6=[Kc,vr,si],K6=e=>O6.find(t=>t.test(e));function X1(e){const t=K6(e);if(!t)return!1;let n=t.parse(e);return t===si&&(n=V6(n)),n}const Q1=(e,t)=>{const n=X1(e),r=X1(t);if(!n||!r)return ba(e,t);const i=S({},n);return s=>(i.red=Jc(n.red,r.red,s),i.green=Jc(n.green,r.green,s),i.blue=Jc(n.blue,r.blue,s),i.alpha=ve(n.alpha,r.alpha,s),vr.transform(i))},ed=new Set(["none","hidden"]);function U6(e,t){return ed.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function H6(e,t){return n=>ve(e,t,n)}function td(e){return typeof e=="number"?H6:typeof e=="string"?zc(e)?ba:Ve.test(e)?Q1:G6:Array.isArray(e)?J1:typeof e=="object"?Ve.test(e)?Q1:W6:ba}function J1(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>td(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function Z6(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=On.createTransformer(t),r=Ss(e),i=Ss(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?ed.has(e)&&!i.values.length||ed.has(t)&&!r.values.length?U6(e,t):on(J1(Z6(r,i),i.values),n):ba(e,t)};function em(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ve(e,t,n):td(e)(e,t)}function Y6(e,t,n){const r=[],i=n||em,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=Y6(t,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(Fn(e[0],e[s-1],u)):l}function q6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=yr(0,t,r);e.push(ve(n,1,i))}}function nm(e){const t=[0];return q6(t,e.length-1),t}function X6(e,t){return e.map(n=>n*t)}function Q6(e,t){return e.map(()=>t||G1).splice(0,e.length-1)}function xa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=B6(r)?r.map(q1):q1(r),s={done:!1,value:t[0]},o=X6(n&&n.length===t.length?n:nm(t),e),a=tm(o,t,{ease:Array.isArray(i)?i:Q6(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const rm=2e4;function J6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=rm?1/0:t}const e9=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ee.update(t,!0),stop:()=>Ft(t),now:()=>Me.isProcessing?Me.timestamp:Ot.now()}},t9={decay:Z1,inertia:Z1,tween:xa,keyframes:xa,spring:W1},n9=e=>e/100;class nd extends K1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Bc,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Zc(n)?n:t9[n]||xa;let l,u;a!==xa&&typeof t[0]!="number"&&(l=on(n9,em(t[0],t[1])),t=[0,100]);const c=a(N(S({},this.options),{keyframes:t}));s==="mirror"&&(u=a(N(S({},this.options),{keyframes:[...t].reverse(),velocity:-o}))),c.calculatedDuration===null&&(c.calculatedDuration=J6(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:y,repeatDelay:b,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 v=this.currentTime,E=s;if(h){const M=Math.min(this.currentTime,c)/f;let x=Math.floor(M),k=M%1;!k&&M>=1&&(k=1),k===1&&x--,x=Math.min(x,h+1),!!(x%2)&&(y==="reverse"?(k=1-k,b&&(k-=b/f)):y==="mirror"&&(E=o)),v=Fn(0,1,k)*f}const P=m?{done:!1,value:l[0]}:E.next(v);a&&(P.value=a(P.value));let{done:A}=P;!m&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return j&&i!==void 0&&(P.value=ga(l,this.options,i)),C&&C(P.value),j&&this.finish(),P}get duration(){const{resolved:t}=this;return t?sn(t.calculatedDuration):0}get time(){return sn(this.currentTime)}set time(t){t=rn(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=sn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=e9,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r!=null?r:this.calcStartTime(),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 r9=new Set(["opacity","clipPath","filter","transform"]),i9=10,s9=(e,t)=>{let n="";const r=Math.max(Math.round(t/i9),2);for(let i=0;i(t===void 0&&(t=e()),t)}const o9={linearEasing:void 0};function a9(e,t){const n=rd(e);return()=>{var r;return(r=o9[t])!==null&&r!==void 0?r:n()}}const Sa=a9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");function im(e){return!!(typeof e=="function"&&Sa()||!e||typeof e=="string"&&(e in id||Sa())||Xc(e)||Array.isArray(e)&&e.every(im))}const Cs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,id={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cs([0,.65,.55,1]),circOut:Cs([.55,0,1,.45]),backIn:Cs([.31,.01,.66,-.59]),backOut:Cs([.33,1.53,.69,.99])};function sm(e,t){if(e)return typeof e=="function"&&Sa()?s9(e,t):Xc(e)?Cs(e):Array.isArray(e)?e.map(n=>sm(n,t)||id.easeOut):id[e]}function l9(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=sm(a,i);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"})}function om(e,t){e.timeline=t,e.onfinish=null}const u9=rd(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ca=10,c9=2e4;function d9(e){return Zc(e.type)||e.type==="spring"||!im(e.ease)}function f9(e,t){const n=new nd(N(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(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof o=="string"&&Sa()&&p9(o)&&(o=am[o]),d9(this.options)){const p=this.options,{onComplete:h,onUpdate:y,motionValue:b,element:C}=p,g=Y(p,["onComplete","onUpdate","motionValue","element"]),m=f9(t,g);t=m.keyframes,t.length===1&&(t[1]=t[0]),i=m.duration,s=m.times,o=m.ease,a="keyframes"}const f=l9(l.owner.current,u,t,N(S({},this.options),{duration:i,times:s,ease:o}));return f.startTime=c!=null?c:this.calcStartTime(),this.pendingTimeline?(om(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;l.set(ga(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,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 sn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return sn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=rn(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}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;om(r,t)}return Ie}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;this.resolveFinishedPromise(),this.updateFinishedPromise();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")return;if(this.time){const u=this.options,{motionValue:c,onUpdate:f,onComplete:p,element:h}=u,y=Y(u,["motionValue","onUpdate","onComplete","element"]),b=new nd(N(S({},y),{keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0})),C=rn(this.time);c.setWithVelocity(b.sample(C-Ca).value,b.sample(C).value,Ca)}const{onStop:l}=this.options;l&&l(),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 u9()&&r&&r9.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const um=rd(()=>window.ScrollTimeline!==void 0);class h9{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;rum()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function m9(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=Y(p,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}const sd=(e,t,n,r={},i,s)=>o=>{const a=Lc(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-rn(l);let c=N(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});m9(a)||(c=S(S({},c),z8(e,c))),c.duration&&(c.duration=rn(c.duration)),c.repeatDelay&&(c.repeatDelay=rn(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=ga(c.keyframes,a);if(p!==void 0)return ee.update(()=>{c.onUpdate(p),c.onComplete()}),new h9([])}return!s&&lm.supports(c)?new lm(c):new nd(c)},g9=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),v9=e=>kc(e)?e[e.length-1]||0:e;function od(e,t){e.indexOf(t)===-1&&e.push(t)}function ad(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ld{constructor(){this.subscriptions=[]}add(t){return od(this.subscriptions,t),()=>ad(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 w9{constructor(t,n={}){this.version="11.11.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Ot.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=Ot.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=y9(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 ld);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.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=Ot.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cm)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cm);return Gc(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 an(e,t){return new w9(e,t)}function b9(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,an(n))}function x9(e,t){let o=ma(e,t)||{},{transitionEnd:r={},transition:i={}}=o,s=Y(o,["transitionEnd","transition"]);s=S(S({},s),r);for(const a in s){const l=v9(s[a]);b9(e,a,l)}}const ud=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dm="data-"+ud("framerAppearId");function fm(e){return e.props[dm]}const Oe=e=>!!(e&&e.getVelocity);function S9(e){return!!(Oe(e)&&e.add)}function cd(e,t){const n=e.getValue("willChange");if(S9(n))return n.add(t)}function C9({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function pm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let f=t,{transition:o=e.getDefaultTransition(),transitionEnd:a}=f,l=Y(f,["transition","transitionEnd"]);r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const h=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),y=l[p];if(y===void 0||c&&C9(c,p))continue;const b=S({delay:n},Lc(o||{},p));let C=!1;if(window.MotionHandoffAnimation){const m=fm(e);if(m){const v=window.MotionHandoffAnimation(m,p,ee);v!==null&&(b.startTime=v,C=!0)}}cd(e,p),h.start(sd(p,h,y,e.shouldReduceMotion&&mr.has(p)?{type:!1}:b,e,C));const g=h.animation;g&&u.push(g)}return a&&Promise.all(u).then(()=>{ee.update(()=>{a&&x9(e,a)})}),u}function dd(e,t,n={}){var r;const i=ma(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(pm(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=s;return E9(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 E9(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($9).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(dd(u,t,N(S({},s),{delay:n+l(c)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function $9(e,t){return e.sortNodePosition(t)}function P9(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>dd(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=dd(e,t,n);else{const i=typeof t=="function"?ma(e,t,n.custom):t;r=Promise.all(pm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const k9=Mc.length;function hm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?hm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>P9(e,n,r)))}function L9(e){let t=M9(e),n=mm(),r=!0;const i=l=>(u,c)=>{var f;const p=ma(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const h=p,{transition:y,transitionEnd:b}=h,C=Y(h,["transition","transitionEnd"]);u=S(S(S({},u),C),b)}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=hm(e.parent)||{},f=[],p=new Set;let h={},y=1/0;for(let C=0;Cy&&E,x=!1;const k=Array.isArray(v)?v:[v];let B=k.reduce(i(g),{});P===!1&&(B={});const{prevResolvedValues:w={}}=m,_=S(S({},w),B),T=L=>{M=!0,p.has(L)&&(x=!0,p.delete(L)),m.needsAnimating[L]=!0;const z=e.getValue(L);z&&(z.liveStyle=!1)};for(const L in _){const z=B[L],R=w[L];if(h.hasOwnProperty(L))continue;let O=!1;kc(z)&&kc(R)?O=!l1(z,R):O=z!==R,O?z!=null?T(L):p.add(L):z!==void 0&&p.has(L)?T(L):m.protectedKeys[L]=!0}m.prevProp=v,m.prevResolvedValues=B,m.isActive&&(h=S(S({},h),B)),r&&e.blockInitialAnimation&&(M=!1),M&&(!(A&&j)||x)&&f.push(...k.map(L=>({animation:L,options:{type:g}})))}if(p.size){const C={};p.forEach(g=>{const m=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),C[g]=m!=null?m:null}),f.push({animation:C})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?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,reset:()=>{n=mm(),r=!0}}}function A9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!l1(t,e):!1}function wr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mm(){return{animate:wr(!0),whileInView:wr(),whileHover:wr(),whileTap:wr(),whileDrag:wr(),whileFocus:wr(),exit:wr()}}class Kn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class _9 extends Kn{constructor(t){super(t),t.animationState||(t.animationState=L9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ha(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let N9=0;class I9 extends Kn{constructor(){super(...arguments),this.id=N9++}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 z9={animation:{Feature:_9},exit:{Feature:I9}},gm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ea(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const j9=e=>t=>gm(t)&&e(t,Ea(t));function ln(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function un(e,t,n,r){return ln(e,t,j9(n),r)}const vm=(e,t)=>Math.abs(e-t);function R9(e,t){const n=vm(e.x,t.x),r=vm(e.y,t.y);return Math.sqrt(Vf(n,2)+Vf(r,2))}class ym{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=pd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=R9(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:y}=f,{timestamp:b}=Me;this.history.push(N(S({},y),{timestamp:b}));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=fd(p,this.transformPagePoint),ee.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=pd(f.type==="pointercancel"?this.lastMoveEventInfo:fd(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,C),y&&y(f,C)},!gm(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Ea(t),a=fd(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=Me;this.history=[N(S({},l),{timestamp:u})];const{onSessionStart:c}=n;c&&c(t,pd(a,this.history)),this.removeListeners=on(un(this.contextWindow,"pointermove",this.handlePointerMove),un(this.contextWindow,"pointerup",this.handlePointerUp),un(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function fd(e,t){return t?{point:t(e.point)}:e}function wm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pd({point:e},t){return{point:e,delta:wm(e,bm(t)),offset:wm(e,B9(t)),velocity:F9(t,.1)}}function B9(e){return e[0]}function bm(e){return e[e.length-1]}function F9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=bm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>rn(t)));)n--;if(!r)return{x:0,y:0};const s=sn(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 xm(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Sm=xm("dragHorizontal"),Cm=xm("dragVertical");function Em(e){let t=!1;if(e==="y")t=Cm();else if(e==="x")t=Sm();else{const n=Sm(),r=Cm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function $m(){const e=Em(!0);return e?(e(),!1):!0}function oi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Pm=1e-4,V9=1-Pm,O9=1+Pm,km=.01,K9=0-km,U9=0+km;function ct(e){return e.max-e.min}function H9(e,t,n){return Math.abs(e-t)<=n}function Tm(e,t,n,r=.5){e.origin=r,e.originPoint=ve(t.min,t.max,e.origin),e.scale=ct(n)/ct(t),e.translate=ve(n.min,n.max,e.origin)-e.originPoint,(e.scale>=V9&&e.scale<=O9||isNaN(e.scale))&&(e.scale=1),(e.translate>=K9&&e.translate<=U9||isNaN(e.translate))&&(e.translate=0)}function Es(e,t,n,r){Tm(e.x,t.x,n.x,r?r.originX:void 0),Tm(e.y,t.y,n.y,r?r.originY:void 0)}function Dm(e,t,n){e.min=n.min+t.min,e.max=e.min+ct(t)}function W9(e,t,n){Dm(e.x,t.x,n.x),Dm(e.y,t.y,n.y)}function Mm(e,t,n){e.min=t.min-n.min,e.max=e.min+ct(t)}function $s(e,t,n){Mm(e.x,t.x,n.x),Mm(e.y,t.y,n.y)}function Z9(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ve(n,e,r.max):Math.min(e,n)),e}function Lm(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 G9(e,{top:t,left:n,bottom:r,right:i}){return{x:Lm(e.x,n,i),y:Lm(e.y,t,r)}}function Am(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=yr(t.min,t.max-r,e.min):r>i&&(n=yr(e.min,e.max-i,t.min)),Fn(0,1,n)}function X9(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 hd=.35;function Q9(e=hd){return e===!1?e=0:e===!0&&(e=hd),{x:_m(e,"left","right"),y:_m(e,"top","bottom")}}function _m(e,t,n){return{min:Nm(e,t),max:Nm(e,n)}}function Nm(e,t){return typeof e=="number"?e:e[t]||0}const Im=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:Im(),y:Im()}),zm=()=>({min:0,max:0}),xe=()=>({x:zm(),y:zm()});function yt(e){return[e("x"),e("y")]}function jm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function J9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function e7(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 md(e){return e===void 0||e===1}function gd({scale:e,scaleX:t,scaleY:n}){return!md(e)||!md(t)||!md(n)}function br(e){return gd(e)||Rm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rm(e){return Bm(e.x)||Bm(e.y)}function Bm(e){return e&&e!=="0%"}function $a(e,t,n){const r=e-n,i=t*r;return n+i}function Fm(e,t,n,r,i){return i!==void 0&&(e=$a(e,i,r)),$a(e,n,r)+t}function vd(e,t=0,n=1,r,i){e.min=Fm(e.min,t,n,r,i),e.max=Fm(e.max,t,n,r,i)}function Vm(e,{x:t,y:n}){vd(e.x,t.translate,t.scale,t.originPoint),vd(e.y,n.translate,n.scale,n.originPoint)}const Om=.999999999999,Km=1.0000000000001;function t7(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;aOm&&(t.x=1),t.yOm&&(t.y=1)}function li(e,t){e.min=e.min+t,e.max=e.max+t}function Um(e,t,n,r,i=.5){const s=ve(e.min,e.max,i);vd(e,t,n,s,r)}function ui(e,t){Um(e.x,t.x,t.scaleX,t.scale,t.originX),Um(e.y,t.y,t.scaleY,t.scale,t.originY)}function Hm(e,t){return jm(e7(e.getBoundingClientRect(),t))}function n7(e,t,n){const r=Hm(e,n),{scroll:i}=t;return i&&(li(r.x,i.offset.x),li(r.y,i.offset.y)),r}const Wm=({current:e})=>e?e.ownerDocument.defaultView:null,r7=new WeakMap;class i7{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(Ea(c,"page").point)},s=(c,f)=>{const{drag:p,dragPropagation:h,onDragStart:y}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Em(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),yt(C=>{let g=this.getAxisMotionValue(C).get()||0;if(Vt.test(g)){const{projection:m}=this.visualElement;if(m&&m.layout){const v=m.layout.layoutBox[C];v&&(g=ct(v)*(parseFloat(g)/100))}}this.originPoint[C]=g}),y&&ee.postRender(()=>y(c,f)),cd(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:y,onDrag:b}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:C}=f;if(h&&this.currentDirection===null){this.currentDirection=s7(C),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),b&&b(c,f)},a=(c,f)=>this.stop(c,f),l=()=>yt(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 ym(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Wm(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&&ee.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||!Pa(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Z9(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&&oi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=G9(i.layoutBox,n):this.constraints=!1,this.elastic=Q9(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&yt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=X9(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!oi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=n7(r,i.root,this.visualElement.getTransformPagePoint());let o=Y9(i.layout.layoutBox,s);if(n){const a=n(J9(o));this.hasMutatedConstraints=!!a,a&&(o=jm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=yt(c=>{if(!Pa(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,y=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,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return cd(this.visualElement,t),r.start(sd(t,r,0,n,this.visualElement,!1))}stopAnimation(){yt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yt(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){yt(n=>{const{drag:r}=this.getProps();if(!Pa(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]-ve(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!oi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=q9({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(),yt(o=>{if(!Pa(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ve(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;r7.set(this.visualElement,this);const t=this.visualElement.current,n=un(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();oi(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ee.read(r);const o=ln(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(yt(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=hd,dragMomentum:a=!0}=t;return N(S({},t),{drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a})}}function Pa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function s7(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class o7 extends Kn{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new i7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zm=e=>(t,n)=>{e&&ee.postRender(()=>e(t,n))};class a7 extends Kn{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new ym(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Zm(t),onStart:Zm(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&ee.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=un(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ka=d.createContext(null);function l7(){const e=d.useContext(ka);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=d.useId();d.useEffect(()=>r(i),[]);const s=d.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,s]:[!0]}const yd=d.createContext({}),Gm=d.createContext({}),Ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ym(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ps={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=Ym(e,t.target.x),r=Ym(e,t.target.y);return`${n}% ${r}%`}},u7={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=On.parse(e);if(i.length>5)return r;const s=On.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=ve(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}},Da={};function c7(e){Object.assign(Da,e)}const{schedule:wd,cancel:fP}=c1(queueMicrotask,!1);class d7 extends d.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;c7(f7),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(N(S({},s.options),{onExitComplete:()=>this.safeToRemove()}))),Ta.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()||ee.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),wd.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 qm(e){const[t,n]=l7(),r=d.useContext(yd);return $.jsx(d7,N(S({},e),{layoutGroup:r,switchLayoutGroup:d.useContext(Gm),isPresent:t,safeToRemove:n}))}const f7={borderRadius:N(S({},Ps),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:u7},Xm=["TopLeft","TopRight","BottomLeft","BottomRight"],p7=Xm.length,Qm=e=>typeof e=="string"?parseFloat(e):e,Jm=e=>typeof e=="number"||W.test(e);function h7(e,t,n,r,i,s){i?(e.opacity=ve(0,n.opacity!==void 0?n.opacity:1,m7(r)),e.opacityExit=ve(t.opacity!==void 0?t.opacity:1,0,g7(r))):s&&(e.opacity=ve(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(yr(e,t,r))}function n2(e,t){e.min=t.min,e.max=t.max}function wt(e,t){n2(e.x,t.x),n2(e.y,t.y)}function r2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function i2(e,t,n,r,i){return e-=t,e=$a(e,1/n,r),i!==void 0&&(e=$a(e,1/i,r)),e}function v7(e,t=0,n=1,r=.5,i,s=e,o=e){if(Vt.test(t)&&(t=parseFloat(t),t=ve(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ve(s.min,s.max,r);e===s&&(a-=t),e.min=i2(e.min,t,n,a,i),e.max=i2(e.max,t,n,a,i)}function s2(e,t,[n,r,i],s,o){v7(e,t[n],t[r],t[i],t.scale,s,o)}const y7=["x","scaleX","originX"],w7=["y","scaleY","originY"];function o2(e,t,n,r){s2(e.x,t,y7,n?n.x:void 0,r?r.x:void 0),s2(e.y,t,w7,n?n.y:void 0,r?r.y:void 0)}function a2(e){return e.translate===0&&e.scale===1}function l2(e){return a2(e.x)&&a2(e.y)}function u2(e,t){return e.min===t.min&&e.max===t.max}function b7(e,t){return u2(e.x,t.x)&&u2(e.y,t.y)}function c2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function d2(e,t){return c2(e.x,t.x)&&c2(e.y,t.y)}function f2(e){return ct(e.x)/ct(e.y)}function p2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class x7{constructor(){this.members=[]}add(t){od(this.members,t),t.scheduleRender()}remove(t){if(ad(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 S7(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:y}=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) `),y&&(r+=`skewY(${y}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 C7=(e,t)=>e.depth-t.depth;class E7{constructor(){this.children=[],this.isDirty=!1}add(t){od(this.children,t),this.isDirty=!0}remove(t){ad(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(C7),this.isDirty=!1,this.children.forEach(t)}}function Ma(e){const t=Oe(e)?e.get():e;return g9(t)?t.toValue():t}function $7(e,t){const n=Ot.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ft(r),e(s-t))};return ee.read(r,!0),()=>Ft(r)}function P7(e){return e instanceof SVGElement&&e.tagName!=="svg"}function k7(e,t,n){const r=Oe(e)?e:an(e);return r.start(sd("",r,t,n)),r.animation}const xr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ks=typeof window!="undefined"&&window.MotionDebug!==void 0,bd=["","X","Y","Z"],T7={visibility:"hidden"},h2=1e3;let D7=0;function xd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function m2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ee,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&m2(r)}function g2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=D7++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ks&&(xr.totalNodes=xr.resolvedTargetDeltas=xr.recalculatedProjection=0),this.nodes.forEach(A7),this.nodes.forEach(j7),this.nodes.forEach(R7),this.nodes.forEach(_7),ks&&window.MotionDebug.record(xr)},this.resolvedRelativeTargetAt=0,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=$7(p,250),Ta.hasAnimatedSinceResize&&(Ta.hasAnimatedSinceResize=!1,this.nodes.forEach(y2))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||K7,{onLayoutAnimationStart:C,onLayoutAnimationComplete:g}=c.getProps(),m=!this.targetLayout||!d2(this.targetLayout,y)||h,v=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||p&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const E=N(S({},Lc(b,"layout")),{onPlay:C,onComplete:g});(c.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||y2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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,Ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(B7),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&m2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 P=E/1e3;w2(f.x,o.x,P),w2(f.y,o.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($s(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),V7(this.relativeTarget,this.relativeTargetOrigin,p,P),v&&b7(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=xe()),wt(v,this.relativeTarget)),b&&(this.animationValues=c,h7(c,u,this.latestValues,P,m,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ee.update(()=>{Ta.hasAnimatedSinceResize=!0,this.currentAnimation=k7(0,h2,N(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(h2),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&&E2(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||xe();const f=ct(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const p=ct(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}wt(a,l),ui(a,c),Es(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new x7),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&&xd("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(v2),this.root.sharedNodes.clear()}}}function M7(e){e.updateLayout()}function L7(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"?yt(f=>{const p=o?n.measuredBox[f]:n.layoutBox[f],h=ct(p);p.min=r[f].min,p.max=p.min+h}):E2(s,n.layoutBox,r)&&yt(f=>{const p=o?n.measuredBox[f]:n.layoutBox[f],h=ct(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=ai();Es(a,r,n.layoutBox);const l=ai();o?Es(l,e.applyTransform(i,!0),n.measuredBox):Es(l,r,n.layoutBox);const u=!l2(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 y=xe();$s(y,n.layoutBox,p.layoutBox);const b=xe();$s(b,r,h.layoutBox),d2(y,b)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=y,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 A7(e){ks&&xr.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 _7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function N7(e){e.clearSnapshot()}function v2(e){e.clearMeasurements()}function I7(e){e.isLayoutDirty=!1}function z7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function y2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function j7(e){e.resolveTargetDelta()}function R7(e){e.calcProjection()}function B7(e){e.resetSkewAndRotation()}function F7(e){e.removeLeadSnapshot()}function w2(e,t,n){e.translate=ve(t.translate,0,n),e.scale=ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function b2(e,t,n,r){e.min=ve(t.min,n.min,r),e.max=ve(t.max,n.max,r)}function V7(e,t,n,r){b2(e.x,t.x,n.x,r),b2(e.y,t.y,n.y,r)}function O7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const K7={duration:.45,ease:[.4,0,.1,1]},x2=e=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),S2=x2("applewebkit/")&&!x2("chrome/")?Math.round:Ie;function C2(e){e.min=S2(e.min),e.max=S2(e.max)}function U7(e){C2(e.x),C2(e.y)}function E2(e,t,n){return e==="position"||e==="preserve-aspect"&&!H9(f2(t),f2(n),.2)}function H7(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const W7=g2({attachResizeListener:(e,t)=>ln(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Sd={current:void 0},$2=g2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sd.current){const e=new W7({});e.mount(window),e.setOptions({layoutScroll:!0}),Sd.current=e}return Sd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Z7={pan:{Feature:a7},drag:{Feature:o7,ProjectionNode:$2,MeasureLayout:qm}};function P2(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(s,o)=>{if(s.pointerType==="touch"||$m())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&ee.postRender(()=>l(s,o))};return un(e.current,n,i,{passive:!e.getProps()[r]})}class G7 extends Kn{mount(){this.unmount=on(P2(this.node,!0),P2(this.node,!1))}unmount(){}}class Y7 extends Kn{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=on(ln(this.node.current,"focus",()=>this.onFocus()),ln(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const k2=(e,t)=>t?e===t?!0:k2(e,t.parentElement):!1;function Cd(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ea(n))}class q7 extends Kn{constructor(){super(...arguments),this.removeStartListeners=Ie,this.removeEndListeners=Ie,this.removeAccessibleListeners=Ie,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=un(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),p=!f&&!k2(this.node.current,a.target)?c:u;p&&ee.update(()=>p(a,l))},{passive:!(r.onTap||r.onPointerUp)}),o=un(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=on(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()||Cd("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ee.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=ln(this.node.current,"keyup",o),Cd("down",(a,l)=>{this.startPress(a,l)})},n=ln(this.node.current,"keydown",t),r=()=>{this.isPressing&&Cd("cancel",(s,o)=>this.cancelPress(s,o))},i=ln(this.node.current,"blur",r);this.removeAccessibleListeners=on(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&&ee.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$m()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ee.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=un(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ln(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=on(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ed=new WeakMap,$d=new WeakMap,X7=e=>{const t=Ed.get(e.target);t&&t(e)},Q7=e=>{e.forEach(X7)};function J7(n){var r=n,{root:e}=r,t=Y(r,["root"]);const i=e||document;$d.has(i)||$d.set(i,{});const s=$d.get(i),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(Q7,S({root:e},t))),s[o]}function ew(e,t,n){const r=J7(t);return Ed.set(e,n),r.observe(e),()=>{Ed.delete(e),r.unobserve(e)}}const tw={some:0,all:1};class nw extends Kn{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:tw[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 ew(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(rw(t,n))&&this.startObserver()}unmount(){}}function rw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iw={inView:{Feature:nw},tap:{Feature:q7},focus:{Feature:Y7},hover:{Feature:G7}},sw={layout:{ProjectionNode:$2,MeasureLayout:qm}},Pd=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),La=d.createContext({}),kd=typeof window!="undefined",Td=kd?d.useLayoutEffect:d.useEffect,T2=d.createContext({strict:!1});function ow(e,t,n,r,i){var s,o;const{visualElement:a}=d.useContext(La),l=d.useContext(T2),u=d.useContext(ka),c=d.useContext(Pd).reducedMotion,f=d.useRef();r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const p=f.current,h=d.useContext(Gm);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&aw(f.current,n,i,h),d.useInsertionEffect(()=>{p&&p.update(n,u)});const y=n[dm],b=d.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return Td(()=>{p&&(window.MotionIsMounted=!0,p.updateFeatures(),wd.render(p.render),b.current&&p.animationState&&p.animationState.animateChanges())}),d.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)===null||C===void 0||C.call(window,y)}),b.current=!1))}),p}function aw(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:D2(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&oi(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function D2(e){if(e)return e.options.allowProjection!==!1?e.projection:D2(e.parent)}function lw(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):oi(n)&&(n.current=r))},[t])}function Aa(e){return ha(e.animate)||Mc.some(t=>gs(e[t]))}function M2(e){return!!(Aa(e)||e.variants)}function uw(e,t){if(Aa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||gs(n)?n:void 0,animate:gs(r)?r:void 0}}return e.inherit!==!1?t:{}}function cw(e){const{initial:t,animate:n}=uw(e,d.useContext(La));return d.useMemo(()=>({initial:t,animate:n}),[L2(t),L2(n)])}function L2(e){return Array.isArray(e)?e.join(" "):e}const A2={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"]},ci={};for(const e in A2)ci[e]={isEnabled:t=>A2[e].some(n=>!!t[n])};function dw(e){for(const t in e)ci[t]=S(S({},ci[t]),e[t])}const fw=Symbol.for("motionComponentSymbol");function pw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&dw(e);function s(a,l){let u;const c=N(S(S({},d.useContext(Pd)),a),{layoutId:hw(a)}),{isStatic:f}=c,p=cw(a),h=r(a,f);if(!f&&kd){mw();const y=gw(c);u=y.MeasureLayout,p.visualElement=ow(i,h,c,t,y.ProjectionNode)}return $.jsxs(La.Provider,{value:p,children:[u&&p.visualElement?$.jsx(u,S({visualElement:p.visualElement},c)):null,n(i,a,lw(h,p.visualElement,l),h,f,p.visualElement)]})}const o=d.forwardRef(s);return o[fw]=i,o}function hw({layoutId:e}){const t=d.useContext(yd).id;return t&&e!==void 0?t+"-"+e:e}function mw(e,t){d.useContext(T2).strict}function gw(e){const{drag:t,layout:n}=ci;if(!t&&!n)return{};const r=S(S({},t),n);return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const vw=["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 Dd(e){return typeof e!="string"||e.includes("-")?!1:!!(vw.indexOf(e)>-1||/[A-Z]/u.test(e))}function _2(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 N2=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 I2(e,t,n,r){_2(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(N2.has(i)?i:ud(i),t.attrs[i])}function z2(e,{layout:t,layoutId:n}){return mr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Da[e]||e==="opacity")}function Md(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(Oe(i[o])||t.style&&Oe(t.style[o])||z2(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 j2(e,t,n){const r=Md(e,t,n);for(const i in e)if(Oe(e[i])||Oe(t[i])){const s=vs.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function _a(e){const t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}function yw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:ww(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const R2=e=>(t,n)=>{const r=d.useContext(La),i=d.useContext(ka),s=()=>yw(e,t,r,i);return n?s():_a(s)};function ww(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=Ma(s[h]);let{initial:o,animate:a}=e;const l=Aa(e),u=M2(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;if(f&&typeof f!="boolean"&&!ha(f)){const h=Array.isArray(f)?f:[f];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),B2=()=>N(S({},Ld()),{attrs:{}}),F2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,bw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xw=vs.length;function Sw(e,t,n){let r="",i=!0;for(let s=0;stypeof e=="string"&&e.toLowerCase()==="svg",kw={useVisualState:R2({scrapeMotionValuesFromProps:j2,createRenderState:B2,onMount:(e,t,{renderState:n,latestValues:r})=>{ee.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}}),ee.render(()=>{_d(n,r,Nd(t.tagName),e.transformTemplate),I2(t,n)})}})},Tw={useVisualState:R2({scrapeMotionValuesFromProps:Md,createRenderState:Ld})};function O2(e,t,n){for(const r in t)!Oe(t[r])&&!z2(r,n)&&(e[r]=t[r])}function Dw({transformTemplate:e},t){return d.useMemo(()=>{const n=Ld();return Ad(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mw(e,t){const n=e.style||{},r={};return O2(r,n,e),Object.assign(r,Dw(e,t)),r}function Lw(e,t){const n={},r=Mw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Aw=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 Na(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Aw.has(e)}let K2=e=>!Na(e);function _w(e){e&&(K2=t=>t.startsWith("on")?!Na(t):e(t))}try{_w(require("@emotion/is-prop-valid").default)}catch(e){}function Nw(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(K2(i)||n===!0&&Na(i)||!t&&!Na(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Iw(e,t,n,r){const i=d.useMemo(()=>{const s=B2();return _d(s,t,Nd(r),e.transformTemplate),N(S({},s.attrs),{style:S({},s.style)})},[t]);if(e.style){const s={};O2(s,e.style,e),i.style=S(S({},s),i.style)}return i}function zw(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Dd(n)?Iw:Lw)(r,s,o,n),u=Nw(r,typeof n=="string",e),c=n!==d.Fragment?N(S(S({},u),l),{ref:i}):{},{children:f}=r,p=d.useMemo(()=>Oe(f)?f.get():f,[f]);return d.createElement(n,N(S({},c),{children:p}))}}function jw(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s=Dd(r)?kw:Tw,o=N(S({},s),{preloadedFeatures:e,useRender:zw(i),createVisualElement:t,Component:r});return pw(o)}}const Id={current:null},U2={current:!1};function Rw(){if(U2.current=!0,!!kd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Id.current=e.matches;e.addListener(t),t()}else Id.current=!1}function Bw(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Oe(i))e.addValue(r,i);else if(Oe(s))e.addValue(r,an(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,an(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const H2=new WeakMap,Fw=[...D1,Ve,On],Vw=e=>Fw.find(T1(e)),W2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ow{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Bc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Ot.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),U2.current||Rw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Id.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){H2.delete(this.current),this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=mr.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ee.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ci){const n=ci[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):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=an(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"&&(b1(i)||w1(i))?i=parseFloat(i):!Vw(i)&&On.test(n)&&(i=F1(t,n)),this.setBaseTarget(t,Oe(i)?i.get():i)),Oe(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=Tc(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&&!Oe(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 ld),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Z2 extends Ow{constructor(){super(...arguments),this.KeyframeResolver=V1}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 Kw(e){return window.getComputedStyle(e)}class Uw extends Z2{constructor(){super(...arguments),this.type="html",this.renderInstance=_2}readValueFromInstance(t,n){if(mr.has(n)){const r=Wc(n);return r&&r.default||0}else{const r=Kw(t),i=(S1(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hm(t,n)}build(t,n,r){Ad(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Md(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Oe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Hw extends Z2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mr.has(n)){const r=Wc(n);return r&&r.default||0}return n=N2.has(n)?n:ud(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return j2(t,n,r)}build(t,n,r){_d(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){I2(t,n,r,i)}mount(t){this.isSVGTag=Nd(t.tagName),super.mount(t)}}const Ww=(e,t)=>Dd(e)?new Hw(t):new Uw(t,{allowProjection:e!==d.Fragment}),Zw=jw(S(S(S(S({},z9),iw),Z7),sw),Ww),ie=L8(Zw);class Gw 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 Yw({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(Pd);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]),$.jsx(Gw,{isPresent:t,childRef:r,sizeRef:i,children:d.cloneElement(e,{ref:r})})}const qw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=_a(Xw),l=d.useId(),u=d.useCallback(f=>{a.set(f,!0);for(const p of a.values())if(!p)return;r&&r()},[a,r]),c=d.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(a.set(f,!1),()=>a.delete(f))}),s?[Math.random(),u]:[n,u]);return d.useMemo(()=>{a.forEach((f,p)=>a.set(p,!1))},[n]),d.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=$.jsx(Yw,{isPresent:n,children:e})),$.jsx(ka.Provider,{value:c,children:e})};function Xw(){return new Map}const Ia=e=>e.key||"";function G2(e){const t=[];return d.Children.forEach(e,n=>{d.isValidElement(n)&&t.push(n)}),t}const Un=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=d.useMemo(()=>G2(e),[e]),l=a.map(Ia),u=d.useRef(!0),c=d.useRef(a),f=_a(()=>new Map),[p,h]=d.useState(a),[y,b]=d.useState(a);Td(()=>{u.current=!1,c.current=a;for(let m=0;m{const v=Ia(m),E=a===y||l.includes(v),P=()=>{if(f.has(v))f.set(v,!0);else return;let A=!0;f.forEach(j=>{j||(A=!1)}),A&&(g==null||g(),b(c.current),i&&i())};return $.jsx(qw,{isPresent:E,initial:!u.current||r?void 0:!1,custom:E?void 0:n,presenceAffectsLayout:s,mode:o,onExitComplete:E?void 0:P,children:m},v)})})};function Qw(e,t,n){d.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function Jw(e,t,n){return typeof e=="string"?e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const za=new WeakMap;let Hn;function eb(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 tb({target:e,contentRect:t,borderBoxSize:n}){var r;(r=za.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return eb(e,n)}})})}function nb(e){e.forEach(tb)}function rb(){typeof ResizeObserver!="undefined"&&(Hn=new ResizeObserver(nb))}function ib(e,t){Hn||rb();const n=Jw(e);return n.forEach(r=>{let i=za.get(r);i||(i=new Set,za.set(r,i)),i.add(t),Hn==null||Hn.observe(r)}),()=>{n.forEach(r=>{const i=za.get(r);i==null||i.delete(t),i!=null&&i.size||Hn==null||Hn.unobserve(r)})}}const ja=new Set;let Ts;function sb(){Ts=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};ja.forEach(n=>n(t))},window.addEventListener("resize",Ts)}function ob(e){return ja.add(e),Ts||sb(),()=>{ja.delete(e),!ja.size&&Ts&&(Ts=void 0)}}function ab(e,t){return typeof e=="function"?ob(e):ib(e,t)}const lb=50,Y2=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ub=()=>({time:0,x:Y2(),y:Y2()}),cb={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function q2(e,t,n,r){const i=n[t],{length:s,position:o}=cb[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=yr(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>lb?0:Gc(i.current-a,u)}function db(e,t,n){q2(e,"x",t,n),q2(e,"y",t,n),t.time=n}function fb(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 pb={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},zd={start:0,center:.5,end:1};function X2(e,t,n=0){let r=0;if(e in zd&&(e=zd[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 hb=[0,0];function mb(e,t,n,r){let i=Array.isArray(e)?e:hb,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,zd[e]?e:"0"]),s=X2(i[0],n,r),o=X2(i[1],t),s-o}const gb={x:0,y:0};function vb(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function yb(e,t,n){const{offset:r=pb.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?fb(i,e):gb,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:vb(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;pwb(e,r.target,n),update:i=>{db(e,n,i),(r.offset||r.target)&&yb(e,n,r)},notify:()=>t(n)}}const Ds=new WeakMap,Q2=new WeakMap,jd=new WeakMap,J2=e=>e===document.documentElement?window:e;function Rd(e,r={}){var i=r,{container:t=document.documentElement}=i,n=Y(i,["container"]);let s=jd.get(t);s||(s=new Set,jd.set(t,s));const o=ub(),a=bb(t,e,o,n);if(s.add(a),!Ds.has(t)){const u=()=>{for(const y of s)y.measure()},c=()=>{for(const y of s)y.update(Me.timestamp)},f=()=>{for(const y of s)y.notify()},p=()=>{ee.read(u,!1,!0),ee.read(c,!1,!0),ee.update(f,!1,!0)};Ds.set(t,p);const h=J2(t);window.addEventListener("resize",p,{passive:!0}),t!==document.documentElement&&Q2.set(t,ab(t,p)),h.addEventListener("scroll",p,{passive:!0})}const l=Ds.get(t);return ee.read(l,!1,!0),()=>{var u;Ft(l);const c=jd.get(t);if(!c||(c.delete(a),c.size))return;const f=Ds.get(t);Ds.delete(t),f&&(J2(t).removeEventListener("scroll",f),(u=Q2.get(t))===null||u===void 0||u(),window.removeEventListener("resize",f))}}function eg(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return ee.update(r,!0),()=>Ft(r)}function xb({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},i=Rd(s=>{r.value=s[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:i}}const Bd=new Map;function tg({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Bd.has(t)||Bd.set(t,{});const r=Bd.get(t);return r[n]||(r[n]=um()?new ScrollTimeline({source:t,axis:n}):xb({source:t,axis:n})),r[n]}function Sb(e){return e.length===2}function ng(e){return e&&(e.target||e.offset)}function Cb(e,t){return Sb(e)||ng(t)?Rd(n=>{e(n[t.axis].progress,n)},t):eg(e,tg(t))}function Eb(e,t){if(ng(t))return e.pause(),Rd(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=tg(t);return e.attachTimeline(n,r=>(r.pause(),eg(i=>{r.time=r.duration*i},n)))}}function $b(e,r={}){var i=r,{axis:t="y"}=i,n=Y(i,["axis"]);const s=S({axis:t},n);return typeof e=="function"?Cb(e,s):Eb(e,s)}function rg(e,t){H8(!!(!t||t.current))}const Pb=()=>({scrollX:an(0),scrollY:an(0),scrollXProgress:an(0),scrollYProgress:an(0)});function kb(i={}){var s=i,{container:e,target:t,layoutEffect:n=!0}=s,r=Y(s,["container","target","layoutEffect"]);const o=_a(Pb);return(n?Td:d.useEffect)(()=>(rg("target",t),rg("container",e),$b((l,{x:u,y:c})=>{o.scrollX.set(u.current),o.scrollXProgress.set(u.progress),o.scrollY.set(c.current),o.scrollYProgress.set(c.progress)},N(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 ig=d.createContext(null);d.createContext(null),d.createContext(null),d.createContext(null),d.createContext(null);const sg=d.createContext({});class Fd{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new Fd(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.render=this.render,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 Tb{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 og{*[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||!this.ownerDocument.isMounted)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 Ms extends og{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ms?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 Ms?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,i){let s=this.ownerDocument.getMutableNode(this),c=t,{value:o,textValue:a,id:l}=c,u=Y(c,["value","textValue","id"]);if(u.ref=n,s.props=u,s.rendered=r,s.render=i,s.value=o,s.textValue=a||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",l!=null&&l!==s.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");s.key=l}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 Fd(t,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class Db extends og{get isConnected(){return this.isMounted}createElement(t){return new Ms(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 Ms&&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.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=t,this.collectionMutated=!0}}function ag(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])}const Ra={prefix:String(Math.round(Math.random()*1e10)),current:0},lg=I.createContext(Ra),Mb=I.createContext(!1);let Lb=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Vd=new WeakMap;function Ab(e=!1){let t=d.useContext(lg),n=d.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=I.__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=Vd.get(s);o==null?Vd.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Vd.delete(s))}n.current=++t.current}return n.current}function _b(e){let t=d.useContext(lg);t===Ra&&!Lb&&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=Ab(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Nb(e){let t=I.useId(),[n]=d.useState(cn()),r=n?"react-aria":`react-aria${Ra.prefix}`;return e||`${r}-${t}`}const Ib=typeof I.useId=="function"?Nb:_b;function zb(){return!1}function jb(){return!0}function Rb(e){return()=>{}}function cn(){return typeof I.useSyncExternalStore=="function"?I.useSyncExternalStore(Rb,zb,jb):d.useContext(Mb)}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 Od=d.createContext(!1),Bb=typeof DocumentFragment!="undefined"?new DocumentFragment:null;function Fb(e){let t=d.useContext(Od),n=cn();if(t)return I.createElement(I.Fragment,null,e.children);let r=I.createElement(Od.Provider,{value:!0},e.children);return n?I.createElement("template",{"data-react-aria-hidden":!0},r):ms.createPortal(r,Bb)}function Vb(e){let t=(n,r)=>d.useContext(Od)?null:e(n,r);return t.displayName=e.displayName||e.name,d.forwardRef(t)}const pe=typeof document!="undefined"?I.useLayoutEffect:()=>{};function Ye(e){const t=d.useRef(null);return pe(()=>{t.current=e},[e]),d.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Ob(e){let[t,n]=d.useState(e),r=d.useRef(null),i=Ye(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});pe(()=>{r.current&&i()});let s=Ye(o=>{r.current=o(t),i()});return[t,s]}let Kb=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Wn=new Map;function Lt(e){let[t,n]=d.useState(e),r=d.useRef(null),i=Ib(t),s=d.useCallback(o=>{r.current=o},[]);return Kb&&(Wn.has(i)&&!Wn.get(i).includes(s)?Wn.set(i,[...Wn.get(i),s]):Wn.set(i,[s])),pe(()=>{let o=i;return()=>{Wn.delete(o)}},[i]),d.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function Ub(e,t){if(e===t)return e;let n=Wn.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Wn.get(t);return r?(r.forEach(i=>i(e)),e):t}function Ba(e=[]){let t=Lt(),[n,r]=Ob(t),i=d.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return pe(i,[t,i,...e]),n}function di(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ce=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},At=e=>e&&"window"in e&&e.window===e?e:ce(e).defaultView||window;function ug(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]=di(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?t[i]=Hb(s,o):i==="id"&&s&&o?t.id=Ub(s,o):t[i]=o!==void 0?o:s}}return t}function Kd(...e){return e.length===1&&e[0]?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const Wb=new Set(["id"]),Zb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Gb=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Yb=/^(data-.*)$/;function qe(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Wb.has(o)||n&&Zb.has(o)||r&&Gb.has(o)||i!=null&&i.has(o)||Yb.test(o))&&(s[o]=e[o]);return s}function dn(e){if(qb())e.focus({preventScroll:!0});else{let t=Xb(e);e.focus(),Qb(t)}}let Fa=null;function qb(){if(Fa==null){Fa=!1;try{document.createElement("div").focus({get preventScroll(){return Fa=!0,!0}})}catch(e){}}return Fa}function Xb(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 Ud(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 fn(e){let t=null;return()=>(t==null&&(t=e()),t)}const Sr=fn(function(){return Ud(/^Mac/i)}),Jb=fn(function(){return Ud(/^iPhone/i)}),cg=fn(function(){return Ud(/^iPad/i)||Sr()&&navigator.maxTouchPoints>1}),Oa=fn(function(){return Jb()||cg()}),ex=fn(function(){return Sr()||Oa()}),tx=fn(function(){return Va(/AppleWebKit/i)&&!nx()}),nx=fn(function(){return Va(/Chrome/i)}),dg=fn(function(){return Va(/Android/i)}),rx=fn(function(){return Va(/Firefox/i)}),ix=d.createContext({isNative:!0,open:ox,useHref:e=>e});function Hd(){return d.useContext(ix)}function Cr(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=t;rx()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Sr()?s=!0:o=!0);let u=tx()&&Sr()&&!cg()?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});Cr.isOpening=n,dn(e),e.dispatchEvent(u),Cr.isOpening=!1}Cr.isOpening=!1;function sx(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 ox(e,t){sx(e,n=>Cr(n,t))}function fg(e){let t=Hd();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}let fi=new Map,Wd=new Set;function pg(){if(typeof window=="undefined")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=fi.get(r.target);i||(i=new Set,fi.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=fi.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),fi.delete(r.target)),fi.size===0)){for(let s of Wd)s();Wd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document!="undefined"&&(document.readyState!=="loading"?pg():document.addEventListener("DOMContentLoaded",pg));function hg(e){requestAnimationFrame(()=>{fi.size===0?e():Wd.add(e)})}function mg(){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 gg(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Lt(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 Zn(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 ax(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 Zd(e,t){pe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ls(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 Gn(e,t){let n=e;for(Ls(n,t)&&(n=n.parentElement);n&&!Ls(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function lx(e,t){const n=[];for(;e&&e!==document.documentElement;)Ls(e,t)&&n.push(e),e=e.parentElement;return n}let bt=typeof document!="undefined"&&window.visualViewport;function ux(){let e=cn(),[t,n]=d.useState(()=>e?{width:0,height:0}:vg());return d.useEffect(()=>{let r=()=>{n(i=>{let s=vg();return s.width===i.width&&s.height===i.height?i:s})};return bt?bt.addEventListener("resize",r):window.addEventListener("resize",r),()=>{bt?bt.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function vg(){return{width:bt&&(bt==null?void 0:bt.width)||window.innerWidth,height:bt&&(bt==null?void 0:bt.height)||window.innerHeight}}let cx=0;const Gd=new Map;function Yd(e){let[t,n]=d.useState();return pe(()=>{if(!e)return;let r=Gd.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${cx++}`;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},Gd.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Gd.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function yg(e,t,n,r){let i=Ye(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 wg(e,t){let n=bg(e,t,"left"),r=bg(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 bg(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 Yn(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=lx(e);for(let u of l)wg(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 qd(e){return e.mozInputSource===0&&e.isTrusted?!0:dg()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dx(e){return!dg()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function fx(e,t,n){let r=d.useRef(t),i=Ye(()=>{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 Xd(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,...y)=>{let b=u(o?a:h,...y);return f(b,...c),o?h:b})):(o||i(u),f(u,...c))},[o,a,n]);return[a,l]}var xg={exports:{}},Sg={};/** * @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 pi=d;function px(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hx=typeof Object.is=="function"?Object.is:px,mx=pi.useState,gx=pi.useEffect,vx=pi.useLayoutEffect,yx=pi.useDebugValue;function wx(e,t){var n=t(),r=mx({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return vx(function(){i.value=n,i.getSnapshot=t,Qd(i)&&s({inst:i})},[e,n,t]),gx(function(){return Qd(i)&&s({inst:i}),e(function(){Qd(i)&&s({inst:i})})},[e]),yx(n),n}function Qd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hx(e,n)}catch(r){return!0}}function bx(e,t){return t()}var xx=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?bx:wx;Sg.useSyncExternalStore=pi.useSyncExternalStore!==void 0?pi.useSyncExternalStore:xx,xg.exports=Sg;var Sx=xg.exports;const Cg=d.createContext(!1),As=d.createContext(null);function Eg(e){if(d.useContext(As))return e.content;let{collection:n,document:r}=Px(e.createCollection);return I.createElement(I.Fragment,null,I.createElement(Fb,null,I.createElement(As.Provider,{value:r},e.content)),I.createElement(Cx,{render:e.children,collection:n}))}function Cx({collection:e,render:t}){return t(e)}function Ex(e,t,n){let r=cn(),i=d.useRef(r);i.current=r;let s=d.useCallback(()=>i.current?n():t(),[t,n]);return Sx.useSyncExternalStore(e,s)}const $x=typeof I.useSyncExternalStore=="function"?I.useSyncExternalStore:Ex;function Px(e){let[t]=d.useState(()=>new Db((e==null?void 0:e())||new Tb)),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]),s=$x(n,r,i);return pe(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:s,document:t}}const Jd=d.createContext(null);function kx(e,t,n,r,i,s){let o=d.useCallback(l=>{l==null||l.setProps(t,n,r,s)},[t,n,r,s]),a=d.useContext(Jd);if(a){let l=a.ownerDocument.nodesByProps.get(t);return l||(l=a.ownerDocument.createElement(e),l.setProps(t,n,r,s),a.appendChild(l),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,l)),i?I.createElement(Jd.Provider,{value:l},i):null}return I.createElement(e,{ref:o},i)}function $g(e,t){let n=({node:i})=>t(i.props,i.props.ref,i),r=d.forwardRef((i,s)=>{if(!d.useContext(Cg)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,s)}return kx(e,i,s,"children"in i?i.children:null,null,a=>I.createElement(n,{node:a}))});return r.displayName=t.name,r}function Tx(e){return ag(N(S({},e),{addIdAndValue:!0}))}const Pg=d.createContext(null);function kg(e){let t=d.useContext(Pg),n=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(t==null?void 0:t.idScope),i=Tx(N(S({},e),{idScope:r,dependencies:n}));return d.useContext(As)&&(i=I.createElement(Dx,null,i)),t=d.useMemo(()=>({dependencies:n,idScope:r}),[r,...n]),I.createElement(Pg.Provider,{value:t},i)}function Dx({children:e}){let t=d.useContext(As),n=d.useMemo(()=>I.createElement(As.Provider,{value:null},I.createElement(Cg.Provider,{value:!0},e)),[e]);return cn()?I.createElement(Jd.Provider,{value:t},n):ms.createPortal(n,t)}const ef={CollectionRoot({collection:e,renderDropIndicator:t}){return Tg(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Tg(e,t,n)}};function Tg(e,t,n){return ag({items:t?e.getChildren(t.key):e,dependencies:[n],children(r){var i;let s=r.render(r);if(!n||r.type!=="item")return s;let o=r.key,a=e.getKeyAfter(o);return I.createElement(I.Fragment,null,n({type:"item",key:o,dropPosition:"before"}),s,(a==null||((i=e.getItem(a))===null||i===void 0?void 0:i.type)!=="item")&&n({type:"item",key:o,dropPosition:"after"}))}})}const _s=d.createContext(ef);function Mx(e){return d.useMemo(()=>e!=null?new Set([e]):null,[e])}const Ns=Symbol("default");function Er({values:e,children:t}){for(let[n,r]of e)t=I.createElement(n.Provider,{value:r},t);return t}function pn(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(N(S({},a),{defaultClassName:i})):l=t,typeof n=="function"?u=n(N(S({},a),{defaultStyle:o||{}})):u=n,typeof r=="function"?c=r(N(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 Lx(e,t){return n=>t(typeof e=="function"?e(n):e,n)}function Dg(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[Ns])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=t||Ns;if(!n.slots[i])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[i]}return n}function qn(e,t,n){let l=Dg(n,e.slot)||{},{ref:i}=l,s=Y(l,["ref"]),o=Zn(d.useMemo(()=>Kd(t,i),[t,i])),a=te(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(N(S({},u),{defaultStyle:f})):e.style;return S(S({},f),p)}:a.style=S(S({},s.style),e.style)),[a,o]}function Ax(){let[e,t]=d.useState(!0),n=d.useRef(!1),r=d.useCallback(i=>{n.current=!0,t(!!i)},[]);return pe(()=>{n.current||t(!1)},[]),[r,e]}function Mg(e,t=!0){let[n,r]=d.useState(!0);return Ag(e,n&&t,d.useCallback(()=>r(!1),[])),n&&t}function Lg(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"),Ag(e,n,d.useCallback(()=>{s("exited"),r(!1)},[])),n}function Ag(e,t,n){let r=d.useRef(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),pe(()=>{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),o1.flushSync(()=>{n()}))},o=e.current;return o.addEventListener("animationend",s),()=>{o.removeEventListener("animationend",s)}}else n()}},[e,t,n])}function _g(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}let hi="default",tf="",Ka=new WeakMap;function Ng(e){if(Oa()){if(hi==="default"){const t=ce(e);tf=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}hi="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ka.set(e,e.style.userSelect),e.style.userSelect="none")}function Ua(e){if(Oa()){if(hi!=="disabled")return;hi="restoring",setTimeout(()=>{hg(()=>{if(hi==="restoring"){const t=ce(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=tf||""),tf="",hi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ka.has(e)){let t=Ka.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ka.delete(e)}}const Is=I.createContext({register:()=>{}});Is.displayName="PressResponderContext";function _x(e,t){return t.get?t.get.call(e):t.value}function Ig(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Nx(e,t){var n=Ig(e,t,"get");return _x(e,n)}function Ix(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zx(e,t,n){Ix(e,t),t.set(e,n)}function jx(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 zg(e,t,n){var r=Ig(e,t,"set");return jx(e,r,n),n}function Rx(e){let t=d.useContext(Is);if(t){let n=t,{register:r}=n,i=Y(n,["register"]);e=te(i,e),r()}return Zd(t,e.ref),e}var Ha=new WeakMap;class Wa{continuePropagation(){zg(this,Ha,!1)}get shouldStopPropagation(){return Nx(this,Ha)}constructor(t,n,r,i){zx(this,Ha,{writable:!0,value:void 0}),zg(this,Ha,!0);var s;let o=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,u=0,c,f=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,f=r.clientY),a&&(c!=null&&f!=null?(l=c-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const jg=Symbol("linkClicked");function zs(e){let M=Rx(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=Y(M,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),[h,y]=d.useState(!1),b=d.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:g}=mg(),m=Ye((x,k)=>{let B=b.current;if(o||B.didFirePressStart)return!1;let w=!0;if(B.isTriggeringEvent=!0,r){let _=new Wa("pressstart",k,x);r(_),w=_.shouldStopPropagation}return n&&n(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,y(!0),w}),v=Ye((x,k,B=!0)=>{let w=b.current;if(!w.didFirePressStart)return!1;w.ignoreClickAfterPress=!0,w.didFirePressStart=!1,w.isTriggeringEvent=!0;let _=!0;if(i){let T=new Wa("pressend",k,x);i(T),_=T.shouldStopPropagation}if(n&&n(!1),y(!1),t&&B&&!o){let T=new Wa("press",k,x);t(T),_&&(_=T.shouldStopPropagation)}return w.isTriggeringEvent=!1,_}),E=Ye((x,k)=>{let B=b.current;if(o)return!1;if(s){B.isTriggeringEvent=!0;let w=new Wa("pressup",k,x);return s(w),B.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),P=Ye(x=>{let k=b.current;k.isPressed&&k.target&&(k.isOverTarget&&k.pointerType!=null&&v(hn(k.target,x),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,g(),c||Ua(k.target))}),A=Ye(x=>{u&&P(x)}),j=d.useMemo(()=>{let x=b.current,k={onKeyDown(w){if(rf(w.nativeEvent,w.currentTarget)&&w.currentTarget.contains(w.target)){var _;Fg(w.target,w.key)&&w.preventDefault();let T=!0;if(!x.isPressed&&!w.repeat){x.target=w.currentTarget,x.isPressed=!0,T=m(w,"keyboard");let V=w.currentTarget,D=L=>{rf(L,V)&&!L.repeat&&V.contains(L.target)&&x.target&&E(hn(x.target,L),"keyboard")};C(ce(w.currentTarget),"keyup",di(D,B),!0)}T&&w.stopPropagation(),w.metaKey&&Sr()&&((_=x.metaKeyEvents)===null||_===void 0||_.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(w){if(!(w&&!w.currentTarget.contains(w.target))&&w&&w.button===0&&!x.isTriggeringEvent&&!Cr.isOpening){let _=!0;if(o&&w.preventDefault(),!x.ignoreClickAfterPress&&!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||qd(w.nativeEvent))){!o&&!l&&dn(w.currentTarget);let T=m(w,"virtual"),V=E(w,"virtual"),D=v(w,"virtual");_=T&&V&&D}x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1,_&&w.stopPropagation()}}},B=w=>{var _;if(x.isPressed&&x.target&&rf(w,x.target)){var T;Fg(w.target,w.key)&&w.preventDefault();let D=w.target;v(hn(x.target,w),"keyboard",x.target.contains(D)),g(),w.key!=="Enter"&&nf(x.target)&&x.target.contains(D)&&!w[jg]&&(w[jg]=!0,Cr(x.target,w,!1)),x.isPressed=!1,(T=x.metaKeyEvents)===null||T===void 0||T.delete(w.key)}else if(w.key==="Meta"&&(!((_=x.metaKeyEvents)===null||_===void 0)&&_.size)){var V;let D=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let L of D.values())(V=x.target)===null||V===void 0||V.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent!="undefined"){k.onPointerDown=D=>{if(D.button!==0||!D.currentTarget.contains(D.target))return;if(dx(D.nativeEvent)){x.pointerType="virtual";return}sf(D.currentTarget)&&D.preventDefault(),x.pointerType=D.pointerType;let L=!0;x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=D.pointerId,x.target=D.currentTarget,!o&&!l&&dn(D.currentTarget),c||Ng(x.target),L=m(D,x.pointerType),C(ce(D.currentTarget),"pointermove",w,!1),C(ce(D.currentTarget),"pointerup",_,!1),C(ce(D.currentTarget),"pointercancel",V,!1)),L&&D.stopPropagation()},k.onMouseDown=D=>{D.currentTarget.contains(D.target)&&D.button===0&&(sf(D.currentTarget)&&D.preventDefault(),D.stopPropagation())},k.onPointerUp=D=>{!D.currentTarget.contains(D.target)||x.pointerType==="virtual"||D.button===0&&mi(D,D.currentTarget)&&E(D,x.pointerType||D.pointerType)};let w=D=>{D.pointerId===x.activePointerId&&(x.target&&mi(D,x.target)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,m(hn(x.target,D),x.pointerType)):x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,v(hn(x.target,D),x.pointerType,!1),A(D)))},_=D=>{D.pointerId===x.activePointerId&&x.isPressed&&D.button===0&&x.target&&(mi(D,x.target)&&x.pointerType!=null?v(hn(x.target,D),x.pointerType):x.isOverTarget&&x.pointerType!=null&&v(hn(x.target,D),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,g(),c||Ua(x.target),"ontouchend"in x.target&&D.pointerType!=="mouse"&&C(x.target,"touchend",T,{once:!0}))},T=D=>{Bg(D.currentTarget)&&D.preventDefault()},V=D=>{P(D)};k.onDragStart=D=>{D.currentTarget.contains(D.target)&&P(D)}}else{k.onMouseDown=T=>{if(T.button!==0||!T.currentTarget.contains(T.target))return;if(sf(T.currentTarget)&&T.preventDefault(),x.ignoreEmulatedMouseEvents){T.stopPropagation();return}x.isPressed=!0,x.isOverTarget=!0,x.target=T.currentTarget,x.pointerType=qd(T.nativeEvent)?"virtual":"mouse",!o&&!l&&dn(T.currentTarget),m(T,x.pointerType)&&T.stopPropagation(),C(ce(T.currentTarget),"mouseup",w,!1)},k.onMouseEnter=T=>{if(!T.currentTarget.contains(T.target))return;let V=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,V=m(T,x.pointerType)),V&&T.stopPropagation()},k.onMouseLeave=T=>{if(!T.currentTarget.contains(T.target))return;let V=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,V=v(T,x.pointerType,!1),A(T)),V&&T.stopPropagation()},k.onMouseUp=T=>{T.currentTarget.contains(T.target)&&!x.ignoreEmulatedMouseEvents&&T.button===0&&E(T,x.pointerType||"mouse")};let w=T=>{if(T.button===0){if(x.isPressed=!1,g(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&mi(T,x.target)&&x.pointerType!=null?v(hn(x.target,T),x.pointerType):x.target&&x.isOverTarget&&x.pointerType!=null&&v(hn(x.target,T),x.pointerType,!1),x.isOverTarget=!1}};k.onTouchStart=T=>{if(!T.currentTarget.contains(T.target))return;let V=Bx(T.nativeEvent);if(!V)return;x.activePointerId=V.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=T.currentTarget,x.pointerType="touch",!o&&!l&&dn(T.currentTarget),c||Ng(x.target),m(Xn(x.target,T),x.pointerType)&&T.stopPropagation(),C(At(T.currentTarget),"scroll",_,!0)},k.onTouchMove=T=>{if(!T.currentTarget.contains(T.target))return;if(!x.isPressed){T.stopPropagation();return}let V=Rg(T.nativeEvent,x.activePointerId),D=!0;V&&mi(V,T.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,D=m(Xn(x.target,T),x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,D=v(Xn(x.target,T),x.pointerType,!1),A(Xn(x.target,T))),D&&T.stopPropagation()},k.onTouchEnd=T=>{if(!T.currentTarget.contains(T.target))return;if(!x.isPressed){T.stopPropagation();return}let V=Rg(T.nativeEvent,x.activePointerId),D=!0;V&&mi(V,T.currentTarget)&&x.pointerType!=null?(E(Xn(x.target,T),x.pointerType),D=v(Xn(x.target,T),x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(D=v(Xn(x.target,T),x.pointerType,!1)),D&&T.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!c&&Ua(x.target),g()},k.onTouchCancel=T=>{T.currentTarget.contains(T.target)&&(T.stopPropagation(),x.isPressed&&P(Xn(x.target,T)))};let _=T=>{x.isPressed&&T.target.contains(x.target)&&P({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};k.onDragStart=T=>{T.currentTarget.contains(T.target)&&P(T)}}return k},[C,o,l,g,c,P,A,v,m,E]);return d.useEffect(()=>()=>{var x;c||Ua((x=b.current.target)!==null&&x!==void 0?x:void 0)},[c]),{isPressed:a||h,pressProps:te(p,j)}}function nf(e){return e.tagName==="A"&&e.hasAttribute("href")}function rf(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof At(i).HTMLInputElement&&!Vg(i,n)||i instanceof At(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&nf(i))&&n!=="Enter")}function Bx(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Rg(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 mi(e,t){let n=t.getBoundingClientRect(),r=Fx(e);return Vx(n,r)}function sf(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Bg(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!nf(e)}function Fg(e,t){return e instanceof HTMLInputElement?!Vg(e,t):Bg(e)}const Ox=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Vg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Ox.has(e.type)}const Kx=I.forwardRef((r,n)=>{var i=r,{children:e}=i,t=Y(i,["children"]);let s=d.useRef(!1),o=d.useContext(Is);n=Zn(n||(o==null?void 0:o.ref));let a=te(o||{},N(S({},t),{ref:n,register(){s.current=!0,o&&o.register()}}));return Zd(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)},[]),I.createElement(Is.Provider,{value:a},e)});function Ux({children:e}){let t=d.useMemo(()=>({register:()=>{}}),[]);return I.createElement(Is.Provider,{value:t},e)}class Hx{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 Og(e){let t=d.useRef({isFocused:!1,observer:null});pe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ye(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 Hx("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 Kg(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=Og(s),a=d.useCallback(l=>{const u=ce(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 mn=null,js=new Set,Rs=new Map,$r=!1,of=!1;const Wx={Tab:!0,Escape:!0};function Za(e,t){for(let n of js)n(e,t)}function Zx(e){return!(e.metaKey||!Sr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ga(e){$r=!0,Zx(e)&&(mn="keyboard",Za("keyboard",e))}function xt(e){mn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&($r=!0,Za("pointer",e))}function Ug(e){qd(e)&&($r=!0,mn="virtual")}function Hg(e){e.target===window||e.target===document||(!$r&&!of&&(mn="virtual",Za("virtual",e)),$r=!1,of=!1)}function Wg(){$r=!1,of=!0}function Ya(e){if(typeof window=="undefined"||Rs.get(At(e)))return;const t=At(e),n=ce(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){$r=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ga,!0),n.addEventListener("keyup",Ga,!0),n.addEventListener("click",Ug,!0),t.addEventListener("focus",Hg,!0),t.addEventListener("blur",Wg,!1),typeof PointerEvent!="undefined"?(n.addEventListener("pointerdown",xt,!0),n.addEventListener("pointermove",xt,!0),n.addEventListener("pointerup",xt,!0)):(n.addEventListener("mousedown",xt,!0),n.addEventListener("mousemove",xt,!0),n.addEventListener("mouseup",xt,!0)),t.addEventListener("beforeunload",()=>{Zg(e)},{once:!0}),Rs.set(t,{focus:r})}const Zg=(e,t)=>{const n=At(e),r=ce(e);t&&r.removeEventListener("DOMContentLoaded",t),Rs.has(n)&&(n.HTMLElement.prototype.focus=Rs.get(n).focus,r.removeEventListener("keydown",Ga,!0),r.removeEventListener("keyup",Ga,!0),r.removeEventListener("click",Ug,!0),n.removeEventListener("focus",Hg,!0),n.removeEventListener("blur",Wg,!1),typeof PointerEvent!="undefined"?(r.removeEventListener("pointerdown",xt,!0),r.removeEventListener("pointermove",xt,!0),r.removeEventListener("pointerup",xt,!0)):(r.removeEventListener("mousedown",xt,!0),r.removeEventListener("mousemove",xt,!0),r.removeEventListener("mouseup",xt,!0)),Rs.delete(n))};function Gx(e){const t=ce(e);let n;return t.readyState!=="loading"?Ya(e):(n=()=>{Ya(e)},t.addEventListener("DOMContentLoaded",n)),()=>Zg(e,n)}typeof document!="undefined"&&Gx();function af(){return mn!=="pointer"}function lf(){return mn}function Yx(e){mn=e,Za(e,null)}function Gg(){Ya();let[e,t]=d.useState(mn);return d.useEffect(()=>{let n=()=>{t(mn)};return js.add(n),()=>{js.delete(n)}},[]),cn()?null:e}const qx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xx(e,t,n){var r;const i=typeof window!="undefined"?At(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window!="undefined"?At(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window!="undefined"?At(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window!="undefined"?At(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!qx.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&&!Wx[n.key])}function Qx(e,t,n){Ya(),d.useEffect(()=>{let r=(i,s)=>{Xx(!!(n!=null&&n.isTextInput),i,s)&&e(af())};return js.add(r),()=>{js.delete(r)}},t)}function qa(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=Og(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 Xa=!1,uf=0;function cf(){Xa=!0,setTimeout(()=>{Xa=!1},50)}function Yg(e){e.pointerType==="touch"&&cf()}function Jx(){if(typeof document!="undefined")return typeof PointerEvent!="undefined"?document.addEventListener("pointerup",Yg):document.addEventListener("touchend",cf),uf++,()=>{uf--,!(uf>0)&&(typeof PointerEvent!="undefined"?document.removeEventListener("pointerup",Yg):document.removeEventListener("touchend",cf))}}function Qa(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(Jx,[]);let{hoverProps:l,triggerHoverEnd:u}=d.useMemo(()=>{let c=(h,y)=>{if(a.pointerType=y,i||y==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let b=h.currentTarget;a.target=b,t&&t({type:"hoverstart",target:b,pointerType:y}),n&&n(!0),o(!0)},f=(h,y)=>{if(a.pointerType="",a.target=null,y==="touch"||!a.isHovered)return;a.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:y}),n&&n(!1),o(!1)},p={};return typeof PointerEvent!="undefined"?(p.onPointerEnter=h=>{Xa&&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&&!Xa&&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 eS(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Ye(l=>{n&&Ja(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),a=Ye(l=>{n&&n(l)});d.useEffect(()=>{let l=s.current;if(r)return;const u=t.current,c=ce(u);if(typeof PointerEvent!="undefined"){let f=p=>{l.isPointerDown&&Ja(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&&Ja(h,t)&&a(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Ja(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 Ja(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 qg(e){if(!e)return;let t=!0;return n=>{let r=N(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 tS(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:qg(e.onKeyDown),onKeyUp:qg(e.onKeyUp)}}}const nS=500;function rS(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=nS,accessibilityDescription:o}=e;const a=d.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=mg(),{pressProps:c}=zs({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n(N(S({},p),{type:"longpressstart"})),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i(N(S({},p),{type:"longpress"})),a.current=void 0},s),p.pointerType==="touch")){let h=y=>{y.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(N(S({},p),{type:"longpressend"}))}}),f=Yd(i&&!t?o:void 0);return{longPressProps:te(c,f)}}function nt(e){const t=ce(e);if(lf()==="virtual"){let n=t.activeElement;hg(()=>{t.activeElement===n&&e.isConnected&&dn(e)})}else dn(e)}function iS(e){const t=At(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 sS(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 Xg(e,t){return e.nodeName!=="#comment"&&iS(e)&&sS(e,t)&&(!e.parentElement||Xg(e.parentElement,e))}const Qg=I.createContext(null),df="react-aria-focus-scope-restore";let ae=null;function Jg(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(Qg)||{},u=d.useMemo(()=>new mf({scopeRef:a}),[a]);pe(()=>{let p=l||Ee.root;if(Ee.getTreeNode(p.scopeRef)&&ae&&!tl(ae,p.scopeRef)){let h=Ee.getTreeNode(ae);h&&(p=h)}p.addChild(u),Ee.addNode(u)},[u,l]),pe(()=>{let p=Ee.getTreeNode(a);p&&(p.contain=!!n)},[n]),pe(()=>{var p;let h=(p=s.current)===null||p===void 0?void 0:p.nextSibling,y=[],b=C=>C.stopPropagation();for(;h&&h!==o.current;)y.push(h),h.addEventListener(df,b),h=h.nextSibling;return a.current=y,()=>{for(let C of y)C.removeEventListener(df,b)}},[t]),fS(a,r,n),uS(a,n),hS(a,r,n),dS(a,i),d.useEffect(()=>{const p=ce(a.current?a.current[0]:void 0).activeElement;let h=null;if(Ke(p,a.current)){for(let y of Ee.traverse())y.scopeRef&&Ke(p,y.scopeRef.current)&&(h=y);h===Ee.getTreeNode(a)&&(ae=h.scopeRef)}},[a]),pe(()=>()=>{var p,h,y;let b=(y=(h=Ee.getTreeNode(a))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(a===ae||tl(a,ae))&&(!b||Ee.getTreeNode(b))&&(ae=b),Ee.removeTreeNode(a)},[a]);let c=d.useMemo(()=>oS(a),[]),f=d.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return I.createElement(Qg.Provider,{value:f},I.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,I.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function oS(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t,a=r||ce(n[0]).activeElement,l=n[0].previousElementSibling,u=Pr(n),c=St(u,{tabbable:i,accept:o},n);c.currentNode=Ke(a,n)?a:l;let f=c.nextNode();return!f&&s&&(c.currentNode=l,f=c.nextNode()),f&&gn(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t,a=r||ce(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=Pr(n),c=St(u,{tabbable:i,accept:o},n);c.currentNode=Ke(a,n)?a:l;let f=c.previousNode();return!f&&s&&(c.currentNode=l,f=c.previousNode()),f&&gn(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=Pr(n),o=St(s,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let a=o.nextNode();return a&&gn(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=Pr(n),o=St(s,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let a=o.previousNode();return a&&gn(a,!0),a}}}const ff=["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]"],aS=ff.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ff.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const lS=ff.join(':not([hidden]):not([tabindex="-1"]),');function Pr(e){return e[0].parentElement}function Bs(e){let t=Ee.getTreeNode(ae);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uS(e,t){let n=d.useRef(void 0),r=d.useRef(void 0);pe(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=ce(i?i[0]:void 0);let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Bs(e)||u.isComposing)return;let c=s.activeElement,f=e.current;if(!f||!Ke(c,f))return;let p=Pr(f),h=St(p,{tabbable:!0},f);if(!c)return;h.currentNode=c;let y=u.shiftKey?h.previousNode():h.nextNode();y||(h.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),y&&gn(y,!0)},a=u=>{(!ae||tl(ae,e))&&Ke(u.target,e.current)?(ae=e,n.current=u.target):Bs(e)&&!el(u.target,e)?n.current?n.current.focus():ae&&ae.current&&pf(ae.current):Bs(e)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(s.activeElement&&Bs(e)&&!el(s.activeElement,e))if(ae=e,s.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else ae.current&&pf(ae.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]),pe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function e4(e){return el(e)}function Ke(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function el(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&&Ke(e,n.current))return!0;return!1}function cS(e){return el(e,ae)}function tl(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 gn(e,t=!1){if(e!=null&&!t)try{nt(e)}catch(n){}else if(e!=null)try{e.focus()}catch(n){}}function t4(e,t=!0){let n=e[0].previousElementSibling,r=Pr(e),i=St(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=Pr(e),i=St(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function pf(e,t=!0){gn(t4(e,t))}function dS(e,t){const n=I.useRef(t);d.useEffect(()=>{if(n.current){ae=e;const r=ce(e.current?e.current[0]:void 0);!Ke(r.activeElement,ae.current)&&e.current&&pf(e.current)}n.current=!1},[e])}function fS(e,t,n){pe(()=>{if(t||n)return;let r=e.current;const i=ce(r?r[0]:void 0);let s=o=>{let a=o.target;Ke(a,e.current)?ae=e:e4(a)||(ae=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 pS(e){let t=Ee.getTreeNode(ae);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function hS(e,t,n){const r=d.useRef(typeof document!="undefined"?ce(e.current?e.current[0]:void 0).activeElement:null);pe(()=>{let i=e.current;const s=ce(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!ae||tl(ae,e))&&Ke(s.activeElement,e.current)&&(ae=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]),pe(()=>{const i=ce(e.current?e.current[0]:void 0);if(!t)return;let s=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!Bs(e)||o.isComposing)return;let a=i.activeElement;if(!Ke(a,e.current))return;let l=Ee.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=St(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||!Ke(f,e.current))&&u){c.currentNode=u;do f=o.shiftKey?c.previousNode():c.nextNode();while(Ke(f,e.current));o.preventDefault(),o.stopPropagation(),f?gn(f,!0):e4(u)?gn(u,!0):a.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),pe(()=>{const i=ce(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&&(Ke(i.activeElement,e.current)||i.activeElement===i.body&&pS(e))){let u=Ee.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){n4(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ee.getTreeNode(c.scopeRef)){let f=t4(c.scopeRef.current,!0);n4(f);return}c=c.parent}}})}}}},[e,t])}function n4(e){e.dispatchEvent(new CustomEvent(df,{bubbles:!0,cancelable:!0}))&&gn(e)}function St(e,t,n){let r=t!=null&&t.tabbable?lS:aS,i=ce(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)&&Xg(s)&&(!n||Ke(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 hf{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 mf({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&&Ke(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*$i(this.traverse(n))}clone(){var t;let n=new hf;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 mf({scopeRef:null}),this.fastMap.set(null,this.root)}}class mf{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 hf;function gi(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=d.useRef({isFocused:!1,isFocusVisible:t||af()}),[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]);Qx(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:f}=Kg({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=qa({isDisabled:!r,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:a,focusProps:r?p:f}}let mS=I.createContext(null);function gS(e){let t=d.useContext(mS)||{};Zd(t,e);let i=t,{ref:n}=i;return Y(i,["ref"])}function r4(e,t){let{focusProps:n}=Kg(e),{keyboardProps:r}=tS(e),i=te(n,r),s=gS(t),o=e.isDisabled?{}:s,a=d.useRef(e.autoFocus);return d.useEffect(()=>{a.current&&t.current&&nt(t.current),a.current=!1},[t]),{focusableProps:te(N(S({},i),{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),o)}}function vS(e,t){let n=t==null?void 0:t.isDisabled,[r,i]=d.useState(!1);return pe(()=>{if(e!=null&&e.current&&!n){let s=()=>{if(e.current){let a=St(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 yS=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),wS=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function bS(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 yS.has(n.script)}let t=e.split("-")[0];return wS.has(t)}const xS=Symbol.for("react-aria.i18n.locale");function i4(){let e=typeof window!="undefined"&&window[xS]||typeof navigator!="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:bS(e)?"rtl":"ltr"}}let gf=i4(),Fs=new Set;function s4(){gf=i4();for(let e of Fs)e(gf)}function SS(){let e=cn(),[t,n]=d.useState(gf);return d.useEffect(()=>(Fs.size===0&&window.addEventListener("languagechange",s4),Fs.add(n),()=>{Fs.delete(n),Fs.size===0&&window.removeEventListener("languagechange",s4)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const CS=I.createContext(null);function vi(){let e=SS();return d.useContext(CS)||e}const ES=Symbol.for("react-aria.i18n.locale"),$S=Symbol.for("react-aria.i18n.strings");let yi;class nl{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=PS(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window=="undefined")return null;let n=window[ES];if(yi===void 0){let i=window[$S];if(!i)return null;yi={};for(let s in i)yi[s]=new nl({[n]:i[s]},n)}let r=yi==null?void 0:yi[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 PS(e,t,n="en-US"){if(t[e])return t[e];let r=kS(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function kS(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const o4=new Map,a4=new Map;class TS{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=o4.get(s);o||(o=new Intl.PluralRules(this.locale,{type:r}),o4.set(s,o));let a=o.select(t);return i=n[a]||n.other,typeof i=="function"?i():i}number(t){let n=a4.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),a4.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 l4=new WeakMap;function DS(e){let t=l4.get(e);return t||(t=new nl(e),l4.set(e,t)),t}function MS(e,t){return t&&nl.getGlobalDictionaryForPackage(t)||DS(e)}function Vs(e,t){let{locale:n}=vi(),r=MS(e,t);return d.useMemo(()=>new TS(n,r),[n,r])}let vf=new Map;function u4(e){let{locale:t}=vi(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]{f&&(f(P),console.warn("onClick is deprecated, please use onPress"))}})}}const c4=7e3;let Kt=null;function yf(e,t="assertive",n=c4){Kt?Kt.announce(e,t,n):(Kt=new AS,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest!="undefined")?Kt.announce(e,t,n):setTimeout(()=>{Kt!=null&&Kt.isAttached()&&(Kt==null||Kt.announce(e,t,n))},100))}class AS{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}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=c4){var i,s;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(s=this.politeLog)===null||s===void 0||s.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document!="undefined"&&(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 _S(e,t,n){let{validationBehavior:r,focus:i}=e;pe(()=>{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(IS(n.current))}});let s=Ye(()=>{t.resetValidation()}),o=Ye(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&&zS(c)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),Yx("keyboard")}l.preventDefault()}),a=Ye(()=>{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 NS(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 IS(e){return{isInvalid:!e.validity.valid,validationDetails:NS(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function zS(e){for(let t=0;th4(BS(o,i)),[o,i]);s!=null&&s.validationDetails.valid&&(s=null);let c=d.useContext(jS),f=d.useMemo(()=>r?Array.isArray(r)?r.flatMap(k=>bf(c[k])):bf(c[r]):[],[c,r]),[p,h]=d.useState(c),[y,b]=d.useState(!1);c!==p&&(h(c),b(!1));let C=d.useMemo(()=>h4(y?[]:f),[y,f]),g=d.useRef(wi),[m,v]=d.useState(wi),E=d.useRef(wi),P=()=>{if(!A)return;j(!1);let k=u||s||g.current;xf(k,E.current)||(E.current=k,v(k))},[A,j]=d.useState(!1);return d.useEffect(P),{realtimeValidation:l||C||u||s||wi,displayValidation:a==="native"?l||C||m:l||C||u||s||m,updateValidation(k){a==="aria"&&!xf(m,k)?v(k):g.current=k},resetValidation(){let k=wi;xf(k,E.current)||(E.current=k,v(k)),a==="native"&&j(!1),b(!0)},commitValidation(){a==="native"&&j(!0),b(!0)}}}function bf(e){return e?Array.isArray(e)?e:[e]:[]}function BS(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return bf(n)}return[]}function h4(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:f4}:null}function xf(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 FS(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=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},h=a!=null,y=l!=null||u!=null;!h&&!y&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:b,isPressed:C}=zs({isDisabled:r}),{pressProps:g,isPressed:m}=zs({isDisabled:r||i,onPress(){t.toggle()}}),{focusableProps:v}=r4(e,n),E=te(b,v),P=qe(e,{labelable:!0});return fx(n,t.isSelected,t.setSelected),{labelProps:te(g,{onClick:A=>A.preventDefault()}),inputProps:te(P,S(N(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"}),E)),isSelected:t.isSelected,isPressed:C||m,isDisabled:r,isReadOnly:i,isInvalid:f||c==="invalid"}}function m4(e,t,n){let r=p4(N(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}=FS(N(S({},e),{isInvalid:i}),t,n);_S(e,r,n);let{isIndeterminate:h,isRequired:y,validationBehavior:b="aria"}=e;return d.useEffect(()=>{n.current&&(n.current.indeterminate=!!h)}),{labelProps:a,inputProps:N(S({},l),{checked:u,"aria-required":y&&b==="aria"||void 0,required:y&&b==="native"}),isSelected:u,isPressed:c,isDisabled:f,isReadOnly:p,isInvalid:i,validationErrors:s,validationDetails:o}}const VS=new WeakMap;function OS(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Lt(t);let o=Lt(),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=gg({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function KS(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:o}=OS(e),a=Ba([!!t,!!n,r,i]),l=Ba([!!t,!!n,r,i]);return o=te(o,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:o,descriptionProps:{id:a},errorMessageProps:{id:l}}}function g4(e={}){let{isReadOnly:t}=e,[n,r]=Xd(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 US(e,t,n){const r=g4({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}=VS.get(t);var l;a=(l=e.validationBehavior)!==null&&l!==void 0?l:a;let{realtimeValidation:u}=p4(N(S({},e),{value:r.isSelected,name:void 0,validationBehavior:"aria"})),c=d.useRef(wi),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 y;let b=m4(N(S({},e),{isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,isRequired:(y=e.isRequired)!==null&&y!==void 0?y:t.isRequired,validationBehavior:a,[wf]:{realtimeValidation:p,displayValidation:h,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(C){c.current=C,f()}}}),r,n);return N(S({},b),{inputProps:N(S({},b.inputProps),{"aria-describedby":[e["aria-describedby"],t.isInvalid?o:null,s].filter(Boolean).join(" ")||void 0})})}const v4={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 rl(e={}){let{style:t,isFocusable:n}=e,[r,i]=d.useState(!1),{focusWithinProps:s}=qa({isDisabled:!n,onFocusWithinChange:a=>i(a)}),o=d.useMemo(()=>r?t:t?S(S({},v4),t):v4,[r]);return{visuallyHiddenProps:N(S({},s),{style:o})}}function y4(e){let a=e,{children:t,elementType:n="div",isFocusable:r,style:i}=a,s=Y(a,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=rl(e);return I.createElement(n,te(s,o),t)}const HS=new WeakMap,vn=[];function WS(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:a}=e;d.useEffect(()=>(i&&vn.push(t),()=>{let y=vn.indexOf(t);y>=0&&vn.splice(y,1)}),[i,t]);let l=()=>{vn[vn.length-1]===t&&n&&n()},u=y=>{(!a||a(y.target))&&vn[vn.length-1]===t&&(y.stopPropagation(),y.preventDefault())},c=y=>{(!a||a(y.target))&&(vn[vn.length-1]===t&&(y.stopPropagation(),y.preventDefault()),l())},f=y=>{y.key==="Escape"&&!o&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),l())};eS({ref:t,onInteractOutside:s&&i?c:null,onInteractOutsideStart:u});let{focusWithinProps:p}=qa({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||cS(y.relatedTarget)||(!a||a(y.relatedTarget))&&n()}}),h=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:S({onKeyDown:f},p),underlayProps:{onPointerDown:h}}}function ZS(e,t,n){let{type:r}=e,{isOpen:i}=t;d.useEffect(()=>{n&&n.current&&HS.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let o=Lt();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,GS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let il=0,Cf;function YS(e={}){let{isDisabled:t}=e;pe(()=>{if(!t)return il++,il===1&&(Oa()?Cf=XS():Cf=qS()),()=>{il--,il===0&&Cf()}},[t])}function qS(){return di(bi(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),bi(document.documentElement,"overflow","hidden"))}function XS(){let e,t,n=u=>{e=Gn(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=bi(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;b4(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;b4(c)&&(a(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Sf&&(Sf.height{w4(c)}):Sf.addEventListener("resize",()=>w4(c),{once:!0}))}))},o=null,a=()=>{if(o)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;o=di(Os(window,"scroll",u),bi(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),bi(document.documentElement,"overflow","hidden"),bi(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},l=di(Os(document,"touchstart",n,{passive:!1,capture:!0}),Os(document,"touchmove",r,{passive:!1,capture:!0}),Os(document,"touchend",i,{passive:!1,capture:!0}),Os(document,"focus",s,!0));return()=>{t==null||t(),o==null||o(),l()}}function bi(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Os(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function w4(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Gn(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 b4(e){return e instanceof HTMLInputElement&&!GS.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var x4={};x4={dismiss:"تجاهل"};var S4={};S4={dismiss:"Отхвърляне"};var C4={};C4={dismiss:"Odstranit"};var E4={};E4={dismiss:"Luk"};var $4={};$4={dismiss:"Schließen"};var P4={};P4={dismiss:"Απόρριψη"};var k4={};k4={dismiss:"Dismiss"};var T4={};T4={dismiss:"Descartar"};var D4={};D4={dismiss:"Lõpeta"};var M4={};M4={dismiss:"Hylkää"};var L4={};L4={dismiss:"Rejeter"};var A4={};A4={dismiss:"התעלם"};var _4={};_4={dismiss:"Odbaci"};var N4={};N4={dismiss:"Elutasítás"};var I4={};I4={dismiss:"Ignora"};var z4={};z4={dismiss:"閉じる"};var j4={};j4={dismiss:"무시"};var R4={};R4={dismiss:"Atmesti"};var B4={};B4={dismiss:"Nerādīt"};var F4={};F4={dismiss:"Lukk"};var V4={};V4={dismiss:"Negeren"};var O4={};O4={dismiss:"Zignoruj"};var K4={};K4={dismiss:"Descartar"};var U4={};U4={dismiss:"Dispensar"};var H4={};H4={dismiss:"Revocare"};var W4={};W4={dismiss:"Пропустить"};var Z4={};Z4={dismiss:"Zrušiť"};var G4={};G4={dismiss:"Opusti"};var Y4={};Y4={dismiss:"Odbaci"};var q4={};q4={dismiss:"Avvisa"};var X4={};X4={dismiss:"Kapat"};var Q4={};Q4={dismiss:"Скасувати"};var J4={};J4={dismiss:"取消"};var ev={};ev={dismiss:"關閉"};var tv={};tv={"ar-AE":x4,"bg-BG":S4,"cs-CZ":C4,"da-DK":E4,"de-DE":$4,"el-GR":P4,"en-US":k4,"es-ES":T4,"et-EE":D4,"fi-FI":M4,"fr-FR":L4,"he-IL":A4,"hr-HR":_4,"hu-HU":N4,"it-IT":I4,"ja-JP":z4,"ko-KR":j4,"lt-LT":R4,"lv-LV":B4,"nb-NO":F4,"nl-NL":V4,"pl-PL":O4,"pt-BR":K4,"pt-PT":U4,"ro-RO":H4,"ru-RU":W4,"sk-SK":Z4,"sl-SI":G4,"sr-SP":Y4,"sv-SE":q4,"tr-TR":X4,"uk-UA":Q4,"zh-CN":J4,"zh-TW":ev};function QS(e){return e&&e.__esModule?e.default:e}function JS(e){let o=e,{onDismiss:t}=o,n=Y(o,["onDismiss"]),r=Vs(QS(tv),"@react-aria/overlays"),i=gg(n,r.format("dismiss")),s=()=>{t&&t()};return I.createElement(y4,null,I.createElement("button",N(S({},i),{tabIndex:-1,onClick:s,style:{width:1,height:1}})))}let Ks=new WeakMap,Ct=[];function eC(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=Ks.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),Ks.set(l,c+1))};Ct.length&&Ct[Ct.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 Ct.push(a),()=>{o.disconnect();for(let l of r){let u=Ks.get(l);u===1?(l.removeAttribute("aria-hidden"),Ks.delete(l)):Ks.set(l,u-1)}a===Ct[Ct.length-1]?(Ct.pop(),Ct.length&&Ct[Ct.length-1].observe()):Ct.splice(Ct.indexOf(a),1)}}const tC=d.createContext({});function nC(){var e;return(e=d.useContext(tC))!==null&&e!==void 0?e:{}}const nv=I.createContext(null);function rC(e){let t=cn(),{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}=nC();if(!e.portalContainer&&a&&(n=a()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=I.createElement(Jg,{restoreFocus:!0,contain:i&&!r},l)),l=I.createElement(nv.Provider,{value:o},I.createElement(Ux,null,l)),o1.createPortal(l,n)}function rv(){let e=d.useContext(nv),t=e==null?void 0:e.setContain;pe(()=>{t==null||t(!0)},[t])}function iC(e,t,n){let{overlayProps:r,underlayProps:i}=WS(N(S({},e),{isOpen:t.isOpen,onClose:t.close}),n);return YS({isDisabled:!t.isOpen}),rv(),d.useEffect(()=>{if(t.isOpen)return eC([n.current])},[t.isOpen,n]),{modalProps:te(r),underlayProps:i}}function Ef(e){return ex()?e.altKey:e.ctrlKey}function xi(e){return Sr()?e.metaKey:e.ctrlKey}const sC=1e3;function oC(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=d.useRef({search:"",timeout:null}).current,s=o=>{let a=aC(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=""},sC)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:null}}}function aC(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function lC(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:y="action"}=e,{direction:b}=vi(),C=Hd(),g=k=>{if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!r.current.contains(k.target))return;const B=(K,Le)=>{if(K!=null){if(t.isLink(K)&&y==="selection"&&l&&!Ef(k)){ms.flushSync(()=>{t.setFocusedKey(K,Le)});let ke=h.current.querySelector(`[data-key="${CSS.escape(K.toString())}"]`),Nt=t.getItemProps(K);C.open(ke,k,Nt.href,Nt.routerOptions);return}if(t.setFocusedKey(K,Le),t.isLink(K)&&y==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&!Ef(k)&&t.replaceSelection(K)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var w,_,T;let K=t.focusedKey!=null?(w=n.getKeyBelow)===null||w===void 0?void 0:w.call(n,t.focusedKey):(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n);K==null&&s&&(K=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n,t.focusedKey)),K!=null&&(k.preventDefault(),B(K))}break;case"ArrowUp":if(n.getKeyAbove){var V,D,L;let K=t.focusedKey!=null?(V=n.getKeyAbove)===null||V===void 0?void 0:V.call(n,t.focusedKey):(D=n.getLastKey)===null||D===void 0?void 0:D.call(n);K==null&&s&&(K=(L=n.getLastKey)===null||L===void 0?void 0:L.call(n,t.focusedKey)),K!=null&&(k.preventDefault(),B(K))}break;case"ArrowLeft":if(n.getKeyLeftOf){var z,R,O;let K=(z=n.getKeyLeftOf)===null||z===void 0?void 0:z.call(n,t.focusedKey);K==null&&s&&(K=b==="rtl"?(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey):(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),K!=null&&(k.preventDefault(),B(K,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var H,Z,Ue;let K=(H=n.getKeyRightOf)===null||H===void 0?void 0:H.call(n,t.focusedKey);K==null&&s&&(K=b==="rtl"?(Z=n.getLastKey)===null||Z===void 0?void 0:Z.call(n,t.focusedKey):(Ue=n.getFirstKey)===null||Ue===void 0?void 0:Ue.call(n,t.focusedKey)),K!=null&&(k.preventDefault(),B(K,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){k.preventDefault();let K=n.getFirstKey(t.focusedKey,xi(k));t.setFocusedKey(K),xi(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&t.replaceSelection(K)}break;case"End":if(n.getLastKey){k.preventDefault();let K=n.getLastKey(t.focusedKey,xi(k));t.setFocusedKey(K),xi(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(K):l&&t.replaceSelection(K)}break;case"PageDown":if(n.getKeyPageBelow){let K=n.getKeyPageBelow(t.focusedKey);K!=null&&(k.preventDefault(),B(K))}break;case"PageUp":if(n.getKeyPageAbove){let K=n.getKeyPageAbove(t.focusedKey);K!=null&&(k.preventDefault(),B(K))}break;case"a":xi(k)&&t.selectionMode==="multiple"&&a!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(k.shiftKey)r.current.focus();else{let K=St(r.current,{tabbable:!0}),Le,ke;do ke=K.lastChild(),ke&&(Le=ke);while(ke);Le&&!Le.contains(document.activeElement)&&dn(Le)}break}}},m=d.useRef({top:0,left:0});yg(h,"scroll",p?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let v=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){let _=V=>{V!=null&&(t.setFocusedKey(V),l&&t.replaceSelection(V))},T=k.relatedTarget;var B,w;T&&k.currentTarget.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?_((B=t.lastSelectedKey)!==null&&B!==void 0?B:n.getLastKey()):_((w=t.firstSelectedKey)!==null&&w!==void 0?w:n.getFirstKey())}else p||(h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left);if(t.focusedKey!=null){let _=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);_&&(_.contains(document.activeElement)||dn(_),lf()==="keyboard"&&Yn(_,{containingElement:r.current}))}}},E=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)};const P=d.useRef(i);d.useEffect(()=>{if(P.current){let k=null;i==="first"&&(k=n.getFirstKey()),i==="last"&&(k=n.getLastKey());let B=t.selectedKeys;if(B.size){for(let w of B)if(t.canSelectItem(w)){k=w;break}}t.setFocused(!0),t.setFocusedKey(k),k==null&&!c&&nt(r.current)}},[]);let A=d.useRef(t.focusedKey);d.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==A.current||P.current)&&(h!=null&&h.current)){let k=lf(),B=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!B)return;(k==="keyboard"||P.current)&&(wg(h.current,B),k!=="virtual"&&Yn(B,{containingElement:r.current}))}!c&&t.isFocused&&t.focusedKey==null&&A.current!=null&&nt(r.current),A.current=t.focusedKey,P.current=!1}),yg(r,"react-aria-focus-scope-restore",k=>{k.preventDefault(),t.setFocused(!0)});let j={onKeyDown:g,onFocus:v,onBlur:E,onMouseDown(k){h.current===k.target&&k.preventDefault()}},{typeSelectProps:M}=oC({keyboardDelegate:n,selectionManager:t});u||(j=te(M,j));let x;return c||(x=t.focusedKey==null?0:-1),{collectionProps:N(S({},j),{tabIndex:x})}}function uC(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=Hd(),p=L=>{if(L.pointerType==="keyboard"&&Ef(L))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){let z=t.getItemProps(n);f.open(r.current,L,z.href,z.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):L&&L.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||L&&(xi(L)||L.pointerType==="touch"||L.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};d.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!s&&(o?o():document.activeElement!==r.current&&nt(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(L){L.target===r.current&&t.setFocusedKey(n)}}:a&&(h.onMouseDown=L=>{L.preventDefault()});let y=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",C=!a&&t.canSelectItem(n)&&!y,g=(l||b)&&!a,m=g&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),v=g&&C&&t.selectionBehavior==="replace",E=m||v,P=d.useRef(null),A=E&&C,j=d.useRef(!1),M=d.useRef(!1),x=L=>{if(l&&l(),b){let z=t.getItemProps(n);f.open(r.current,L,z.href,z.routerOptions)}},k={};i?(k.onPressStart=L=>{P.current=L.pointerType,j.current=A,L.pointerType==="keyboard"&&(!E||sv())&&p(L)},u?(k.onPressUp=m?null:L=>{L.pointerType!=="keyboard"&&C&&p(L)},k.onPress=m?x:null):k.onPress=L=>{if(m||v&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!iv())return;x(L)}else L.pointerType!=="keyboard"&&C&&p(L)}):(k.onPressStart=L=>{P.current=L.pointerType,j.current=A,M.current=m,C&&(L.pointerType==="mouse"&&!m||L.pointerType==="keyboard"&&(!g||sv()))&&p(L)},k.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&E&&iv()||L.pointerType==="mouse"&&M.current)&&(E?x(L):C&&p(L))}),h["data-key"]=n,k.preventFocusOnPress=s;let{pressProps:B,isPressed:w}=zs(k),_=v?L=>{P.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),x(L))}:void 0,{longPressProps:T}=rS({isDisabled:!A,onLongPress(L){L.pointerType==="touch"&&(p(L),t.setSelectionBehavior("toggle"))}}),V=L=>{P.current==="touch"&&j.current&&L.preventDefault()},D=t.isLink(n)?L=>{Cr.isOpening||L.preventDefault()}:void 0;return{itemProps:te(h,C||m?B:{},A?T:{},{onDoubleClick:_,onDragStartCapture:V,onClick:D}),isPressed:w,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:a,allowsSelection:C,hasAction:E}}function iv(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function sv(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ov{getItemRect(t){let n=this.ref.current,r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;return{width:t.scrollWidth,height:t.scrollHeight}}getVisibleRect(){let t=this.ref.current;return{x:t.scrollLeft,y:t.scrollTop,width:t.offsetWidth,height:t.offsetHeight}}constructor(t){this.ref=t}}class sl{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){for(;t!=null;){let r=this.collection.getItem(t);if((r==null?void 0:r.type)==="item"&&!this.isDisabled(r))return t;t=n(t)}return null}getNextKey(t){return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}findKey(t,n,r){let i=this.layoutDelegate.getItemRect(t);if(!i)return null;let s=i;do t=n(t),i=this.layoutDelegate.getItemRect(t);while(i&&r(s,i));return t}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(!Ls(n))return this.getFirstKey();if(this.orientation==="horizontal"){let i=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>i;)t=this.getKeyAbove(t),r=t==null?null:this.layoutDelegate.getItemRect(t)}else{let i=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>i;)t=this.getKeyAbove(t),r=t==null?null:this.layoutDelegate.getItemRect(t)}return t!=null?t:this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(!Ls(n))return this.getLastKey();if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.xs||new sl({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:a,layoutDelegate:o}),[s,o,n,r,i,a,l]),{collectionProps:c}=lC(N(S({},e),{ref:i,selectionManager:t,keyboardDelegate:u}));return{listProps:c}}class dC{build(t,n){return this.context=n,av(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(I.isValidElement(n)&&n.type===I.Fragment)yield*$i(this.iterateCollection({children:n.props.children,items:r}));else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let i of t.items)yield*$i(this.getFullNode({value:i},{renderer:n}))}else{let i=[];I.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){if(I.isValidElement(t.element)&&t.element.type===I.Fragment){let l=[];I.Children.forEach(t.element.props.children,c=>{l.push(c)});let u=t.index;for(const c of l)yield*$i(this.getFullNode({element:c,index:u++},n,r,i));return}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(I.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 b=[...this.getFullNode(N(S({},p),{key:h,index:c,wrapper:fC(t.wrapper,p.wrapper)}),this.getChildState(n,p),r?`${r}${s.key}`:s.key,i)];for(let C of b){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 <${$f(C.type)}> in <${$f(i.type)}>. Only <${$f(t.type)}> is supported.`);c++,yield C}f=u.next(b)}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:av(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 av(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 fC(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function $f(e){return e[0].toUpperCase()+e.slice(1)}function pC(e,t,n){let r=d.useMemo(()=>new dC,[]),{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 hC(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function mC(e){return gC(e)}function gC(e,t){for(let n of e)return n}function vC(e){let t;for(let n of e)t=n;return t}function Pf(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...lv(e,t),t],i=[...lv(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 lv(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}function yC(e,t){let{role:n="dialog"}=e,r=Ba();r=e["aria-label"]?void 0:r;let i=d.useRef(!1);return d.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){nt(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),nt(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),rv(),{dialogProps:N(S({},qe(e,{labelable:!0})),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}}),titleProps:{id:r}}}const kf=new WeakMap;function Tf(e,t){let{id:n}=kf.get(e);if(!n)throw new Error("Unknown list");return`${n}-${wC(t)}`}function wC(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}var uv={};uv={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 cv={};cv={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 dv={};dv={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 fv={};fv={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 pv={};pv={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 hv={};hv={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 mv={};mv={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 gv={};gv={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 vv={};vv={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 yv={};yv={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 wv={};wv={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 bv={};bv={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 xv={};xv={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 Sv={};Sv={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 Cv={};Cv={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 Ev={};Ev={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 $v={};$v={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 Pv={};Pv={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 kv={};kv={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 Tv={};Tv={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 Dv={};Dv={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 Mv={};Mv={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 Lv={};Lv={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 Av={};Av={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 _v={};_v={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 Nv={};Nv={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 Iv={};Iv={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 zv={};zv={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 jv={};jv={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 Rv={};Rv={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 Bv={};Bv={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 Fv={};Fv={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 Vv={};Vv={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 Ov={};Ov={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 ol={};ol={"ar-AE":uv,"bg-BG":cv,"cs-CZ":dv,"da-DK":fv,"de-DE":pv,"el-GR":hv,"en-US":mv,"es-ES":gv,"et-EE":vv,"fi-FI":yv,"fr-FR":wv,"he-IL":bv,"hr-HR":xv,"hu-HU":Sv,"it-IT":Cv,"ja-JP":Ev,"ko-KR":$v,"lt-LT":Pv,"lv-LV":kv,"nb-NO":Tv,"nl-NL":Dv,"pl-PL":Mv,"pt-BR":Lv,"pt-PT":Av,"ro-RO":_v,"ru-RU":Nv,"sk-SK":Iv,"sl-SI":zv,"sr-SP":jv,"sv-SE":Rv,"tr-TR":Bv,"uk-UA":Fv,"zh-CN":Vv,"zh-TW":Ov};function bC(e){return e&&e.__esModule?e.default:e}function xC(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=Vs(bC(ol),"@react-aria/grid"),i=t.selectionManager.rawSelection,s=d.useRef(i);ax(()=>{var o;if(!t.selectionManager.isFocused){s.current=i;return}let a=Kv(i,s.current),l=Kv(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&&yf(c.join(" ")),s.current=i},[i])}function Kv(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 SC(e){return e&&e.__esModule?e.default:e}function CC(e){let t=Vs(SC(ol),"@react-aria/grid"),n=Gg(),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 Yd(i)}function EC(e){return e&&e.__esModule?e.default:e}function $C(e,t){let{key:n}=e,r=t.selectionManager,i=Lt(),s=!t.selectionManager.canSelectItem(n),o=t.selectionManager.isSelected(n),a=()=>r.toggleSelection(n);const l=Vs(EC(ol),"@react-aria/grid");return{checkboxProps:{id:i,"aria-label":l.format("select"),isSelected:o,isDisabled:s,onChange:a}}}function Uv(e,t,n){let{isVirtualized:r,keyboardDelegate:i,layoutDelegate:s,onAction:o,linkBehavior:a="action",keyboardNavigationBehavior:l="arrow"}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:u}=cC({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,layoutDelegate:s,isVirtualized:r,selectOnFocus:t.selectionManager.selectionBehavior==="replace",shouldFocusWrap:e.shouldFocusWrap,linkBehavior:a}),c=Lt(e.id);kf.set(t,{id:c,onAction:o,linkBehavior:a,keyboardNavigationBehavior:l});let f=CC({selectionManager:t.selectionManager,hasItemActions:!!o}),p=vS(n,{isDisabled:t.collection.size!==0}),h=qe(e,{labelable:!0}),y=te(h,{role:"grid",id:c,"aria-multiselectable":t.selectionManager.selectionMode==="multiple"?"true":void 0},t.collection.size===0?{tabIndex:p?-1:0}:u,f);return r&&(y["aria-rowcount"]=t.collection.size,y["aria-colcount"]=1),xC({},t),{gridProps:y}}const Hv={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function Wv(e,t,n){var r,i;let{node:s,isVirtualized:o,shouldSelectOnPressUp:a}=e,{direction:l}=vi(),{onAction:u,linkBehavior:c,keyboardNavigationBehavior:f}=kf.get(t),p=Ba(),h=d.useRef(null),y=()=>{var B;(h.current!=null&&s.key!==h.current||!(!((B=n.current)===null||B===void 0)&&B.contains(document.activeElement)))&&nt(n.current)},b={},C,g=t.selectionManager.isLink(s.key);s!=null&&"expandedKeys"in t&&(C=[...t.collection.getChildren(s.key)].length>1,u==null&&!g&&t.selectionManager.selectionMode==="none"&&C&&(u=()=>t.toggleKey(s.key)),b={"aria-expanded":C?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?vC(t.collection.getChildren(s==null?void 0:s.parentKey)).index+1:[...t.collection].filter(w=>w.level===0).at(-1).index+1});let k=uC({selectionManager:t.selectionManager,key:s.key,ref:n,isVirtualized:o,shouldSelectOnPressUp:a,onAction:u||!((r=s.props)===null||r===void 0)&&r.onAction?di((i=s.props)===null||i===void 0?void 0:i.onAction,u?()=>u(s.key):void 0):void 0,focus:y,linkBehavior:c}),{itemProps:m}=k,v=Y(k,["itemProps"]),E=B=>{if(!B.currentTarget.contains(B.target))return;let w=St(n.current);if(w.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===n.current){if(B.key===Hv.expand[l]&&t.selectionManager.focusedKey===s.key&&C&&!t.expandedKeys.has(s.key)){t.toggleKey(s.key),B.stopPropagation();return}else if(B.key===Hv.collapse[l]&&t.selectionManager.focusedKey===s.key&&C&&t.expandedKeys.has(s.key)){t.toggleKey(s.key),B.stopPropagation();return}}switch(B.key){case"ArrowLeft":if(f==="arrow"){let _=l==="rtl"?w.nextNode():w.previousNode();if(_)B.preventDefault(),B.stopPropagation(),nt(_),Yn(_,{containingElement:Gn(n.current)});else if(B.preventDefault(),B.stopPropagation(),l==="rtl")nt(n.current),Yn(n.current,{containingElement:Gn(n.current)});else{w.currentNode=n.current;let T=Zv(w);T&&(nt(T),Yn(T,{containingElement:Gn(n.current)}))}}break;case"ArrowRight":if(f==="arrow"){let _=l==="rtl"?w.previousNode():w.nextNode();if(_)B.preventDefault(),B.stopPropagation(),nt(_),Yn(_,{containingElement:Gn(n.current)});else if(B.preventDefault(),B.stopPropagation(),l==="ltr")nt(n.current),Yn(n.current,{containingElement:Gn(n.current)});else{w.currentNode=n.current;let T=Zv(w);T&&(nt(T),Yn(T,{containingElement:Gn(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;case"Tab":if(f==="tab"){let _=St(n.current,{tabbable:!0});_.currentNode=document.activeElement,(B.shiftKey?_.previousNode():_.nextNode())&&B.stopPropagation()}}},P=B=>{if(h.current=s.key,B.target!==n.current){af()||t.selectionManager.setFocusedKey(s.key);return}},A=fg(s.props),j=v.hasAction?A:{},M=te(m,j,{role:"row",onKeyDownCapture:E,onFocus:P,"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":p&&s.textValue?`${Tf(t,s.key)} ${p}`:void 0,id:Tf(t,s.key)});o&&(M["aria-rowindex"]=s.index+1);let x={role:"gridcell","aria-colindex":1};return S({rowProps:S({},te(M,b)),gridCellProps:x,descriptionProps:{id:p}},v)}function Zv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}function PC(e,t){let{key:n}=e;const{checkboxProps:r}=$C(e,t);return{checkboxProps:N(S({},r),{"aria-labelledby":`${r.id} ${Tf(t,n)}`})}}const Gv=new WeakMap;function kC(e,t,n){let{direction:r}=vi(),i=e.keyboardDelegate||new sl({collection:t.collection,ref:n,orientation:"horizontal",direction:r,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:s,fieldProps:o,descriptionProps:a,errorMessageProps:l}=KS(N(S({},e),{labelElementType:"span"})),{gridProps:u}=Uv(N(S(S({},e),o),{keyboardDelegate:i,shouldFocusWrap:!0,linkBehavior:"override"}),t,n),[c,f]=d.useState(!1),{focusWithinProps:p}=qa({onFocusWithinChange:f}),h=qe(e),y=d.useRef(t.collection.size);return d.useEffect(()=>{n.current&&y.current>0&&t.collection.size===0&&c&&n.current.focus(),y.current=t.collection.size},[t.collection.size,c,n]),Gv.set(t,{onRemove:e.onRemove}),{gridProps:te(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 Yv={};Yv={removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."};var qv={};qv={removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."};var Xv={};Xv={removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."};var Qv={};Qv={removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."};var Jv={};Jv={removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."};var e3={};e3={removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."};var t3={};t3={removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"};var n3={};n3={removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."};var r3={};r3={removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."};var i3={};i3={removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."};var s3={};s3={removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."};var o3={};o3={removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."};var a3={};a3={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."};var l3={};l3={removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."};var u3={};u3={removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."};var c3={};c3={removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"};var d3={};d3={removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."};var f3={};f3={removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."};var p3={};p3={removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."};var h3={};h3={removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."};var m3={};m3={removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."};var g3={};g3={removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."};var v3={};v3={removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."};var y3={};y3={removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."};var w3={};w3={removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."};var b3={};b3={removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."};var x3={};x3={removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."};var S3={};S3={removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."};var C3={};C3={removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."};var E3={};E3={removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."};var $3={};$3={removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."};var P3={};P3={removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."};var k3={};k3={removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"};var T3={};T3={removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"};var D3={};D3={"ar-AE":Yv,"bg-BG":qv,"cs-CZ":Xv,"da-DK":Qv,"de-DE":Jv,"el-GR":e3,"en-US":t3,"es-ES":n3,"et-EE":r3,"fi-FI":i3,"fr-FR":s3,"he-IL":o3,"hr-HR":a3,"hu-HU":l3,"it-IT":u3,"ja-JP":c3,"ko-KR":d3,"lt-LT":f3,"lv-LV":p3,"nb-NO":h3,"nl-NL":m3,"pl-PL":g3,"pt-BR":v3,"pt-PT":y3,"ro-RO":w3,"ru-RU":b3,"sk-SK":x3,"sl-SI":S3,"sr-SP":C3,"sv-SE":E3,"tr-TR":$3,"uk-UA":P3,"zh-CN":k3,"zh-TW":T3};function TC(e){return e&&e.__esModule?e.default:e}function DC(e,t,n){let{item:r}=e,i=Vs(TC(D3),"@react-aria/tag"),s=Lt(),{onRemove:o}=Gv.get(t)||{},v=Wv({node:r},t,n),{rowProps:a,gridCellProps:l}=v,u=Y(v,["rowProps","gridCellProps"]);delete a.onKeyDownCapture;let E=u,{descriptionProps:c}=E,f=Y(E,["descriptionProps"]),p=P=>{(P.key==="Delete"||P.key==="Backspace")&&(P.preventDefault(),t.selectionManager.isSelected(r.key)?o==null||o(new Set(t.selectionManager.selectedKeys)):o==null||o(new Set([r.key])))},h=Gg();h==="virtual"&&typeof window!="undefined"&&"ontouchstart"in window&&(h="pointer");let y=o&&(h==="keyboard"||h==="virtual")?i.format("removeDescription"):"",b=Yd(y),C=r.key===t.selectionManager.focusedKey,g=qe(r.props),m=fg(r.props);return N(S({removeButtonProps:{"aria-label":i.format("removeButtonLabel"),"aria-labelledby":`${s} ${a.id}`,isDisabled:t.disabledKeys.has(r.key)||r.props.isDisabled,id:s,onPress:()=>o?o(new Set([r.key])):null,excludeFromTabOrder:!0},rowProps:te(a,g,m,{tabIndex:C||t.selectionManager.focusedKey==null?0:-1,onKeyDown:o?p:void 0,"aria-describedby":b["aria-describedby"]}),gridCellProps:te(l,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]})},f),{allowsRemoving:!!o})}const MC=d.createContext({}),LC=d.createContext(null),AC=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Df=d.createContext({});function _C(e,t){[e,t]=qn(e,t,Df),e=NC(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:s}=LS(e,t),{focusProps:o,isFocused:a,isFocusVisible:l}=gi(e),{hoverProps:u,isHovered:c}=Qa(N(S({},e),{isDisabled:e.isDisabled||r})),f={isHovered:c,isPressed:(n.isPressed||s)&&!r,isFocused:a,isFocusVisible:l,isDisabled:e.isDisabled||!1,isPending:r!=null?r:!1},p=pn(N(S({},e),{values:f,defaultClassName:"react-aria-Button"})),h=Lt(i.id),y=Lt(),b=i["aria-labelledby"];r&&(b?b=`${b} ${y}`:i["aria-label"]&&(b=`${h} ${y}`));let C=d.useRef(r);return d.useEffect(()=>{let g={"aria-labelledby":b||h};(!C.current&&a&&r||C.current&&a&&!r)&&yf(g,"assertive"),C.current=r},[r,a,b,h]),I.createElement("button",N(S(S(S({},qe(e,{propNames:AC})),te(i,o,u)),p),{id:h,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":r?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":f.isPressed||void 0,"data-hovered":c||void 0,"data-focused":a||void 0,"data-pending":r||void 0,"data-focus-visible":l||void 0}),I.createElement(LC.Provider,{value:{id:y}},p.children))}function NC(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const Si=Vb(_C),M3=d.createContext({});class L3{*[Symbol.iterator](){yield*$i(this.iterable)}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let a of o.childNodes)n(a)};for(let o of t)n(o);let r=null,i=0;for(let[o,a]of this.keyMap)r?(r.nextKey=o,a.prevKey=r.key):(this.firstKey=o,a.prevKey=void 0),a.type==="item"&&(a.index=i++),r=a,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class _t extends Set{constructor(t,n,r){super(t),t instanceof _t?(this.anchorKey=n!=null?n:t.anchorKey,this.currentKey=r!=null?r:t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function IC(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zC(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(()=>A3(e.selectedKeys),[e.selectedKeys]),p=d.useMemo(()=>A3(e.defaultSelectedKeys,new _t),[e.defaultSelectedKeys]),[h,y]=Xd(f,p,e.onSelectionChange),b=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(v){o.current=v,a(v)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(v,E="first"){l.current=v,u.current=E,c(v)},selectedKeys:h,setSelectedKeys(v){(r||!IC(v,h))&&y(v)},disabledKeys:b,disabledBehavior:s}}function A3(e,t){return e?e==="all"?"all":new _t(e):t}class jC{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&&Pf(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&&Pf(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 _t([t],t,t);else{let s=this.state.selectedKeys;var r;let o=(r=s.anchorKey)!==null&&r!==void 0?r:t;n=new _t(s,o,t);var i;for(let a of this.getKeyRange(o,(i=s.currentKey)!==null&&i!==void 0?i:t))n.delete(a);for(let a of this.getKeyRange(t,o))this.canSelectItem(a)&&n.add(a)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Pf(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],s=t;for(;s!=null;){let o=this.collection.getItem(s);if((o&&o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.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 _t(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 _t([t],t,t):new _t;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new _t;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!=null;){if(this.canSelectItem(r)){let i=this.collection.getItem(r);i.type==="item"&&t.push(r),i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n(mC(hC(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 _t)}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,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function _3(e){let{filter:t,layoutDelegate:n}=e,r=zC(e),i=d.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=d.useCallback(c=>t?new L3(t(c)):new L3(c),[t]),o=d.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=pC(e,s,o),l=d.useMemo(()=>new jC(a,r,{layoutDelegate:n}),[a,r,n]);const u=d.useRef(null);return d.useEffect(()=>{if(r.focusedKey!=null&&!a.getItem(r.focusedKey)&&u.current){const g=u.current.getItem(r.focusedKey),m=[...u.current.getKeys()].map(M=>{const x=u.current.getItem(M);return(x==null?void 0:x.type)==="item"?x:null}).filter(M=>M!==null),v=[...a.getKeys()].map(M=>{const x=a.getItem(M);return(x==null?void 0:x.type)==="item"?x:null}).filter(M=>M!==null);var c,f;const E=((c=m==null?void 0:m.length)!==null&&c!==void 0?c:0)-((f=v==null?void 0:v.length)!==null&&f!==void 0?f:0);var p,h,y;let P=Math.min(E>1?Math.max(((p=g==null?void 0:g.index)!==null&&p!==void 0?p:0)-E+1,0):(h=g==null?void 0:g.index)!==null&&h!==void 0?h:0,((y=v==null?void 0:v.length)!==null&&y!==void 0?y:0)-1),A=null,j=!1;for(;P>=0;){if(!l.isDisabled(v[P].key)){A=v[P];break}if(P((b=g==null?void 0:g.index)!==null&&b!==void 0?b:0)&&(P=(C=g==null?void 0:g.index)!==null&&C!==void 0?C:0),P--}}r.setFocusedKey(A?A.key:null)}u.current=a},[a,l,r,r.focusedKey]),{collection:a,disabledKeys:i,selectionManager:l}}function N3(e){let[t,n]=Xd(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 RC=d.createContext(null),BC=d.createContext(null);function FC(e,t){let x=e,{inputRef:n=null}=x,r=Y(x,["inputRef"]);[e,t]=qn(r,t,ig);let{validationBehavior:i}=Dg(RC)||{};var s,o;let a=(o=(s=e.validationBehavior)!==null&&s!==void 0?s:i)!==null&&o!==void 0?o:"native",l=d.useContext(BC),u=Zn(Kd(n,e.inputRef!==void 0?e.inputRef:null)),{labelProps:c,inputProps:f,isSelected:p,isDisabled:h,isReadOnly:y,isPressed:b,isInvalid:C}=l?US(N(S({},_g(e)),{value:e.value,children:typeof e.children=="function"?!0:e.children}),l,u):m4(N(S({},_g(e)),{children:typeof e.children=="function"?!0:e.children,validationBehavior:a}),g4(e),u),{isFocused:g,isFocusVisible:m,focusProps:v}=gi(),E=h||y,{hoverProps:P,isHovered:A}=Qa(N(S({},e),{isDisabled:E})),j=pn(N(S({},e),{defaultClassName:"react-aria-Checkbox",values:{isSelected:p,isIndeterminate:e.isIndeterminate||!1,isPressed:b,isHovered:A,isFocused:g,isFocusVisible:m,isDisabled:h,isReadOnly:y,isInvalid:C,isRequired:e.isRequired||!1}})),M=qe(e);return delete M.id,I.createElement("label",N(S({},te(M,c,P,j)),{ref:t,slot:e.slot||void 0,"data-selected":p||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":b||void 0,"data-hovered":A||void 0,"data-focused":g||void 0,"data-focus-visible":m||void 0,"data-disabled":h||void 0,"data-readonly":y||void 0,"data-invalid":C||void 0,"data-required":e.isRequired||void 0}),I.createElement(y4,{elementType:"span"},I.createElement("input",N(S({},te(f,v)),{ref:u}))),j.children)}const VC=d.forwardRef(FC),al=d.createContext({}),I3=d.createContext(null);function OC(e,t){let{render:n}=d.useContext(I3);return I.createElement(I.Fragment,null,n(e,t))}const KC=d.forwardRef(OC);function UC(e,t){var n;let r=e==null?void 0:e.renderDropIndicator,i=e==null||(n=e.isVirtualDragging)===null||n===void 0?void 0:n.call(e),s=d.useCallback(o=>{if(i||t!=null&&t.isDropTarget(o))return r?r(o):I.createElement(KC,{target:o})},[t==null?void 0:t.target,i,r]);return e!=null&&e.useDropIndicator?s:void 0}function HC(e,t,n){var r,i;let s=e.focusedKey,o=null;if(!(t==null||(r=t.isVirtualDragging)===null||r===void 0)&&r.call(t)&&(n==null||(i=n.target)===null||i===void 0?void 0:i.type)==="item"){o=n.target.key;var a;n.target.dropPosition==="after"&&(o=(a=n.collection.getKeyAfter(o))!==null&&a!==void 0?a:o)}return d.useMemo(()=>new Set([s,o].filter(l=>l!==null)),[s,o])}const kr=d.createContext(null),WC=d.createContext(null),z3=d.createContext(null),Us=d.createContext(null);function ZC(e){let t=N3(e),n=d.useRef(null),{triggerProps:r,overlayProps:i}=ZS({type:"dialog"},t,n);return r.id=Lt(),i["aria-labelledby"]=r.id,I.createElement(Er,{values:[[Us,t],[z3,i],[WC,{trigger:"DialogTrigger",triggerRef:n}]]},I.createElement(Kx,N(S({},r),{ref:n,isPressed:t.isOpen}),e.children))}function GC(e,t){let n=e["aria-labelledby"];[e,t]=qn(e,t,z3);let{dialogProps:r,titleProps:i}=yC(N(S({},e),{"aria-labelledby":n}),t),s=d.useContext(Us),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 I.createElement("section",N(S(S({},qe(e)),r),{ref:t,slot:e.slot||void 0,style:e.style,className:(a=e.className)!==null&&a!==void 0?a:"react-aria-Dialog"}),I.createElement(Er,{values:[[sg,{slots:{[Ns]:{},title:N(S({},i),{level:2})}}]]},o))}const YC=d.forwardRef(GC),qC=d.createContext(null);function XC(e,t){return[e,t]=qn(e,t,qC),I.createElement(Eg,{content:I.createElement(kg,e)},n=>I.createElement(QC,{props:e,collection:n,gridListRef:t}))}function QC({props:e,collection:t,gridListRef:n}){let{dragAndDropHooks:r,keyboardNavigationBehavior:i="arrow",layout:s="stack"}=e,{CollectionRoot:o,isVirtualized:a,layoutDelegate:l,dropTargetDelegate:u}=d.useContext(_s),c=_3(N(S({},e),{collection:t,children:void 0,layoutDelegate:l})),f=u4({usage:"search",sensitivity:"base"}),{disabledBehavior:p,disabledKeys:h}=c.selectionManager,{direction:y}=vi(),b=d.useMemo(()=>new sl({collection:t,collator:f,ref:n,disabledKeys:h,disabledBehavior:p,layoutDelegate:l,layout:s,direction:y}),[t,n,s,h,p,l,f,y]),{gridProps:C}=Uv(N(S({},e),{keyboardDelegate:b,keyboardNavigationBehavior:s==="grid"?"tab":i,isVirtualized:a}),c,n),g=c.selectionManager,m=!!(r!=null&&r.useDraggableCollectionState),v=!!(r!=null&&r.useDroppableCollectionState),E=d.useRef(m),P=d.useRef(v);d.useEffect(()=>{E.current!==m&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),P.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[m,v]);let A,j,M,x=!1,k=null,B=d.useRef(null);if(m&&r){A=r.useDraggableCollectionState({collection:t,selectionManager:g,preview:r.renderDragPreview?B:void 0}),r.useDraggableCollection({},A,n);let R=r.DragPreview;k=r.renderDragPreview?I.createElement(R,{ref:B},r.renderDragPreview):null}if(v&&r){j=r.useDroppableCollectionState({collection:t,selectionManager:g});let R=new sl({collection:t,disabledKeys:g.disabledKeys,disabledBehavior:g.disabledBehavior,ref:n}),O=r.dropTargetDelegate||u||new r.ListDropTargetDelegate(t,n,{layout:s,direction:y});M=r.useDroppableCollection({keyboardDelegate:R,dropTargetDelegate:O},j,n),x=j.isDropTarget({type:"root"})}let{focusProps:w,isFocused:_,isFocusVisible:T}=gi(),V={isDropTarget:x,isEmpty:c.collection.size===0,isFocused:_,isFocusVisible:T,layout:s,state:c},D=pn({className:e.className,style:e.style,defaultClassName:"react-aria-GridList",values:V}),L=null,z=null;if(c.collection.size===0&&e.renderEmptyState){let R=e.renderEmptyState(V);L=I.createElement("div",{role:"row",style:{display:"contents"}},I.createElement("div",{role:"gridcell",style:{display:"contents"}},R))}return I.createElement(Jg,null,I.createElement("div",N(S(S(S({},qe(e)),D),te(C,w,M==null?void 0:M.collectionProps,z)),{ref:n,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":x||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":_||void 0,"data-focus-visible":T||void 0,"data-layout":s}),I.createElement(Er,{values:[[kr,c],[al,{dragAndDropHooks:r,dragState:A,dropState:j}],[I3,{render:tE}]]},v&&I.createElement(iE,null),I.createElement(o,{collection:t,scrollRef:n,persistedKeys:HC(g,r,j),renderDropIndicator:UC(r,j)})),L,k))}const JC=d.forwardRef(XC),eE=$g("item",function(t,n,r){let i=d.useContext(kr),{dragAndDropHooks:s,dragState:o,dropState:a}=d.useContext(al),l=Zn(n),{isVirtualized:u}=d.useContext(_s),B=Wv({node:r,shouldSelectOnPressUp:!!o,isVirtualized:u},i,l),{rowProps:c,gridCellProps:f,descriptionProps:p}=B,h=Y(B,["rowProps","gridCellProps","descriptionProps"]),{hoverProps:y,isHovered:b}=Qa({isDisabled:!h.allowsSelection&&!h.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{isFocusVisible:C,focusProps:g}=gi(),{checkboxProps:m}=PC({key:r.key},i),v=i.selectionManager.disabledBehavior==="all"&&h.isDisabled?{isDisabled:!0}:{},E=null;o&&s&&(E=s.useDraggableItem({key:r.key,hasDragButton:!0},o));let P=null,A=d.useRef(null),{visuallyHiddenProps:j}=rl();a&&s&&(P=s.useDropIndicator({target:{type:"item",key:r.key,dropPosition:"on"}},a,A));let M=o&&o.isDragging(r.key),x=pn(N(S({},t),{id:void 0,children:r.rendered,defaultClassName:"react-aria-GridListItem",values:N(S({},h),{isHovered:b,isFocusVisible:C,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!o,isDragging:M,isDropTarget:P==null?void 0:P.isDropTarget})})),k=d.useRef(null);return d.useEffect(()=>{o&&!k.current&&console.warn('Draggable items in a GridList must contain a