diff --git a/assets/index-Cr56tIMg.css b/assets/index-B1MJe9wZ.css similarity index 100% rename from assets/index-Cr56tIMg.css rename to assets/index-B1MJe9wZ.css diff --git a/assets/index-CtTqF0HI.js b/assets/index-CtTqF0HI.js deleted file mode 100644 index 4466ed1..0000000 --- a/assets/index-CtTqF0HI.js +++ /dev/null @@ -1,350 +0,0 @@ -function Iw(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sv={exports:{}},Dl={},xv={exports:{}},N={};/** - * @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 Ss=Symbol.for("react.element"),Fw=Symbol.for("react.portal"),jw=Symbol.for("react.fragment"),Lw=Symbol.for("react.strict_mode"),Bw=Symbol.for("react.profiler"),Vw=Symbol.for("react.provider"),Ow=Symbol.for("react.context"),Nw=Symbol.for("react.forward_ref"),Ww=Symbol.for("react.suspense"),Uw=Symbol.for("react.memo"),Hw=Symbol.for("react.lazy"),jp=Symbol.iterator;function Kw(e){return e===null||typeof e!="object"?null:(e=jp&&e[jp]||e["@@iterator"],typeof e=="function"?e:null)}var wv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kv=Object.assign,Cv={};function No(e,t,n){this.props=e,this.context=t,this.refs=Cv,this.updater=n||wv}No.prototype.isReactComponent={};No.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")};No.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _v(){}_v.prototype=No.prototype;function vf(e,t,n){this.props=e,this.context=t,this.refs=Cv,this.updater=n||wv}var yf=vf.prototype=new _v;yf.constructor=vf;kv(yf,No.prototype);yf.isPureReactComponent=!0;var Lp=Array.isArray,Tv=Object.prototype.hasOwnProperty,bf={current:null},Pv={key:!0,ref:!0,__self:!0,__source:!0};function Ev(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Tv.call(t,r)&&!Pv.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,we=M[he];if(0>>1;heo(Yo,O))uto(fr,Yo)?(M[he]=fr,M[ut]=O,he=ut):(M[he]=Yo,M[Wt]=O,he=Wt);else if(uto(fr,O))M[he]=fr,M[ut]=O,he=ut;else break e}}return V}function o(M,V){var O=M.sortIndex-V.sortIndex;return O!==0?O:M.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,p=3,v=!1,b=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(M){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=M)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(M){if(y=!1,m(M),!b)if(n(l)!==null)b=!0,Xe(C);else{var V=n(u);V!==null&&ln(x,V.startTime-M)}}function C(M,V){b=!1,y&&(y=!1,f(P),P=-1),v=!0;var O=p;try{for(m(V),d=n(l);d!==null&&(!(d.expirationTime>V)||M&&!ne());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var we=he(d.expirationTime<=V);V=e.unstable_now(),typeof we=="function"?d.callback=we:d===n(l)&&r(l),m(V)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var Wt=n(u);Wt!==null&&ln(x,Wt.startTime-V),Z=!1}return Z}finally{d=null,p=O,v=!1}}var A=!1,$=null,P=-1,D=5,z=-1;function ne(){return!(e.unstable_now()-zM||125he?(M.sortIndex=O,t(u,M),n(l)===null&&M===n(u)&&(y?(f(P),P=-1):y=!0,ln(x,O-he))):(M.sortIndex=we,t(l,M),b||v||(b=!0,Xe(C))),M},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(M){var V=p;return function(){var O=p;p=V;try{return M.apply(this,arguments)}finally{p=O}}}})(Mv);zv.exports=Mv;var rk=zv.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 ok=_,gt=rk;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=Object.prototype.hasOwnProperty,ik=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Op={},Np={};function sk(e){return Hc.call(Np,e)?!0:Hc.call(Op,e)?!1:ik.test(e)?Np[e]=!0:(Op[e]=!0,!1)}function ak(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lk(e,t,n,r){if(t===null||typeof t>"u"||ak(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new tt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new tt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new tt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new tt(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){Le[e]=new tt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new tt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new tt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new tt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new tt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xf=/[\-:]([a-z])/g;function wf(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(xf,wf);Le[t]=new tt(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(xf,wf);Le[t]=new tt(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(xf,wf);Le[t]=new tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new tt(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new tt(e,1,!1,e.toLowerCase(),null,!0,!0)});function kf(e,t,n,r){var o=Le.hasOwnProperty(t)?Le[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Bu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hi(e):""}function uk(e){switch(e.tag){case 5:return hi(e.type);case 16:return hi("Lazy");case 13:return hi("Suspense");case 19:return hi("SuspenseList");case 0:case 2:case 15:return e=Vu(e.type,!1),e;case 11:return e=Vu(e.type.render,!1),e;case 1:return e=Vu(e.type,!0),e;default:return""}}function Xc(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 Xr:return"Fragment";case Yr:return"Portal";case Kc:return"Profiler";case Cf:return"StrictMode";case Gc:return"Suspense";case Yc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fv:return(e.displayName||"Context")+".Consumer";case Iv:return(e._context.displayName||"Context")+".Provider";case _f:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tf:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function ck(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 Xc(t);case 8:return t===Cf?"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 tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dk(e){var t=Lv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){e._valueTracker||(e._valueTracker=dk(e))}function Bv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Up(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tr(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 Vv(e,t){t=t.checked,t!=null&&kf(e,"checked",t,!1)}function Qc(e,t){Vv(e,t);var n=tr(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")?Zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,tr(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 Zc(e,t,n){(t!=="number"||Xa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pi=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ci={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},fk=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){fk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function Uv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function Hv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Uv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var hk=ve({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 td(e,t){if(t){if(hk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function nd(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 rd=null;function Pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var od=null,bo=null,So=null;function Yp(e){if(e=ks(e)){if(typeof od!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Bl(t),od(e.stateNode,e.type,t))}}function Kv(e){bo?So?So.push(e):So=[e]:bo=e}function Gv(){if(bo){var e=bo,t=So;if(So=bo=null,Yp(e),t)for(e=0;e>>=0,e===0?32:31-(Ck(e)/_k|0)|0}var Hs=64,Ks=4194304;function mi(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 Ja(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=mi(a):(i&=s,i!==0&&(r=mi(i)))}else s=n&~o,s!==0?r=mi(s):i!==0&&(r=mi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function xs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function $k(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=Ti),rm=" ",om=!1;function hy(e,t){switch(e){case"keyup":return rC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function py(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qr=!1;function iC(e,t){switch(e){case"compositionend":return py(t);case"keypress":return t.which!==32?null:(om=!0,rm);case"textInput":return e=t.data,e===rm&&om?null:e;default:return null}}function sC(e,t){if(qr)return e==="compositionend"||!If&&hy(e,t)?(e=dy(),wa=zf=Hn=null,qr=!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=lm(n)}}function yy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function by(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xa(e.document)}return t}function Ff(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 mC(e){var t=by(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yy(n.ownerDocument.documentElement,n)){if(r!==null&&Ff(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=um(n,i);var s=um(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,Qr=null,cd=null,Ei=null,dd=!1;function cm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dd||Qr==null||Qr!==Xa(r)||(r=Qr,"selectionStart"in r&&Ff(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}),Ei&&Qi(Ei,r)||(Ei=r,r=nl(cd,"onSelect"),0eo||(e.current=vd[eo],vd[eo]=null,eo--)}function oe(e,t){eo++,vd[eo]=e.current,e.current=t}var nr={},Ke=sr(nr),it=sr(!1),Ir=nr;function Ao(e,t){var n=e.type.contextTypes;if(!n)return nr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function st(e){return e=e.childContextTypes,e!=null}function ol(){le(it),le(Ke)}function vm(e,t,n){if(Ke.current!==nr)throw Error(R(168));oe(Ke,t),oe(it,n)}function Ey(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,ck(e)||"Unknown",o));return ve({},n,r)}function il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Ir=Ke.current,oe(Ke,e),oe(it,it.current),!0}function ym(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Ey(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,le(it),le(Ke),oe(Ke,e)):le(it),oe(it,n)}var fn=null,Vl=!1,ec=!1;function $y(e){fn===null?fn=[e]:fn.push(e)}function PC(e){Vl=!0,$y(e)}function ar(){if(!ec&&fn!==null){ec=!0;var e=0,t=ee;try{var n=fn;for(ee=1;e>=s,o-=s,mn=1<<32-Bt(t)+o|n<P?(D=$,$=null):D=$.sibling;var z=p(f,$,m[P],x);if(z===null){$===null&&($=D);break}e&&$&&z.alternate===null&&t(f,$),h=i(z,h,P),A===null?C=z:A.sibling=z,A=z,$=D}if(P===m.length)return n(f,$),fe&&yr(f,P),C;if($===null){for(;PP?(D=$,$=null):D=$.sibling;var ne=p(f,$,z.value,x);if(ne===null){$===null&&($=D);break}e&&$&&ne.alternate===null&&t(f,$),h=i(ne,h,P),A===null?C=ne:A.sibling=ne,A=ne,$=D}if(z.done)return n(f,$),fe&&yr(f,P),C;if($===null){for(;!z.done;P++,z=m.next())z=d(f,z.value,x),z!==null&&(h=i(z,h,P),A===null?C=z:A.sibling=z,A=z);return fe&&yr(f,P),C}for($=r(f,$);!z.done;P++,z=m.next())z=v($,f,P,z.value,x),z!==null&&(e&&z.alternate!==null&&$.delete(z.key===null?P:z.key),h=i(z,h,P),A===null?C=z:A.sibling=z,A=z);return e&&$.forEach(function(Ye){return t(f,Ye)}),fe&&yr(f,P),C}function S(f,h,m,x){if(typeof m=="object"&&m!==null&&m.type===Xr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ns:e:{for(var C=m.key,A=h;A!==null;){if(A.key===C){if(C=m.type,C===Xr){if(A.tag===7){n(f,A.sibling),h=o(A,m.props.children),h.return=f,f=h;break e}}else if(A.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Vn&&xm(C)===A.type){n(f,A.sibling),h=o(A,m.props),h.ref=oi(f,A,m),h.return=f,f=h;break e}n(f,A);break}else t(f,A);A=A.sibling}m.type===Xr?(h=Ar(m.props.children,f.mode,x,m.key),h.return=f,f=h):(x=Aa(m.type,m.key,m.props,null,f.mode,x),x.ref=oi(f,h,m),x.return=f,f=x)}return s(f);case Yr:e:{for(A=m.key;h!==null;){if(h.key===A)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(f,h.sibling),h=o(h,m.children||[]),h.return=f,f=h;break e}else{n(f,h);break}else t(f,h);h=h.sibling}h=lc(m,f.mode,x),h.return=f,f=h}return s(f);case Vn:return A=m._init,S(f,h,A(m._payload),x)}if(pi(m))return b(f,h,m,x);if(Jo(m))return y(f,h,m,x);Js(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(f,h.sibling),h=o(h,m),h.return=f,f=h):(n(f,h),h=ac(m,f.mode,x),h.return=f,f=h),s(f)):n(f,h)}return S}var zo=My(!0),Dy=My(!1),ll=sr(null),ul=null,ro=null,Vf=null;function Of(){Vf=ro=ul=null}function Nf(e){var t=ll.current;le(ll),e._currentValue=t}function Sd(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 wo(e,t){ul=e,Vf=ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(Vf!==e)if(e={context:e,memoizedValue:t,next:null},ro===null){if(ul===null)throw Error(R(308));ro=e,ul.dependencies={lanes:0,firstContext:e}}else ro=ro.next=e;return t}var _r=null;function Wf(e){_r===null?_r=[e]:_r.push(e)}function Iy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Wf(t)):(n.next=o.next,o.next=n),t.interleaved=n,En(e,r)}function En(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 On=!1;function Uf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fy(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 bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,En(e,n)}return o=r.interleaved,o===null?(t.next=t,Wf(r)):(t.next=o.next,o.next=t),r.interleaved=t,En(e,n)}function Ca(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,$f(e,n)}}function wm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 cl(e,t,n,r){var o=e.updateQueue;On=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var p=a.lane,v=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,y=a;switch(p=t,v=n,y.tag){case 1:if(b=y.payload,typeof b=="function"){d=b.call(v,d,p);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=y.payload,p=typeof b=="function"?b.call(v,d,p):b,p==null)break e;d=ve({},d,p);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=s,e.lanes=s,e.memoizedState=d}}function km(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=nc.transition;nc.transition={};try{e(!1),t()}finally{ee=n,nc.transition=r}}function Jy(){return At().memoizedState}function RC(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},e1(e))t1(t,n);else if(n=Iy(e,t,n,r),n!==null){var o=Ze();Vt(n,e,r,o),n1(n,t,r)}}function zC(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(e1(e))t1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Nt(a,s)){var l=t.interleaved;l===null?(o.next=o,Wf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Iy(e,t,o,r),n!==null&&(o=Ze(),Vt(n,e,r,o),n1(n,t,r))}}function e1(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function t1(e,t){$i=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function n1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$f(e,n)}}var hl={readContext:$t,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},MC={readContext:$t,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:_m,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ta(4194308,4,Yy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ta(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ta(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();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=RC.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Cm,useDebugValue:Zf,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Cm(!1),t=e[0];return e=AC.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=Kt();if(fe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ae===null)throw Error(R(349));jr&30||Vy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,_m(Ny.bind(null,r,i,e),[e]),r.flags|=2048,is(9,Oy.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ae.identifierPrefix;if(fe){var n=gn,r=mn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qt]=t,e[es]=r,f1(e,t,!1,!1),t.stateNode=e;e:{switch(s=nd(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oIo&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!fe)return Ve(t),null}else 2*Se()-i.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Se(),t.sibling=null,n=pe.current,oe(pe,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return oh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function OC(e,t){switch(Lf(t),t.tag){case 1:return st(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),le(it),le(Ke),Gf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kf(t),null;case 13:if(le(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(pe),null;case 4:return Mo(),null;case 10:return Nf(t.type._context),null;case 22:case 23:return oh(),null;case 24:return null;default:return null}}var ta=!1,We=!1,NC=typeof WeakSet=="function"?WeakSet:Set,I=null;function oo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function $d(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Fm=!1;function WC(e,t){if(fd=el,e=by(),Ff(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===o&&(a=s),p===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},el=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,S=b.memoizedState,f=t.stateNode,h=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Dt(t.type,y),S);f.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){ye(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return b=Fm,Fm=!1,b}function Ai(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&$d(t,n,i)}o=o.next}while(o!==r)}}function Wl(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 Ad(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 m1(e){var t=e.alternate;t!==null&&(e.alternate=null,m1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[es],delete t[gd],delete t[_C],delete t[TC])),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 g1(e){return e.tag===5||e.tag===3||e.tag===4}function jm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g1(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 Rd(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=rl));else if(r!==4&&(e=e.child,e!==null))for(Rd(e,t,n),e=e.sibling;e!==null;)Rd(e,t,n),e=e.sibling}function zd(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(zd(e,t,n),e=e.sibling;e!==null;)zd(e,t,n),e=e.sibling}var De=null,It=!1;function In(e,t,n){for(n=n.child;n!==null;)v1(e,t,n),n=n.sibling}function v1(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:We||oo(n,t);case 6:var r=De,o=It;De=null,In(e,t,n),De=r,It=o,De!==null&&(It?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(It?(e=De,n=n.stateNode,e.nodeType===8?Ju(e.parentNode,n):e.nodeType===1&&Ju(e,n),Xi(e)):Ju(De,n.stateNode));break;case 4:r=De,o=It,De=n.stateNode.containerInfo,It=!0,In(e,t,n),De=r,It=o;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&$d(n,t,s),o=o.next}while(o!==r)}In(e,t,n);break;case 1:if(!We&&(oo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,t,a)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,In(e,t,n),We=r):In(e,t,n);break;default:In(e,t,n)}}function Lm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new NC),t.forEach(function(r){var o=ZC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*HC(r/1960))-r,10e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,gl=0,H&6)throw Error(R(331));var o=H;for(H|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lSe()-nh?$r(e,0):th|=n),at(e,t)}function _1(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=Ze();e=En(e,t),e!==null&&(xs(e,t,n),at(e,n))}function QC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_1(e,n)}function ZC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),_1(e,n)}var T1;T1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,BC(e,t,n);ot=!!(e.flags&131072)}else ot=!1,fe&&t.flags&1048576&&Ay(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pa(e,t),e=t.pendingProps;var o=Ao(t,Ke.current);wo(t,n),o=Xf(null,t,r,e,o,n);var i=qf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(r)?(i=!0,il(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Uf(t),o.updater=Nl,t.stateNode=o,o._reactInternals=t,wd(t,r,e,n),t=_d(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&jf(t),qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=e_(r),e=Dt(r,e),o){case 0:t=Cd(null,t,r,e,n);break e;case 1:t=Mm(null,t,r,e,n);break e;case 11:t=Rm(null,t,r,e,n);break e;case 14:t=zm(null,t,r,Dt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Cd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Mm(e,t,r,o,n);case 3:e:{if(u1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Fy(e,t),cl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Do(Error(R(423)),t),t=Dm(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(R(424)),t),t=Dm(e,t,r,n,o);break e}else for(ft=qn(t.stateNode.containerInfo.firstChild),ht=t,fe=!0,Ft=null,n=Dy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ro(),r===o){t=$n(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return jy(t),e===null&&bd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pd(r,o)?s=null:i!==null&&pd(r,i)&&(t.flags|=32),l1(e,t),qe(e,t,s,n),t.child;case 6:return e===null&&bd(t),null;case 13:return c1(e,t,n);case 4:return Hf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zo(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Rm(e,t,r,o,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,oe(ll,r._currentValue),r._currentValue=s,i!==null)if(Nt(i.value,s)){if(i.children===o.children&&!it.current){t=$n(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=bn(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Sd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Sd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wo(t,n),o=$t(o),r=r(o),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,o=Dt(r,t.pendingProps),o=Dt(r.type,o),zm(e,t,r,o,n);case 15:return s1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Pa(e,t),t.tag=1,st(r)?(e=!0,il(t)):e=!1,wo(t,n),r1(t,r,o),wd(t,r,o,n),_d(null,t,r,!0,e,n);case 19:return d1(e,t,n);case 22:return a1(e,t,n)}throw Error(R(156,t.tag))};function P1(e,t){return ey(e,t)}function JC(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 Pt(e,t,n,r){return new JC(e,t,n,r)}function sh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function e_(e){if(typeof e=="function")return sh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_f)return 11;if(e===Tf)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=Pt(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 Aa(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")sh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xr:return Ar(n.children,o,i,t);case Cf:s=8,o|=8;break;case Kc:return e=Pt(12,n,t,o|2),e.elementType=Kc,e.lanes=i,e;case Gc:return e=Pt(13,n,t,o),e.elementType=Gc,e.lanes=i,e;case Yc:return e=Pt(19,n,t,o),e.elementType=Yc,e.lanes=i,e;case jv:return Hl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iv:s=10;break e;case Fv:s=9;break e;case _f:s=11;break e;case Tf:s=14;break e;case Vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Pt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ar(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=jv,e.lanes=n,e.stateNode={isHidden:!1},e}function ac(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function lc(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function t_(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nu(0),this.expirationTimes=Nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ah(e,t,n,r,o,i,s,a,l){return e=new t_(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uf(i),e}function n_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R1)}catch(e){console.error(e)}}R1(),Rv.exports=yt;var dh=Rv.exports,z1,Km=dh;z1=Km.createRoot,Km.hydrateRoot;const jt={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let a_=0;function ql(e,t){const n=`atom${++a_}`,r={toString(){return(jt?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=l_,r.write=u_),t&&(r.write=t),r}function l_(e){return e(this)}function u_(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const Gm=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,uc=e=>"init"in e,cc=e=>!!e.write,Mi=Symbol((jt?"production":void 0)!=="production"?"CONTINUE_PROMISE":""),fh="pending",c_="fulfilled",d_="rejected",f_=e=>typeof e=="object"&&e!==null&&Mi in e,oa=new WeakMap,h_=(e,t,n)=>{if(!oa.has(e)){let r;const o=new Promise((i,s)=>{let a=e;const l=c=>d=>{a===c&&(o.status=c_,o.value=d,i(d),n())},u=c=>d=>{a===c&&(o.status=d_,o.reason=d,s(d),n())};e.then(l(e),u(e)),r=(c,d)=>{c&&(oa.set(c,o),a=c,c.then(l(c),u(c)),t(),t=d)}});o.status=fh,o[Mi]=r,oa.set(e,o)}return oa.get(e)},p_=e=>typeof(e==null?void 0:e.then)=="function",Ym=e=>"v"in e||"e"in e,ia=e=>{if("e"in e)throw e.e;if((jt?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},Ra=e=>{const t=e.v;return f_(t)&&t.status===fh?t:null},M1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},Xm=(e,t,n,r,o)=>{var i;if((jt?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n);const s=Ra(n);s&&M1(t,s,o),(i=o.m)==null||i.t.add(t),e&&m_(e,r,t)},Kr=()=>[new Map,new Map,new Set],dc=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},m_=(e,t,n)=>{const r=e[0].get(t);r&&r.add(n)},g_=(e,t)=>e[0].get(t),qm=(e,t)=>{e[2].add(t)},gr=e=>{for(;e[1].size||e[2].size;){e[0].clear();const t=new Set(e[1].values());e[1].clear();const n=new Set(e[2]);e[2].clear(),t.forEach(r=>{var o;return(o=r.m)==null?void 0:o.l.forEach(i=>i())}),n.forEach(r=>r())}},D1=e=>{let t;(jt?"production":void 0)!=="production"&&(t=new Set);const n=(y,S,f,h=()=>{},m=()=>{})=>{const x="v"in S,C=S.v,A=Ra(S);if(p_(f))if(A)A!==f&&(A[Mi](f,h),++S.n);else{const $=h_(f,h,m);if($.status===fh)for(const P of S.d.keys())M1(y,$,e(P,S));S.v=$,delete S.e}else A&&A[Mi](Promise.resolve(f),h),S.v=f,delete S.e;(!x||!Object.is(C,S.v))&&++S.n},r=(y,S,f,h)=>{if(!(h!=null&&h(S))&&Ym(f)&&(f.m||Array.from(f.d).every(([P,D])=>r(y,P,e(P,f),h).n===D)))return f;f.d.clear();let m=!0;const x=P=>{if(Gm(S,P)){const z=e(P,f);if(!Ym(z))if(uc(P))n(P,z,P.init);else throw new Error("no atom init");return ia(z)}const D=r(y,P,e(P,f),h);if(m)Xm(y,S,f,P,D);else{const z=Kr();Xm(z,S,f,P,D),u(z,S,f),gr(z)}return ia(D)};let C,A;const $={get signal(){return C||(C=new AbortController),C.signal},get setSelf(){return(jt?"production":void 0)!=="production"&&!cc(S)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&cc(S)&&(A=(...P)=>{if((jt?"production":void 0)!=="production"&&m&&console.warn("setSelf function cannot be called in sync"),!m)return l(S,...P)}),A}};try{const P=S.read(x,$);return n(S,f,P,()=>C==null?void 0:C.abort(),()=>{if(f.m){const D=Kr();u(D,S,f),gr(D)}}),f}catch(P){return delete f.v,f.e=P,++f.n,f}finally{m=!1}},o=y=>ia(r(void 0,y,e(y))),i=(y,S,f)=>{var h,m;const x=new Map;for(const C of((h=f.m)==null?void 0:h.t)||[])x.set(C,e(C,f));for(const C of f.p)x.set(C,e(C,f));return(m=g_(y,S))==null||m.forEach(C=>{x.set(C,e(C,f))}),x},s=(y,S,f)=>{const h=[],m=new Set,x=($,P)=>{if(!m.has($)){m.add($);for(const[D,z]of i(y,$,P))$!==D&&x(D,z);h.push([$,P,P.n])}};x(S,f);const C=new Set([S]),A=$=>m.has($);for(let $=h.length-1;$>=0;--$){const[P,D,z]=h[$];let ne=!1;for(const Ye of D.d.keys())if(Ye!==P&&C.has(Ye)){ne=!0;break}ne&&(r(y,P,D,A),u(y,P,D),z!==D.n&&(dc(y,P,D),C.add(P))),m.delete(P)}},a=(y,S,f,...h)=>{const m=A=>ia(r(y,A,e(A,f))),x=(A,...$)=>{const P=e(A,f);let D;if(Gm(S,A)){if(!uc(A))throw new Error("atom not writable");const z="v"in P,ne=P.v,Ye=$[0];n(A,P,Ye),u(y,A,P),(!z||!Object.is(ne,P.v))&&(dc(y,A,P),s(y,A,P))}else D=a(y,A,P,...$);return gr(y),D};return S.write(m,x,...h)},l=(y,...S)=>{const f=Kr(),h=a(f,y,e(y),...S);return gr(f),h},u=(y,S,f)=>{if(f.m&&!Ra(f)){for(const h of f.d.keys())f.m.d.has(h)||(c(y,h,e(h,f)).t.add(S),f.m.d.add(h));for(const h of f.m.d||[])if(!f.d.has(h)){f.m.d.delete(h);const m=d(y,h,e(h,f));m==null||m.t.delete(S)}}},c=(y,S,f)=>{if(!f.m){r(y,S,f);for(const h of f.d.keys())c(y,h,e(h,f)).t.add(S);if(f.m={l:new Set,d:new Set(f.d.keys()),t:new Set},(jt?"production":void 0)!=="production"&&t.add(S),cc(S)&&S.onMount){const h=f.m,{onMount:m}=S;qm(y,()=>{const x=m((...C)=>a(y,S,f,...C));x&&(h.u=x)})}}return f.m},d=(y,S,f)=>{if(f.m&&!f.m.l.size&&!Array.from(f.m.t).some(h=>{var m;return(m=e(h,f).m)==null?void 0:m.d.has(S)})){const h=f.m.u;h&&qm(y,h),delete f.m,(jt?"production":void 0)!=="production"&&t.delete(S);for(const x of f.d.keys()){const C=d(y,x,e(x,f));C==null||C.t.delete(S)}const m=Ra(f);m&&m[Mi](void 0,()=>{});return}return f.m},b={get:o,set:l,sub:(y,S)=>{const f=Kr(),h=e(y),m=c(f,y,h);gr(f);const x=m.l;return x.add(S),()=>{x.delete(S);const C=Kr();d(C,y,h),gr(C)}},unstable_derive:y=>D1(...y(e))};return(jt?"production":void 0)!=="production"&&Object.assign(b,{dev4_get_internal_weak_map:()=>({get:S=>{const f=e(S);if(f.n!==0)return f}}),dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:S=>{const f=Kr();for(const[h,m]of S)if(uc(h)){const x=e(h),C="v"in x,A=x.v;n(h,x,m),u(f,h,x),(!C||!Object.is(A,x.v))&&(dc(f,h,x),s(f,h,x))}gr(f)}}),b},v_=()=>{const e=new WeakMap;return D1(n=>{let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r})};let ai;const y_=()=>(ai||(ai=v_(),(jt?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ai),globalThis.__JOTAI_DEFAULT_STORE__!==ai&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ai),b_={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},S_=_.createContext(void 0),I1=e=>_.useContext(S_)||y_(),x_=e=>typeof(e==null?void 0:e.then)=="function",w_=Ya.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function k_(e,t){const n=I1(),[[r,o,i],s]=_.useReducer(u=>{const c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]);let a=r;return(o!==n||i!==e)&&(s(),a=n.get(e)),_.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),_.useDebugValue(a),x_(a)?w_(a):a}function jd(e,t){const n=I1();return _.useCallback((...o)=>{if((b_?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Ld(e,t){return[k_(e),jd(e)]}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull,__=!1;function T_(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(Ho,--lt):0,Fo--,ke===10&&(Fo=1,Zl--),ke}function pt(){return ke=lt2||ls(ke)>3?"":" "}function B_(e,t){for(;--t&&pt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return _s(e,za()+(t<6&&rn()==32&&pt()==32))}function Vd(e){for(;pt();)switch(ke){case e:return lt;case 34:case 39:e!==34&&e!==39&&Vd(ke);break;case 40:e===41&&Vd(e);break;case 92:pt();break}return lt}function V_(e,t){for(;pt()&&e+ke!==57;)if(e+ke===84&&rn()===47)break;return"/*"+_s(t,lt-1)+"*"+Ql(e===47?e:pt())}function O_(e){for(;!ls(rn());)pt();return _s(e,lt)}function N_(e){return O1(Da("",null,null,null,[""],e=V1(e),0,[0],e))}function Da(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,p=0,v=0,b=0,y=1,S=1,f=1,h=0,m="",x=o,C=i,A=r,$=m;S;)switch(b=h,h=pt()){case 40:if(b!=108&&Fe($,d-1)==58){Bd($+=X(Ma(h),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:$+=Ma(h);break;case 9:case 10:case 13:case 32:$+=L_(b);break;case 92:$+=B_(za()-1,7);continue;case 47:switch(rn()){case 42:case 47:sa(W_(V_(pt(),za()),t,n),l);break;default:$+="/"}break;case 123*y:a[u++]=Xt($)*f;case 125*y:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:f==-1&&($=X($,/\f/g,"")),v>0&&Xt($)-d&&sa(v>32?Zm($+";",r,n,d-1):Zm(X($," ","")+";",r,n,d-2),l);break;case 59:$+=";";default:if(sa(A=Qm($,t,n,u,c,o,a,m,x=[],C=[],d),i),h===123)if(c===0)Da($,t,A,A,x,i,d,a,C);else switch(p===99&&Fe($,3)===110?100:p){case 100:case 108:case 109:case 115:Da(e,A,A,r&&sa(Qm(e,A,A,0,0,o,a,m,o,x=[],d),C),o,C,d,a,r?x:C);break;default:Da($,A,A,A,[""],C,0,a,C)}}u=c=v=0,y=f=1,m=$="",d=s;break;case 58:d=1+Xt($),v=b;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&j_()==125)continue}switch($+=Ql(h),h*y){case 38:f=c>0?1:($+="\f",-1);break;case 44:a[u++]=(Xt($)-1)*f,f=1;break;case 64:rn()===45&&($+=Ma(pt())),p=rn(),c=d=Xt(m=$+=O_(za())),h++;break;case 45:b===45&&Xt($)==2&&(y=0)}}return i}function Qm(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,p=o===0?i:[""],v=mh(p),b=0,y=0,S=0;b0?p[f]+" "+h:X(h,/&\f/g,p[f])))&&(l[S++]=m);return Jl(e,t,n,o===0?hh:a,l,u,c)}function W_(e,t,n){return Jl(e,t,n,F1,Ql(F_()),as(e,2,-2),0)}function Zm(e,t,n,r){return Jl(e,t,n,ph,as(e,0,r),as(e,r+1,-1),r)}function Co(e,t){for(var n="",r=mh(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Sl+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bd(e,"stretch")?W1(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Xt(e)-3-(~Bd(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Fe(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+Oe+e+e}return e}var Z_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ph:t.return=W1(t.value,t.length);break;case j1:return Co([li(t,{value:X(t.value,"@","@"+Y)})],o);case hh:if(t.length)return I_(t.props,function(i){switch(D_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Co([li(t,{props:[X(i,/:(read-\w+)/,":"+Sl+"$1")]})],o);case"::placeholder":return Co([li(t,{props:[X(i,/:(plac\w+)/,":"+Y+"input-$1")]}),li(t,{props:[X(i,/:(plac\w+)/,":"+Sl+"$1")]}),li(t,{props:[X(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},J_=[Z_],e2=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||J_,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),f=1;f=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var f2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},h2=!1,p2=/[A-Z]|^ms/g,m2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,q1=function(t){return t.charCodeAt(1)===45},t0=function(t){return t!=null&&typeof t!="boolean"},fc=N1(function(e){return q1(e)?e:e.replace(p2,"-$&").toLowerCase()}),n0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(m2,function(r,o,i){return qt={name:o,styles:i,next:qt},o})}return f2[t]!==1&&!q1(t)&&typeof n=="number"&&n!==0?n+"px":n},g2="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function us(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return qt={name:o.name,styles:o.styles,next:qt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)qt={name:s.name,styles:s.styles,next:qt},s=s.next;var a=i.styles+";";return a}return v2(e,t,n)}case"function":{if(e!==void 0){var l=qt,u=n(e);return qt=l,us(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function v2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;oT.jsx(cu,{styles:tb}),T2=({scope:e=""})=>T.jsx(cu,{styles:eb` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${tb} - `});function P2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function lr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=_.createContext(s);a.displayName=t;function l(){var u;const c=_.useContext(a);if(!c&&n){const d=new Error(i??P2(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[E2,$2]=lr({strict:!1,name:"PortalManagerContext"});function nb(e){const{children:t,zIndex:n}=e;return T.jsx(E2,{value:{zIndex:n},children:t})}nb.displayName="PortalManager";var xl=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,[rb,A2]=lr({strict:!1,name:"PortalContext"}),Sh="chakra-portal",R2=".chakra-portal",z2=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),M2=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.useState(null),i=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const a=A2(),l=$2();xl(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=Sh,d.appendChild(i.current),s({});const p=i.current;return()=>{d.contains(p)&&d.removeChild(p)}},[r]);const u=l!=null&&l.zIndex?T.jsx(z2,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?dh.createPortal(T.jsx(rb,{value:i.current,children:u}),i.current):T.jsx("span",{ref:c=>{c&&o(c)}})},D2=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Sh),l},[o]),[,a]=_.useState({});return xl(()=>a({}),[]),xl(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?dh.createPortal(T.jsx(rb,{value:r?s:null,children:t}),s):null};function du(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?T.jsx(D2,{containerRef:n,...r}):T.jsx(M2,{...r})}du.className=Sh;du.selector=R2;du.displayName="Portal";function I2(){const e=_.useContext(cs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var xh=_.createContext({});xh.displayName="ColorModeContext";function fu(){const e=_.useContext(xh);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var aa={light:"chakra-ui-light",dark:"chakra-ui-dark"};function F2(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?aa.dark:aa.light),document.body.classList.remove(r?aa.light:aa.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var j2="chakra-ui-color-mode";function L2(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var B2=L2(j2),i0=()=>{};function s0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function ob(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=B2}=e,a=o==="dark"?"dark":"light",[l,u]=_.useState(()=>s0(s,a)),[c,d]=_.useState(()=>s0(s)),{getSystemTheme:p,setClassName:v,setDataset:b,addListener:y}=_.useMemo(()=>F2({preventTransition:i}),[i]),S=o==="system"&&!l?c:l,f=_.useCallback(x=>{const C=x==="system"?p():x;u(C),v(C==="dark"),b(C),s.set(C)},[s,p,v,b]);xl(()=>{o==="system"&&d(p())},[]),_.useEffect(()=>{const x=s.get();if(x){f(x);return}if(o==="system"){f("system");return}f(a)},[s,a,o,f]);const h=_.useCallback(()=>{f(S==="dark"?"light":"dark")},[S,f]);_.useEffect(()=>{if(r)return y(f)},[r,y,f]);const m=_.useMemo(()=>({colorMode:t??S,toggleColorMode:t?i0:h,setColorMode:t?i0:f,forced:t!==void 0}),[S,h,f,t]);return T.jsx(xh.Provider,{value:m,children:n})}ob.displayName="ColorModeProvider";var V2=new Set(["dark","light","system"]);function O2(e){let t=e;return V2.has(t)||(t="light"),t}function N2(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=O2(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?s:a}`.trim()}function W2(e={}){const{nonce:t}=e;return T.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:N2(e)}})}function ib(){const e=fu(),t=I2();return{...e,theme:t}}var Ge=(...e)=>e.filter(Boolean).join(" ");function Ot(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Jt(e,...t){return U2(e)?e(...t):e}var U2=e=>typeof e=="function",Gt=e=>e?"":void 0,hc=e=>e?!0:void 0;function a0(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var wl={exports:{}};wl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",p="[object Error]",v="[object Function]",b="[object GeneratorFunction]",y="[object Map]",S="[object Number]",f="[object Null]",h="[object Object]",m="[object Proxy]",x="[object RegExp]",C="[object Set]",A="[object String]",$="[object Undefined]",P="[object WeakMap]",D="[object ArrayBuffer]",z="[object DataView]",ne="[object Float32Array]",Ye="[object Float64Array]",an="[object Int8Array]",dr="[object Int16Array]",_e="[object Int32Array]",Xe="[object Uint8Array]",ln="[object Uint8ClampedArray]",M="[object Uint16Array]",V="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,he=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,Z={};Z[ne]=Z[Ye]=Z[an]=Z[dr]=Z[_e]=Z[Xe]=Z[ln]=Z[M]=Z[V]=!0,Z[a]=Z[l]=Z[D]=Z[c]=Z[z]=Z[d]=Z[p]=Z[v]=Z[y]=Z[S]=Z[h]=Z[x]=Z[C]=Z[A]=Z[P]=!1;var Wt=typeof Vs=="object"&&Vs&&Vs.Object===Object&&Vs,Yo=typeof self=="object"&&self&&self.Object===Object&&self,ut=Wt||Yo||Function("return this")(),fr=t&&!t.nodeType&&t,Xo=fr&&!0&&e&&!e.nodeType&&e,gp=Xo&&Xo.exports===fr,_u=gp&&Wt.process,vp=function(){try{var g=Xo&&Xo.require&&Xo.require("util").types;return g||_u&&_u.binding&&_u.binding("util")}catch{}}(),yp=vp&&vp.isTypedArray;function wx(g,k,E){switch(E.length){case 0:return g.call(k);case 1:return g.call(k,E[0]);case 2:return g.call(k,E[0],E[1]);case 3:return g.call(k,E[0],E[1],E[2])}return g.apply(k,E)}function kx(g,k){for(var E=-1,F=Array(g);++E-1}function Hx(g,k){var E=this.__data__,F=Fs(E,g);return F<0?(++this.size,E.push([g,k])):E[F][1]=k,this}un.prototype.clear=Ox,un.prototype.delete=Nx,un.prototype.get=Wx,un.prototype.has=Ux,un.prototype.set=Hx;function Wr(g){var k=-1,E=g==null?0:g.length;for(this.clear();++k1?E[U-1]:void 0,ce=U>2?E[2]:void 0;for(re=g.length>3&&typeof re=="function"?(U--,re):void 0,ce&&Sw(E[0],E[1],ce)&&(re=U<3?void 0:re,U=1),k=Object(k);++F-1&&g%1==0&&g0){if(++k>=o)return arguments[0]}else k=0;return g.apply(void 0,arguments)}}function Ew(g){if(g!=null){try{return Ms.call(g)}catch{}try{return g+""}catch{}}return""}function Bs(g,k){return g===k||g!==g&&k!==k}var Ru=Pp(function(){return arguments}())?Pp:function(g){return Qo(g)&&Dn.call(g,"callee")&&!Rx.call(g,"callee")},zu=Array.isArray;function Mu(g){return g!=null&&zp(g.length)&&!Du(g)}function $w(g){return Qo(g)&&Mu(g)}var Rp=Mx||Dw;function Du(g){if(!mr(g))return!1;var k=js(g);return k==v||k==b||k==u||k==m}function zp(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function mr(g){var k=typeof g;return g!=null&&(k=="object"||k=="function")}function Qo(g){return g!=null&&typeof g=="object"}function Aw(g){if(!Qo(g)||js(g)!=h)return!1;var k=kp(g);if(k===null)return!0;var E=Dn.call(k,"constructor")&&k.constructor;return typeof E=="function"&&E instanceof E&&Ms.call(E)==$x}var Mp=yp?Cx(yp):sw;function Rw(g){return mw(g,Dp(g))}function Dp(g){return Mu(g)?nw(g):aw(g)}var zw=gw(function(g,k,E,F){Ep(g,k,E,F)});function Mw(g){return function(){return g}}function Ip(g){return g}function Dw(){return!1}e.exports=zw})(wl,wl.exports);var H2=wl.exports;const en=gf(H2);var K2=e=>/!(important)?$/.test(e),l0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,G2=(e,t)=>n=>{const r=String(t),o=K2(r),i=l0(r),s=e?`${e}.${i}`:i;let a=Ot(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=l0(a),o?`${a} !important`:a};function wh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=G2(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var la=(...e)=>t=>e.reduce((n,r)=>r(n),t);function xt(e,t){return n=>{const r={property:n,scale:e};return r.transform=wh({scale:e,transform:t}),r}}var Y2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function X2(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Y2(t),transform:n?wh({scale:n,compose:r}):r}}var sb=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function q2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...sb].join(" ")}function Q2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...sb].join(" ")}var Z2={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},J2={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function eT(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var tT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Od={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},nT=new Set(Object.values(Od)),Nd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),rT=e=>e.trim();function oT(e,t){if(e==null||Nd.has(e))return e;if(!(Wd(e)||Nd.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(rT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Od?Od[l]:l;u.unshift(c);const d=u.map(p=>{if(nT.has(p))return p;const v=p.indexOf(" "),[b,y]=v!==-1?[p.substr(0,v),p.substr(v+1)]:[p],S=Wd(y)?y:y&&y.split(" "),f=`colors.${b}`,h=f in t.__cssMap?t.__cssMap[f].varRef:b;return S?[h,...Array.isArray(S)?S:[S]].join(" "):h});return`${a}(${d.join(", ")})`}var Wd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),iT=(e,t)=>oT(e,t??{});function sT(e){return/^var\(--.+\)$/.test(e)}var aT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ht=e=>t=>`${e}(${t})`,W={filter(e){return e!=="auto"?e:Z2},backdropFilter(e){return e!=="auto"?e:J2},ring(e){return eT(W.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?q2():e==="auto-gpu"?Q2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=aT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(sT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:iT,blur:Ht("blur"),opacity:Ht("opacity"),brightness:Ht("brightness"),contrast:Ht("contrast"),dropShadow:Ht("drop-shadow"),grayscale:Ht("grayscale"),hueRotate:e=>Ht("hue-rotate")(W.degree(e)),invert:Ht("invert"),saturate:Ht("saturate"),sepia:Ht("sepia"),bgImage(e){return e==null||Wd(e)||Nd.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=tT[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},w={borderWidths:xt("borderWidths"),borderStyles:xt("borderStyles"),colors:xt("colors"),borders:xt("borders"),gradients:xt("gradients",W.gradient),radii:xt("radii",W.px),space:xt("space",la(W.vh,W.px)),spaceT:xt("space",la(W.vh,W.px)),degreeT(e){return{property:e,transform:W.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:wh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:xt("sizes",la(W.vh,W.px)),sizesT:xt("sizes",la(W.vh,W.fraction)),shadows:xt("shadows"),logical:X2,blur:xt("blur",W.blur)},Ia={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:W.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:W.bgClip}};Object.assign(Ia,{bgImage:Ia.backgroundImage,bgImg:Ia.backgroundImage});var G={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(G,{rounded:G.borderRadius,roundedTop:G.borderTopRadius,roundedTopLeft:G.borderTopLeftRadius,roundedTopRight:G.borderTopRightRadius,roundedTopStart:G.borderStartStartRadius,roundedTopEnd:G.borderStartEndRadius,roundedBottom:G.borderBottomRadius,roundedBottomLeft:G.borderBottomLeftRadius,roundedBottomRight:G.borderBottomRightRadius,roundedBottomStart:G.borderEndStartRadius,roundedBottomEnd:G.borderEndEndRadius,roundedLeft:G.borderLeftRadius,roundedRight:G.borderRightRadius,roundedStart:G.borderInlineStartRadius,roundedEnd:G.borderInlineEndRadius,borderStart:G.borderInlineStart,borderEnd:G.borderInlineEnd,borderTopStartRadius:G.borderStartStartRadius,borderTopEndRadius:G.borderStartEndRadius,borderBottomStartRadius:G.borderEndStartRadius,borderBottomEndRadius:G.borderEndEndRadius,borderStartRadius:G.borderInlineStartRadius,borderEndRadius:G.borderInlineEndRadius,borderStartWidth:G.borderInlineStartWidth,borderEndWidth:G.borderInlineEndWidth,borderStartColor:G.borderInlineStartColor,borderEndColor:G.borderInlineEndColor,borderStartStyle:G.borderInlineStartStyle,borderEndStyle:G.borderInlineEndStyle});var lT={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},Ud={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ud,{shadow:Ud.boxShadow});var uT={filter:{transform:W.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",W.brightness),contrast:w.propT("--chakra-contrast",W.contrast),hueRotate:w.propT("--chakra-hue-rotate",W.hueRotate),invert:w.propT("--chakra-invert",W.invert),saturate:w.propT("--chakra-saturate",W.saturate),dropShadow:w.propT("--chakra-drop-shadow",W.dropShadow),backdropFilter:{transform:W.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",W.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",W.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",W.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",W.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",W.saturate)},kl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:W.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(kl,{flexDir:kl.flexDirection});var ab={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},cT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:W.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},kt={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (min-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (max-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",W.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(kt,{w:kt.width,h:kt.height,minW:kt.minWidth,maxW:kt.maxWidth,minH:kt.minHeight,maxH:kt.maxHeight,overscroll:kt.overscrollBehavior,overscrollX:kt.overscrollBehaviorX,overscrollY:kt.overscrollBehaviorY});var dT={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function fT(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},pT=hT(fT),mT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},gT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},pc=(e,t,n)=>{const r={},o=pT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},vT={srOnly:{transform(e){return e===!0?mT:e==="focusable"?gT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>pc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>pc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>pc(t,e,n)}},Di={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Di,{insetStart:Di.insetInlineStart,insetEnd:Di.insetInlineEnd});var yT={ring:{transform:W.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},ae={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(ae,{m:ae.margin,mt:ae.marginTop,mr:ae.marginRight,me:ae.marginInlineEnd,marginEnd:ae.marginInlineEnd,mb:ae.marginBottom,ml:ae.marginLeft,ms:ae.marginInlineStart,marginStart:ae.marginInlineStart,mx:ae.marginX,my:ae.marginY,p:ae.padding,pt:ae.paddingTop,py:ae.paddingY,px:ae.paddingX,pb:ae.paddingBottom,pl:ae.paddingLeft,ps:ae.paddingInlineStart,paddingStart:ae.paddingInlineStart,pr:ae.paddingRight,pe:ae.paddingInlineEnd,paddingEnd:ae.paddingInlineEnd});var bT={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},ST={clipPath:!0,transform:w.propT("transform",W.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},xT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},wT={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",W.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},kT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function lb(e){return Ot(e)&&e.reference?e.reference:String(e)}var hu=(e,...t)=>t.map(lb).join(` ${e} `).replace(/calc/g,""),u0=(...e)=>`calc(${hu("+",...e)})`,c0=(...e)=>`calc(${hu("-",...e)})`,Hd=(...e)=>`calc(${hu("*",...e)})`,d0=(...e)=>`calc(${hu("/",...e)})`,f0=e=>{const t=lb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hd(t,-1)},wr=Object.assign(e=>({add:(...t)=>wr(u0(e,...t)),subtract:(...t)=>wr(c0(e,...t)),multiply:(...t)=>wr(Hd(e,...t)),divide:(...t)=>wr(d0(e,...t)),negate:()=>wr(f0(e)),toString:()=>e.toString()}),{add:u0,subtract:c0,multiply:Hd,divide:d0,negate:f0});function CT(e,t="-"){return e.replace(/\s+/g,t)}function _T(e){const t=CT(e.toString());return PT(TT(t))}function TT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function PT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function ET(e,t=""){return[t,e].filter(Boolean).join("-")}function $T(e,t){return`var(${e}${t?`, ${t}`:""})`}function AT(e,t=""){return _T(`--${ET(e,t)}`)}function L(e,t,n){const r=AT(e,n);return{variable:r,reference:$T(r,t)}}function RT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=L(`${e}-${o}`,i);continue}n[r]=L(`${e}-${r}`)}return n}function zT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function MT(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Kd(e){if(e==null)return e;const{unitless:t}=MT(e);return t||typeof e=="number"?`${e}px`:e}var ub=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,kh=e=>Object.fromEntries(Object.entries(e).sort(ub));function h0(e){const t=kh(e);return Object.assign(Object.values(t),t)}function DT(e){const t=Object.keys(kh(e));return new Set(t)}function p0(e){var t;if(!e)return e;e=(t=Kd(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function vi(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Kd(e)})`),t&&n.push("and",`(max-width: ${Kd(t)})`),n.join(" ")}function IT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=h0(e),r=Object.entries(e).sort(ub).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?p0(d):void 0,{_minW:p0(a),breakpoint:s,minW:a,maxW:d,maxWQuery:vi(null,d),minWQuery:vi(a),minMaxQuery:vi(a,d)}}),o=DT(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:kh(e),asArray:h0(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>vi(s)).slice(1)],toArrayValue(s){if(!Ot(s))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>{var u;return(u=s[l])!=null?u:null});for(;zT(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,u)=>{const c=i[u];return c!=null&&l!=null&&(a[c]=l),a},{})}}}var Me={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Fn=e=>cb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),cn=e=>cb(t=>e(t,"~ &"),"[data-peer]",".peer"),cb=(e,...t)=>t.map(e).join(", "),pu={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Fn(Me.hover),_peerHover:cn(Me.hover),_groupFocus:Fn(Me.focus),_peerFocus:cn(Me.focus),_groupFocusVisible:Fn(Me.focusVisible),_peerFocusVisible:cn(Me.focusVisible),_groupActive:Fn(Me.active),_peerActive:cn(Me.active),_groupDisabled:Fn(Me.disabled),_peerDisabled:cn(Me.disabled),_groupInvalid:Fn(Me.invalid),_peerInvalid:cn(Me.invalid),_groupChecked:Fn(Me.checked),_peerChecked:cn(Me.checked),_groupFocusWithin:Fn(Me.focusWithin),_peerFocusWithin:cn(Me.focusWithin),_peerPlaceholderShown:cn(Me.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},db=Object.keys(pu);function m0(e,t){return L(String(e).replace(/\./g,"-"),void 0,t)}function FT(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=m0(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const p=o.split("."),[v,...b]=p,y=`${v}.-${b.join(".")}`,S=wr.negate(a),f=wr.negate(u);r[y]={value:S,var:l,varRef:f}}n[l]=a,r[o]={value:a,var:l,varRef:u};continue}const c=p=>{const b=[String(o).split(".")[0],p].join(".");if(!e[b])return p;const{reference:S}=m0(b,t==null?void 0:t.cssVarPrefix);return S},d=Ot(a)?a:{default:a};n=en(n,Object.entries(d).reduce((p,[v,b])=>{var y,S;if(!b)return p;const f=c(`${b}`);if(v==="default")return p[l]=f,p;const h=(S=(y=pu)==null?void 0:y[v])!=null?S:v;return p[h]={[l]:f},p},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function jT(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function LT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function BT(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function g0(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(BT(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const p=(l=o==null?void 0:o(c))!=null?l:c,v=[...a,p];if(r!=null&&r(s,v))return t(s,a);u[p]=i(d,v)}return u}return t(s,a)}return i(e)}var VT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function OT(e){return LT(e,VT)}function NT(e){return e.semanticTokens}function WT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var UT=e=>db.includes(e)||e==="default";function HT({tokens:e,semanticTokens:t}){const n={};return g0(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),g0(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(UT)}),n}function KT(e){var t;const n=WT(e),r=OT(n),o=NT(n),i=HT({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=FT(i,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:a,__breakpoints:IT(n.breakpoints)}),n}var Ch=en({},Ia,G,lT,kl,kt,uT,yT,cT,ab,vT,Di,Ud,ae,kT,wT,bT,ST,dT,xT);Object.assign({},ae,kt,kl,ab,Di);var GT=[...Object.keys(Ch),...db],YT={...Ch,...pu},XT=e=>e in YT,qT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Jt(e[s],t);if(a==null)continue;if(a=Ot(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!ZT(t),eP=(e,t)=>{var n,r;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[s,a]=QT(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function tP(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=Jt(i,r),d=qT(c)(r);let p={};for(let v in d){const b=d[v];let y=Jt(b,r);v in n&&(v=n[v]),JT(v,y)&&(y=eP(r,y));let S=t[v];if(S===!0&&(S={property:v}),Ot(y)){p[v]=(a=p[v])!=null?a:{},p[v]=en({},p[v],o(y,!0));continue}let f=(u=(l=S==null?void 0:S.transform)==null?void 0:l.call(S,y,r,c))!=null?u:y;f=S!=null&&S.processResult?o(f,!0):f;const h=Jt(S==null?void 0:S.property,r);if(!s&&(S!=null&&S.static)){const m=Jt(S.static,r);p=en({},p,m)}if(h&&Array.isArray(h)){for(const m of h)p[m]=f;continue}if(h){h==="&"&&Ot(f)?p=en({},p,f):p[h]=f;continue}if(Ot(f)){p=en({},p,f);continue}p[v]=f}return p};return o}var fb=e=>t=>tP({theme:t,pseudos:pu,configs:Ch})(e);function ie(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function nP(e,t){if(Array.isArray(e))return e;if(Ot(e))return t(e);if(e!=null)return[e]}function rP(e,t){for(let n=t+1;n{en(u,{[m]:p?h[m]:{[f]:h[m]}})});continue}if(!v){p?en(u,h):u[f]=h;continue}u[f]=h}}return u}}function iP(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=oP(i);return en({},Jt((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function Mn(e){return jT(e,["styleConfig","size","variant","colorScheme"])}var sP={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},aP={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},lP={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},uP={property:sP,easing:aP,duration:lP},cP=uP,dP={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},fP=dP,hP={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},pP=hP,mP={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},gP=mP,vP={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},yP=vP,bP={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},SP=bP,xP={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},wP=xP,kP={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},CP=kP,_P={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},hb=_P,pb={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},TP={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},PP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},EP={...pb,...TP,container:PP},mb=EP,$P={breakpoints:gP,zIndices:fP,radii:SP,blur:CP,colors:yP,...hb,sizes:mb,shadows:wP,space:pb,borders:pP,transition:cP},{defineMultiStyleConfig:AP,definePartsStyle:yi}=ie(["stepper","step","title","description","indicator","separator","icon","number"]),hn=L("stepper-indicator-size"),so=L("stepper-icon-size"),ao=L("stepper-title-font-size"),bi=L("stepper-description-font-size"),ui=L("stepper-accent-color"),RP=yi(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ui.variable]:`colors.${e}.500`,_dark:{[ui.variable]:`colors.${e}.200`}},title:{fontSize:ao.reference,fontWeight:"medium"},description:{fontSize:bi.reference,color:"chakra-subtle-text"},number:{fontSize:ao.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:so.reference,height:so.reference},indicator:{flexShrink:0,borderRadius:"full",width:hn.reference,height:hn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ui.reference},"&[data-status=complete]":{bg:ui.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ui.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${hn.reference} - 8px)`,top:`calc(${hn.reference} + 4px)`,insetStart:`calc(${hn.reference} / 2 - 1px)`}}})),zP=AP({baseStyle:RP,sizes:{xs:yi({stepper:{[hn.variable]:"sizes.4",[so.variable]:"sizes.3",[ao.variable]:"fontSizes.xs",[bi.variable]:"fontSizes.xs"}}),sm:yi({stepper:{[hn.variable]:"sizes.6",[so.variable]:"sizes.4",[ao.variable]:"fontSizes.sm",[bi.variable]:"fontSizes.xs"}}),md:yi({stepper:{[hn.variable]:"sizes.8",[so.variable]:"sizes.5",[ao.variable]:"fontSizes.md",[bi.variable]:"fontSizes.sm"}}),lg:yi({stepper:{[hn.variable]:"sizes.10",[so.variable]:"sizes.6",[ao.variable]:"fontSizes.lg",[bi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Q(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return Q(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Q(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,p])=>[d,p.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,p])=>[d,p.className]))}function l(c){const v=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var MP=Q("accordion").parts("root","container","button","panel").extend("icon"),DP=Q("alert").parts("title","description","container").extend("icon","spinner"),IP=Q("avatar").parts("label","badge","container").extend("excessLabel","group"),FP=Q("breadcrumb").parts("link","item","container").extend("separator");Q("button").parts();var jP=Q("checkbox").parts("control","icon","container").extend("label");Q("progress").parts("track","filledTrack").extend("label");var LP=Q("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),BP=Q("editable").parts("preview","input","textarea"),VP=Q("form").parts("container","requiredIndicator","helperText"),OP=Q("formError").parts("text","icon"),NP=Q("input").parts("addon","field","element","group"),WP=Q("list").parts("container","item","icon"),UP=Q("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),HP=Q("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),KP=Q("numberinput").parts("root","field","stepperGroup","stepper");Q("pininput").parts("field");var GP=Q("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),YP=Q("progress").parts("label","filledTrack","track"),XP=Q("radio").parts("container","control","label"),qP=Q("select").parts("field","icon"),QP=Q("slider").parts("container","track","thumb","filledTrack","mark"),ZP=Q("stat").parts("container","label","helpText","number","icon"),JP=Q("switch").parts("container","track","thumb","label"),eE=Q("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),tE=Q("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),nE=Q("tag").parts("container","label","closeButton"),rE=Q("card").parts("container","header","body","footer");Q("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Pr(e,t,n){return Math.min(Math.max(e,n),t)}class oE extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Si=oE;function _h(e){if(typeof e!="string")throw new Si(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=fE.test(e)?aE(e):e;const n=lE.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(ds(a,2),16)),parseInt(ds(s[3]||"f",2),16)/255]}const r=uE.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=cE.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=dE.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Pr(0,100,a)!==a)throw new Si(e);if(Pr(0,100,l)!==l)throw new Si(e);return[...hE(s,a,l),Number.isNaN(u)?1:u]}throw new Si(e)}function iE(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const v0=e=>parseInt(e.replace(/_/g,""),36),sE="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=v0(t.substring(0,3)),r=v0(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function aE(e){const t=e.toLowerCase().trim(),n=sE[iE(t)];if(!n)throw new Si(e);return`#${n}`}const ds=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),lE=new RegExp(`^#${ds("([a-f0-9])",3)}([a-f0-9])?$`,"i"),uE=new RegExp(`^#${ds("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),cE=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ds(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),dE=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,fE=/^[a-z]+$/i,y0=e=>Math.round(e*255),hE=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(y0);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,p=l+c,v=u+c;return[d,p,v].map(y0)};function pE(e,t,n,r){return`rgba(${Pr(0,255,e).toFixed()}, ${Pr(0,255,t).toFixed()}, ${Pr(0,255,n).toFixed()}, ${parseFloat(Pr(0,1,r).toFixed(3))})`}function mE(e,t){const[n,r,o,i]=_h(e);return pE(n,r,o,i-t)}function gE(e){const[t,n,r,o]=_h(e);let i=s=>{const a=Pr(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}function vE(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,Qe=(e,t,n)=>{const r=vE(e,`colors.${t}`,t);try{return gE(r),r}catch{return n??"#000000"}},bE=e=>{const[t,n,r]=_h(e);return(t*299+n*587+r*114)/1e3},SE=e=>t=>{const n=Qe(t,e);return bE(n)<128?"dark":"light"},xE=e=>t=>SE(e)(t)==="dark",jo=(e,t)=>n=>{const r=Qe(n,e);return mE(r,1-t)};function b0(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}var wE=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function kE(e){const t=wE();return!e||yE(e)?t:e.string&&e.colors?_E(e.string,e.colors):e.string&&!e.colors?CE(e.string):e.colors&&!e.string?TE(e.colors):t}function CE(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function _E(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Th(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function gb(e){return Ot(e)&&e.reference?e.reference:String(e)}var mu=(e,...t)=>t.map(gb).join(` ${e} `).replace(/calc/g,""),S0=(...e)=>`calc(${mu("+",...e)})`,x0=(...e)=>`calc(${mu("-",...e)})`,Gd=(...e)=>`calc(${mu("*",...e)})`,w0=(...e)=>`calc(${mu("/",...e)})`,k0=e=>{const t=gb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Gd(t,-1)},pn=Object.assign(e=>({add:(...t)=>pn(S0(e,...t)),subtract:(...t)=>pn(x0(e,...t)),multiply:(...t)=>pn(Gd(e,...t)),divide:(...t)=>pn(w0(e,...t)),negate:()=>pn(k0(e)),toString:()=>e.toString()}),{add:S0,subtract:x0,multiply:Gd,divide:w0,negate:k0});function PE(e){return!Number.isInteger(parseFloat(e.toString()))}function EE(e,t="-"){return e.replace(/\s+/g,t)}function vb(e){const t=EE(e.toString());return t.includes("\\.")?e:PE(e)?t.replace(".","\\."):e}function $E(e,t=""){return[t,vb(e)].filter(Boolean).join("-")}function AE(e,t){return`var(${vb(e)}${t?`, ${t}`:""})`}function RE(e,t=""){return`--${$E(e,t)}`}function Ee(e,t){const n=RE(e,void 0);return{variable:n,reference:AE(n,zE(void 0))}}function zE(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:ME,definePartsStyle:Fa}=ie(JP.keys),Ii=Ee("switch-track-width"),Rr=Ee("switch-track-height"),mc=Ee("switch-track-diff"),DE=pn.subtract(Ii,Rr),Yd=Ee("switch-thumb-x"),ci=Ee("switch-bg"),IE=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ii.reference],height:[Rr.reference],transitionProperty:"common",transitionDuration:"fast",[ci.variable]:"colors.gray.300",_dark:{[ci.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ci.variable]:`colors.${t}.500`,_dark:{[ci.variable]:`colors.${t}.200`}},bg:ci.reference}},FE={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Rr.reference],height:[Rr.reference],_checked:{transform:`translateX(${Yd.reference})`}},jE=Fa(e=>({container:{[mc.variable]:DE,[Yd.variable]:mc.reference,_rtl:{[Yd.variable]:pn(mc).negate().toString()}},track:IE(e),thumb:FE})),LE={sm:Fa({container:{[Ii.variable]:"1.375rem",[Rr.variable]:"sizes.3"}}),md:Fa({container:{[Ii.variable]:"1.875rem",[Rr.variable]:"sizes.4"}}),lg:Fa({container:{[Ii.variable]:"2.875rem",[Rr.variable]:"sizes.6"}})},BE=ME({baseStyle:jE,sizes:LE,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VE,definePartsStyle:_o}=ie(eE.keys),OE=_o({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Cl={"&[data-is-numeric=true]":{textAlign:"end"}},NE=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),WE=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),UE={simple:NE,striped:WE,unstyled:{}},HE={sm:_o({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:_o({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:_o({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},KE=VE({baseStyle:OE,variants:UE,sizes:HE,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),rt=L("tabs-color"),Lt=L("tabs-bg"),ua=L("tabs-border-color"),{defineMultiStyleConfig:GE,definePartsStyle:on}=ie(tE.keys),YE=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},XE=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},qE=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},QE={p:4},ZE=on(e=>({root:YE(e),tab:XE(e),tablist:qE(e),tabpanel:QE})),JE={sm:on({tab:{py:1,px:4,fontSize:"sm"}}),md:on({tab:{fontSize:"md",py:2,px:4}}),lg:on({tab:{fontSize:"lg",py:3,px:4}})},e5=on(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[rt.variable]:`colors.${t}.600`,_dark:{[rt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Lt.variable]:"colors.gray.200",_dark:{[Lt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rt.reference,bg:Lt.reference}}}),t5=on(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ua.variable]:"transparent",_selected:{[rt.variable]:`colors.${t}.600`,[ua.variable]:"colors.white",_dark:{[rt.variable]:`colors.${t}.300`,[ua.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ua.reference},color:rt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),n5=on(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Lt.variable]:"colors.gray.50",_dark:{[Lt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Lt.variable]:"colors.white",[rt.variable]:`colors.${t}.600`,_dark:{[Lt.variable]:"colors.gray.800",[rt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rt.reference,bg:Lt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),r5=on(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Qe(n,`${t}.700`),bg:Qe(n,`${t}.100`)}}}}),o5=on(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rt.variable]:"colors.gray.600",_dark:{[rt.variable]:"inherit"},_selected:{[rt.variable]:"colors.white",[Lt.variable]:`colors.${t}.600`,_dark:{[rt.variable]:"colors.gray.800",[Lt.variable]:`colors.${t}.300`}},color:rt.reference,bg:Lt.reference}}}),i5=on({}),s5={line:e5,enclosed:t5,"enclosed-colored":n5,"soft-rounded":r5,"solid-rounded":o5,unstyled:i5},a5=GE({baseStyle:ZE,sizes:JE,variants:s5,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),xe=RT("badge",["bg","color","shadow"]),l5={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:xe.bg.reference,color:xe.color.reference,boxShadow:xe.shadow.reference},u5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.500`,.6)(n);return{[xe.bg.variable]:`colors.${t}.500`,[xe.color.variable]:"colors.white",_dark:{[xe.bg.variable]:r,[xe.color.variable]:"colors.whiteAlpha.800"}}},c5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.200`,.16)(n);return{[xe.bg.variable]:`colors.${t}.100`,[xe.color.variable]:`colors.${t}.800`,_dark:{[xe.bg.variable]:r,[xe.color.variable]:`colors.${t}.200`}}},d5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.200`,.8)(n);return{[xe.color.variable]:`colors.${t}.500`,_dark:{[xe.color.variable]:r},[xe.shadow.variable]:`inset 0 0 0px 1px ${xe.color.reference}`}},f5={solid:u5,subtle:c5,outline:d5},Fi={baseStyle:l5,variants:f5,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:h5,definePartsStyle:zr}=ie(nE.keys),C0=L("tag-bg"),_0=L("tag-color"),gc=L("tag-shadow"),ja=L("tag-min-height"),La=L("tag-min-width"),Ba=L("tag-font-size"),Va=L("tag-padding-inline"),p5={fontWeight:"medium",lineHeight:1.2,outline:0,[_0.variable]:xe.color.reference,[C0.variable]:xe.bg.reference,[gc.variable]:xe.shadow.reference,color:_0.reference,bg:C0.reference,boxShadow:gc.reference,borderRadius:"md",minH:ja.reference,minW:La.reference,fontSize:Ba.reference,px:Va.reference,_focusVisible:{[gc.variable]:"shadows.outline"}},m5={lineHeight:1.2,overflow:"visible"},g5={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},v5=zr({container:p5,label:m5,closeButton:g5}),y5={sm:zr({container:{[ja.variable]:"sizes.5",[La.variable]:"sizes.5",[Ba.variable]:"fontSizes.xs",[Va.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:zr({container:{[ja.variable]:"sizes.6",[La.variable]:"sizes.6",[Ba.variable]:"fontSizes.sm",[Va.variable]:"space.2"}}),lg:zr({container:{[ja.variable]:"sizes.8",[La.variable]:"sizes.8",[Ba.variable]:"fontSizes.md",[Va.variable]:"space.3"}})},b5={subtle:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.subtle(e)}}),solid:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.solid(e)}}),outline:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.outline(e)}})},S5=h5({variants:b5,baseStyle:v5,sizes:y5,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:vn,defineMultiStyleConfig:x5}=ie(NP.keys),lo=L("input-height"),uo=L("input-font-size"),co=L("input-padding"),fo=L("input-border-radius"),w5=vn({addon:{height:lo.reference,fontSize:uo.reference,px:co.reference,borderRadius:fo.reference},field:{width:"100%",height:lo.reference,fontSize:uo.reference,px:co.reference,borderRadius:fo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),jn={lg:{[uo.variable]:"fontSizes.lg",[co.variable]:"space.4",[fo.variable]:"radii.md",[lo.variable]:"sizes.12"},md:{[uo.variable]:"fontSizes.md",[co.variable]:"space.4",[fo.variable]:"radii.md",[lo.variable]:"sizes.10"},sm:{[uo.variable]:"fontSizes.sm",[co.variable]:"space.3",[fo.variable]:"radii.sm",[lo.variable]:"sizes.8"},xs:{[uo.variable]:"fontSizes.xs",[co.variable]:"space.2",[fo.variable]:"radii.sm",[lo.variable]:"sizes.6"}},k5={lg:vn({field:jn.lg,group:jn.lg}),md:vn({field:jn.md,group:jn.md}),sm:vn({field:jn.sm,group:jn.sm}),xs:vn({field:jn.xs,group:jn.xs})};function Ph(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}var C5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r),boxShadow:`0 0 0 1px ${Qe(t,r)}`},_focusVisible:{zIndex:1,borderColor:Qe(t,n),boxShadow:`0 0 0 1px ${Qe(t,n)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),_5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r)},_focusVisible:{bg:"transparent",borderColor:Qe(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),T5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r),boxShadow:`0px 1px 0px 0px ${Qe(t,r)}`},_focusVisible:{borderColor:Qe(t,n),boxShadow:`0px 1px 0px 0px ${Qe(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),P5=vn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),E5={outline:C5,filled:_5,flushed:T5,unstyled:P5},q=x5({baseStyle:w5,sizes:k5,variants:E5,defaultProps:{size:"md",variant:"outline"}}),T0,$5={...(T0=q.baseStyle)==null?void 0:T0.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},P0,E0,A5={outline:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(E0=(P0=q.variants)==null?void 0:P0.unstyled.field)!=null?E0:{}},$0,A0,R0,z0,M0,D0,I0,F0,R5={xs:(A0=($0=q.sizes)==null?void 0:$0.xs.field)!=null?A0:{},sm:(z0=(R0=q.sizes)==null?void 0:R0.sm.field)!=null?z0:{},md:(D0=(M0=q.sizes)==null?void 0:M0.md.field)!=null?D0:{},lg:(F0=(I0=q.sizes)==null?void 0:I0.lg.field)!=null?F0:{}},z5={baseStyle:$5,sizes:R5,variants:A5,defaultProps:{size:"md",variant:"outline"}},ca=Ee("tooltip-bg"),vc=Ee("tooltip-fg"),M5=Ee("popper-arrow-bg"),D5={bg:ca.reference,color:vc.reference,[ca.variable]:"colors.gray.700",[vc.variable]:"colors.whiteAlpha.900",_dark:{[ca.variable]:"colors.gray.300",[vc.variable]:"colors.gray.900"},[M5.variable]:ca.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},I5={baseStyle:D5},{defineMultiStyleConfig:F5,definePartsStyle:xi}=ie(YP.keys),j5=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(b0(),b0("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( - to right, - transparent 0%, - ${Qe(n,s)} 50%, - transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},L5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},B5=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),V5=e=>({transitionProperty:"common",transitionDuration:"slow",...j5(e)}),O5=xi(e=>({label:L5,filledTrack:V5(e),track:B5(e)})),N5={xs:xi({track:{h:"1"}}),sm:xi({track:{h:"2"}}),md:xi({track:{h:"3"}}),lg:xi({track:{h:"4"}})},W5=F5({sizes:N5,baseStyle:O5,defaultProps:{size:"md",colorScheme:"blue"}}),U5=e=>typeof e=="function";function Je(e,...t){return U5(e)?e(...t):e}var{definePartsStyle:Oa,defineMultiStyleConfig:H5}=ie(jP.keys),ji=L("checkbox-size"),K5=e=>{const{colorScheme:t}=e;return{w:ji.reference,h:ji.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},G5={_disabled:{cursor:"not-allowed"}},Y5={userSelect:"none",_disabled:{opacity:.4}},X5={transitionProperty:"transform",transitionDuration:"normal"},q5=Oa(e=>({icon:X5,container:G5,control:Je(K5,e),label:Y5})),Q5={sm:Oa({control:{[ji.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Oa({control:{[ji.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Oa({control:{[ji.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},_l=H5({baseStyle:q5,sizes:Q5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Z5,definePartsStyle:Na}=ie(XP.keys),J5=e=>{var t;const n=(t=Je(_l.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},e$=Na(e=>{var t,n,r,o;return{label:(n=(t=_l).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=_l).baseStyle)==null?void 0:o.call(r,e).container,control:J5(e)}}),t$={md:Na({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Na({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Na({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},n$=Z5({baseStyle:e$,sizes:t$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:r$,definePartsStyle:o$}=ie(qP.keys),da=L("select-bg"),j0,i$={...(j0=q.baseStyle)==null?void 0:j0.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:da.reference,[da.variable]:"colors.white",_dark:{[da.variable]:"colors.gray.700"},"> option, > optgroup":{bg:da.reference}},s$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},a$=o$({field:i$,icon:s$}),fa={paddingInlineEnd:"8"},L0,B0,V0,O0,N0,W0,U0,H0,l$={lg:{...(L0=q.sizes)==null?void 0:L0.lg,field:{...(B0=q.sizes)==null?void 0:B0.lg.field,...fa}},md:{...(V0=q.sizes)==null?void 0:V0.md,field:{...(O0=q.sizes)==null?void 0:O0.md.field,...fa}},sm:{...(N0=q.sizes)==null?void 0:N0.sm,field:{...(W0=q.sizes)==null?void 0:W0.sm.field,...fa}},xs:{...(U0=q.sizes)==null?void 0:U0.xs,field:{...(H0=q.sizes)==null?void 0:H0.xs.field,...fa},icon:{insetEnd:"1"}}},u$=r$({baseStyle:a$,sizes:l$,variants:q.variants,defaultProps:q.defaultProps}),yc=L("skeleton-start-color"),bc=L("skeleton-end-color"),c$={[yc.variable]:"colors.gray.100",[bc.variable]:"colors.gray.400",_dark:{[yc.variable]:"colors.gray.800",[bc.variable]:"colors.gray.600"},background:yc.reference,borderColor:bc.reference,opacity:.7,borderRadius:"sm"},d$={baseStyle:c$},Sc=L("skip-link-bg"),f$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Sc.variable]:"colors.white",_dark:{[Sc.variable]:"colors.gray.700"},bg:Sc.reference}},h$={baseStyle:f$},{defineMultiStyleConfig:p$,definePartsStyle:gu}=ie(QP.keys),fs=L("slider-thumb-size"),hs=L("slider-track-size"),Un=L("slider-bg"),m$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Th({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},g$=e=>({...Th({orientation:e.orientation,horizontal:{h:hs.reference},vertical:{w:hs.reference}}),overflow:"hidden",borderRadius:"sm",[Un.variable]:"colors.gray.200",_dark:{[Un.variable]:"colors.whiteAlpha.200"},_disabled:{[Un.variable]:"colors.gray.300",_dark:{[Un.variable]:"colors.whiteAlpha.300"}},bg:Un.reference}),v$=e=>{const{orientation:t}=e;return{...Th({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:fs.reference,h:fs.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},y$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Un.variable]:`colors.${t}.500`,_dark:{[Un.variable]:`colors.${t}.200`},bg:Un.reference}},b$=gu(e=>({container:m$(e),track:g$(e),thumb:v$(e),filledTrack:y$(e)})),S$=gu({container:{[fs.variable]:"sizes.4",[hs.variable]:"sizes.1"}}),x$=gu({container:{[fs.variable]:"sizes.3.5",[hs.variable]:"sizes.1"}}),w$=gu({container:{[fs.variable]:"sizes.2.5",[hs.variable]:"sizes.0.5"}}),k$={lg:S$,md:x$,sm:w$},C$=p$({baseStyle:b$,sizes:k$,defaultProps:{size:"md",colorScheme:"blue"}}),kr=Ee("spinner-size"),_$={width:[kr.reference],height:[kr.reference]},T$={xs:{[kr.variable]:"sizes.3"},sm:{[kr.variable]:"sizes.4"},md:{[kr.variable]:"sizes.6"},lg:{[kr.variable]:"sizes.8"},xl:{[kr.variable]:"sizes.12"}},P$={baseStyle:_$,sizes:T$,defaultProps:{size:"md"}},{defineMultiStyleConfig:E$,definePartsStyle:yb}=ie(ZP.keys),$$={fontWeight:"medium"},A$={opacity:.8,marginBottom:"2"},R$={verticalAlign:"baseline",fontWeight:"semibold"},z$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},M$=yb({container:{},label:$$,helpText:A$,number:R$,icon:z$}),D$={md:yb({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},I$=E$({baseStyle:M$,sizes:D$,defaultProps:{size:"md"}}),xc=L("kbd-bg"),F$={[xc.variable]:"colors.gray.100",_dark:{[xc.variable]:"colors.whiteAlpha.100"},bg:xc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},j$={baseStyle:F$},L$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},B$={baseStyle:L$},{defineMultiStyleConfig:V$,definePartsStyle:O$}=ie(WP.keys),N$={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},W$=O$({icon:N$}),U$=V$({baseStyle:W$}),{defineMultiStyleConfig:H$,definePartsStyle:K$}=ie(UP.keys),Yt=L("menu-bg"),wc=L("menu-shadow"),G$={[Yt.variable]:"#fff",[wc.variable]:"shadows.sm",_dark:{[Yt.variable]:"colors.gray.700",[wc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Yt.reference,boxShadow:wc.reference},Y$={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_active:{[Yt.variable]:"colors.gray.200",_dark:{[Yt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Yt.reference},X$={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},q$={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Q$={opacity:.6},Z$={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},J$={transitionProperty:"common",transitionDuration:"normal"},eA=K$({button:J$,list:G$,item:Y$,groupTitle:X$,icon:q$,command:Q$,divider:Z$}),tA=H$({baseStyle:eA}),{defineMultiStyleConfig:nA,definePartsStyle:Xd}=ie(HP.keys),kc=L("modal-bg"),Cc=L("modal-shadow"),rA={bg:"blackAlpha.600",zIndex:"modal"},oA=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},iA=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[kc.variable]:"colors.white",[Cc.variable]:"shadows.lg",_dark:{[kc.variable]:"colors.gray.700",[Cc.variable]:"shadows.dark-lg"},bg:kc.reference,boxShadow:Cc.reference}},sA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},aA={position:"absolute",top:"2",insetEnd:"3"},lA=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},uA={px:"6",py:"4"},cA=Xd(e=>({overlay:rA,dialogContainer:Je(oA,e),dialog:Je(iA,e),header:sA,closeButton:aA,body:Je(lA,e),footer:uA}));function Mt(e){return Xd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var dA={xs:Mt("xs"),sm:Mt("sm"),md:Mt("md"),lg:Mt("lg"),xl:Mt("xl"),"2xl":Mt("2xl"),"3xl":Mt("3xl"),"4xl":Mt("4xl"),"5xl":Mt("5xl"),"6xl":Mt("6xl"),full:Mt("full")},fA=nA({baseStyle:cA,sizes:dA,defaultProps:{size:"md"}}),{defineMultiStyleConfig:hA,definePartsStyle:bb}=ie(KP.keys),Eh=Ee("number-input-stepper-width"),Sb=Ee("number-input-input-padding"),pA=pn(Eh).add("0.5rem").toString(),_c=Ee("number-input-bg"),Tc=Ee("number-input-color"),Pc=Ee("number-input-border-color"),mA={[Eh.variable]:"sizes.6",[Sb.variable]:pA},gA=e=>{var t,n;return(n=(t=Je(q.baseStyle,e))==null?void 0:t.field)!=null?n:{}},vA={width:Eh.reference},yA={borderStart:"1px solid",borderStartColor:Pc.reference,color:Tc.reference,bg:_c.reference,[Tc.variable]:"colors.chakra-body-text",[Pc.variable]:"colors.chakra-border-color",_dark:{[Tc.variable]:"colors.whiteAlpha.800",[Pc.variable]:"colors.whiteAlpha.300"},_active:{[_c.variable]:"colors.gray.200",_dark:{[_c.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},bA=bb(e=>{var t;return{root:mA,field:(t=Je(gA,e))!=null?t:{},stepperGroup:vA,stepper:yA}});function ha(e){var t,n,r;const o=(t=q.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",a=hb.fontSizes[s];return bb({field:{...o.field,paddingInlineEnd:Sb.reference,verticalAlign:"top"},stepper:{fontSize:pn(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var SA={xs:ha("xs"),sm:ha("sm"),md:ha("md"),lg:ha("lg")},xA=hA({baseStyle:bA,sizes:SA,variants:q.variants,defaultProps:q.defaultProps}),K0,wA={...(K0=q.baseStyle)==null?void 0:K0.field,textAlign:"center"},kA={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},G0,Y0,CA={outline:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Y0=(G0=q.variants)==null?void 0:G0.unstyled.field)!=null?Y0:{}},_A={baseStyle:wA,sizes:kA,variants:CA,defaultProps:q.defaultProps},{defineMultiStyleConfig:TA,definePartsStyle:PA}=ie(GP.keys),pa=Ee("popper-bg"),EA=Ee("popper-arrow-bg"),X0=Ee("popper-arrow-shadow-color"),$A={zIndex:10},AA={[pa.variable]:"colors.white",bg:pa.reference,[EA.variable]:pa.reference,[X0.variable]:"colors.gray.200",_dark:{[pa.variable]:"colors.gray.700",[X0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},RA={px:3,py:2,borderBottomWidth:"1px"},zA={px:3,py:2},MA={px:3,py:2,borderTopWidth:"1px"},DA={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},IA=PA({popper:$A,content:AA,header:RA,body:zA,footer:MA,closeButton:DA}),FA=TA({baseStyle:IA}),{definePartsStyle:qd,defineMultiStyleConfig:jA}=ie(LP.keys),Ec=L("drawer-bg"),$c=L("drawer-box-shadow");function Gr(e){return qd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var LA={bg:"blackAlpha.600",zIndex:"modal"},BA={display:"flex",zIndex:"modal",justifyContent:"center"},VA=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Ec.variable]:"colors.white",[$c.variable]:"shadows.lg",_dark:{[Ec.variable]:"colors.gray.700",[$c.variable]:"shadows.dark-lg"},bg:Ec.reference,boxShadow:$c.reference}},OA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},NA={position:"absolute",top:"2",insetEnd:"3"},WA={px:"6",py:"2",flex:"1",overflow:"auto"},UA={px:"6",py:"4"},HA=qd(e=>({overlay:LA,dialogContainer:BA,dialog:Je(VA,e),header:OA,closeButton:NA,body:WA,footer:UA})),KA={xs:Gr("xs"),sm:Gr("md"),md:Gr("lg"),lg:Gr("2xl"),xl:Gr("4xl"),full:Gr("full")},GA=jA({baseStyle:HA,sizes:KA,defaultProps:{size:"xs"}}),{definePartsStyle:YA,defineMultiStyleConfig:XA}=ie(BP.keys),qA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},QA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},ZA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},JA=YA({preview:qA,input:QA,textarea:ZA}),eR=XA({baseStyle:JA}),{definePartsStyle:tR,defineMultiStyleConfig:nR}=ie(VP.keys),To=L("form-control-color"),rR={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},oR={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},iR=tR({container:{width:"100%",position:"relative"},requiredIndicator:rR,helperText:oR}),sR=nR({baseStyle:iR}),{definePartsStyle:aR,defineMultiStyleConfig:lR}=ie(OP.keys),Po=L("form-error-color"),uR={[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},cR={marginEnd:"0.5em",[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference},dR=aR({text:uR,icon:cR}),fR=lR({baseStyle:dR}),hR={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},pR={baseStyle:hR},mR={fontFamily:"heading",fontWeight:"bold"},gR={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},vR={baseStyle:mR,sizes:gR,defaultProps:{size:"xl"}},{defineMultiStyleConfig:yR,definePartsStyle:bR}=ie(FP.keys),Ac=L("breadcrumb-link-decor"),SR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Ac.reference,[Ac.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Ac.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},xR=bR({link:SR}),wR=yR({baseStyle:xR}),kR={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},xb=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const r=jo(`${t}.200`,.12)(n),o=jo(`${t}.200`,.24)(n);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,r)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},CR=e=>{const{colorScheme:t}=e,n=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Je(xb,e)}},_R={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},TR=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=j("gray.100","whiteAlpha.200")(e);return{bg:l,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=_R[n])!=null?t:{},a=j(r,`${n}.200`)(e);return{bg:a,color:j(o,"gray.800")(e),_hover:{bg:j(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:j(s,`${n}.400`)(e)}}},PR=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},ER={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},$R={ghost:xb,outline:CR,solid:TR,link:PR,unstyled:ER},AR={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},RR={baseStyle:kR,variants:$R,sizes:AR,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Mr,defineMultiStyleConfig:zR}=ie(rE.keys),Tl=L("card-bg"),Sn=L("card-padding"),wb=L("card-shadow"),Wa=L("card-radius"),kb=L("card-border-width","0"),Cb=L("card-border-color"),MR=Mr({container:{[Tl.variable]:"colors.chakra-body-bg",backgroundColor:Tl.reference,boxShadow:wb.reference,borderRadius:Wa.reference,color:"chakra-body-text",borderWidth:kb.reference,borderColor:Cb.reference},body:{padding:Sn.reference,flex:"1 1 0%"},header:{padding:Sn.reference},footer:{padding:Sn.reference}}),DR={sm:Mr({container:{[Wa.variable]:"radii.base",[Sn.variable]:"space.3"}}),md:Mr({container:{[Wa.variable]:"radii.md",[Sn.variable]:"space.5"}}),lg:Mr({container:{[Wa.variable]:"radii.xl",[Sn.variable]:"space.7"}})},IR={elevated:Mr({container:{[wb.variable]:"shadows.base",_dark:{[Tl.variable]:"colors.gray.700"}}}),outline:Mr({container:{[kb.variable]:"1px",[Cb.variable]:"colors.chakra-border-color"}}),filled:Mr({container:{[Tl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Sn.variable]:0},header:{[Sn.variable]:0},footer:{[Sn.variable]:0}}},FR=zR({baseStyle:MR,variants:IR,sizes:DR,defaultProps:{variant:"elevated",size:"md"}}),Li=Ee("close-button-size"),di=Ee("close-button-bg"),jR={w:[Li.reference],h:[Li.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[di.variable]:"colors.blackAlpha.100",_dark:{[di.variable]:"colors.whiteAlpha.100"}},_active:{[di.variable]:"colors.blackAlpha.200",_dark:{[di.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:di.reference},LR={lg:{[Li.variable]:"sizes.10",fontSize:"md"},md:{[Li.variable]:"sizes.8",fontSize:"xs"},sm:{[Li.variable]:"sizes.6",fontSize:"2xs"}},BR={baseStyle:jR,sizes:LR,defaultProps:{size:"md"}},{variants:VR,defaultProps:OR}=Fi,NR={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:xe.bg.reference,color:xe.color.reference,boxShadow:xe.shadow.reference},WR={baseStyle:NR,variants:VR,defaultProps:OR},UR={w:"100%",mx:"auto",maxW:"prose",px:"4"},HR={baseStyle:UR},KR={opacity:.6,borderColor:"inherit"},GR={borderStyle:"solid"},YR={borderStyle:"dashed"},XR={solid:GR,dashed:YR},qR={baseStyle:KR,variants:XR,defaultProps:{variant:"solid"}},{definePartsStyle:QR,defineMultiStyleConfig:ZR}=ie(MP.keys),JR={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},e3={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},t3={pt:"2",px:"4",pb:"5"},n3={fontSize:"1.25em"},r3=QR({container:JR,button:e3,panel:t3,icon:n3}),o3=ZR({baseStyle:r3}),{definePartsStyle:Ts,defineMultiStyleConfig:i3}=ie(DP.keys),mt=L("alert-fg"),An=L("alert-bg"),s3=Ts({container:{bg:An.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:mt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:mt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function $h(e){const{theme:t,colorScheme:n}=e,r=jo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var a3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark}}}}),l3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:mt.reference}}}),u3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:mt.reference}}}),c3=Ts(e=>{const{colorScheme:t}=e;return{container:{[mt.variable]:"colors.white",[An.variable]:`colors.${t}.600`,_dark:{[mt.variable]:"colors.gray.900",[An.variable]:`colors.${t}.200`},color:mt.reference}}}),d3={subtle:a3,"left-accent":l3,"top-accent":u3,solid:c3},f3=i3({baseStyle:s3,variants:d3,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:_b,defineMultiStyleConfig:h3}=ie(IP.keys),Eo=L("avatar-border-color"),Bi=L("avatar-bg"),ps=L("avatar-font-size"),Lo=L("avatar-size"),p3={borderRadius:"full",border:"0.2em solid",borderColor:Eo.reference,[Eo.variable]:"white",_dark:{[Eo.variable]:"colors.gray.800"}},m3={bg:Bi.reference,fontSize:ps.reference,width:Lo.reference,height:Lo.reference,lineHeight:"1",[Bi.variable]:"colors.gray.200",_dark:{[Bi.variable]:"colors.whiteAlpha.400"}},g3=e=>{const{name:t,theme:n}=e,r=t?kE({string:t}):"colors.gray.400",o=xE(r)(n);let i="white";return o||(i="gray.800"),{bg:Bi.reference,fontSize:ps.reference,color:i,borderColor:Eo.reference,verticalAlign:"top",width:Lo.reference,height:Lo.reference,"&:not([data-loaded])":{[Bi.variable]:r},[Eo.variable]:"colors.white",_dark:{[Eo.variable]:"colors.gray.800"}}},v3={fontSize:ps.reference,lineHeight:"1"},y3=_b(e=>({badge:Je(p3,e),excessLabel:Je(m3,e),container:Je(g3,e),label:v3}));function Ln(e){const t=e!=="100%"?mb[e]:void 0;return _b({container:{[Lo.variable]:t??e,[ps.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Lo.variable]:t??e,[ps.variable]:`calc(${t??e} / 2.5)`}})}var b3={"2xs":Ln(4),xs:Ln(6),sm:Ln(8),md:Ln(12),lg:Ln(16),xl:Ln(24),"2xl":Ln(32),full:Ln("100%")},S3=h3({baseStyle:y3,sizes:b3,defaultProps:{size:"md"}}),x3={Accordion:o3,Alert:f3,Avatar:S3,Badge:Fi,Breadcrumb:wR,Button:RR,Checkbox:_l,CloseButton:BR,Code:WR,Container:HR,Divider:qR,Drawer:GA,Editable:eR,Form:sR,FormError:fR,FormLabel:pR,Heading:vR,Input:q,Kbd:j$,Link:B$,List:U$,Menu:tA,Modal:fA,NumberInput:xA,PinInput:_A,Popover:FA,Progress:W5,Radio:n$,Select:u$,Skeleton:d$,SkipLink:h$,Slider:C$,Spinner:P$,Stat:I$,Switch:BE,Table:KE,Tabs:a5,Tag:S5,Textarea:z5,Tooltip:I5,Card:FR,Stepper:zP},w3={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},k3={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},C3="ltr",_3={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},T3={semanticTokens:w3,direction:C3,...$P,components:x3,styles:k3,config:_3};function P3(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function E3(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},Tb=$3(E3);function Pb(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var Eb=e=>Pb(e,t=>t!=null);function A3(e){return typeof e=="function"}function $b(e,...t){return A3(e)?e(...t):e}var R3=typeof Element<"u",z3=typeof Map=="function",M3=typeof Set=="function",D3=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ua(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ua(e[r],t[r]))return!1;return!0}var i;if(z3&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ua(r.value[1],t.get(r.value[0])))return!1;return!0}if(M3&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(D3&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(R3&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ua(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var I3=function(t,n){try{return Ua(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const F3=gf(I3);function Ab(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=ib(),a=e?Tb(i,`components.${e}`):void 0,l=r||a,u=en({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},Eb(P3(o,["children"]))),c=_.useRef({});if(l){const p=iP(l)(u);F3(c.current,p)||(c.current=p)}return c.current}function Nr(e,t={}){return Ab(e,t)}function Ah(e,t={}){return Ab(e,t)}var j3=new Set([...GT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),L3=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function B3(e){return L3.has(e)||!j3.has(e)}function V3(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}function O3(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var N3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,W3=N1(function(e){return N3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),U3=W3,H3=function(t){return t!=="theme"},q0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?U3:H3},Q0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},K3=!1,G3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Y1(n,r,o),b2(function(){return X1(n,r,o)}),null},Y3=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Q0(t,n,r),l=a||q0(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,v=1;vt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,a=Pb(s,(d,p)=>XT(p)),l=$b(e,t),u=V3({},o,l,Eb(a),i),c=fb(u)(t.theme);return r?[c,r]:c};function Rc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=B3);const o=Q3({baseStyle:n}),i=q3(e,r)(o);return Ya.forwardRef(function(l,u){const{colorMode:c,forced:d}=fu();return Ya.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function Z3(){const e=new Map;return new Proxy(Rc,{apply(t,n,r){return Rc(...r)},get(t,n){return e.has(n)||e.set(n,Rc(n)),e.get(n)}})}var ue=Z3();function ze(e){return _.forwardRef(e)}function J3(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=_.createContext(void 0);o.displayName=r;function i(){var s;const a=_.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function e4(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.useMemo(()=>KT(n),[n]);return T.jsxs(w2,{theme:o,children:[T.jsx(t4,{root:t}),r]})}function t4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(cu,{styles:n=>({[t]:n.__cssVars})})}J3({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function n4(){const{colorMode:e}=fu();return T.jsx(cu,{styles:t=>{const n=Tb(t,"styles.global"),r=$b(n,{theme:t,colorMode:e});return r?fb(r)(t):void 0}})}var Rb=_.createContext({getDocument(){return document},getWindow(){return window}});Rb.displayName="EnvironmentContext";function zb(e){const{children:t,environment:n,disabled:r}=e,o=_.useRef(null),i=_.useMemo(()=>n||{getDocument:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[n]),s=!r||!n;return T.jsxs(Rb.Provider,{value:i,children:[t,s&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}zb.displayName="EnvironmentProvider";var r4=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=T.jsx(zb,{environment:a,disabled:u,children:t});return T.jsx(e4,{theme:s,cssVarsRoot:l,children:T.jsxs(ob,{colorModeManager:n,options:s.config,children:[i?T.jsx(T2,{scope:o}):T.jsx(_2,{}),!c&&T.jsx(n4,{}),r?T.jsx(nb,{zIndex:r,children:d}):d]})})},o4=(e,t)=>e.find(n=>n.id===t);function J0(e,t){const n=Mb(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function Mb(e,t){for(const[n,r]of Object.entries(e))if(o4(r,t))return n}function i4(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function s4(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}function a4(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function l4(e,t){const n=a4(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function eg(e,t){const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}function u4(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function ms(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Qd=e=>Array.isArray(e);function Db(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 Rh(e,t,n,r){if(typeof t=="function"){const[o,i]=tg(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=tg(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function vu(e,t,n){const r=e.getProps();return Rh(r,t,n!==void 0?n:r.custom,e)}const zh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mh=["initial",...zh],Ps=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ur=new Set(Ps),xn=e=>e*1e3,wn=e=>e/1e3,c4={type:"spring",stiffness:500,damping:25,restSpeed:10},d4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),f4={type:"keyframes",duration:.8},h4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},p4=(e,{keyframes:t})=>t.length>2?f4:ur.has(e)?e.startsWith("scale")?d4(t[1]):c4:h4;function m4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Dh(e,t){return e[t]||e.default||e}const g4={skipAnimations:!1,useManualTiming:!1},v4=e=>e!==null;function yu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(v4),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const He=e=>e;function y4(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const v=d&&r?t:n;return c&&i.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const ma=["read","resolveKeyframes","update","preRender","render","postRender"],b4=40;function Ib(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ma.reduce((f,h)=>(f[h]=y4(i),f),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:p}=s,v=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,b4),1),o.timestamp=f,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:ma.reduce((f,h)=>{const m=s[h];return f[h]=(x,C=!1,A=!1)=>(n||b(),m.schedule(x,C,A)),f},{}),cancel:f=>{for(let h=0;h/^0[^.\s]+$/u.test(e);function S4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Fb(e):!0}let Zd=He;const jb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Lb=e=>t=>typeof t=="string"&&t.startsWith(e),Bb=Lb("--"),x4=Lb("var(--"),Ih=e=>x4(e)?w4.test(e.split("/*")[0].trim()):!1,w4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,k4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function C4(e){const t=k4.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Vb(e,t,n=1){const[r,o]=C4(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return jb(s)?parseFloat(s):s}return Ih(o)?Vb(o,t,n+1):o}const rr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Vi={...Ko,transform:e=>rr(0,1,e)},ga={...Ko,default:1},Oi=e=>Math.round(e*1e5)/1e5,Fh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,_4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,T4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Es(e){return typeof e=="string"}function P4(e){return e==null}const $s=e=>({test:t=>Es(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=$s("deg"),sn=$s("%"),B=$s("px"),E4=$s("vh"),$4=$s("vw"),ng={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},A4=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rg=e=>e===Ko||e===B,og=(e,t)=>parseFloat(e.split(", ")[t]),ig=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return og(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?og(i[1],e):0}},R4=new Set(["x","y","z"]),z4=Ps.filter(e=>!R4.has(e));function M4(e){const t=[];return z4.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bo={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:ig(4,13),y:ig(5,14)};Bo.translateX=Bo.x;Bo.translateY=Bo.y;const Ob=e=>t=>t.test(e),D4={test:e=>e==="auto",parse:e=>e},Nb=[Ko,B,sn,Bn,$4,E4,D4],sg=e=>Nb.find(Ob(e)),Dr=new Set;let Jd=!1,ef=!1;function Wb(){if(ef){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=M4(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ef=!1,Jd=!1,Dr.forEach(e=>e.complete()),Dr.clear()}function Ub(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ef=!0)})}function I4(){Ub(),Wb()}class jh{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Dr.add(this),Jd||(Jd=!0,J.read(Ub),J.resolveKeyframes(Wb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Es(n)&&T4.test(n)&&n.startsWith(e)||t&&!P4(n)&&Object.prototype.hasOwnProperty.call(n,t)),Hb=(e,t,n)=>r=>{if(!Es(r))return r;const[o,i,s,a]=r.match(Fh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},F4=e=>rr(0,255,e),Mc={...Ko,transform:e=>Math.round(F4(e))},Er={test:Lh("rgb","red"),parse:Hb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Mc.transform(e)+", "+Mc.transform(t)+", "+Mc.transform(n)+", "+Oi(Vi.transform(r))+")"};function j4(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const tf={test:Lh("#"),parse:j4,transform:Er.transform},ho={test:Lh("hsl","hue"),parse:Hb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sn.transform(Oi(t))+", "+sn.transform(Oi(n))+", "+Oi(Vi.transform(r))+")"},Ne={test:e=>Er.test(e)||tf.test(e)||ho.test(e),parse:e=>Er.test(e)?Er.parse(e):ho.test(e)?ho.parse(e):tf.parse(e),transform:e=>Es(e)?e:e.hasOwnProperty("red")?Er.transform(e):ho.transform(e)};function L4(e){var t,n;return isNaN(e)&&Es(e)&&(((t=e.match(Fh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(_4))===null||n===void 0?void 0:n.length)||0)>0}const Kb="number",Gb="color",B4="var",V4="var(",ag="${}",O4=/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 vs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(O4,l=>(Ne.test(l)?(r.color.push(i),o.push(Gb),n.push(Ne.parse(l))):l.startsWith(V4)?(r.var.push(i),o.push(B4),n.push(l)):(r.number.push(i),o.push(Kb),n.push(parseFloat(l))),++i,ag)).split(ag);return{values:n,split:a,indexes:r,types:o}}function Yb(e){return vs(e).values}function Xb(e){const{split:t,types:n}=vs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function W4(e){const t=Yb(e);return Xb(e)(t.map(N4))}const or={test:L4,parse:Yb,createTransformer:Xb,getAnimatableNone:W4},U4=new Set(["brightness","contrast","saturate","opacity"]);function H4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fh)||[];if(!r)return e;const o=n.replace(r,"");let i=U4.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const K4=/\b([a-z-]*)\(.*?\)/gu,nf={...or,getAnimatableNone:e=>{const t=e.match(K4);return t?t.map(H4).join(" "):e}},lg={...Ko,transform:Math.round},Bh={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,size:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:ga,scaleX:ga,scaleY:ga,scaleZ:ga,skew:Bn,skewX:Bn,skewY:Bn,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Vi,originX:ng,originY:ng,originZ:B,zIndex:lg,backgroundPositionX:B,backgroundPositionY:B,fillOpacity:Vi,strokeOpacity:Vi,numOctaves:lg},G4={...Bh,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:nf,WebkitFilter:nf},Vh=e=>G4[e];function qb(e,t){let n=Vh(e);return n!==nf&&(n=or),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Y4=new Set(["auto","none","0"]);function X4(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Zb(e){let t;return()=>(t===void 0&&(t=e()),t)}let Ha;function q4(){Ha=void 0}const kn={now:()=>(Ha===void 0&&kn.set(Ie.isProcessing||g4.useManualTiming?Ie.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(q4)}},ug=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(or.test(e)||e==="0")&&!e.startsWith("url("));function Q4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nJ4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&I4(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=kn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Z4(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(yu(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={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 eS(e,t){return t?e*(1e3/t):0}const ez=5;function tS(e,t,n){const r=Math.max(t-ez,0);return eS(n-e(r),t-r)}const Dc=.001,tz=.01,nz=10,rz=.05,oz=1;function iz({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=rr(rz,oz,s),e=rr(tz,nz,wn(e)),s<1?(o=u=>{const c=u*s,d=c*e,p=c-n,v=rf(u,s),b=Math.exp(-d);return Dc-p/v*b},i=u=>{const d=u*s*e,p=d*n+n,v=Math.pow(s,2)*Math.pow(u,2)*e,b=Math.exp(-d),y=rf(Math.pow(u,2),s);return(-o(u)+Dc>0?-1:1)*((p-v)*b)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Dc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=az(o,i,a);if(e=xn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const sz=12;function az(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function cz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!cg(e,uz)&&cg(e,lz)){const n=iz(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function nS({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=cz({...r,velocity:-wn(r.velocity||0)}),v=d||0,b=l/(2*Math.sqrt(a*u)),y=i-o,S=wn(Math.sqrt(a/u)),f=Math.abs(y)<5;n||(n=f?.01:2),t||(t=f?.005:.5);let h;if(b<1){const m=rf(S,b);h=x=>{const C=Math.exp(-b*S*x);return i-C*((v+b*S*y)/m*Math.sin(m*x)+y*Math.cos(m*x))}}else if(b===1)h=m=>i-Math.exp(-S*m)*(y+(v+S*y)*m);else{const m=S*Math.sqrt(b*b-1);h=x=>{const C=Math.exp(-b*S*x),A=Math.min(m*x,300);return i-C*((v+b*S*y)*Math.sinh(A)+m*y*Math.cosh(A))/m}}return{calculatedDuration:p&&c||null,next:m=>{const x=h(m);if(p)s.done=m>=c;else{let C=0;b<1&&(C=m===0?xn(v):tS(h,m,x));const A=Math.abs(C)<=n,$=Math.abs(i-x)<=t;s.done=A&&$}return s.value=s.done?i:x,s}}}function dg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},v=P=>a!==void 0&&Pl,b=P=>a===void 0?l:l===void 0||Math.abs(a-P)-y*Math.exp(-P/r),m=P=>f+h(P),x=P=>{const D=h(P),z=m(P);p.done=Math.abs(D)<=u,p.value=p.done?f:z};let C,A;const $=P=>{v(p.value)&&(C=P,A=nS({keyframes:[p.value,b(p.value)],velocity:tS(m,P,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:P=>{let D=!1;return!A&&C===void 0&&(D=!0,x(P),$(P)),C!==void 0&&P>=C?A.next(P-C):(!D&&x(P),p)}}}const rS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dz=1e-7,fz=12;function hz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=rS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>dz&&++ahz(i,0,1,e,n);return i=>i===0||i===1?i:rS(o(i),t,r)}const pz=As(.42,0,1,1),mz=As(0,0,.58,1),oS=As(.42,0,.58,1),gz=e=>Array.isArray(e)&&typeof e[0]!="number",iS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sS=e=>t=>1-e(1-t),Oh=e=>1-Math.sin(Math.acos(e)),aS=sS(Oh),vz=iS(Oh),lS=As(.33,1.53,.69,.99),Nh=sS(lS),yz=iS(Nh),bz=e=>(e*=2)<1?.5*Nh(e):.5*(2-Math.pow(2,-10*(e-1))),fg={linear:He,easeIn:pz,easeInOut:oS,easeOut:mz,circIn:Oh,circInOut:vz,circOut:aS,backIn:Nh,backInOut:yz,backOut:lS,anticipate:bz},hg=e=>{if(Array.isArray(e)){Zd(e.length===4);const[t,n,r,o]=e;return As(t,n,r,o)}else if(typeof e=="string")return Zd(fg[e]!==void 0),fg[e];return e},Sz=(e,t)=>n=>t(e(n)),Cn=(...e)=>e.reduce(Sz),ys=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},me=(e,t,n)=>e+(t-e)*n;function Ic(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 xz({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Ic(l,a,e+1/3),i=Ic(l,a,e),s=Ic(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function El(e,t){return n=>n>0?t:e}const Fc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},wz=[tf,Er,ho],kz=e=>wz.find(t=>t.test(e));function pg(e){const t=kz(e);if(!t)return!1;let n=t.parse(e);return t===ho&&(n=xz(n)),n}const mg=(e,t)=>{const n=pg(e),r=pg(t);if(!n||!r)return El(e,t);const o={...n};return i=>(o.red=Fc(n.red,r.red,i),o.green=Fc(n.green,r.green,i),o.blue=Fc(n.blue,r.blue,i),o.alpha=me(n.alpha,r.alpha,i),Er.transform(o))},of=new Set(["none","hidden"]);function Cz(e,t){return of.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _z(e,t){return n=>me(e,t,n)}function Wh(e){return typeof e=="number"?_z:typeof e=="string"?Ih(e)?El:Ne.test(e)?mg:Ez:Array.isArray(e)?uS:typeof e=="object"?Ne.test(e)?mg:Tz:El}function uS(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Wh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function Pz(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=or.createTransformer(t),r=vs(e),o=vs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?of.has(e)&&!o.values.length||of.has(t)&&!r.values.length?Cz(e,t):Cn(uS(Pz(r,o),o.values),n):El(e,t)};function cS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?me(e,t,n):Wh(e)(e,t)}function $z(e,t,n){const r=[],o=n||cS,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=$z(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(rr(e[0],e[i-1],u)):l}function Rz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ys(0,t,r);e.push(me(n,1,o))}}function zz(e){const t=[0];return Rz(t,e.length-1),t}function Mz(e,t){return e.map(n=>n*t)}function Dz(e,t){return e.map(()=>t||oS).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=gz(r)?r.map(hg):hg(r),i={done:!1,value:t[0]},s=Mz(n&&n.length===t.length?n:zz(t),e),a=Az(s,t,{ease:Array.isArray(o)?o:Dz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const gg=2e4;function Iz(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=gg?1/0:t}const Fz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>J.update(t,!0),stop:()=>Rn(t),now:()=>Ie.isProcessing?Ie.timestamp:kn.now()}},jz={decay:dg,inertia:dg,tween:$l,keyframes:$l,spring:nS},Lz=e=>e/100;class Uh extends Jb{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:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||jh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=jz[n]||$l;let l,u;a!==$l&&typeof t[0]!="number"&&(l=Cn(Lz,cS(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Iz(c));const{calculatedDuration:d}=c,p=d+o,v=p*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:p,totalDuration:v}}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:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:v,repeatType:b,repeatDelay:y,onUpdate:S}=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 f=this.currentTime-p*(this.speed>=0?1:-1),h=this.speed>=0?f<0:f>c;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,x=i;if(v){const P=Math.min(this.currentTime,c)/d;let D=Math.floor(P),z=P%1;!z&&P>=1&&(z=1),z===1&&D--,D=Math.min(D,v+1),!!(D%2)&&(b==="reverse"?(z=1-z,y&&(z-=y/d)):b==="mirror"&&(x=s)),m=rr(0,1,z)*d}const C=h?{done:!1,value:l[0]}:x.next(m);a&&(C.value=a(C.value));let{done:A}=C;!h&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return $&&o!==void 0&&(C.value=yu(l,this.options,o)),S&&S(C.value),$&&this.finish(),C}get duration(){const{resolved:t}=this;return t?wn(t.calculatedDuration):0}get time(){return wn(this.currentTime)}set time(t){t=xn(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=wn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Fz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=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 dS=new Set(["opacity","clipPath","filter","transform"]),fS=e=>Array.isArray(e)&&typeof e[0]=="number";function hS(e){return!!(!e||typeof e=="string"&&e in Hh||fS(e)||Array.isArray(e)&&e.every(hS))}const wi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wi([0,.65,.55,1]),circOut:wi([.55,0,1,.45]),backIn:wi([.31,.01,.66,-.59]),backOut:wi([.33,1.53,.69,.99])};function Bz(e){return pS(e)||Hh.easeOut}function pS(e){if(e)return fS(e)?wi(e):Array.isArray(e)?e.map(Bz):Hh[e]}function Vz(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pS(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const Oz=Zb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Al=10,Nz=2e4;function Wz(e){return e.type==="spring"||!hS(e.ease)}function Uz(e,t){const n=new Uh({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(Wz(this.options)){const{onComplete:p,onUpdate:v,motionValue:b,element:y,...S}=this.options,f=Uz(t,S);t=f.keyframes,t.length===1&&(t[1]=t[0]),o=f.duration,i=f.times,s=f.ease,a="keyframes"}const d=Vz(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;l.set(yu(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xn(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 He;const{animation:r}=n;r.timeline=t,r.onfinish=null}return He}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:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:p,...v}=this.options,b=new Uh({...v,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=xn(this.time);u.setWithVelocity(b.sample(y-Al).value,b.sample(y).value,Al)}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:o,repeatType:i,damping:s,type:a}=t;return Oz()&&r&&dS.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function Hz(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return J.update(r,!0),()=>Rn(r)}const Kz=Zb(()=>window.ScrollTimeline!==void 0);class Gz{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;r{if(Kz()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),Hz(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].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")}}const Kh=(e,t,n,r={},o,i,s)=>a=>{const l=Dh(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-xn(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:v=>{t.set(v),l.onUpdate&&l.onUpdate(v)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};m4(l)||(d={...d,...p4(e,d)}),d.duration&&(d.duration=xn(d.duration)),d.repeatDelay&&(d.repeatDelay=xn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!i&&t.get()!==void 0){const v=yu(d.keyframes,l);if(v!==void 0)return J.update(()=>{d.onUpdate(v),d.onComplete()}),new Gz([])}return!i&&vg.supports(d)?new vg(d):new Uh(d)},Yz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Xz=e=>Qd(e)?e[e.length-1]||0:e;function bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Su(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gh{constructor(){this.subscriptions=[]}add(t){return bu(this.subscriptions,t),()=>Su(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class mS{constructor(t,n={}){this.version="11.5.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=kn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=kn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qz(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 Gh);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yg);return eS(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 bs(e,t){return new mS(e,t)}function Qz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bs(n))}function Zz(e,t){const n=vu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Xz(i[s]);Qz(e,s,a)}}const xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jz="framerAppearId",gS="data-"+xu(Jz);function vS(e){return e.props[gS]}function yS(e){if(ur.has(e))return"transform";if(dS.has(e))return xu(e)}class eM extends mS{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=yS(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(Su(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}const Ue=e=>!!(e&&e.getVelocity);function tM(e){return!!(Ue(e)&&e.add)}function sf(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new eM("auto"),e.addValue("willChange",r)),tM(r))return r.add(t)}function nM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bS(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const p=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),v=l[d];if(v===void 0||c&&nM(c,d))continue;const b={delay:n,...Dh(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const f=vS(e);if(f){const h=window.MotionHandoffAnimation(f,d,J);h!==null&&(b.startTime=h,y=!0)}}p.start(Kh(d,p,v,e.shouldReduceMotion&&ur.has(d)?{type:!1}:b,e,y,sf(e,d)));const S=p.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{J.update(()=>{a&&Zz(e,a)})}),u}function af(e,t,n={}){var r;const o=vu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(bS(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:p}=i;return rM(e,t,c+u,d,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function rM(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(oM).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(af(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function oM(e,t){return e.sortNodePosition(t)}function iM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>af(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=af(e,t,n);else{const o=typeof t=="function"?vu(e,t,n.custom):t;r=Promise.all(bS(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const sM=[...zh].reverse(),aM=zh.length;function lM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>iM(e,n,r)))}function uM(e){let t=lM(e),n=bg(),r=!0;const o=l=>(u,c)=>{var d;const p=vu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(p){const{transition:v,transitionEnd:b,...y}=p;u={...u,...y,...b}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],p=new Set;let v={},b=1/0;for(let S=0;Sb&&x,D=!1;const z=Array.isArray(m)?m:[m];let ne=z.reduce(o(f),{});C===!1&&(ne={});const{prevResolvedValues:Ye={}}=h,an={...Ye,...ne},dr=_e=>{P=!0,p.has(_e)&&(D=!0,p.delete(_e)),h.needsAnimating[_e]=!0;const Xe=e.getValue(_e);Xe&&(Xe.liveStyle=!1)};for(const _e in an){const Xe=ne[_e],ln=Ye[_e];if(v.hasOwnProperty(_e))continue;let M=!1;Qd(Xe)&&Qd(ln)?M=!Db(Xe,ln):M=Xe!==ln,M?Xe!=null?dr(_e):p.add(_e):Xe!==void 0&&p.has(_e)?dr(_e):h.protectedKeys[_e]=!0}h.prevProp=m,h.prevResolvedValues=ne,h.isActive&&(v={...v,...ne}),r&&e.blockInitialAnimation&&(P=!1),P&&(!A||D)&&d.push(...z.map(_e=>({animation:_e,options:{type:f}})))}if(p.size){const S={};p.forEach(f=>{const h=e.getBaseTarget(f),m=e.getValue(f);m&&(m.liveStyle=!0),S[f]=h??null}),d.push({animation:S})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):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 v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=bg(),r=!0}}}function cM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Db(t,e):!1}function vr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bg(){return{animate:vr(!0),whileInView:vr(),whileHover:vr(),whileTap:vr(),whileDrag:vr(),whileFocus:vr(),exit:vr()}}class cr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dM extends cr{constructor(t){super(t),t.animationState||(t.animationState=uM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ms(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 fM=0;class hM extends cr{constructor(){super(...arguments),this.id=fM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const pM={animation:{Feature:dM},exit:{Feature:hM}},SS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function wu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const mM=e=>t=>SS(t)&&e(t,wu(t));function yn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _n(e,t,n,r){return yn(e,t,mM(n),r)}const Sg=(e,t)=>Math.abs(e-t);function gM(e,t){const n=Sg(e.x,t.x),r=Sg(e.y,t.y);return Math.sqrt(n**2+r**2)}class xS{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!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 d=Lc(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=gM(d.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:b}=d,{timestamp:y}=Ie;this.history.push({...b,timestamp:y});const{onStart:S,onMove:f}=this.handlers;p||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),f&&f(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=jc(p,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Lc(d.type==="pointercancel"?this.lastMoveEventInfo:jc(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,S),b&&b(d,S)},!SS(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=wu(t),a=jc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ie;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Lc(a,this.history)),this.removeListeners=Cn(_n(this.contextWindow,"pointermove",this.handlePointerMove),_n(this.contextWindow,"pointerup",this.handlePointerUp),_n(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rn(this.updatePoint)}}function jc(e,t){return t?{point:t(e.point)}:e}function xg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lc({point:e},t){return{point:e,delta:xg(e,wS(t)),offset:xg(e,vM(t)),velocity:yM(t,.1)}}function vM(e){return e[0]}function wS(e){return e[e.length-1]}function yM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wS(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=wn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function kS(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wg=kS("dragHorizontal"),kg=kS("dragVertical");function CS(e){let t=!1;if(e==="y")t=kg();else if(e==="x")t=wg();else{const n=wg(),r=kg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function _S(){const e=CS(!0);return e?(e(),!1):!0}function po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const TS=1e-4,bM=1-TS,SM=1+TS,PS=.01,xM=0-PS,wM=0+PS;function vt(e){return e.max-e.min}function kM(e,t,n){return Math.abs(e-t)<=n}function Cg(e,t,n,r=.5){e.origin=r,e.originPoint=me(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),e.translate=me(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bM&&e.scale<=SM||isNaN(e.scale))&&(e.scale=1),(e.translate>=xM&&e.translate<=wM||isNaN(e.translate))&&(e.translate=0)}function Ni(e,t,n,r){Cg(e.x,t.x,n.x,r?r.originX:void 0),Cg(e.y,t.y,n.y,r?r.originY:void 0)}function _g(e,t,n){e.min=n.min+t.min,e.max=e.min+vt(t)}function CM(e,t,n){_g(e.x,t.x,n.x),_g(e.y,t.y,n.y)}function Tg(e,t,n){e.min=t.min-n.min,e.max=e.min+vt(t)}function Wi(e,t,n){Tg(e.x,t.x,n.x),Tg(e.y,t.y,n.y)}function _M(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?me(n,e,r.max):Math.min(e,n)),e}function Pg(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 TM(e,{top:t,left:n,bottom:r,right:o}){return{x:Pg(e.x,n,o),y:Pg(e.y,t,r)}}function Eg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ys(t.min,t.max-r,e.min):r>o&&(n=ys(e.min,e.max-o,t.min)),rr(0,1,n)}function $M(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 lf=.35;function AM(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:$g(e,"left","right"),y:$g(e,"top","bottom")}}function $g(e,t,n){return{min:Ag(e,t),max:Ag(e,n)}}function Ag(e,t){return typeof e=="number"?e:e[t]||0}const Rg=()=>({translate:0,scale:1,origin:0,originPoint:0}),mo=()=>({x:Rg(),y:Rg()}),zg=()=>({min:0,max:0}),be=()=>({x:zg(),y:zg()});function Ct(e){return[e("x"),e("y")]}function ES({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function RM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zM(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 Bc(e){return e===void 0||e===1}function uf({scale:e,scaleX:t,scaleY:n}){return!Bc(e)||!Bc(t)||!Bc(n)}function Sr(e){return uf(e)||$S(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $S(e){return Mg(e.x)||Mg(e.y)}function Mg(e){return e&&e!=="0%"}function Rl(e,t,n){const r=e-n,o=t*r;return n+o}function Dg(e,t,n,r,o){return o!==void 0&&(e=Rl(e,o,r)),Rl(e,n,r)+t}function cf(e,t=0,n=1,r,o){e.min=Dg(e.min,t,n,r,o),e.max=Dg(e.max,t,n,r,o)}function AS(e,{x:t,y:n}){cf(e.x,t.translate,t.scale,t.originPoint),cf(e.y,n.translate,n.scale,n.originPoint)}const Ig=.999999999999,Fg=1.0000000000001;function MM(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aIg&&(t.x=1),t.yIg&&(t.y=1)}function go(e,t){e.min=e.min+t,e.max=e.max+t}function jg(e,t,n,r,o=.5){const i=me(e.min,e.max,o);cf(e,t,n,i,r)}function vo(e,t){jg(e.x,t.x,t.scaleX,t.scale,t.originX),jg(e.y,t.y,t.scaleY,t.scale,t.originY)}function RS(e,t){return ES(zM(e.getBoundingClientRect(),t))}function DM(e,t,n){const r=RS(e,n),{scroll:o}=t;return o&&(go(r.x,o.offset.x),go(r.y,o.offset.y)),r}const zS=({current:e})=>e?e.ownerDocument.defaultView:null,IM=new WeakMap;class FM{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=be(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wu(c,"page").point)},i=(c,d)=>{var p;const{drag:v,dragPropagation:b,onDragStart:y}=this.getProps();if(v&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=CS(v),!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),Ct(f=>{let h=this.getAxisMotionValue(f).get()||0;if(sn.test(h)){const{projection:m}=this.visualElement;if(m&&m.layout){const x=m.layout.layoutBox[f];x&&(h=vt(x)*(parseFloat(h)/100))}}this.originPoint[f]=h}),y&&J.postRender(()=>y(c,d)),(p=this.removeWillChange)===null||p===void 0||p.call(this),this.removeWillChange=sf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:b,onDrag:y}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:S}=d;if(v&&this.currentDirection===null){this.currentDirection=jM(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Ct(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new xS(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:zS(this.visualElement)})}stop(t,n){var r;(r=this.removeWillChange)===null||r===void 0||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&J.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!va(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=_M(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&po(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=TM(o.layoutBox,n):this.constraints=!1,this.elastic=AM(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ct(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=$M(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!po(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=DM(r,o.root,this.visualElement.getTransformPagePoint());let s=PM(o.layout.layoutBox,i);if(n){const a=n(RM(s));this.hasMutatedConstraints=!!a,a&&(s=ES(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ct(c=>{if(!va(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const p=o?200:1e6,v=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Kh(t,r,0,n,this.visualElement,!1,sf(this.visualElement,t)))}stopAnimation(){Ct(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ct(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(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ct(n=>{const{drag:r}=this.getProps();if(!va(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!po(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ct(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=EM({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ct(s=>{if(!va(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(me(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;IM.set(this.visualElement,this);const t=this.visualElement.current,n=_n(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();po(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),J.read(r);const s=yn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ct(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=lf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function va(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class LM extends cr{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new FM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const Lg=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class BM extends cr{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new xS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Lg(t),onStart:Lg(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&J.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=_n(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 Rs=_.createContext(null);function VM(){const e=_.useContext(Rs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.useId();_.useEffect(()=>r(o),[]);const i=_.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function OM(){return NM(_.useContext(Rs))}function NM(e){return e===null?!0:e.isPresent}const Yh=_.createContext({}),MS=_.createContext({}),Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=Bg(e,t.target.x),r=Bg(e,t.target.y);return`${n}% ${r}%`}},WM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=or.parse(e);if(o.length>5)return r;const i=or.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=me(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},zl={};function UM(e){Object.assign(zl,e)}const{schedule:Xh,cancel:AF}=Ib(queueMicrotask,!1);class HM extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;UM(KM),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||J.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Xh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function DS(e){const[t,n]=VM(),r=_.useContext(Yh);return T.jsx(HM,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(MS),isPresent:t,safeToRemove:n})}const KM={borderRadius:{...fi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fi,borderTopRightRadius:fi,borderBottomLeftRadius:fi,borderBottomRightRadius:fi,boxShadow:WM},IS=["TopLeft","TopRight","BottomLeft","BottomRight"],GM=IS.length,Vg=e=>typeof e=="string"?parseFloat(e):e,Og=e=>typeof e=="number"||B.test(e);function YM(e,t,n,r,o,i){o?(e.opacity=me(0,n.opacity!==void 0?n.opacity:1,XM(r)),e.opacityExit=me(t.opacity!==void 0?t.opacity:1,0,qM(r))):i&&(e.opacity=me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ys(e,t,r))}function Wg(e,t){e.min=t.min,e.max=t.max}function wt(e,t){Wg(e.x,t.x),Wg(e.y,t.y)}function Ug(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hg(e,t,n,r,o){return e-=t,e=Rl(e,1/n,r),o!==void 0&&(e=Rl(e,1/o,r)),e}function QM(e,t=0,n=1,r=.5,o,i=e,s=e){if(sn.test(t)&&(t=parseFloat(t),t=me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=me(i.min,i.max,r);e===i&&(a-=t),e.min=Hg(e.min,t,n,a,o),e.max=Hg(e.max,t,n,a,o)}function Kg(e,t,[n,r,o],i,s){QM(e,t[n],t[r],t[o],t.scale,i,s)}const ZM=["x","scaleX","originX"],JM=["y","scaleY","originY"];function Gg(e,t,n,r){Kg(e.x,t,ZM,n?n.x:void 0,r?r.x:void 0),Kg(e.y,t,JM,n?n.y:void 0,r?r.y:void 0)}function Yg(e){return e.translate===0&&e.scale===1}function jS(e){return Yg(e.x)&&Yg(e.y)}function Xg(e,t){return e.min===t.min&&e.max===t.max}function eD(e,t){return Xg(e.x,t.x)&&Xg(e.y,t.y)}function qg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function LS(e,t){return qg(e.x,t.x)&&qg(e.y,t.y)}function Qg(e){return vt(e.x)/vt(e.y)}function Zg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tD{constructor(){this.members=[]}add(t){bu(this.members,t),t.scheduleRender()}remove(t){if(Su(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 nD(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:v,skewY:b}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),b&&(r+=`skewY(${b}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 rD=(e,t)=>e.depth-t.depth;class oD{constructor(){this.children=[],this.isDirty=!1}add(t){bu(this.children,t),this.isDirty=!0}remove(t){Su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rD),this.isDirty=!1,this.children.forEach(t)}}function Ga(e){const t=Ue(e)?e.get():e;return Yz(t)?t.toValue():t}function iD(e,t){const n=kn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Rn(r),e(i-t))};return J.read(r,!0),()=>Rn(r)}function sD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function aD(e,t,n){const r=Ue(e)?e:bs(e);return r.start(Kh("",r,t,n)),r.animation}const xr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ki=typeof window<"u"&&window.MotionDebug!==void 0,Vc=["","X","Y","Z"],lD={visibility:"hidden"},Jg=1e3;let uD=0;function Oc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function BS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=vS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&BS(r)}function VS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=uD++,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,ki&&(xr.totalNodes=xr.resolvedTargetDeltas=xr.recalculatedProjection=0),this.nodes.forEach(fD),this.nodes.forEach(vD),this.nodes.forEach(yD),this.nodes.forEach(hD),ki&&window.MotionDebug.record(xr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=iD(p,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(tv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||kD,{onLayoutAnimationStart:S,onLayoutAnimationComplete:f}=c.getProps(),h=!this.targetLayout||!LS(this.targetLayout,b)||v,m=!p&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||p&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const x={...Dh(y,"layout"),onPlay:S,onComplete:f};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else p||tv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rn(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(bD),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&BS(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 C=x/1e3;nv(d.x,s.x,C),nv(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wi(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xD(this.relativeTarget,this.relativeTargetOrigin,p,C),m&&eD(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=be()),wt(m,this.relativeTarget)),y&&(this.animationValues=c,YM(c,u,this.latestValues,C,h,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=aD(0,Jg,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&OS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||be();const d=vt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=vt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}wt(a,l),vo(a,c),Ni(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tD),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Oc("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ev),this.root.sharedNodes.clear()}}}function cD(e){e.updateLayout()}function dD(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:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Ct(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],v=vt(p);p.min=r[d].min,p.max=p.min+v}):OS(i,n.layoutBox,r)&&Ct(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],v=vt(r[d]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const a=mo();Ni(a,r,n.layoutBox);const l=mo();s?Ni(l,e.applyTransform(o,!0),n.measuredBox):Ni(l,r,n.layoutBox);const u=!jS(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:v}=d;if(p&&v){const b=be();Wi(b,n.layoutBox,p.layoutBox);const y=be();Wi(y,r,v.layoutBox),LS(b,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=b,e.relativeParent=d)}}}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 fD(e){ki&&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 hD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pD(e){e.clearSnapshot()}function ev(e){e.clearMeasurements()}function mD(e){e.isLayoutDirty=!1}function gD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vD(e){e.resolveTargetDelta()}function yD(e){e.calcProjection()}function bD(e){e.resetSkewAndRotation()}function SD(e){e.removeLeadSnapshot()}function nv(e,t,n){e.translate=me(t.translate,0,n),e.scale=me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rv(e,t,n,r){e.min=me(t.min,n.min,r),e.max=me(t.max,n.max,r)}function xD(e,t,n,r){rv(e.x,t.x,n.x,r),rv(e.y,t.y,n.y,r)}function wD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kD={duration:.45,ease:[.4,0,.1,1]},ov=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iv=ov("applewebkit/")&&!ov("chrome/")?Math.round:He;function sv(e){e.min=iv(e.min),e.max=iv(e.max)}function CD(e){sv(e.x),sv(e.y)}function OS(e,t,n){return e==="position"||e==="preserve-aspect"&&!kM(Qg(t),Qg(n),.2)}function _D(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TD=VS({attachResizeListener:(e,t)=>yn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nc={current:void 0},NS=VS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nc.current){const e=new TD({});e.mount(window),e.setOptions({layoutScroll:!0}),Nc.current=e}return Nc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),PD={pan:{Feature:BM},drag:{Feature:LM,ProjectionNode:NS,MeasureLayout:DS}};function av(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||_S())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&J.postRender(()=>l(i,s))};return _n(e.current,n,o,{passive:!e.getProps()[r]})}class ED extends cr{mount(){this.unmount=Cn(av(this.node,!0),av(this.node,!1))}unmount(){}}class $D extends cr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cn(yn(this.node.current,"focus",()=>this.onFocus()),yn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const WS=(e,t)=>t?e===t?!0:WS(e,t.parentElement):!1;function Wc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,wu(n))}class AD extends cr{constructor(){super(...arguments),this.removeStartListeners=He,this.removeEndListeners=He,this.removeAccessibleListeners=He,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=_n(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),p=!d&&!WS(this.node.current,a.target)?c:u;p&&J.update(()=>p(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=_n(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Cn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Wc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&J.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=yn(this.node.current,"keyup",s),Wc("down",(a,l)=>{this.startPress(a,l)})},n=yn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Wc("cancel",(i,s)=>this.cancelPress(i,s))},o=yn(this.node.current,"blur",r);this.removeAccessibleListeners=Cn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&J.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_S()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&J.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=_n(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Cn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const df=new WeakMap,Uc=new WeakMap,RD=e=>{const t=df.get(e.target);t&&t(e)},zD=e=>{e.forEach(RD)};function MD({root:e,...t}){const n=e||document;Uc.has(n)||Uc.set(n,{});const r=Uc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(zD,{root:e,...t})),r[o]}function DD(e,t,n){const r=MD(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const ID={some:0,all:1};class FD extends cr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:ID[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return DD(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(jD(t,n))&&this.startObserver()}unmount(){}}function jD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LD={inView:{Feature:FD},tap:{Feature:AD},focus:{Feature:$D},hover:{Feature:ED}},BD={layout:{ProjectionNode:NS,MeasureLayout:DS}},qh=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ku=_.createContext({}),Qh=typeof window<"u",US=Qh?_.useLayoutEffect:_.useEffect,HS=_.createContext({strict:!1});let lv=!1;function VD(e,t,n,r,o){var i;const{visualElement:s}=_.useContext(ku),a=_.useContext(HS),l=_.useContext(Rs),u=_.useContext(qh).reducedMotion,c=_.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const d=c.current,p=_.useContext(MS);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&ND(c.current,n,o,p),_.useInsertionEffect(()=>{d&&d.update(n,l)});const v=n[gS],b=_.useRef(!!v&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,v)));return US(()=>{d&&(d.updateFeatures(),Xh.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),_.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current=!1,lv||(lv=!0,queueMicrotask(OD)))}),d}function OD(){window.MotionHandoffIsComplete=!0}function ND(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:KS(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&po(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function KS(e){if(e)return e.options.allowProjection!==!1?e.projection:KS(e.parent)}function WD(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):po(n)&&(n.current=r))},[t])}function Cu(e){return ms(e.animate)||Mh.some(t=>gs(e[t]))}function GS(e){return!!(Cu(e)||e.variants)}function UD(e,t){if(Cu(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 HD(e){const{initial:t,animate:n}=UD(e,_.useContext(ku));return _.useMemo(()=>({initial:t,animate:n}),[uv(t),uv(n)])}function uv(e){return Array.isArray(e)?e.join(" "):e}const cv={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"]},Vo={};for(const e in cv)Vo[e]={isEnabled:t=>cv[e].some(n=>!!t[n])};function KD(e){for(const t in e)Vo[t]={...Vo[t],...e[t]}}const GD=Symbol.for("motionComponentSymbol");function YD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&KD(e);function i(a,l){let u;const c={..._.useContext(qh),...a,layoutId:XD(a)},{isStatic:d}=c,p=HD(a),v=r(a,d);if(!d&&Qh){qD();const b=QD(c);u=b.MeasureLayout,p.visualElement=VD(o,v,c,t,b.ProjectionNode)}return T.jsxs(ku.Provider,{value:p,children:[u&&p.visualElement?T.jsx(u,{visualElement:p.visualElement,...c}):null,n(o,a,WD(v,p.visualElement,l),v,d,p.visualElement)]})}const s=_.forwardRef(i);return s[GD]=o,s}function XD({layoutId:e}){const t=_.useContext(Yh).id;return t&&e!==void 0?t+"-"+e:e}function qD(e,t){_.useContext(HS).strict}function QD(e){const{drag:t,layout:n}=Vo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ZD=["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 Zh(e){return typeof e!="string"||e.includes("-")?!1:!!(ZD.indexOf(e)>-1||/[A-Z]/u.test(e))}function YS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const XS=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 qS(e,t,n,r){YS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(XS.has(o)?o:xu(o),t.attrs[o])}function QS(e,{layout:t,layoutId:n}){return ur.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function Jh(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ue(o[s])||t.style&&Ue(t.style[s])||QS(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function ZS(e,t,n){const r=Jh(e,t,n);for(const o in e)if(Ue(e[o])||Ue(t[o])){const i=Ps.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function ep(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}function JD({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:tI(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const JS=e=>(t,n)=>{const r=_.useContext(ku),o=_.useContext(Rs),i=()=>JD(e,t,r,o,n);return n?i():ep(i)};function eI(e,t){const n=yS(t);n&&bu(e,n)}function dv(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const h in S){let m=S[h];if(Array.isArray(m)){const x=b?m.length-1:0;m=m[x]}m!==null&&(s[h]=m)}for(const h in f)s[h]=f[h]}),l&&(d&&c!==!1&&!ms(d)&&dv(e,d,S=>{for(const f in S)eI(a,f)}),a.length&&(s.willChange=a.join(","))),s}const tp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ex=()=>({...tp(),attrs:{}}),tx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,nI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rI=Ps.length;function oI(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",uI={useVisualState:JS({scrapeMotionValuesFromProps:ZS,createRenderState:ex,onMount:(e,t,{renderState:n,latestValues:r})=>{J.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),J.render(()=>{rp(n,r,op(t.tagName),e.transformTemplate),qS(t,n)})}})},cI={useVisualState:JS({applyWillChange:!0,scrapeMotionValuesFromProps:Jh,createRenderState:tp})};function nx(e,t,n){for(const r in t)!Ue(t[r])&&!QS(r,n)&&(e[r]=t[r])}function dI({transformTemplate:e},t){return _.useMemo(()=>{const n=tp();return np(n,t,e),Object.assign({},n.vars,n.style)},[t])}function fI(e,t){const n=e.style||{},r={};return nx(r,n,e),Object.assign(r,dI(e,t)),r}function hI(e,t){const n={},r=fI(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 pI=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 Ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||pI.has(e)}let rx=e=>!Ml(e);function mI(e){e&&(rx=t=>t.startsWith("on")?!Ml(t):e(t))}try{mI(require("@emotion/is-prop-valid").default)}catch{}function gI(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rx(o)||n===!0&&Ml(o)||!t&&!Ml(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function vI(e,t,n,r){const o=_.useMemo(()=>{const i=ex();return rp(i,t,op(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};nx(i,e.style,e),o.style={...i,...o.style}}return o}function yI(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Zh(n)?vI:hI)(r,i,s,n),u=gI(r,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:o}:{},{children:d}=r,p=_.useMemo(()=>Ue(d)?d.get():d,[d]);return _.createElement(n,{...c,children:p})}}function bI(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Zh(r)?uI:cI,preloadedFeatures:e,useRender:yI(o),createVisualElement:t,Component:r};return YD(s)}}const ff={current:null},ox={current:!1};function SI(){if(ox.current=!0,!!Qh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ff.current=e.matches;e.addListener(t),t()}else ff.current=!1}function xI(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ue(o))e.addValue(r,o);else if(Ue(i))e.addValue(r,bs(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,bs(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hv=new WeakMap,wI=[...Nb,Ne,or],kI=e=>wI.find(Ob(e)),pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CI=Mh.length;class _I{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=jh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,J.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Cu(n),this.isVariantNode=GS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const v=d[p];l[p]!==void 0&&Ue(v)&&v.set(l[p],!1)}}mount(t){this.current=t,hv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ox.current||SI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ff.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hv.delete(this.current),this.projection&&this.projection.unmount(),Rn(this.notifyUpdate),Rn(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=ur.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),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 Vo){const n=Vo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):be()}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=bs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(jb(o)||Fb(o))?o=parseFloat(o):!kI(o)&&or.test(n)&&(o=qb(t,n)),this.setBaseTarget(t,Ue(o)?o.get():o)),Ue(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Rh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ue(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ix extends _I{constructor(){super(...arguments),this.KeyframeResolver=Qb}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 TI(e){return window.getComputedStyle(e)}class PI extends ix{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=YS}readValueFromInstance(t,n){if(ur.has(n)){const r=Vh(n);return r&&r.default||0}else{const r=TI(t),o=(Bb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return RS(t,n)}build(t,n,r){np(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class EI extends ix{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=be}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ur.has(n)){const r=Vh(n);return r&&r.default||0}return n=XS.has(n)?n:xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ZS(t,n,r)}build(t,n,r){rp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){qS(t,n,r,o)}mount(t){this.isSVGTag=op(t.tagName),super.mount(t)}}const $I=(e,t)=>Zh(e)?new EI(t):new PI(t,{allowProjection:e!==_.Fragment}),AI=bI({...pM,...LD,...PD,...BD},$I),sx=u4(AI);class RI extends _.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 zI({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=_.useContext(qh);return _.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${s}px !important; - height: ${a}px !important; - top: ${l}px !important; - left: ${u}px !important; - } - `),()=>{document.head.removeChild(c)}},[t]),T.jsx(RI,{isPresent:t,childRef:r,sizeRef:o,children:_.cloneElement(e,{ref:r})})}const MI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ep(DI),l=_.useId(),u=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?[Math.random()]:[n]);return _.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=T.jsx(zI,{isPresent:n,children:e})),T.jsx(Rs.Provider,{value:u,children:e})};function DI(){return new Map}const ya=e=>e.key||"";function mv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const II=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=_.useMemo(()=>mv(e),[e]),l=a.map(ya),u=_.useRef(!0),c=_.useRef(a),d=ep(()=>new Map),[p,v]=_.useState(a),[b,y]=_.useState(a);US(()=>{u.current=!1,c.current=a;for(let h=0;h{const m=ya(h),x=a===b||l.includes(m),C=()=>{if(d.has(m))d.set(m,!0);else return;let A=!0;d.forEach($=>{$||(A=!1)}),A&&(f==null||f(),y(c.current),o&&o())};return T.jsx(MI,{isPresent:x,initial:!u.current||r?void 0:!1,custom:x?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:x?void 0:C,children:h},m)})})};var FI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},ax=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=FI,toastSpacing:c="0.5rem"}=e,[d,p]=_.useState(a),v=OM();eg(()=>{v||r==null||r()},[v]),eg(()=>{p(a)},[a]);const b=()=>p(null),y=()=>p(a),S=()=>{v&&o()};_.useEffect(()=>{v&&i&&o()},[v,i,o]),l4(S,d);const f=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=_.useMemo(()=>i4(s),[s]);return T.jsx(sx.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:b,onHoverEnd:y,custom:{position:s},style:h,children:T.jsx(ue.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:f,children:Jt(n,{id:t,onClose:S})})})});ax.displayName="ToastComponent";function jI(e,t){var n;const r=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=i==null?void 0:i[t])!=null?n:r}var gv={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),T.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Go=ze((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Ge("chakra-icon",a),d=Nr("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},v={ref:t,focusable:i,className:c,__css:p},b=r??gv.viewBox;if(n&&typeof n!="string")return T.jsx(ue.svg,{as:n,...v,...u});const y=s??gv.path;return T.jsx(ue.svg,{verticalAlign:"middle",viewBox:b,...v,...u,children:y})});Go.displayName="Icon";function ip(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=_.Children.toArray(e.path),s=ze((a,l)=>T.jsx(Go,{ref:l,viewBox:t,...o,...a,children:i.length?i:T.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function LI(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function BI(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function vv(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var VI=C2({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),sp=ze((e,t)=>{const n=Nr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Mn(e),u=Ge("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${VI} ${i} linear infinite`,...n};return T.jsx(ue.div,{ref:t,__css:c,className:u,...l,children:r&&T.jsx(ue.span,{srOnly:!0,children:r})})});sp.displayName="Spinner";var[OI,ap]=lr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[NI,lp]=lr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),lx={info:{icon:BI,colorScheme:"blue"},warning:{icon:vv,colorScheme:"orange"},success:{icon:LI,colorScheme:"green"},error:{icon:vv,colorScheme:"red"},loading:{icon:sp,colorScheme:"blue"}};function WI(e){return lx[e].colorScheme}function UI(e){return lx[e].icon}var ux=ze(function(t,n){const r=lp(),{status:o}=ap(),i={display:"inline",...r.description};return T.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ge("chakra-alert__desc",t.className),__css:i})});ux.displayName="AlertDescription";function cx(e){const{status:t}=ap(),n=UI(t),r=lp(),o=t==="loading"?r.spinner:r.icon;return T.jsx(ue.span,{display:"inherit","data-status":t,...e,className:Ge("chakra-alert__icon",e.className),__css:o,children:e.children||T.jsx(n,{h:"100%",w:"100%"})})}cx.displayName="AlertIcon";var dx=ze(function(t,n){const r=lp(),{status:o}=ap();return T.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ge("chakra-alert__title",t.className),__css:r.title})});dx.displayName="AlertTitle";var fx=ze(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=Mn(t),a=(r=t.colorScheme)!=null?r:WI(o),l=Ah("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return T.jsx(OI,{value:{status:o},children:T.jsx(NI,{value:l,children:T.jsx(ue.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:Ge("chakra-alert",t.className),__css:u})})})});fx.displayName="Alert";function HI(e){return T.jsx(Go,{focusable:"false","aria-hidden":!0,...e,children:T.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var hx=ze(function(t,n){const r=Nr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Mn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(ue.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||T.jsx(HI,{width:"1em",height:"1em"})})});hx.displayName="CloseButton";var KI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Zt=GI(KI);function GI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=YI(o,i),{position:a,id:l}=s;return r(u=>{var c,d;const v=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:v}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=J0(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:px(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=Mb(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!J0(Zt.getState(),o).position}}var yv=0;function YI(e,t={}){var n,r;yv+=1;const o=(n=t.id)!=null?n:yv,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Zt.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var XI=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return T.jsxs(fx,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[T.jsx(cx,{children:u}),T.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&T.jsx(dx,{id:c==null?void 0:c.title,children:o}),a&&T.jsx(ux,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&T.jsx(hx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function px(e={}){const{render:t,toastComponent:n=XI}=e;return o=>typeof t=="function"?t({...o,...e}):T.jsx(n,{...o,...e})}function qI(e,t){const n=o=>{var i;return{...t,...o,position:jI((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},r=o=>{const i=n(o),s=px(i);return Zt.notify(s,i)};return r.update=(o,i)=>{Zt.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...Jt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...Jt(i.error,a)}))},r.closeAll=Zt.closeAll,r.close=Zt.close,r.isActive=Zt.isActive,r}var[QI,ZI]=lr({name:"ToastOptionsContext",strict:!1}),JI=e=>{const t=_.useSyncExternalStore(Zt.subscribe,Zt.getState,Zt.getState),{motionVariants:n,component:r=ax,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:s4(a),children:T.jsx(II,{initial:!1,children:l.map(u=>T.jsx(r,{motionVariants:n,...u},u.id))})},a)});return T.jsx(du,{...o,children:s})};function eF(e){const{theme:t}=ib(),n=ZI();return _.useMemo(()=>qI(t.direction,{...n,...e}),[e,t.direction,n])}var tF=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return T.jsxs(r4,{theme:r,...i,children:[T.jsx(QI,{value:o==null?void 0:o.defaultOptions,children:n}),T.jsx(JI,{...o})]})},nF=tF(T3);function rF(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function hf(...e){return t=>{e.forEach(n=>{rF(n,t)})}}function oF(...e){return _.useMemo(()=>hf(...e),e)}function iF(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}var[zF,sF]=lr({strict:!1,name:"ButtonGroupContext"});function aF(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function pf(e){const{children:t,className:n,...r}=e,o=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ge("chakra-button__icon",n);return T.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}pf.displayName="ButtonIcon";function mf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=T.jsx(sp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Ge("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return T.jsx(ue.div,{className:l,...a,__css:c,children:o})}mf.displayName="ButtonSpinner";var up=ze((e,t)=>{const n=sF(),r=Nr("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:p,spinner:v,spinnerPlacement:b="start",className:y,as:S,...f}=Mn(e),h=_.useMemo(()=>{const A={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:m,type:x}=aF(S),C={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return T.jsxs(ue.button,{ref:oF(t,m),as:S,type:p??x,"data-active":Gt(s),"data-loading":Gt(i),__css:h,className:Ge("chakra-button",y),...f,disabled:o||i,children:[i&&b==="start"&&T.jsx(mf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:v}),i?c||T.jsx(ue.span,{opacity:0,children:T.jsx(bv,{...C})}):T.jsx(bv,{...C}),i&&b==="end"&&T.jsx(mf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:v})]})});up.displayName="Button";function bv(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(pf,{marginEnd:o,children:t}),r,n&&T.jsx(pf,{marginStart:o,children:n})]})}var cp=ze((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=_.isValidElement(a)?_.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return T.jsx(up,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});cp.displayName="IconButton";var[lF,uF]=lr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[cF,mx]=lr({strict:!1,name:"FormControlContext"});function dF(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=_.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[p,v]=_.useState(!1),[b,y]=_.useState(!1),[S,f]=_.useState(!1),h=_.useCallback(($={},P=null)=>({id:d,...$,ref:hf(P,D=>{D&&y(!0)})}),[d]),m=_.useCallback(($={},P=null)=>({...$,ref:P,"data-focus":Gt(S),"data-disabled":Gt(o),"data-invalid":Gt(r),"data-readonly":Gt(i),id:$.id!==void 0?$.id:u,htmlFor:$.htmlFor!==void 0?$.htmlFor:l}),[l,o,S,r,i,u]),x=_.useCallback(($={},P=null)=>({id:c,...$,ref:hf(P,D=>{D&&v(!0)}),"aria-live":"polite"}),[c]),C=_.useCallback(($={},P=null)=>({...$,...s,ref:P,role:"group","data-focus":Gt(S),"data-disabled":Gt(o),"data-invalid":Gt(r),"data-readonly":Gt(i)}),[s,o,S,r,i]),A=_.useCallback(($={},P=null)=>({...$,ref:P,role:"presentation","aria-hidden":!0,children:$.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>f(!0),onBlur:()=>f(!1),hasFeedbackText:p,setHasFeedbackText:v,hasHelpText:b,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:x,getRootProps:C,getLabelProps:m,getRequiredIndicatorProps:A}}var fF=ze(function(t,n){const r=Ah("Form",t),o=Mn(t),{getRootProps:i,htmlProps:s,...a}=dF(o),l=Ge("chakra-form-control",t.className);return T.jsx(cF,{value:a,children:T.jsx(lF,{value:r,children:T.jsx(ue.div,{...i({},n),className:l,__css:r.container})})})});fF.displayName="FormControl";var hF=ze(function(t,n){const r=mx(),o=uF(),i=Ge("chakra-form__helper-text",t.className);return T.jsx(ue.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});hF.displayName="FormHelperText";function pF(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=mF(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":hc(n),"aria-required":hc(o),"aria-readonly":hc(r)}}function mF(e){var t,n,r;const o=mx(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:p,onFocus:v,onBlur:b,...y}=e,S=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&S.push(o.feedbackId),o!=null&&o.hasHelpText&&S.push(o.helpTextId),{...y,"aria-describedby":S.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??p)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(n=a??d)!=null?n:o==null?void 0:o.isReadOnly,isRequired:(r=l??u)!=null?r:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:a0(o==null?void 0:o.onFocus,v),onBlur:a0(o==null?void 0:o.onBlur,b)}}var dp=ze(function(t,n){const{htmlSize:r,...o}=t,i=Ah("Input",o),s=Mn(o),a=pF(s),l=Ge("chakra-input",t.className);return T.jsx(ue.input,{size:r,...a,__css:i.field,ref:n,className:l})});dp.displayName="Input";dp.id="Input";function gF(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Ot(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var gx=ue("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});gx.displayName="Spacer";var vx=ze(function(t,n){const r=Nr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Mn(t),u=O3({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(ue.p,{ref:n,className:Ge("chakra-text",t.className),...u,...l,__css:r})});vx.displayName="Text";var yx=e=>T.jsx(ue.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});yx.displayName="StackDivider";var bx=e=>T.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});bx.displayName="StackItem";function vF(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":gF(n,o=>r[o])}}var fp=ze((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...p}=e,v=n?"row":r??"column",b=_.useMemo(()=>vF({spacing:s,direction:v}),[s,v]),y=!!u,S=!d&&!y,f=_.useMemo(()=>{const m=iF(l);return S?m:m.map((x,C)=>{const A=typeof x.key<"u"?x.key:C,$=C+1===m.length,D=d?T.jsx(bx,{children:x},A):x;if(!y)return D;const z=_.cloneElement(u,{__css:b}),ne=$?null:z;return T.jsxs(_.Fragment,{children:[D,ne]},A)})},[u,b,y,S,d,l]),h=Ge("chakra-stack",c);return T.jsx(ue.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:v,flexWrap:a,gap:y?void 0:s,className:h,...p,children:f})});fp.displayName="Stack";var hp=ze((e,t)=>T.jsx(fp,{align:"center",...e,direction:"column",ref:t}));hp.displayName="VStack";var pp=ze((e,t)=>T.jsx(fp,{align:"center",...e,direction:"row",ref:t}));pp.displayName="HStack";var Sx=ze(function(t,n){const r=Nr("Heading",t),{className:o,...i}=Mn(t);return T.jsx(ue.h2,{ref:n,className:Ge("chakra-heading",t.className),...i,__css:r})});Sx.displayName="Heading";var xx=ze(function(t,n){const r=Nr("Badge",t),{className:o,...i}=Mn(t);return T.jsx(ue.span,{ref:n,className:Ge("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});xx.displayName="Badge";const yF=({addTodo:e})=>{const t=_.useRef(null),n=eF(),r=i=>n({title:i,status:"error",duration:2e3,isClosable:!0}),o=i=>{if(i.preventDefault(),t.current===null)return;if(!t.current.value){r("This field is required.");return}const s=t.current.value;e(s),t.current.value=""};return T.jsx("form",{onSubmit:o,children:T.jsxs(pp,{m:"8",children:[T.jsx(dp,{variant:"filled",placeholder:"Add new todo",ref:t}),T.jsx(up,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})};var bF=ip({displayName:"SunIcon",path:T.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[T.jsx("circle",{cx:"12",cy:"12",r:"5"}),T.jsx("path",{d:"M12 1v2"}),T.jsx("path",{d:"M12 21v2"}),T.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),T.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),T.jsx("path",{d:"M1 12h2"}),T.jsx("path",{d:"M21 12h2"}),T.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),T.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),SF=ip({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),xF=ip({displayName:"DeleteIcon",path:T.jsx("g",{fill:"currentColor",children:T.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});const wF=({todos:e,deleteTodo:t})=>{if(e.length===0)return T.jsx(xx,{colorScheme:"green",p:"4",m:"4",borderRadius:"lg",children:"No Todos, yay~"});const n={p:"4",w:"100%",maxW:{base:"90vw",sm:"80vw",lg:"50vw",xl:"40vw"},borderColor:"gray.100",borderWidth:"2px",borderRadius:"lg",alignItems:"stretch",divider:T.jsx(yx,{})};return T.jsx(hp,{...n,children:e.map(r=>T.jsxs(pp,{children:[T.jsx(vx,{children:r.body}),T.jsx(gx,{}),T.jsx(cp,{"aria-label":"Delete todo",icon:T.jsx(xF,{}),onClick:()=>t(r.id)})]},r.id))})},kF=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,variant:"ghost",icon:t==="light"?T.jsx(SF,{}):T.jsx(bF,{}),"aria-label":"Switch DarkMode"};return T.jsx(sx.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:T.jsx(cp,{onClick:e,...n})})},mp=ql("light");mp.debugLabel="themeAtom";const CF="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let _F=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=CF[n[e]&63];return t};const Oo=ql([]);Oo.debugLabel="todosAtom";const TF=ql(null,(e,t,n)=>{const r={id:_F(),body:n};t(Oo,[...e(Oo),r])}),PF=ql(null,(e,t,n)=>{const o=e(Oo).filter(i=>i.id!==n);t(Oo,o)});function EF(){const{colorMode:e,toggleColorMode:t}=fu(),[n,r]=Ld(mp),[o]=Ld(Oo),i=jd(TF),s=jd(PF);_.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return T.jsxs(hp,{p:4,children:[T.jsx(kF,{toggleTheme:a,theme:n}),T.jsx(Sx,{size:"2xl",children:"Jotai-Todos App"}),T.jsx(yF,{addTodo:i}),T.jsx(wF,{todos:o,deleteTodo:s})]})}const $F=()=>{const[e]=Ld(mp);return T.jsxs(nF,{children:[T.jsx(W2,{initialColorMode:e}),T.jsx(EF,{})]})};z1(document.getElementById("root")).render(T.jsxs(_.StrictMode,{children:[T.jsx(C_,{}),T.jsx($F,{})]})); diff --git a/assets/index-TKgZ1qEk.js b/assets/index-TKgZ1qEk.js new file mode 100644 index 0000000..3083297 --- /dev/null +++ b/assets/index-TKgZ1qEk.js @@ -0,0 +1,350 @@ +function zw(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yy={exports:{}},Ml={},vy={exports:{}},U={};/** + * @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 ks=Symbol.for("react.element"),Mw=Symbol.for("react.portal"),Dw=Symbol.for("react.fragment"),Iw=Symbol.for("react.strict_mode"),Lw=Symbol.for("react.profiler"),jw=Symbol.for("react.provider"),Fw=Symbol.for("react.context"),Bw=Symbol.for("react.forward_ref"),Vw=Symbol.for("react.suspense"),Ow=Symbol.for("react.memo"),Nw=Symbol.for("react.lazy"),Up=Symbol.iterator;function Ww(e){return e===null||typeof e!="object"?null:(e=Up&&e[Up]||e["@@iterator"],typeof e=="function"?e:null)}var Sy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},by=Object.assign,xy={};function Yo(e,t,n){this.props=e,this.context=t,this.refs=xy,this.updater=n||Sy}Yo.prototype.isReactComponent={};Yo.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")};Yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wy(){}wy.prototype=Yo.prototype;function vf(e,t,n){this.props=e,this.context=t,this.refs=xy,this.updater=n||Sy}var Sf=vf.prototype=new wy;Sf.constructor=vf;by(Sf,Yo.prototype);Sf.isPureReactComponent=!0;var Hp=Array.isArray,ky=Object.prototype.hasOwnProperty,bf={current:null},Cy={key:!0,ref:!0,__self:!0,__source:!0};function Ty(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)ky.call(t,r)&&!Cy.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,_e=D[pe];if(0>>1;peo(ei,N))ft<_e&&0>o(mr,ei)?(D[pe]=mr,D[ft]=N,pe=ft):(D[pe]=ei,D[Yt]=N,pe=Yt);else if(ft<_e&&0>o(mr,N))D[pe]=mr,D[ft]=N,pe=ft;else break e}}return V}function o(D,V){var N=D.sortIndex-V.sortIndex;return N!==0?N:D.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,y=!1,v=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(D){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=D)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function b(D){if(S=!1,p(D),!v)if(n(l)!==null)v=!0,Kr(x);else{var V=n(u);V!==null&&we(b,V.startTime-D)}}function x(D,V){v=!1,S&&(S=!1,m($),$=-1),y=!0;var N=f;try{for(p(V),d=n(l);d!==null&&(!(d.expirationTime>V)||D&&!O());){var pe=d.callback;if(typeof pe=="function"){d.callback=null,f=d.priorityLevel;var _e=pe(d.expirationTime<=V);V=e.unstable_now(),typeof _e=="function"?d.callback=_e:d===n(l)&&r(l),p(V)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var Yt=n(u);Yt!==null&&we(b,Yt.startTime-V),ee=!1}return ee}finally{d=null,f=N,y=!1}}var T=!1,C=null,$=-1,R=5,M=-1;function O(){return!(e.unstable_now()-MD||125pe?(D.sortIndex=N,t(u,D),n(l)===null&&D===n(u)&&(S?(m($),$=-1):S=!0,we(b,N-pe))):(D.sortIndex=_e,t(l,D),v||y||(v=!0,Kr(x))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var V=f;return function(){var N=f;f=V;try{return D.apply(this,arguments)}finally{f=N}}}})(Ry);Ay.exports=Ry;var ek=Ay.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 tk=_,St=ek;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=Object.prototype.hasOwnProperty,nk=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yp={},Xp={};function rk(e){return Oc.call(Xp,e)?!0:Oc.call(Yp,e)?!1:nk.test(e)?Xp[e]=!0:(Yp[e]=!0,!1)}function ok(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ik(e,t,n,r){if(t===null||typeof t>"u"||ok(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ot(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new ot(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){Ne[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-:]([a-z])/g;function kf(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(wf,kf);Ne[t]=new ot(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(wf,kf);Ne[t]=new ot(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(wf,kf);Ne[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cf(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Du=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Si(e):""}function sk(e){switch(e.tag){case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return Si("Suspense");case 19:return Si("SuspenseList");case 0:case 2:case 15:return e=Iu(e.type,!1),e;case 11:return e=Iu(e.type.render,!1),e;case 1:return e=Iu(e.type,!0),e;default:return""}}function Hc(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 Jr:return"Fragment";case Zr:return"Portal";case Nc:return"Profiler";case Tf:return"StrictMode";case Wc:return"Suspense";case Uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dy:return(e.displayName||"Context")+".Consumer";case My:return(e._context.displayName||"Context")+".Provider";case _f:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pf:return t=e.displayName||null,t!==null?t:Hc(e.type)||"Memo";case Wn:t=e._payload,e=e._init;try{return Hc(e(t))}catch{}}return null}function ak(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 Hc(t);case 8:return t===Tf?"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 ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ly(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lk(e){var t=Ly(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=lk(e))}function jy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ly(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ar(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 Fy(e,t){t=t.checked,t!=null&&Cf(e,"checked",t,!1)}function Gc(e,t){Fy(e,t);var n=ar(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")?Yc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yc(e,t.type,ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zp(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 Yc(e,t,n){(t!=="number"||Xa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bi=Array.isArray;function wo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Gs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ri={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},uk=["Webkit","ms","Moz","O"];Object.keys(Ri).forEach(function(e){uk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ri[t]=Ri[e]})});function Ny(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ri.hasOwnProperty(e)&&Ri[e]?(""+t).trim():t+"px"}function Wy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ny(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ck=ve({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 Qc(e,t){if(t){if(ck[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Zc(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 Jc=null;function Ef(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ed=null,ko=null,Co=null;function tm(e){if(e=_s(e)){if(typeof ed!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Fl(t),ed(e.stateNode,e.type,t))}}function Uy(e){ko?Co?Co.push(e):Co=[e]:ko=e}function Hy(){if(ko){var e=ko,t=Co;if(Co=ko=null,tm(e),t)for(e=0;e>>=0,e===0?32:31-(xk(e)/wk|0)|0}var Ys=64,Xs=4194304;function xi(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 Ja(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=xi(a):(i&=s,i!==0&&(r=xi(i)))}else s=n&~o,s!==0?r=xi(s):i!==0&&(r=xi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function _k(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=Mi),cm=" ",dm=!1;function dv(e,t){switch(e){case"keyup":return eC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var eo=!1;function nC(e,t){switch(e){case"compositionend":return fv(t);case"keypress":return t.which!==32?null:(dm=!0,cm);case"textInput":return e=t.data,e===cm&&dm?null:e;default:return null}}function rC(e,t){if(eo)return e==="compositionend"||!Lf&&dv(e,t)?(e=uv(),Ca=Mf=Xn=null,eo=!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=mm(n)}}function gv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yv(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xa(e.document)}return t}function jf(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 fC(e){var t=yv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gv(n.ownerDocument.documentElement,n)){if(r!==null&&jf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=gm(n,i);var s=gm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,to=null,sd=null,Ii=null,ad=!1;function ym(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ad||to==null||to!==Xa(r)||(r=to,"selectionStart"in r&&jf(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}),Ii&&ns(Ii,r)||(Ii=r,r=nl(sd,"onSelect"),0oo||(e.current=hd[oo],hd[oo]=null,oo--)}function ie(e,t){oo++,hd[oo]=e.current,e.current=t}var lr={},qe=fr(lr),lt=fr(!1),Lr=lr;function Io(e,t){var n=e.type.contextTypes;if(!n)return lr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ut(e){return e=e.childContextTypes,e!=null}function ol(){ue(lt),ue(qe)}function Cm(e,t,n){if(qe.current!==lr)throw Error(z(168));ie(qe,t),ie(lt,n)}function _v(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,ak(e)||"Unknown",o));return ve({},n,r)}function il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lr,Lr=qe.current,ie(qe,e),ie(lt,lt.current),!0}function Tm(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=_v(e,t,Lr),r.__reactInternalMemoizedMergedChildContext=e,ue(lt),ue(qe),ie(qe,e)):ue(lt),ie(lt,n)}var gn=null,Bl=!1,Xu=!1;function Pv(e){gn===null?gn=[e]:gn.push(e)}function CC(e){Bl=!0,Pv(e)}function hr(){if(!Xu&&gn!==null){Xu=!0;var e=0,t=te;try{var n=gn;for(te=1;e>=s,o-=s,bn=1<<32-Ht(t)+o|n<$?(R=C,C=null):R=C.sibling;var M=f(m,C,p[$],b);if(M===null){C===null&&(C=R);break}e&&C&&M.alternate===null&&t(m,C),h=i(M,h,$),T===null?x=M:T.sibling=M,T=M,C=R}if($===p.length)return n(m,C),he&&br(m,$),x;if(C===null){for(;$$?(R=C,C=null):R=C.sibling;var O=f(m,C,M.value,b);if(O===null){C===null&&(C=R);break}e&&C&&O.alternate===null&&t(m,C),h=i(O,h,$),T===null?x=O:T.sibling=O,T=O,C=R}if(M.done)return n(m,C),he&&br(m,$),x;if(C===null){for(;!M.done;$++,M=p.next())M=d(m,M.value,b),M!==null&&(h=i(M,h,$),T===null?x=M:T.sibling=M,T=M);return he&&br(m,$),x}for(C=r(m,C);!M.done;$++,M=p.next())M=y(C,m,$,M.value,b),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?$:M.key),h=i(M,h,$),T===null?x=M:T.sibling=M,T=M);return e&&C.forEach(function(Se){return t(m,Se)}),he&&br(m,$),x}function P(m,h,p,b){if(typeof p=="object"&&p!==null&&p.type===Jr&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Hs:e:{for(var x=p.key,T=h;T!==null;){if(T.key===x){if(x=p.type,x===Jr){if(T.tag===7){n(m,T.sibling),h=o(T,p.props.children),h.return=m,m=h;break e}}else if(T.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Wn&&Em(x)===T.type){n(m,T.sibling),h=o(T,p.props),h.ref=ci(m,T,p),h.return=m,m=h;break e}n(m,T);break}else t(m,T);T=T.sibling}p.type===Jr?(h=Rr(p.props.children,m.mode,b,p.key),h.return=m,m=h):(b=za(p.type,p.key,p.props,null,m.mode,b),b.ref=ci(m,h,p),b.return=m,m=b)}return s(m);case Zr:e:{for(T=p.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(m,h.sibling),h=o(h,p.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=rc(p,m.mode,b),h.return=m,m=h}return s(m);case Wn:return T=p._init,P(m,h,T(p._payload),b)}if(bi(p))return v(m,h,p,b);if(ii(p))return S(m,h,p,b);na(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,p),h.return=m,m=h):(n(m,h),h=nc(p,m.mode,b),h.return=m,m=h),s(m)):n(m,h)}return P}var jo=Rv(!0),zv=Rv(!1),ll=fr(null),ul=null,ao=null,Of=null;function Nf(){Of=ao=ul=null}function Wf(e){var t=ll.current;ue(ll),e._currentValue=t}function gd(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 _o(e,t){ul=e,Of=ao=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(at=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(Of!==e)if(e={context:e,memoizedValue:t,next:null},ao===null){if(ul===null)throw Error(z(308));ao=e,ul.dependencies={lanes:0,firstContext:e}}else ao=ao.next=e;return t}var _r=null;function Uf(e){_r===null?_r=[e]:_r.push(e)}function Mv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,An(e,r)}function An(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 Un=!1;function Hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dv(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 Cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,An(e,n)}return o=r.interleaved,o===null?(t.next=t,Uf(r)):(t.next=o.next,o.next=t),r.interleaved=t,An(e,n)}function _a(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,Af(e,n)}}function $m(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 cl(e,t,n,r){var o=e.updateQueue;Un=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,S=a;switch(f=t,y=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=ve({},d,f);break e;case 2:Un=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Br|=s,e.lanes=s,e.memoizedState=d}}function Am(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Qu.transition;Qu.transition={};try{e(!1),t()}finally{te=n,Qu.transition=r}}function Qv(){return Lt().memoizedState}function EC(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zv(e))Jv(t,n);else if(n=Mv(e,t,n,r),n!==null){var o=tt();Kt(n,e,r,o),e1(n,t,r)}}function $C(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zv(e))Jv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Gt(a,s)){var l=t.interleaved;l===null?(o.next=o,Uf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Mv(e,t,o,r),n!==null&&(o=tt(),Kt(n,e,r,o),e1(n,t,r))}}function Zv(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Jv(e,t){Li=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function e1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Af(e,n)}}var hl={readContext:It,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},AC={readContext:It,useCallback:function(e,t){return Zt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:zm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ea(4194308,4,Kv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ea(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ea(4,2,e,t)},useMemo:function(e,t){var n=Zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zt();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=EC.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Zt();return e={current:e},t.memoizedState=e},useState:Rm,useDebugValue:Jf,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Rm(!1),t=e[0];return e=PC.bind(null,e[1]),Zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=Zt();if(he){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Ie===null)throw Error(z(349));Fr&30||Fv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zm(Vv.bind(null,r,i,e),[e]),r.flags|=2048,cs(9,Bv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zt(),t=Ie.identifierPrefix;if(he){var n=xn,r=bn;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ls++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[rn]=t,e[is]=r,c1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zc(n,r),n){case"dialog":ae("cancel",e),ae("close",e),o=r;break;case"iframe":case"object":case"embed":ae("load",e),o=r;break;case"video":case"audio":for(o=0;oVo&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Ue(t),null}else 2*Ce()-i.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,di(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ce(),t.sibling=null,n=me.current,ie(me,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return ih(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function FC(e,t){switch(Bf(t),t.tag){case 1:return ut(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fo(),ue(lt),ue(qe),Yf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gf(t),null;case 13:if(ue(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(me),null;case 4:return Fo(),null;case 10:return Wf(t.type._context),null;case 22:case 23:return ih(),null;case 24:return null;default:return null}}var oa=!1,Ge=!1,BC=typeof WeakSet=="function"?WeakSet:Set,I=null;function lo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Td(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Wm=!1;function VC(e,t){if(ld=el,e=yv(),jf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ud={focusedElem:e,selectionRange:n},el=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,P=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ot(t.type,S),P);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(b){xe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return v=Wm,Wm=!1,v}function ji(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Td(t,n,i)}o=o.next}while(o!==r)}}function Nl(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 _d(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 h1(e){var t=e.alternate;t!==null&&(e.alternate=null,h1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[is],delete t[fd],delete t[wC],delete t[kC])),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 p1(e){return e.tag===5||e.tag===3||e.tag===4}function Um(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p1(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 Pd(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=rl));else if(r!==4&&(e=e.child,e!==null))for(Pd(e,t,n),e=e.sibling;e!==null;)Pd(e,t,n),e=e.sibling}function Ed(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(Ed(e,t,n),e=e.sibling;e!==null;)Ed(e,t,n),e=e.sibling}var Fe=null,Nt=!1;function Fn(e,t,n){for(n=n.child;n!==null;)m1(e,t,n),n=n.sibling}function m1(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Dl,n)}catch{}switch(n.tag){case 5:Ge||lo(n,t);case 6:var r=Fe,o=Nt;Fe=null,Fn(e,t,n),Fe=r,Nt=o,Fe!==null&&(Nt?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Nt?(e=Fe,n=n.stateNode,e.nodeType===8?Yu(e.parentNode,n):e.nodeType===1&&Yu(e,n),es(e)):Yu(Fe,n.stateNode));break;case 4:r=Fe,o=Nt,Fe=n.stateNode.containerInfo,Nt=!0,Fn(e,t,n),Fe=r,Nt=o;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Td(n,t,s),o=o.next}while(o!==r)}Fn(e,t,n);break;case 1:if(!Ge&&(lo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,Fn(e,t,n),Ge=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function Hm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new BC),t.forEach(function(r){var o=XC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ft(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*NC(r/1960))-r,10e?16:e,qn===null)var r=!1;else{if(e=qn,qn=null,gl=0,G&6)throw Error(z(331));var o=G;for(G|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lCe()-rh?Ar(e,0):nh|=n),ct(e,t)}function k1(e,t){t===0&&(e.mode&1?(t=Xs,Xs<<=1,!(Xs&130023424)&&(Xs=4194304)):t=1);var n=tt();e=An(e,t),e!==null&&(Cs(e,t,n),ct(e,n))}function YC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),k1(e,n)}function XC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),k1(e,n)}var C1;C1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)at=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return at=!1,LC(e,t,n);at=!!(e.flags&131072)}else at=!1,he&&t.flags&1048576&&Ev(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$a(e,t),e=t.pendingProps;var o=Io(t,qe.current);_o(t,n),o=qf(null,t,r,e,o,n);var i=Qf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(i=!0,il(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hf(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,vd(t,r,e,n),t=xd(null,t,r,!0,i,n)):(t.tag=0,he&&i&&Ff(t),Je(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($a(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=QC(r),e=Ot(r,e),o){case 0:t=bd(null,t,r,e,n);break e;case 1:t=Vm(null,t,r,e,n);break e;case 11:t=Fm(null,t,r,e,n);break e;case 14:t=Bm(null,t,r,Ot(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),bd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Vm(e,t,r,o,n);case 3:e:{if(a1(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Dv(e,t),cl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Bo(Error(z(423)),t),t=Om(e,t,r,n,o);break e}else if(r!==o){o=Bo(Error(z(424)),t),t=Om(e,t,r,n,o);break e}else for(mt=er(t.stateNode.containerInfo.firstChild),gt=t,he=!0,Wt=null,n=zv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lo(),r===o){t=Rn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return Iv(t),e===null&&md(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,cd(r,o)?s=null:i!==null&&cd(r,i)&&(t.flags|=32),s1(e,t),Je(e,t,s,n),t.child;case 6:return e===null&&md(t),null;case 13:return l1(e,t,n);case 4:return Kf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Fm(e,t,r,o,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ie(ll,r._currentValue),r._currentValue=s,i!==null)if(Gt(i.value,s)){if(i.children===o.children&&!lt.current){t=Rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Cn(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),gd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),gd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Je(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_o(t,n),o=It(o),r=r(o),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,o=Ot(r,t.pendingProps),o=Ot(r.type,o),Bm(e,t,r,o,n);case 15:return o1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),$a(e,t),t.tag=1,ut(r)?(e=!0,il(t)):e=!1,_o(t,n),t1(t,r,o),vd(t,r,o,n),xd(null,t,r,!0,e,n);case 19:return u1(e,t,n);case 22:return i1(e,t,n)}throw Error(z(156,t.tag))};function T1(e,t){return Zy(e,t)}function qC(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 Rt(e,t,n,r){return new qC(e,t,n,r)}function ah(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QC(e){if(typeof e=="function")return ah(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_f)return 11;if(e===Pf)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Rt(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 za(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")ah(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jr:return Rr(n.children,o,i,t);case Tf:s=8,o|=8;break;case Nc:return e=Rt(12,n,t,o|2),e.elementType=Nc,e.lanes=i,e;case Wc:return e=Rt(13,n,t,o),e.elementType=Wc,e.lanes=i,e;case Uc:return e=Rt(19,n,t,o),e.elementType=Uc,e.lanes=i,e;case Iy:return Ul(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case My:s=10;break e;case Dy:s=9;break e;case _f:s=11;break e;case Pf:s=14;break e;case Wn:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rr(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function Ul(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Iy,e.lanes=n,e.stateNode={isHidden:!1},e}function nc(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function rc(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ju(0),this.expirationTimes=ju(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function lh(e,t,n,r,o,i,s,a,l){return e=new ZC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hf(i),e}function JC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($1)}catch(e){console.error(e)}}$1(),$y.exports=xt;var fh=$y.exports,A1,Jm=fh;A1=Jm.createRoot,Jm.hydrateRoot;const At={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let o2=0;function Xl(e,t){const n=`atom${++o2}`,r={toString(){return(At?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=i2,r.write=s2),t&&(r.write=t),r}function i2(e){return e(this)}function s2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const eg=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,oc=e=>"init"in e,ic=e=>!!e.write,Sl=new WeakMap,Md=e=>{var t;return Dd(e)&&!((t=Sl.get(e))!=null&&t[1])},a2=(e,t)=>{const n=Sl.get(e);if(n)n[1]=!0,n[0].forEach(r=>r(t));else if((At?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},l2=e=>{if(Sl.has(e))return;const t=[new Set,!1];Sl.set(e,t);const n=()=>{t[1]=!0};e.then(n,n),e.onCancel=r=>{t[0].add(r)}},Dd=e=>typeof(e==null?void 0:e.then)=="function",tg=e=>"v"in e||"e"in e,aa=e=>{if("e"in e)throw e.e;if((At?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},R1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},ng=(e,t,n,r,o)=>{var i;if((At?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n),Md(n.v)&&R1(t,n.v,o),(i=o.m)==null||i.t.add(t),e&&u2(e,r,t)},qr=()=>[new Map,new Map,new Set],sc=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},u2=(e,t,n)=>{const r=e[0].get(t);r&&r.add(n)},c2=(e,t)=>e[0].get(t),rg=(e,t)=>{e[2].add(t)},Bn=e=>{let t,n=!1;const r=o=>{try{o()}catch(i){n||(t=i,n=!0)}};for(;e[1].size||e[2].size;){e[0].clear();const o=new Set(e[1].values());e[1].clear();const i=new Set(e[2]);e[2].clear(),o.forEach(s=>{var a;return(a=s.m)==null?void 0:a.l.forEach(r)}),i.forEach(r)}if(n)throw t},z1=(...[e,t,n,r])=>{let o;(At?"production":void 0)!=="production"&&(o=new Set);const i=(p,b,x)=>{const T="v"in b,C=b.v,$=Md(b.v)?b.v:null;if(Dd(x)){l2(x);for(const R of b.d.keys())R1(p,x,e(R));b.v=x,delete b.e}else b.v=x,delete b.e;(!T||!Object.is(C,b.v))&&(++b.n,$&&a2($,x))},s=(p,b,x)=>{var T;const C=e(b);if(tg(C)&&(C.m&&!(x!=null&&x.has(b))||Array.from(C.d).every(([W,$e])=>s(p,W,x).n===$e)))return C;C.d.clear();let $=!0;const R=W=>{if(eg(b,W)){const Ze=e(W);if(!tg(Ze))if(oc(W))i(W,Ze,W.init);else throw new Error("no atom init");return aa(Ze)}const $e=s(p,W,x);try{return aa($e)}finally{if($)ng(p,b,C,W,$e);else{const Ze=qr();ng(Ze,b,C,W,$e),y(Ze,b,C),Bn(Ze)}}};let M,O;const Se={get signal(){return M||(M=new AbortController),M.signal},get setSelf(){return(At?"production":void 0)!=="production"&&!ic(b)&&console.warn("setSelf function cannot be used with read-only atom"),!O&&ic(b)&&(O=(...W)=>{if((At?"production":void 0)!=="production"&&$&&console.warn("setSelf function cannot be called in sync"),!$)return f(b,...W)}),O}};try{const W=t(b,R,Se);if(i(b,C,W),Dd(W)){(T=W.onCancel)==null||T.call(W,()=>M==null?void 0:M.abort());const $e=()=>{if(C.m){const Ze=qr();y(Ze,b,C),Bn(Ze)}};W.then($e,$e)}return C}catch(W){return delete C.v,C.e=W,++C.n,C}finally{$=!1}},a=p=>aa(s(void 0,p)),l=(p,b,x)=>{var T,C;const $=new Map;for(const R of((T=x.m)==null?void 0:T.t)||[])$.set(R,e(R));for(const R of x.p)$.set(R,e(R));return(C=c2(p,b))==null||C.forEach(R=>{$.set(R,e(R))}),$};function u(p,b,x){const T=[],C=new Set,$=new Set,R=[[b,x]];for(;R.length>0;){const[M,O]=R[R.length-1];if($.has(M)){R.pop();continue}if(C.has(M)){T.push([M,O,O.n]),$.add(M),R.pop();continue}C.add(M);for(const[Se,W]of l(p,M,O))M!==Se&&!C.has(Se)&&R.push([Se,W])}return[T,$]}const c=(p,b,x)=>{const[T,C]=u(p,b,x),$=new Set([b]);for(let R=T.length-1;R>=0;--R){const[M,O,Se]=T[R];let W=!1;for(const $e of O.d.keys())if($e!==M&&$.has($e)){W=!0;break}W&&(s(p,M,C),y(p,M,O),Se!==O.n&&(sc(p,M,O),$.add(M))),C.delete(M)}},d=(p,b,...x)=>{let T=!0;const C=R=>aa(s(p,R)),$=(R,...M)=>{const O=e(R);try{if(eg(b,R)){if(!oc(R))throw new Error("atom not writable");const Se=O.n,W=M[0];i(R,O,W),y(p,R,O),Se!==O.n&&(sc(p,R,O),c(p,R,O));return}else return d(p,R,...M)}finally{T||Bn(p)}};try{return n(b,C,$,...x)}finally{T=!1}},f=(p,...b)=>{const x=qr();try{return d(x,p,...b)}finally{Bn(x)}},y=(p,b,x)=>{if(x.m&&!Md(x.v)){for(const T of x.d.keys())x.m.d.has(T)||(v(p,T,e(T)).t.add(b),x.m.d.add(T));for(const T of x.m.d||[])if(!x.d.has(T)){x.m.d.delete(T);const C=S(p,T,e(T));C==null||C.t.delete(b)}}},v=(p,b,x)=>{if(!x.m){s(p,b);for(const T of x.d.keys())v(p,T,e(T)).t.add(b);if(x.m={l:new Set,d:new Set(x.d.keys()),t:new Set},(At?"production":void 0)!=="production"&&o.add(b),ic(b)){const T=x.m;let C;const $=(R,M)=>{let O=!0;C=(...Se)=>{try{return d(R,b,...Se)}finally{O||Bn(R)}};try{return M()}finally{O=!1}};rg(p,()=>{const R=$(p,()=>r(b,(...M)=>C(...M)));R&&(T.u=M=>$(M,R))})}}return x.m},S=(p,b,x)=>{if(x.m&&!x.m.l.size&&!Array.from(x.m.t).some(T=>{var C;return(C=e(T).m)==null?void 0:C.d.has(b)})){const T=x.m.u;T&&rg(p,()=>T(p)),delete x.m,(At?"production":void 0)!=="production"&&o.delete(b);for(const C of x.d.keys()){const $=S(p,C,e(C));$==null||$.t.delete(b)}return}return x.m},h={get:a,set:f,sub:(p,b)=>{const x=qr(),T=e(p),$=v(x,p,T).l;return $.add(b),Bn(x),()=>{$.delete(b);const R=qr();S(R,p,T),Bn(R)}},unstable_derive:p=>z1(...p(e,t,n,r))};return(At?"production":void 0)!=="production"&&Object.assign(h,{dev4_get_internal_weak_map:()=>({get:b=>{const x=e(b);if(x.n!==0)return x}}),dev4_get_mounted_atoms:()=>o,dev4_restore_atoms:b=>{const x=qr();for(const[T,C]of b)if(oc(T)){const $=e(T),R=$.n;i(T,$,C),y(x,T,$),R!==$.n&&(sc(x,T,$),c(x,T,$))}Bn(x)}}),h},d2=()=>{const e=new WeakMap;return z1(n=>{if((At?"production":void 0)!=="production"&&!n)throw new Error("Atom is undefined or null");let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r},(n,...r)=>n.read(...r),(n,...r)=>n.write(...r),(n,...r)=>{var o;return(o=n.onMount)==null?void 0:o.call(n,...r)})};let hi;const f2=()=>(hi||(hi=d2(),(At?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=hi),globalThis.__JOTAI_DEFAULT_STORE__!==hi&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),hi),M1={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},h2=_.createContext(void 0),D1=e=>_.useContext(h2)||f2(),I1=e=>typeof(e==null?void 0:e.then)=="function",p2=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},m2=Py.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(p2(e),e)}),ac=new WeakMap,g2=e=>{let t=ac.get(e);return t||(t=new Promise((n,r)=>{let o=e;const i=l=>u=>{o===l&&n(u)},s=l=>u=>{o===l&&r(u)},a=l=>{"onCancel"in l&&typeof l.onCancel=="function"&&l.onCancel(u=>{if((M1?"production":void 0)!=="production"&&u===l)throw new Error("[Bug] p is not updated even after cancelation");I1(u)?(ac.set(u,t),o=u,u.then(i(u),s(u)),a(u)):n(u)})};e.then(i(e),s(e)),a(e)}),ac.set(e,t)),t};function y2(e,t){const n=D1(),[[r,o,i],s]=_.useReducer(u=>{const c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]);let a=r;if((o!==n||i!==e)&&(s(),a=n.get(e)),_.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),_.useDebugValue(a),I1(a)){const u=g2(a);return m2(u)}return a}function Id(e,t){const n=D1();return _.useCallback((...o)=>{if((M1?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Ld(e,t){return[y2(e),Id(e)]}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull;function S2(){return!!(globalThis!=null&&globalThis.document)}function b2(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}const Jt=e=>e?"":void 0,lc=e=>e?!0:void 0;function x2(e){return Array.isArray(e)}function Dt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!x2(e)}function w2(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function k2(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function jd(e){if(e==null)return e;const{unitless:t}=k2(e);return t||typeof e=="number"?`${e}px`:e}const L1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,hh=e=>Object.fromEntries(Object.entries(e).sort(L1));function og(e){const t=hh(e);return Object.assign(Object.values(t),t)}function C2(e){const t=Object.keys(hh(e));return new Set(t)}function ig(e){if(!e)return e;e=jd(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function ki(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${jd(e)})`),t&&n.push("and",`(max-width: ${jd(t)})`),n.join(" ")}function T2(e){if(!e)return null;e.base=e.base??"0px";const t=og(e),n=Object.entries(e).sort(L1).map(([i,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?ig(u):void 0,{_minW:ig(s),breakpoint:i,minW:s,maxW:u,maxWQuery:ki(null,u),minWQuery:ki(s),minMaxQuery:ki(s,u)}}),r=C2(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:hh(e),asArray:og(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>ki(i)).slice(1)],toArrayValue(i){if(!Dt(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;w2(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const u=o[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function sg(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function _2(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}function ph(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function P2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function In(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=_.createContext(s);a.displayName=t;function l(){var c;const u=_.useContext(a);if(!u&&n){const d=new Error(i??P2(r,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Qe=(...e)=>e.filter(Boolean).join(" ");function E2(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},j1=$2(E2),A2=e=>e.default||e;function F1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function R2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function z2(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Dt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const M2=e=>typeof e=="function";function zt(e,...t){return M2(e)?e(...t):e}function D2(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function ag(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Dt(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(o==null?void 0:o(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=i(c,f)}return l}return t(s,a)}return i(e)}var xl={exports:{}};xl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",y="[object Function]",v="[object GeneratorFunction]",S="[object Map]",P="[object Number]",m="[object Null]",h="[object Object]",p="[object Proxy]",b="[object RegExp]",x="[object Set]",T="[object String]",C="[object Undefined]",$="[object WeakMap]",R="[object ArrayBuffer]",M="[object DataView]",O="[object Float32Array]",Se="[object Float64Array]",W="[object Int8Array]",$e="[object Int16Array]",Ze="[object Int32Array]",Kr="[object Uint8Array]",we="[object Uint8ClampedArray]",D="[object Uint16Array]",V="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,ee={};ee[O]=ee[Se]=ee[W]=ee[$e]=ee[Ze]=ee[Kr]=ee[we]=ee[D]=ee[V]=!0,ee[a]=ee[l]=ee[R]=ee[c]=ee[M]=ee[d]=ee[f]=ee[y]=ee[S]=ee[P]=ee[h]=ee[b]=ee[x]=ee[T]=ee[$]=!1;var Yt=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,ei=typeof self=="object"&&self&&self.Object===Object&&self,ft=Yt||ei||Function("return this")(),mr=t&&!t.nodeType&&t,ti=mr&&!0&&e&&!e.nodeType&&e,kp=ti&&ti.exports===mr,bu=kp&&Yt.process,Cp=function(){try{var g=ti&&ti.require&&ti.require("util").types;return g||bu&&bu.binding&&bu.binding("util")}catch{}}(),Tp=Cp&&Cp.isTypedArray;function Sx(g,k,A){switch(A.length){case 0:return g.call(k);case 1:return g.call(k,A[0]);case 2:return g.call(k,A[0],A[1]);case 3:return g.call(k,A[0],A[1],A[2])}return g.apply(k,A)}function bx(g,k){for(var A=-1,L=Array(g);++A-1}function Nx(g,k){var A=this.__data__,L=Bs(A,g);return L<0?(++this.size,A.push([g,k])):A[L][1]=k,this}hn.prototype.clear=Fx,hn.prototype.delete=Bx,hn.prototype.get=Vx,hn.prototype.has=Ox,hn.prototype.set=Nx;function Gr(g){var k=-1,A=g==null?0:g.length;for(this.clear();++k1?A[K-1]:void 0,de=K>2?A[2]:void 0;for(oe=g.length>3&&typeof oe=="function"?(K--,oe):void 0,de&&yw(A[0],A[1],de)&&(oe=K<3?void 0:oe,K=1),k=Object(k);++L-1&&g%1==0&&g0){if(++k>=o)return arguments[0]}else k=0;return g.apply(void 0,arguments)}}function Tw(g){if(g!=null){try{return Ls.call(g)}catch{}try{return g+""}catch{}}return""}function Ns(g,k){return g===k||g!==g&&k!==k}var _u=Dp(function(){return arguments}())?Dp:function(g){return ri(g)&&jn.call(g,"callee")&&!Ex.call(g,"callee")},Pu=Array.isArray;function Eu(g){return g!=null&&Bp(g.length)&&!$u(g)}function _w(g){return ri(g)&&Eu(g)}var Fp=Ax||Rw;function $u(g){if(!vr(g))return!1;var k=Vs(g);return k==y||k==v||k==u||k==p}function Bp(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function vr(g){var k=typeof g;return g!=null&&(k=="object"||k=="function")}function ri(g){return g!=null&&typeof g=="object"}function Pw(g){if(!ri(g)||Vs(g)!=h)return!1;var k=Ap(g);if(k===null)return!0;var A=jn.call(k,"constructor")&&k.constructor;return typeof A=="function"&&A instanceof A&&Ls.call(A)==_x}var Vp=Tp?xx(Tp):rw;function Ew(g){return fw(g,Op(g))}function Op(g){return Eu(g)?Jx(g):ow(g)}var $w=hw(function(g,k,A,L){Ip(g,k,A,L)});function Aw(g){return function(){return g}}function Np(g){return g}function Rw(){return!1}e.exports=$w})(xl,xl.exports);var I2=xl.exports;const sn=yf(I2);function L2(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}const Fd=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,lg=(e,t)=>{const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function j2(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Bd(...e){return t=>{e.forEach(n=>{j2(n,t)})}}function F2(...e){return _.useMemo(()=>Bd(...e),e)}function B2(e,t){const n=L2(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Ae={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},qt=e=>B1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),pn=e=>B1(t=>e(t,"~ &"),"[data-peer]",".peer"),B1=(e,...t)=>t.map(e).join(", "),Eo={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:qt(Ae.open),_groupClosed:qt(Ae.closed),_groupHover:qt(Ae.hover),_peerHover:pn(Ae.hover),_groupFocus:qt(Ae.focus),_peerFocus:pn(Ae.focus),_groupFocusVisible:qt(Ae.focusVisible),_peerFocusVisible:pn(Ae.focusVisible),_groupActive:qt(Ae.active),_peerActive:pn(Ae.active),_groupDisabled:qt(Ae.disabled),_peerDisabled:pn(Ae.disabled),_groupInvalid:qt(Ae.invalid),_peerInvalid:pn(Ae.invalid),_groupChecked:qt(Ae.checked),_peerChecked:pn(Ae.checked),_groupFocusWithin:qt(Ae.focusWithin),_peerFocusWithin:pn(Ae.focusWithin),_peerPlaceholderShown:pn(Ae.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},V1=Object.keys(Eo),V2=e=>/!(important)?$/.test(e),ug=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,O2=(e,t)=>n=>{const r=String(t),o=V2(r),i=ug(r),s=e?`${e}.${i}`:i;let a=Dt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=ug(a),o?`${a} !important`:a};function mh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=O2(t,i)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const la=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Ct(e,t){return n=>{const r={property:n,scale:e};return r.transform=mh({scale:e,transform:t}),r}}const N2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function W2(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:N2(t),transform:n?mh({scale:n,compose:r}):r}}const O1=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function U2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...O1].join(" ")}function H2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...O1].join(" ")}const K2={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},G2={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Y2(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const X2={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Vd={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},q2=new Set(Object.values(Vd)),Od=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Q2=e=>e.trim();function Z2(e,t){if(e==null||Od.has(e))return e;if(!(Nd(e)||Od.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(Q2).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Vd?Vd[l]:l;u.unshift(c);const d=u.map(f=>{if(q2.has(f))return f;const y=f.indexOf(" "),[v,S]=y!==-1?[f.substr(0,y),f.substr(y+1)]:[f],P=Nd(S)?S:S&&S.split(" "),m=`colors.${v}`,h=m in t.__cssMap?t.__cssMap[m].varRef:v;return P?[h,...Array.isArray(P)?P:[P]].join(" "):h});return`${a}(${d.join(", ")})`}const Nd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),J2=(e,t)=>Z2(e,t??{});function eT(e){return/^var\(--.+\)$/.test(e)}const tT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Qt=e=>t=>`${e}(${t})`,H={filter(e){return e!=="auto"?e:K2},backdropFilter(e){return e!=="auto"?e:G2},ring(e){return Y2(H.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?U2():e==="auto-gpu"?H2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=tT(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(eT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:J2,blur:Qt("blur"),opacity:Qt("opacity"),brightness:Qt("brightness"),contrast:Qt("contrast"),dropShadow:Qt("drop-shadow"),grayscale:Qt("grayscale"),hueRotate:e=>Qt("hue-rotate")(H.degree(e)),invert:Qt("invert"),saturate:Qt("saturate"),sepia:Qt("sepia"),bgImage(e){return e==null||Nd(e)||Od.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=X2[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},w={borderWidths:Ct("borderWidths"),borderStyles:Ct("borderStyles"),colors:Ct("colors"),borders:Ct("borders"),gradients:Ct("gradients",H.gradient),radii:Ct("radii",H.px),space:Ct("space",la(H.vh,H.px)),spaceT:Ct("space",la(H.vh,H.px)),degreeT(e){return{property:e,transform:H.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:mh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Ct("sizes",la(H.vh,H.px)),sizesT:Ct("sizes",la(H.vh,H.fraction)),shadows:Ct("shadows"),logical:W2,blur:Ct("blur",H.blur)},Ma={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:H.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:H.bgClip}};Object.assign(Ma,{bgImage:Ma.backgroundImage,bgImg:Ma.backgroundImage});const X={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(X,{rounded:X.borderRadius,roundedTop:X.borderTopRadius,roundedTopLeft:X.borderTopLeftRadius,roundedTopRight:X.borderTopRightRadius,roundedTopStart:X.borderStartStartRadius,roundedTopEnd:X.borderStartEndRadius,roundedBottom:X.borderBottomRadius,roundedBottomLeft:X.borderBottomLeftRadius,roundedBottomRight:X.borderBottomRightRadius,roundedBottomStart:X.borderEndStartRadius,roundedBottomEnd:X.borderEndEndRadius,roundedLeft:X.borderLeftRadius,roundedRight:X.borderRightRadius,roundedStart:X.borderInlineStartRadius,roundedEnd:X.borderInlineEndRadius,borderStart:X.borderInlineStart,borderEnd:X.borderInlineEnd,borderTopStartRadius:X.borderStartStartRadius,borderTopEndRadius:X.borderStartEndRadius,borderBottomStartRadius:X.borderEndStartRadius,borderBottomEndRadius:X.borderEndEndRadius,borderStartRadius:X.borderInlineStartRadius,borderEndRadius:X.borderInlineEndRadius,borderStartWidth:X.borderInlineStartWidth,borderEndWidth:X.borderInlineEndWidth,borderStartColor:X.borderInlineStartColor,borderEndColor:X.borderInlineEndColor,borderStartStyle:X.borderInlineStartStyle,borderEndStyle:X.borderInlineEndStyle});const nT={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke"),accentColor:w.colors("accentColor"),textFillColor:w.colors("textFillColor")},wl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:H.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(wl,{flexDir:wl.flexDirection});const _t={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",H.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(_t,{w:_t.width,h:_t.height,minW:_t.minWidth,maxW:_t.maxWidth,minH:_t.minHeight,maxH:_t.maxHeight,overscroll:_t.overscrollBehavior,overscrollX:_t.overscrollBehaviorX,overscrollY:_t.overscrollBehaviorY});const rT={filter:{transform:H.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",H.brightness),contrast:w.propT("--chakra-contrast",H.contrast),hueRotate:w.propT("--chakra-hue-rotate",H.hueRotate),invert:w.propT("--chakra-invert",H.invert),saturate:w.propT("--chakra-saturate",H.saturate),dropShadow:w.propT("--chakra-drop-shadow",H.dropShadow),backdropFilter:{transform:H.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",H.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",H.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",H.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",H.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",H.saturate)},oT={ring:{transform:H.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},iT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:H.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},N1={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function sT(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},lT=aT(sT),uT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},cT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},uc=(e,t,n)=>{const r={},o=lT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},dT={srOnly:{transform(e){return e===!0?uT:e==="focusable"?cT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>uc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>uc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>uc(t,e,n)}},Vi={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Vi,{insetStart:Vi.insetInlineStart,insetEnd:Vi.insetInlineEnd});const Wd={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(Wd,{shadow:Wd.boxShadow});const le={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(le,{m:le.margin,mt:le.marginTop,mr:le.marginRight,me:le.marginInlineEnd,marginEnd:le.marginInlineEnd,mb:le.marginBottom,ml:le.marginLeft,ms:le.marginInlineStart,marginStart:le.marginInlineStart,mx:le.marginX,my:le.marginY,p:le.padding,pt:le.paddingTop,py:le.paddingY,px:le.paddingX,pb:le.paddingBottom,pl:le.paddingLeft,ps:le.paddingInlineStart,paddingStart:le.paddingInlineStart,pr:le.paddingRight,pe:le.paddingInlineEnd,paddingEnd:le.paddingInlineEnd});const fT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},hT={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",H.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},pT={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},mT={clipPath:!0,transform:w.propT("transform",H.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},gT={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")},yT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},gh=sn({},Ma,X,nT,wl,_t,rT,oT,iT,N1,dT,Vi,Wd,le,fT,hT,pT,mT,gT,yT);Object.assign({},le,_t,wl,N1,Vi);const vT=[...Object.keys(gh),...V1],ST={...gh,...Eo},bT=e=>e in ST,xT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=zt(e[s],t);if(a==null)continue;if(a=Dt(a)&&n(a)?r(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!kT(t),TT=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[o,i]=wT(t);return t=n(o)??r(i)??r(t),t};function _T(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var c;const a=zt(i,r),l=xT(a)(r);let u={};for(let d in l){const f=l[d];let y=zt(f,r);d in n&&(d=n[d]),CT(d,y)&&(y=TT(r,y));let v=t[d];if(v===!0&&(v={property:d}),Dt(y)){u[d]=u[d]??{},u[d]=sn({},u[d],o(y,!0));continue}let S=((c=v==null?void 0:v.transform)==null?void 0:c.call(v,y,r,a))??y;S=v!=null&&v.processResult?o(S,!0):S;const P=zt(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const m=zt(v.static,r);u=sn({},u,m)}if(P&&Array.isArray(P)){for(const m of P)u[m]=S;continue}if(P){P==="&"&&Dt(S)?u=sn({},u,S):u[P]=S;continue}if(Dt(S)){u=sn({},u,S);continue}u[d]=S}return u};return o}const W1=e=>t=>_T({theme:t,pseudos:Eo,configs:gh})(e);function se(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function PT(e,t){if(Array.isArray(e))return e;if(Dt(e))return t(e);if(e!=null)return[e]}function ET(e,t){for(let n=t+1;n{sn(a,{[p]:c?h[p]:{[m]:h[p]}})});continue}if(!d){c?sn(a,h):a[m]=h;continue}a[m]=h}}return a}}function AT(e){return t=>{const{variant:n,size:r,theme:o}=t,i=$T(o);return sn({},zt(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Ln(e){return F1(e,["styleConfig","size","variant","colorScheme"])}function U1(e){return Dt(e)&&e.reference?e.reference:String(e)}const ql=(e,...t)=>t.map(U1).join(` ${e} `).replace(/calc/g,""),cg=(...e)=>`calc(${ql("+",...e)})`,dg=(...e)=>`calc(${ql("-",...e)})`,Ud=(...e)=>`calc(${ql("*",...e)})`,fg=(...e)=>`calc(${ql("/",...e)})`,hg=e=>{const t=U1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ud(t,-1)},yn=Object.assign(e=>({add:(...t)=>yn(cg(e,...t)),subtract:(...t)=>yn(dg(e,...t)),multiply:(...t)=>yn(Ud(e,...t)),divide:(...t)=>yn(fg(e,...t)),negate:()=>yn(hg(e)),toString:()=>e.toString()}),{add:cg,subtract:dg,multiply:Ud,divide:fg,negate:hg});function RT(e,t="-"){return e.replace(/\s+/g,t)}function zT(e){const t=RT(e.toString());return DT(MT(t))}function MT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function DT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function IT(e,t=""){return[t,e].filter(Boolean).join("-")}function LT(e,t){return`var(${e}${t?`, ${t}`:""})`}function jT(e,t=""){return zT(`--${IT(e,t)}`)}function F(e,t,n){const r=jT(e,n);return{variable:r,reference:LT(r,t)}}function FT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=F(`${e}-${o}`,i);continue}n[r]=F(`${e}-${r}`)}return n}const BT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function VT(e){return R2(e,BT)}function OT(e){return e.semanticTokens}function NT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function WT(e){const t=VT(e),n=OT(e),r=i=>V1.includes(i)||i==="default",o={};return ag(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),ag(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function pg(e,t){return F(String(e).replace(/\./g,"-"),void 0,t)}function UT(e){var s;const t=WT(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const o={};function i(a,l){const c=[String(a).split(".")[0],l].join(".");if(!t[c])return l;const{reference:f}=pg(c,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:d,reference:f}=pg(a,n);if(!u){if(a.startsWith("space")){const v=a.split("."),[S,...P]=v,m=`${S}.-${P.join(".")}`,h=yn.negate(c),p=yn.negate(f);o[m]={value:h,var:d,varRef:p}}r[d]=c,o[a]={value:c,var:d,varRef:f};continue}const y=Dt(c)?c:{default:c};r=sn(r,Object.entries(y).reduce((v,[S,P])=>{if(!P)return v;const m=i(a,`${P}`);if(S==="default")return v[d]=m,v;const h=(Eo==null?void 0:Eo[S])??S;return v[h]={[d]:m},v},{})),o[a]={value:f,var:d,varRef:f}}return{cssVars:r,cssMap:o}}function HT(e){const t=NT(e),{cssMap:n,cssVars:r}=UT(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:T2(t.breakpoints)}),t}function J(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return J(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return J(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const y=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:y,selector:`.${y}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const KT=J("accordion").parts("root","container","button","panel","icon"),GT=J("alert").parts("title","description","container","icon","spinner"),YT=J("avatar").parts("label","badge","container","excessLabel","group"),XT=J("breadcrumb").parts("link","item","container","separator");J("button").parts();const qT=J("checkbox").parts("control","icon","container","label");J("progress").parts("track","filledTrack","label");const QT=J("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),ZT=J("editable").parts("preview","input","textarea"),JT=J("form").parts("container","requiredIndicator","helperText"),e_=J("formError").parts("text","icon"),t_=J("input").parts("addon","field","element","group"),n_=J("list").parts("container","item","icon"),r_=J("menu").parts("button","list","item","groupTitle","icon","command","divider"),o_=J("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),i_=J("numberinput").parts("root","field","stepperGroup","stepper");J("pininput").parts("field");const s_=J("popover").parts("content","header","body","footer","popper","arrow","closeButton"),a_=J("progress").parts("label","filledTrack","track"),l_=J("radio").parts("container","control","label"),u_=J("select").parts("field","icon"),c_=J("slider").parts("container","track","thumb","filledTrack","mark"),d_=J("stat").parts("container","label","helpText","number","icon"),f_=J("switch").parts("container","track","thumb","label"),h_=J("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),p_=J("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),m_=J("tag").parts("container","label","closeButton"),g_=J("card").parts("container","header","body","footer");J("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:y_,defineMultiStyleConfig:v_}=se(KT.keys),S_={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},b_={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},x_={pt:"2",px:"4",pb:"5"},w_={fontSize:"1.25em"},k_=y_({container:S_,button:b_,panel:x_,icon:w_}),C_=v_({baseStyle:k_});function Er(e,t,n){return Math.min(Math.max(e,n),t)}class T_ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Ci=T_;function yh(e){if(typeof e!="string")throw new Ci(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=M_.test(e)?E_(e):e;const n=$_.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(fs(a,2),16)),parseInt(fs(s[3]||"f",2),16)/255]}const r=A_.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=R_.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=z_.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Er(0,100,a)!==a)throw new Ci(e);if(Er(0,100,l)!==l)throw new Ci(e);return[...D_(s,a,l),Number.isNaN(u)?1:u]}throw new Ci(e)}function __(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const mg=e=>parseInt(e.replace(/_/g,""),36),P_="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=mg(t.substring(0,3)),r=mg(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function E_(e){const t=e.toLowerCase().trim(),n=P_[__(t)];if(!n)throw new Ci(e);return`#${n}`}const fs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),$_=new RegExp(`^#${fs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),A_=new RegExp(`^#${fs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),R_=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),z_=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,M_=/^[a-z]+$/i,gg=e=>Math.round(e*255),D_=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(gg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,y=u+c;return[d,f,y].map(gg)};function I_(e,t,n,r){return`rgba(${Er(0,255,e).toFixed()}, ${Er(0,255,t).toFixed()}, ${Er(0,255,n).toFixed()}, ${parseFloat(Er(0,1,r).toFixed(3))})`}function L_(e,t){const[n,r,o,i]=yh(e);return I_(n,r,o,i-t)}function j_(e){const[t,n,r,o]=yh(e);let i=s=>{const a=Er(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}const F_=e=>Object.keys(e).length===0;function B_(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=B_(e,`colors.${t}`,t);try{return j_(r),r}catch{return"#000000"}},V_=e=>{const[t,n,r]=yh(e);return(t*299+n*587+r*114)/1e3},O_=e=>t=>{const n=et(t,e);return V_(n)<128?"dark":"light"},N_=e=>t=>O_(e)(t)==="dark",Oo=(e,t)=>n=>{const r=et(n,e);return L_(r,1-t)};function yg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}const W_=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function U_(e){const t=W_();return!e||F_(e)?t:e.string&&e.colors?K_(e.string,e.colors):e.string&&!e.colors?H_(e.string):e.colors&&!e.string?G_(e.colors):t}function H_(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function K_(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function vh(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function H1(e){return Dt(e)&&e.reference?e.reference:String(e)}const Ql=(e,...t)=>t.map(H1).join(` ${e} `).replace(/calc/g,""),vg=(...e)=>`calc(${Ql("+",...e)})`,Sg=(...e)=>`calc(${Ql("-",...e)})`,Hd=(...e)=>`calc(${Ql("*",...e)})`,bg=(...e)=>`calc(${Ql("/",...e)})`,xg=e=>{const t=H1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hd(t,-1)},vn=Object.assign(e=>({add:(...t)=>vn(vg(e,...t)),subtract:(...t)=>vn(Sg(e,...t)),multiply:(...t)=>vn(Hd(e,...t)),divide:(...t)=>vn(bg(e,...t)),negate:()=>vn(xg(e)),toString:()=>e.toString()}),{add:vg,subtract:Sg,multiply:Hd,divide:bg,negate:xg});function Y_(e){return!Number.isInteger(parseFloat(e.toString()))}function X_(e,t="-"){return e.replace(/\s+/g,t)}function K1(e){const t=X_(e.toString());return t.includes("\\.")?e:Y_(e)?t.replace(".","\\."):e}function q_(e,t=""){return[t,K1(e)].filter(Boolean).join("-")}function Q_(e,t){return`var(${K1(e)}${t?`, ${t}`:""})`}function Z_(e,t=""){return`--${q_(e,t)}`}function Me(e,t){const n=Z_(e,t==null?void 0:t.prefix);return{variable:n,reference:Q_(n,J_(t==null?void 0:t.fallback))}}function J_(e){return e==null?void 0:e.reference}const{definePartsStyle:Es,defineMultiStyleConfig:eP}=se(GT.keys),yt=F("alert-fg"),zn=F("alert-bg"),tP=Es({container:{bg:zn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:yt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Sh(e){const{theme:t,colorScheme:n}=e,r=Oo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const nP=Es(e=>{const{colorScheme:t}=e,n=Sh(e);return{container:{[yt.variable]:`colors.${t}.600`,[zn.variable]:n.light,_dark:{[yt.variable]:`colors.${t}.200`,[zn.variable]:n.dark}}}}),rP=Es(e=>{const{colorScheme:t}=e,n=Sh(e);return{container:{[yt.variable]:`colors.${t}.600`,[zn.variable]:n.light,_dark:{[yt.variable]:`colors.${t}.200`,[zn.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:yt.reference}}}),oP=Es(e=>{const{colorScheme:t}=e,n=Sh(e);return{container:{[yt.variable]:`colors.${t}.600`,[zn.variable]:n.light,_dark:{[yt.variable]:`colors.${t}.200`,[zn.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:yt.reference}}}),iP=Es(e=>{const{colorScheme:t}=e;return{container:{[yt.variable]:"colors.white",[zn.variable]:`colors.${t}.600`,_dark:{[yt.variable]:"colors.gray.900",[zn.variable]:`colors.${t}.200`},color:yt.reference}}}),sP={subtle:nP,"left-accent":rP,"top-accent":oP,solid:iP},aP=eP({baseStyle:tP,variants:sP,defaultProps:{variant:"subtle",colorScheme:"blue"}}),G1={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},lP={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},uP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Y1={...G1,...lP,container:uP},cP=e=>typeof e=="function";function nt(e,...t){return cP(e)?e(...t):e}const{definePartsStyle:X1,defineMultiStyleConfig:dP}=se(YT.keys),$o=F("avatar-border-color"),Oi=F("avatar-bg"),hs=F("avatar-font-size"),No=F("avatar-size"),fP={borderRadius:"full",border:"0.2em solid",borderColor:$o.reference,[$o.variable]:"white",_dark:{[$o.variable]:"colors.gray.800"}},hP={bg:Oi.reference,fontSize:hs.reference,width:No.reference,height:No.reference,lineHeight:"1",[Oi.variable]:"colors.gray.200",_dark:{[Oi.variable]:"colors.whiteAlpha.400"}},pP=e=>{const{name:t,theme:n}=e,r=t?U_({string:t}):"colors.gray.400",o=N_(r)(n);let i="white";return o||(i="gray.800"),{bg:Oi.reference,fontSize:hs.reference,color:i,borderColor:$o.reference,verticalAlign:"top",width:No.reference,height:No.reference,"&:not([data-loaded])":{[Oi.variable]:r},[$o.variable]:"colors.white",_dark:{[$o.variable]:"colors.gray.800"}}},mP={fontSize:hs.reference,lineHeight:"1"},gP=X1(e=>({badge:nt(fP,e),excessLabel:nt(hP,e),container:nt(pP,e),label:mP}));function Vn(e){const t=e!=="100%"?Y1[e]:void 0;return X1({container:{[No.variable]:t??e,[hs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[No.variable]:t??e,[hs.variable]:`calc(${t??e} / 2.5)`}})}const yP={"2xs":Vn(4),xs:Vn(6),sm:Vn(8),md:Vn(12),lg:Vn(16),xl:Vn(24),"2xl":Vn(32),full:Vn("100%")},vP=dP({baseStyle:gP,sizes:yP,defaultProps:{size:"md"}}),Te=FT("badge",["bg","color","shadow"]),SP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Te.bg.reference,color:Te.color.reference,boxShadow:Te.shadow.reference},bP=e=>{const{colorScheme:t,theme:n}=e,r=Oo(`${t}.500`,.6)(n);return{[Te.bg.variable]:`colors.${t}.500`,[Te.color.variable]:"colors.white",_dark:{[Te.bg.variable]:r,[Te.color.variable]:"colors.whiteAlpha.800"}}},xP=e=>{const{colorScheme:t,theme:n}=e,r=Oo(`${t}.200`,.16)(n);return{[Te.bg.variable]:`colors.${t}.100`,[Te.color.variable]:`colors.${t}.800`,_dark:{[Te.bg.variable]:r,[Te.color.variable]:`colors.${t}.200`}}},wP=e=>{const{colorScheme:t,theme:n}=e,r=Oo(`${t}.200`,.8)(n);return{[Te.color.variable]:`colors.${t}.500`,_dark:{[Te.color.variable]:r},[Te.shadow.variable]:`inset 0 0 0px 1px ${Te.color.reference}`}},kP={solid:bP,subtle:xP,outline:wP},Ni={baseStyle:SP,variants:kP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:CP,definePartsStyle:TP}=se(XT.keys),cc=F("breadcrumb-link-decor"),_P={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:cc.reference,[cc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[cc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},PP=TP({link:_P}),EP=CP({baseStyle:PP}),$P={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},q1=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const r=Oo(`${t}.200`,.12)(n),o=Oo(`${t}.200`,.24)(n);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,r)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},AP=e=>{const{colorScheme:t}=e,n=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...nt(q1,e)}},RP={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},zP=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=j("gray.100","whiteAlpha.200")(e);return{bg:a,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=RP[t]??{},s=j(n,`${t}.200`)(e);return{bg:s,color:j(r,"gray.800")(e),_hover:{bg:j(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:j(i,`${t}.400`)(e)}}},MP=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},DP={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},IP={ghost:q1,outline:AP,solid:zP,link:MP,unstyled:DP},LP={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},jP={baseStyle:$P,variants:IP,sizes:LP,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:zr,defineMultiStyleConfig:FP}=se(g_.keys),kl=F("card-bg"),Tn=F("card-padding"),Q1=F("card-shadow"),Da=F("card-radius"),Z1=F("card-border-width","0"),J1=F("card-border-color"),BP=zr({container:{[kl.variable]:"colors.chakra-body-bg",backgroundColor:kl.reference,boxShadow:Q1.reference,borderRadius:Da.reference,color:"chakra-body-text",borderWidth:Z1.reference,borderColor:J1.reference},body:{padding:Tn.reference,flex:"1 1 0%"},header:{padding:Tn.reference},footer:{padding:Tn.reference}}),VP={sm:zr({container:{[Da.variable]:"radii.base",[Tn.variable]:"space.3"}}),md:zr({container:{[Da.variable]:"radii.md",[Tn.variable]:"space.5"}}),lg:zr({container:{[Da.variable]:"radii.xl",[Tn.variable]:"space.7"}})},OP={elevated:zr({container:{[Q1.variable]:"shadows.base",_dark:{[kl.variable]:"colors.gray.700"}}}),outline:zr({container:{[Z1.variable]:"1px",[J1.variable]:"colors.chakra-border-color"}}),filled:zr({container:{[kl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Tn.variable]:0},header:{[Tn.variable]:0},footer:{[Tn.variable]:0}}},NP=FP({baseStyle:BP,variants:OP,sizes:VP,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Ia,defineMultiStyleConfig:WP}=se(qT.keys),Wi=F("checkbox-size"),UP=e=>{const{colorScheme:t}=e;return{w:Wi.reference,h:Wi.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},HP={_disabled:{cursor:"not-allowed"}},KP={userSelect:"none",_disabled:{opacity:.4}},GP={transitionProperty:"transform",transitionDuration:"normal"},YP=Ia(e=>({icon:GP,container:HP,control:nt(UP,e),label:KP})),XP={sm:Ia({control:{[Wi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ia({control:{[Wi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ia({control:{[Wi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Hn=WP({baseStyle:YP,sizes:XP,defaultProps:{size:"md",colorScheme:"blue"}}),Ui=Me("close-button-size"),pi=Me("close-button-bg"),qP={w:[Ui.reference],h:[Ui.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[pi.variable]:"colors.blackAlpha.100",_dark:{[pi.variable]:"colors.whiteAlpha.100"}},_active:{[pi.variable]:"colors.blackAlpha.200",_dark:{[pi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:pi.reference},QP={lg:{[Ui.variable]:"sizes.10",fontSize:"md"},md:{[Ui.variable]:"sizes.8",fontSize:"xs"},sm:{[Ui.variable]:"sizes.6",fontSize:"2xs"}},ZP={baseStyle:qP,sizes:QP,defaultProps:{size:"md"}},{variants:JP,defaultProps:eE}=Ni,tE={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Te.bg.reference,color:Te.color.reference,boxShadow:Te.shadow.reference},nE={baseStyle:tE,variants:JP,defaultProps:eE},rE={w:"100%",mx:"auto",maxW:"prose",px:"4"},oE={baseStyle:rE},iE={opacity:.6,borderColor:"inherit"},sE={borderStyle:"solid"},aE={borderStyle:"dashed"},lE={solid:sE,dashed:aE},uE={baseStyle:iE,variants:lE,defaultProps:{variant:"solid"}},{definePartsStyle:Kd,defineMultiStyleConfig:cE}=se(QT.keys),dc=F("drawer-bg"),fc=F("drawer-box-shadow");function Qr(e){return Kd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const dE={bg:"blackAlpha.600",zIndex:"modal"},fE={display:"flex",zIndex:"modal",justifyContent:"center"},hE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[dc.variable]:"colors.white",[fc.variable]:"shadows.lg",_dark:{[dc.variable]:"colors.gray.700",[fc.variable]:"shadows.dark-lg"},bg:dc.reference,boxShadow:fc.reference}},pE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},mE={position:"absolute",top:"2",insetEnd:"3"},gE={px:"6",py:"2",flex:"1",overflow:"auto"},yE={px:"6",py:"4"},vE=Kd(e=>({overlay:dE,dialogContainer:fE,dialog:nt(hE,e),header:pE,closeButton:mE,body:gE,footer:yE})),SE={xs:Qr("xs"),sm:Qr("md"),md:Qr("lg"),lg:Qr("2xl"),xl:Qr("4xl"),full:Qr("full")},bE=cE({baseStyle:vE,sizes:SE,defaultProps:{size:"xs"}}),{definePartsStyle:xE,defineMultiStyleConfig:wE}=se(ZT.keys),kE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},CE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},TE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},_E=xE({preview:kE,input:CE,textarea:TE}),PE=wE({baseStyle:_E}),{definePartsStyle:EE,defineMultiStyleConfig:$E}=se(JT.keys),Ao=F("form-control-color"),AE={marginStart:"1",[Ao.variable]:"colors.red.500",_dark:{[Ao.variable]:"colors.red.300"},color:Ao.reference},RE={mt:"2",[Ao.variable]:"colors.gray.600",_dark:{[Ao.variable]:"colors.whiteAlpha.600"},color:Ao.reference,lineHeight:"normal",fontSize:"sm"},zE=EE({container:{width:"100%",position:"relative"},requiredIndicator:AE,helperText:RE}),ME=$E({baseStyle:zE}),{definePartsStyle:DE,defineMultiStyleConfig:IE}=se(e_.keys),Ro=F("form-error-color"),LE={[Ro.variable]:"colors.red.500",_dark:{[Ro.variable]:"colors.red.300"},color:Ro.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},jE={marginEnd:"0.5em",[Ro.variable]:"colors.red.500",_dark:{[Ro.variable]:"colors.red.300"},color:Ro.reference},FE=DE({text:LE,icon:jE}),BE=IE({baseStyle:FE}),VE={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},OE={baseStyle:VE},NE={fontFamily:"heading",fontWeight:"bold"},WE={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},UE={baseStyle:NE,sizes:WE,defaultProps:{size:"xl"}},{definePartsStyle:wn,defineMultiStyleConfig:HE}=se(t_.keys),co=F("input-height"),fo=F("input-font-size"),ho=F("input-padding"),po=F("input-border-radius"),KE=wn({addon:{height:co.reference,fontSize:fo.reference,px:ho.reference,borderRadius:po.reference},field:{width:"100%",height:co.reference,fontSize:fo.reference,px:ho.reference,borderRadius:po.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),On={lg:{[fo.variable]:"fontSizes.lg",[ho.variable]:"space.4",[po.variable]:"radii.md",[co.variable]:"sizes.12"},md:{[fo.variable]:"fontSizes.md",[ho.variable]:"space.4",[po.variable]:"radii.md",[co.variable]:"sizes.10"},sm:{[fo.variable]:"fontSizes.sm",[ho.variable]:"space.3",[po.variable]:"radii.sm",[co.variable]:"sizes.8"},xs:{[fo.variable]:"fontSizes.xs",[ho.variable]:"space.2",[po.variable]:"radii.sm",[co.variable]:"sizes.6"}},GE={lg:wn({field:On.lg,group:On.lg}),md:wn({field:On.md,group:On.md}),sm:wn({field:On.sm,group:On.sm}),xs:wn({field:On.xs,group:On.xs})};function bh(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}const YE=wn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=bh(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r),boxShadow:`0 0 0 1px ${et(t,r)}`},_focusVisible:{zIndex:1,borderColor:et(t,n),boxShadow:`0 0 0 1px ${et(t,n)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),XE=wn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=bh(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r)},_focusVisible:{bg:"transparent",borderColor:et(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),qE=wn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=bh(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:et(t,r),boxShadow:`0px 1px 0px 0px ${et(t,r)}`},_focusVisible:{borderColor:et(t,n),boxShadow:`0px 1px 0px 0px ${et(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),QE=wn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),ZE={outline:YE,filled:XE,flushed:qE,unstyled:QE},Z=HE({baseStyle:KE,sizes:GE,variants:ZE,defaultProps:{size:"md",variant:"outline"}}),hc=F("kbd-bg"),JE={[hc.variable]:"colors.gray.100",_dark:{[hc.variable]:"colors.whiteAlpha.100"},bg:hc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},e5={baseStyle:JE},t5={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},n5={baseStyle:t5},{defineMultiStyleConfig:r5,definePartsStyle:o5}=se(n_.keys),i5={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},s5=o5({icon:i5}),a5=r5({baseStyle:s5}),{defineMultiStyleConfig:l5,definePartsStyle:u5}=se(r_.keys),en=F("menu-bg"),pc=F("menu-shadow"),c5={[en.variable]:"#fff",[pc.variable]:"shadows.sm",_dark:{[en.variable]:"colors.gray.700",[pc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:en.reference,boxShadow:pc.reference},d5={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[en.variable]:"colors.gray.100",_dark:{[en.variable]:"colors.whiteAlpha.100"}},_active:{[en.variable]:"colors.gray.200",_dark:{[en.variable]:"colors.whiteAlpha.200"}},_expanded:{[en.variable]:"colors.gray.100",_dark:{[en.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:en.reference},f5={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},h5={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},p5={opacity:.6},m5={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},g5={transitionProperty:"common",transitionDuration:"normal"},y5=u5({button:g5,list:c5,item:d5,groupTitle:f5,icon:h5,command:p5,divider:m5}),v5=l5({baseStyle:y5}),{defineMultiStyleConfig:S5,definePartsStyle:Gd}=se(o_.keys),mc=F("modal-bg"),gc=F("modal-shadow"),b5={bg:"blackAlpha.600",zIndex:"modal"},x5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},w5=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[mc.variable]:"colors.white",[gc.variable]:"shadows.lg",_dark:{[mc.variable]:"colors.gray.700",[gc.variable]:"shadows.dark-lg"},bg:mc.reference,boxShadow:gc.reference}},k5={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},C5={position:"absolute",top:"2",insetEnd:"3"},T5=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},_5={px:"6",py:"4"},P5=Gd(e=>({overlay:b5,dialogContainer:nt(x5,e),dialog:nt(w5,e),header:k5,closeButton:C5,body:nt(T5,e),footer:_5}));function Bt(e){return Gd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const E5={xs:Bt("xs"),sm:Bt("sm"),md:Bt("md"),lg:Bt("lg"),xl:Bt("xl"),"2xl":Bt("2xl"),"3xl":Bt("3xl"),"4xl":Bt("4xl"),"5xl":Bt("5xl"),"6xl":Bt("6xl"),full:Bt("full")},$5=S5({baseStyle:P5,sizes:E5,defaultProps:{size:"md"}}),eS={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:A5,definePartsStyle:tS}=se(i_.keys),xh=Me("number-input-stepper-width"),nS=Me("number-input-input-padding"),R5=vn(xh).add("0.5rem").toString(),yc=Me("number-input-bg"),vc=Me("number-input-color"),Sc=Me("number-input-border-color"),z5={[xh.variable]:"sizes.6",[nS.variable]:R5},M5=e=>{var t;return((t=nt(Z.baseStyle,e))==null?void 0:t.field)??{}},D5={width:xh.reference},I5={borderStart:"1px solid",borderStartColor:Sc.reference,color:vc.reference,bg:yc.reference,[vc.variable]:"colors.chakra-body-text",[Sc.variable]:"colors.chakra-border-color",_dark:{[vc.variable]:"colors.whiteAlpha.800",[Sc.variable]:"colors.whiteAlpha.300"},_active:{[yc.variable]:"colors.gray.200",_dark:{[yc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},L5=tS(e=>({root:z5,field:nt(M5,e)??{},stepperGroup:D5,stepper:I5}));function ua(e){var i,s;const t=(i=Z.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",o=eS.fontSizes[r];return tS({field:{...t.field,paddingInlineEnd:nS.reference,verticalAlign:"top"},stepper:{fontSize:vn(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const j5={xs:ua("xs"),sm:ua("sm"),md:ua("md"),lg:ua("lg")},F5=A5({baseStyle:L5,sizes:j5,variants:Z.variants,defaultProps:Z.defaultProps});var ey;const B5={...(ey=Z.baseStyle)==null?void 0:ey.field,textAlign:"center"},V5={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var ty;const O5={outline:e=>{var t,n;return((n=nt((t=Z.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=nt((t=Z.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=nt((t=Z.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((ty=Z.variants)==null?void 0:ty.unstyled.field)??{}},N5={baseStyle:B5,sizes:V5,variants:O5,defaultProps:Z.defaultProps},{defineMultiStyleConfig:W5,definePartsStyle:U5}=se(s_.keys),ca=Me("popper-bg"),H5=Me("popper-arrow-bg"),wg=Me("popper-arrow-shadow-color"),K5={zIndex:"popover"},G5={[ca.variable]:"colors.white",bg:ca.reference,[H5.variable]:ca.reference,[wg.variable]:"colors.gray.200",_dark:{[ca.variable]:"colors.gray.700",[wg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Y5={px:3,py:2,borderBottomWidth:"1px"},X5={px:3,py:2},q5={px:3,py:2,borderTopWidth:"1px"},Q5={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Z5=U5({popper:K5,content:G5,header:Y5,body:X5,footer:q5,closeButton:Q5}),J5=W5({baseStyle:Z5}),{defineMultiStyleConfig:e$,definePartsStyle:Ti}=se(a_.keys),t$=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(yg(),yg("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + to right, + transparent 0%, + ${et(n,s)} 50%, + transparent 100% + )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},n$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},r$=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),o$=e=>({transitionProperty:"common",transitionDuration:"slow",...t$(e)}),i$=Ti(e=>({label:n$,filledTrack:o$(e),track:r$(e)})),s$={xs:Ti({track:{h:"1"}}),sm:Ti({track:{h:"2"}}),md:Ti({track:{h:"3"}}),lg:Ti({track:{h:"4"}})},a$=e$({sizes:s$,baseStyle:i$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:l$,definePartsStyle:La}=se(l_.keys),u$=e=>{var n;const t=(n=nt(Hn.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},c$=La(e=>{var t,n;return{label:(t=Hn.baseStyle)==null?void 0:t.call(Hn,e).label,container:(n=Hn.baseStyle)==null?void 0:n.call(Hn,e).container,control:u$(e)}}),d$={md:La({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:La({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:La({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},f$=l$({baseStyle:c$,sizes:d$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:h$,definePartsStyle:p$}=se(u_.keys),da=F("select-bg");var ny;const m$={...(ny=Z.baseStyle)==null?void 0:ny.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:da.reference,[da.variable]:"colors.white",_dark:{[da.variable]:"colors.gray.700"},"> option, > optgroup":{bg:da.reference}},g$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},y$=p$({field:m$,icon:g$}),fa={paddingInlineEnd:"8"};var ry,oy,iy,sy,ay,ly,uy,cy;const v$={lg:{...(ry=Z.sizes)==null?void 0:ry.lg,field:{...(oy=Z.sizes)==null?void 0:oy.lg.field,...fa}},md:{...(iy=Z.sizes)==null?void 0:iy.md,field:{...(sy=Z.sizes)==null?void 0:sy.md.field,...fa}},sm:{...(ay=Z.sizes)==null?void 0:ay.sm,field:{...(ly=Z.sizes)==null?void 0:ly.sm.field,...fa}},xs:{...(uy=Z.sizes)==null?void 0:uy.xs,field:{...(cy=Z.sizes)==null?void 0:cy.xs.field,...fa},icon:{insetEnd:"1"}}},S$=h$({baseStyle:y$,sizes:v$,variants:Z.variants,defaultProps:Z.defaultProps}),bc=F("skeleton-start-color"),xc=F("skeleton-end-color"),b$={[bc.variable]:"colors.gray.100",[xc.variable]:"colors.gray.400",_dark:{[bc.variable]:"colors.gray.800",[xc.variable]:"colors.gray.600"},background:bc.reference,borderColor:xc.reference,opacity:.7,borderRadius:"sm"},x$={baseStyle:b$},wc=F("skip-link-bg"),w$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[wc.variable]:"colors.white",_dark:{[wc.variable]:"colors.gray.700"},bg:wc.reference}},k$={baseStyle:w$},{defineMultiStyleConfig:C$,definePartsStyle:Zl}=se(c_.keys),Or=F("slider-thumb-size"),ps=F("slider-track-size"),Yn=F("slider-bg"),T$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...vh({orientation:t,vertical:{h:"100%",px:yn(Or.reference).divide(2).toString()},horizontal:{w:"100%",py:yn(Or.reference).divide(2).toString()}})}},_$=e=>({...vh({orientation:e.orientation,horizontal:{h:ps.reference},vertical:{w:ps.reference}}),overflow:"hidden",borderRadius:"sm",[Yn.variable]:"colors.gray.200",_dark:{[Yn.variable]:"colors.whiteAlpha.200"},_disabled:{[Yn.variable]:"colors.gray.300",_dark:{[Yn.variable]:"colors.whiteAlpha.300"}},bg:Yn.reference}),P$=e=>{const{orientation:t}=e;return{...vh({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Or.reference,h:Or.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},E$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Yn.variable]:`colors.${t}.500`,_dark:{[Yn.variable]:`colors.${t}.200`},bg:Yn.reference}},$$=Zl(e=>({container:T$(e),track:_$(e),thumb:P$(e),filledTrack:E$(e)})),A$=Zl({container:{[Or.variable]:"sizes.4",[ps.variable]:"sizes.1"}}),R$=Zl({container:{[Or.variable]:"sizes.3.5",[ps.variable]:"sizes.1"}}),z$=Zl({container:{[Or.variable]:"sizes.2.5",[ps.variable]:"sizes.0.5"}}),M$={lg:A$,md:R$,sm:z$},D$=C$({baseStyle:$$,sizes:M$,defaultProps:{size:"md",colorScheme:"blue"}}),Cr=Me("spinner-size"),I$={width:[Cr.reference],height:[Cr.reference]},L$={xs:{[Cr.variable]:"sizes.3"},sm:{[Cr.variable]:"sizes.4"},md:{[Cr.variable]:"sizes.6"},lg:{[Cr.variable]:"sizes.8"},xl:{[Cr.variable]:"sizes.12"}},j$={baseStyle:I$,sizes:L$,defaultProps:{size:"md"}},{defineMultiStyleConfig:F$,definePartsStyle:rS}=se(d_.keys),B$={fontWeight:"medium"},V$={opacity:.8,marginBottom:"2"},O$={verticalAlign:"baseline",fontWeight:"semibold"},N$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},W$=rS({container:{},label:B$,helpText:V$,number:O$,icon:N$}),U$={md:rS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},H$=F$({baseStyle:W$,sizes:U$,defaultProps:{size:"md"}}),{defineMultiStyleConfig:K$,definePartsStyle:_i}=se(["stepper","step","title","description","indicator","separator","icon","number"]),Sn=F("stepper-indicator-size"),mo=F("stepper-icon-size"),go=F("stepper-title-font-size"),Pi=F("stepper-description-font-size"),mi=F("stepper-accent-color"),G$=_i(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[mi.variable]:`colors.${e}.500`,_dark:{[mi.variable]:`colors.${e}.200`}},title:{fontSize:go.reference,fontWeight:"medium"},description:{fontSize:Pi.reference,color:"chakra-subtle-text"},number:{fontSize:go.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:mo.reference,height:mo.reference},indicator:{flexShrink:0,borderRadius:"full",width:Sn.reference,height:Sn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:mi.reference},"&[data-status=complete]":{bg:mi.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:mi.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Sn.reference} - 8px)`,top:`calc(${Sn.reference} + 4px)`,insetStart:`calc(${Sn.reference} / 2 - 1px)`}}})),Y$=K$({baseStyle:G$,sizes:{xs:_i({stepper:{[Sn.variable]:"sizes.4",[mo.variable]:"sizes.3",[go.variable]:"fontSizes.xs",[Pi.variable]:"fontSizes.xs"}}),sm:_i({stepper:{[Sn.variable]:"sizes.6",[mo.variable]:"sizes.4",[go.variable]:"fontSizes.sm",[Pi.variable]:"fontSizes.xs"}}),md:_i({stepper:{[Sn.variable]:"sizes.8",[mo.variable]:"sizes.5",[go.variable]:"fontSizes.md",[Pi.variable]:"fontSizes.sm"}}),lg:_i({stepper:{[Sn.variable]:"sizes.10",[mo.variable]:"sizes.6",[go.variable]:"fontSizes.lg",[Pi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:X$,definePartsStyle:ja}=se(f_.keys),Hi=Me("switch-track-width"),Mr=Me("switch-track-height"),kc=Me("switch-track-diff"),q$=vn.subtract(Hi,Mr),Yd=Me("switch-thumb-x"),gi=Me("switch-bg"),Q$=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Hi.reference],height:[Mr.reference],transitionProperty:"common",transitionDuration:"fast",[gi.variable]:"colors.gray.300",_dark:{[gi.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[gi.variable]:`colors.${t}.500`,_dark:{[gi.variable]:`colors.${t}.200`}},bg:gi.reference}},Z$={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Mr.reference],height:[Mr.reference],_checked:{transform:`translateX(${Yd.reference})`}},J$=ja(e=>({container:{[kc.variable]:q$,[Yd.variable]:kc.reference,_rtl:{[Yd.variable]:vn(kc).negate().toString()}},track:Q$(e),thumb:Z$})),eA={sm:ja({container:{[Hi.variable]:"1.375rem",[Mr.variable]:"sizes.3"}}),md:ja({container:{[Hi.variable]:"1.875rem",[Mr.variable]:"sizes.4"}}),lg:ja({container:{[Hi.variable]:"2.875rem",[Mr.variable]:"sizes.6"}})},tA=X$({baseStyle:J$,sizes:eA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nA,definePartsStyle:zo}=se(h_.keys),rA=zo({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Cl={"&[data-is-numeric=true]":{textAlign:"end"}},oA=zo(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),iA=zo(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),sA={simple:oA,striped:iA,unstyled:{}},aA={sm:zo({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:zo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:zo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},lA=nA({baseStyle:rA,variants:sA,sizes:aA,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),st=F("tabs-color"),Ut=F("tabs-bg"),ha=F("tabs-border-color"),{defineMultiStyleConfig:uA,definePartsStyle:un}=se(p_.keys),cA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},dA=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},fA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},hA={p:4},pA=un(e=>({root:cA(e),tab:dA(e),tablist:fA(e),tabpanel:hA})),mA={sm:un({tab:{py:1,px:4,fontSize:"sm"}}),md:un({tab:{fontSize:"md",py:2,px:4}}),lg:un({tab:{fontSize:"lg",py:3,px:4}})},gA=un(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[st.variable]:`colors.${t}.600`,_dark:{[st.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ut.variable]:"colors.gray.200",_dark:{[Ut.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:st.reference,bg:Ut.reference}}}),yA=un(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ha.variable]:"transparent",_selected:{[st.variable]:`colors.${t}.600`,[ha.variable]:"colors.white",_dark:{[st.variable]:`colors.${t}.300`,[ha.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ha.reference},color:st.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),vA=un(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ut.variable]:"colors.gray.50",_dark:{[Ut.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ut.variable]:"colors.white",[st.variable]:`colors.${t}.600`,_dark:{[Ut.variable]:"colors.gray.800",[st.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:st.reference,bg:Ut.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),SA=un(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:et(n,`${t}.700`),bg:et(n,`${t}.100`)}}}}),bA=un(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[st.variable]:"colors.gray.600",_dark:{[st.variable]:"inherit"},_selected:{[st.variable]:"colors.white",[Ut.variable]:`colors.${t}.600`,_dark:{[st.variable]:"colors.gray.800",[Ut.variable]:`colors.${t}.300`}},color:st.reference,bg:Ut.reference}}}),xA=un({}),wA={line:gA,enclosed:yA,"enclosed-colored":vA,"soft-rounded":SA,"solid-rounded":bA,unstyled:xA},kA=uA({baseStyle:pA,sizes:mA,variants:wA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:CA,definePartsStyle:Dr}=se(m_.keys),kg=F("tag-bg"),Cg=F("tag-color"),Cc=F("tag-shadow"),Fa=F("tag-min-height"),Ba=F("tag-min-width"),Va=F("tag-font-size"),Oa=F("tag-padding-inline"),TA={fontWeight:"medium",lineHeight:1.2,outline:0,[Cg.variable]:Te.color.reference,[kg.variable]:Te.bg.reference,[Cc.variable]:Te.shadow.reference,color:Cg.reference,bg:kg.reference,boxShadow:Cc.reference,borderRadius:"md",minH:Fa.reference,minW:Ba.reference,fontSize:Va.reference,px:Oa.reference,_focusVisible:{[Cc.variable]:"shadows.outline"}},_A={lineHeight:1.2,overflow:"visible"},PA={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},EA=Dr({container:TA,label:_A,closeButton:PA}),$A={sm:Dr({container:{[Fa.variable]:"sizes.5",[Ba.variable]:"sizes.5",[Va.variable]:"fontSizes.xs",[Oa.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Dr({container:{[Fa.variable]:"sizes.6",[Ba.variable]:"sizes.6",[Va.variable]:"fontSizes.sm",[Oa.variable]:"space.2"}}),lg:Dr({container:{[Fa.variable]:"sizes.8",[Ba.variable]:"sizes.8",[Va.variable]:"fontSizes.md",[Oa.variable]:"space.3"}})},AA={subtle:Dr(e=>{var t;return{container:(t=Ni.variants)==null?void 0:t.subtle(e)}}),solid:Dr(e=>{var t;return{container:(t=Ni.variants)==null?void 0:t.solid(e)}}),outline:Dr(e=>{var t;return{container:(t=Ni.variants)==null?void 0:t.outline(e)}})},RA=CA({variants:AA,baseStyle:EA,sizes:$A,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var dy;const zA={...(dy=Z.baseStyle)==null?void 0:dy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var fy;const MA={outline:e=>{var t;return((t=Z.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Z.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Z.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((fy=Z.variants)==null?void 0:fy.unstyled.field)??{}};var hy,py,my,gy;const DA={xs:((hy=Z.sizes)==null?void 0:hy.xs.field)??{},sm:((py=Z.sizes)==null?void 0:py.sm.field)??{},md:((my=Z.sizes)==null?void 0:my.md.field)??{},lg:((gy=Z.sizes)==null?void 0:gy.lg.field)??{}},IA={baseStyle:zA,sizes:DA,variants:MA,defaultProps:{size:"md",variant:"outline"}},pa=Me("tooltip-bg"),Tc=Me("tooltip-fg"),LA=Me("popper-arrow-bg"),jA={bg:pa.reference,color:Tc.reference,[pa.variable]:"colors.gray.700",[Tc.variable]:"colors.whiteAlpha.900",_dark:{[pa.variable]:"colors.gray.300",[Tc.variable]:"colors.gray.900"},[LA.variable]:pa.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},FA={baseStyle:jA},BA={Accordion:C_,Alert:aP,Avatar:vP,Badge:Ni,Breadcrumb:EP,Button:jP,Checkbox:Hn,CloseButton:ZP,Code:nE,Container:oE,Divider:uE,Drawer:bE,Editable:PE,Form:ME,FormError:BE,FormLabel:OE,Heading:UE,Input:Z,Kbd:e5,Link:n5,List:a5,Menu:v5,Modal:$5,NumberInput:F5,PinInput:N5,Popover:J5,Progress:a$,Radio:f$,Select:S$,Skeleton:x$,SkipLink:k$,Slider:D$,Spinner:j$,Stat:H$,Switch:tA,Table:lA,Tabs:kA,Tag:RA,Textarea:IA,Tooltip:FA,Card:NP,Stepper:Y$},VA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},OA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},NA={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},WA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},UA={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},HA={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},KA={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},GA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},YA={property:HA,easing:KA,duration:GA},XA={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},qA={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},QA={breakpoints:OA,zIndices:XA,radii:WA,blur:qA,colors:NA,...eS,sizes:Y1,shadows:UA,space:G1,borders:VA,transition:YA},ZA={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},JA={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},eR="ltr",tR={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},nR={semanticTokens:ZA,direction:eR,...QA,components:BA,styles:JA,config:tR};var rR=!1;function oR(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ve(Qo,--dt):0,Wo--,Pe===10&&(Wo=1,eu--),Pe}function vt(){return Pe=dt2||gs(Pe)>3?"":" "}function yR(e,t){for(;--t&&vt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return $s(e,Na()+(t<6&&cn()==32&&vt()==32))}function qd(e){for(;vt();)switch(Pe){case e:return dt;case 34:case 39:e!==34&&e!==39&&qd(Pe);break;case 40:e===41&&qd(e);break;case 92:vt();break}return dt}function vR(e,t){for(;vt()&&e+Pe!==57;)if(e+Pe===84&&cn()===47)break;return"/*"+$s(t,dt-1)+"*"+Jl(e===47?e:vt())}function SR(e){for(;!gs(cn());)vt();return $s(e,dt)}function bR(e){return uS(Ua("",null,null,null,[""],e=lS(e),0,[0],e))}function Ua(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,y=0,v=0,S=1,P=1,m=1,h=0,p="",b=o,x=i,T=r,C=p;P;)switch(v=h,h=vt()){case 40:if(v!=108&&Ve(C,d-1)==58){Xd(C+=Q(Wa(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Wa(h);break;case 9:case 10:case 13:case 32:C+=gR(v);break;case 92:C+=yR(Na()-1,7);continue;case 47:switch(cn()){case 42:case 47:ma(xR(vR(vt(),Na()),t,n),l);break;default:C+="/"}break;case 123*S:a[u++]=tn(C)*m;case 125*S:case 59:case 0:switch(h){case 0:case 125:P=0;case 59+c:m==-1&&(C=Q(C,/\f/g,"")),y>0&&tn(C)-d&&ma(y>32?_g(C+";",r,n,d-1):_g(Q(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(ma(T=Tg(C,t,n,u,c,o,a,p,b=[],x=[],d),i),h===123)if(c===0)Ua(C,t,T,T,b,i,d,a,x);else switch(f===99&&Ve(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ua(e,T,T,r&&ma(Tg(e,T,T,0,0,o,a,p,o,b=[],d),x),o,x,d,a,r?b:x);break;default:Ua(C,T,T,T,[""],x,0,a,x)}}u=c=y=0,S=m=1,p=C="",d=s;break;case 58:d=1+tn(C),y=v;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&mR()==125)continue}switch(C+=Jl(h),h*S){case 38:m=c>0?1:(C+="\f",-1);break;case 44:a[u++]=(tn(C)-1)*m,m=1;break;case 64:cn()===45&&(C+=Wa(vt())),f=cn(),c=d=tn(p=C+=SR(Na())),h++;break;case 45:v===45&&tn(C)==2&&(S=0)}}return i}function Tg(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],y=Ch(f),v=0,S=0,P=0;v0?f[m]+" "+h:Q(h,/&\f/g,f[m])))&&(l[P++]=p);return tu(e,t,n,o===0?wh:a,l,u,c)}function xR(e,t,n){return tu(e,t,n,oS,Jl(pR()),ms(e,2,-2),0)}function _g(e,t,n,r){return tu(e,t,n,kh,ms(e,0,r),ms(e,r+1,-1),r)}function Mo(e,t){for(var n="",r=Ch(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+Tl+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xd(e,"stretch")?dS(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,tn(e)-3-(~Xd(e,"!important")&&10))){case 107:return Q(e,":",":"+q)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(Ve(e,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return q+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return q+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return q+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return q+e+He+e+e}return e}var AR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case kh:t.return=dS(t.value,t.length);break;case iS:return Mo([yi(t,{value:Q(t.value,"@","@"+q)})],o);case wh:if(t.length)return hR(t.props,function(i){switch(fR(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mo([yi(t,{props:[Q(i,/:(read-\w+)/,":"+Tl+"$1")]})],o);case"::placeholder":return Mo([yi(t,{props:[Q(i,/:(plac\w+)/,":"+q+"input-$1")]}),yi(t,{props:[Q(i,/:(plac\w+)/,":"+Tl+"$1")]}),yi(t,{props:[Q(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},RR=[AR],zR=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var P=S.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||RR,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var P=S.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var UR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},HR=!1,KR=/[A-Z]|^ms/g,GR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vS=function(t){return t.charCodeAt(1)===45},$g=function(t){return t!=null&&typeof t!="boolean"},_c=cS(function(e){return vS(e)?e:e.replace(KR,"-$&").toLowerCase()}),Ag=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(GR,function(r,o,i){return nn={name:o,styles:i,next:nn},o})}return UR[t]!==1&&!vS(t)&&typeof n=="number"&&n!==0?n+"px":n},YR="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ys(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return nn={name:o.name,styles:o.styles,next:nn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)nn={name:s.name,styles:s.styles,next:nn},s=s.next;var a=i.styles+";";return a}return XR(e,t,n)}case"function":{if(e!==void 0){var l=nn,u=n(e);return nn=l,ys(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function XR(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?ga.dark:ga.light),document.body.classList.remove(o?ga.light:ga.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const oz="chakra-ui-color-mode";function iz(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const sz=iz(oz),Mg=()=>{},az=S2()?_.useLayoutEffect:_.useEffect;function Dg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const xS=$h(function(t,n){const{value:r,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=sz}=t,u=s==="dark"?"dark":"light",[c,d]=_.useState(()=>Dg(l,u)),[f,y]=_.useState(()=>Dg(l)),{getSystemTheme:v,setClassName:S,setDataset:P,addListener:m}=_.useMemo(()=>rz({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,p=_.useCallback(T=>{const C=T==="system"?v():T;d(C),S(C==="dark"),P(C),l.set(C)},[l,v,S,P]);az(()=>{s==="system"&&y(v())},[]),_.useEffect(()=>{const T=l.get();if(T){p(T);return}if(s==="system"){p("system");return}p(u)},[l,u,s,p]);const b=_.useCallback(()=>{p(h==="dark"?"light":"dark")},[h,p]);_.useEffect(()=>{if(i)return m(p)},[i,m,p]);const x=_.useMemo(()=>({colorMode:r??h,toggleColorMode:r?Mg:b,setColorMode:r?Mg:p,forced:r!==void 0}),[h,b,p,r]);return E.jsx(Ah.Provider,{value:x,children:o})});xS.displayName="ColorModeProvider";const wS=String.raw,kS=wS` + :root, + :host { + --chakra-vh: 100vh; + } + + @supports (height: -webkit-fill-available) { + :root, + :host { + --chakra-vh: -webkit-fill-available; + } + } + + @supports (height: -moz-fill-available) { + :root, + :host { + --chakra-vh: -moz-fill-available; + } + } + + @supports (height: 100dvh) { + :root, + :host { + --chakra-vh: 100dvh; + } + } +`,lz=()=>E.jsx(fu,{styles:kS}),uz=({scope:e=""})=>E.jsx(fu,{styles:wS` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${kS} + `});function cz(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.useMemo(()=>HT(n),[n]);return E.jsxs(ez,{theme:o,children:[E.jsx(dz,{root:t}),r]})}function dz({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return E.jsx(fu,{styles:n=>({[t]:n.__cssVars})})}In({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function fz(){const{colorMode:e}=hu();return E.jsx(fu,{styles:t=>{const n=j1(t,"styles.global"),r=zt(n,{theme:t,colorMode:e});return r?W1(r)(t):void 0}})}const[hz,pz]=In({strict:!1,name:"PortalManagerContext"});function CS(e){const{children:t,zIndex:n}=e;return E.jsx(hz,{value:{zIndex:n},children:t})}CS.displayName="PortalManager";const TS=_.createContext({getDocument(){return document},getWindow(){return window}});TS.displayName="EnvironmentContext";function _S(e){const{children:t,environment:n,disabled:r}=e,o=_.useRef(null),i=_.useMemo(()=>n||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return E.jsxs(TS.Provider,{value:i,children:[t,s&&E.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}_S.displayName="EnvironmentProvider";const mz=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=E.jsx(_S,{environment:a,disabled:u,children:t});return E.jsx(cz,{theme:s,cssVarsRoot:l,children:E.jsxs(xS,{colorModeManager:n,options:s.config,children:[i?E.jsx(uz,{scope:o}):E.jsx(lz,{}),!c&&E.jsx(fz,{}),r?E.jsx(CS,{zIndex:r,children:d}):d]})})};function gz(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function pu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Qd=e=>Array.isArray(e);function PS(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 Rh(e,t,n,r){if(typeof t=="function"){const[o,i]=Ig(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Ig(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function mu(e,t,n){const r=e.getProps();return Rh(r,t,n!==void 0?n:r.custom,e)}const zh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mh=["initial",...zh],As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ur=new Set(As),_n=e=>e*1e3,Pn=e=>e/1e3,yz={type:"spring",stiffness:500,damping:25,restSpeed:10},vz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Sz={type:"keyframes",duration:.8},bz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xz=(e,{keyframes:t})=>t.length>2?Sz:Ur.has(e)?e.startsWith("scale")?vz(t[1]):yz:bz;function Dh(e,t){return e?e[t]||e.default||e:void 0}const wz={skipAnimations:!1,useManualTiming:!1},kz=e=>e!==null;function gu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(kz),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Xe=e=>e;let Zd=Xe;function Cz(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const y=d&&r?t:n;return c&&i.add(u),y.has(u)||y.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const ya=["read","resolveKeyframes","update","preRender","render","postRender"],Tz=40;function ES(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ya.reduce((m,h)=>(m[h]=Cz(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,y=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,Tz),1),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:ya.reduce((m,h)=>{const p=s[h];return m[h]=(b,x=!1,T=!1)=>(n||v(),p.schedule(b,x,T)),m},{}),cancel:m=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_z=1e-7,Pz=12;function Ez(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=$S(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>_z&&++aEz(i,0,1,e,n);return i=>i===0||i===1?i:$S(o(i),t,r)}const AS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,RS=e=>t=>1-e(1-t),zS=Rs(.33,1.53,.69,.99),Ih=RS(zS),MS=AS(Ih),DS=e=>(e*=2)<1?.5*Ih(e):.5*(2-Math.pow(2,-10*(e-1))),Lh=e=>1-Math.sin(Math.acos(e)),IS=RS(Lh),LS=AS(Lh),jS=e=>/^0[^.\s]+$/u.test(e);function $z(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jS(e):!0}const FS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),BS=e=>t=>typeof t=="string"&&t.startsWith(e),VS=BS("--"),Az=BS("var(--"),jh=e=>Az(e)?Rz.test(e.split("/*")[0].trim()):!1,Rz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Mz(e){const t=zz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function OS(e,t,n=1){const[r,o]=Mz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return FS(s)?parseFloat(s):s}return jh(o)?OS(o,t,n+1):o}const Mn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},bs={...Zo,transform:e=>Mn(0,1,e)},va={...Zo,default:1},zs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Nn=zs("deg"),dn=zs("%"),B=zs("px"),Dz=zs("vh"),Iz=zs("vw"),Lg={...dn,parse:e=>dn.parse(e)/100,transform:e=>dn.transform(e*100)},Lz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),jg=e=>e===Zo||e===B,Fg=(e,t)=>parseFloat(e.split(", ")[t]),Bg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Fg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Fg(i[1],e):0}},jz=new Set(["x","y","z"]),Fz=As.filter(e=>!jz.has(e));function Bz(e){const t=[];return Fz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Uo={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:Bg(4,13),y:Bg(5,14)};Uo.translateX=Uo.x;Uo.translateY=Uo.y;const NS=e=>t=>t.test(e),Vz={test:e=>e==="auto",parse:e=>e},WS=[Zo,B,dn,Nn,Iz,Dz,Vz],Vg=e=>WS.find(NS(e)),Ir=new Set;let Jd=!1,ef=!1;function US(){if(ef){const e=Array.from(Ir).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Bz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ef=!1,Jd=!1,Ir.forEach(e=>e.complete()),Ir.clear()}function HS(){Ir.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ef=!0)})}function Oz(){HS(),US()}class Fh{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ir.add(this),Jd||(Jd=!0,re.read(HS),re.resolveKeyframes(US))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Bh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nz(e){return e==null}const Wz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vh=(e,t)=>n=>!!(typeof n=="string"&&Wz.test(n)&&n.startsWith(e)||t&&!Nz(n)&&Object.prototype.hasOwnProperty.call(n,t)),KS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Bh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Uz=e=>Mn(0,255,e),Ec={...Zo,transform:e=>Math.round(Uz(e))},$r={test:Vh("rgb","red"),parse:KS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ec.transform(e)+", "+Ec.transform(t)+", "+Ec.transform(n)+", "+Ki(bs.transform(r))+")"};function Hz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const tf={test:Vh("#"),parse:Hz,transform:$r.transform},yo={test:Vh("hsl","hue"),parse:KS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dn.transform(Ki(t))+", "+dn.transform(Ki(n))+", "+Ki(bs.transform(r))+")"},Ke={test:e=>$r.test(e)||tf.test(e)||yo.test(e),parse:e=>$r.test(e)?$r.parse(e):yo.test(e)?yo.parse(e):tf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$r.transform(e):yo.transform(e)},Kz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Gz(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Bh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Kz))===null||n===void 0?void 0:n.length)||0)>0}const GS="number",YS="color",Yz="var",Xz="var(",Og="${}",qz=/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 xs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(qz,l=>(Ke.test(l)?(r.color.push(i),o.push(YS),n.push(Ke.parse(l))):l.startsWith(Xz)?(r.var.push(i),o.push(Yz),n.push(l)):(r.number.push(i),o.push(GS),n.push(parseFloat(l))),++i,Og)).split(Og);return{values:n,split:a,indexes:r,types:o}}function XS(e){return xs(e).values}function qS(e){const{split:t,types:n}=xs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function Zz(e){const t=XS(e);return qS(e)(t.map(Qz))}const cr={test:Gz,parse:XS,createTransformer:qS,getAnimatableNone:Zz},Jz=new Set(["brightness","contrast","saturate","opacity"]);function e3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bh)||[];if(!r)return e;const o=n.replace(r,"");let i=Jz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const t3=/\b([a-z-]*)\(.*?\)/gu,nf={...cr,getAnimatableNone:e=>{const t=e.match(t3);return t?t.map(e3).join(" "):e}},n3={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B},r3={rotate:Nn,rotateX:Nn,rotateY:Nn,rotateZ:Nn,scale:va,scaleX:va,scaleY:va,scaleZ:va,skew:Nn,skewX:Nn,skewY:Nn,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:bs,originX:Lg,originY:Lg,originZ:B},Ng={...Zo,transform:Math.round},Oh={...n3,...r3,zIndex:Ng,size:B,fillOpacity:bs,strokeOpacity:bs,numOctaves:Ng},o3={...Oh,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:nf,WebkitFilter:nf},Nh=e=>o3[e];function QS(e,t){let n=Nh(e);return n!==nf&&(n=cr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const i3=new Set(["auto","none","0"]);function s3(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Wh(e){return typeof e=="function"}let Ha;function a3(){Ha=void 0}const fn={now:()=>(Ha===void 0&&fn.set(Be.isProcessing||wz.useManualTiming?Be.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(a3)}},Wg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(cr.test(e)||e==="0")&&!e.startsWith("url("));function l3(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nc3?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Oz(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=fn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!u3(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(gu(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ho=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},eb=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i{const c=u*s,d=c*e,f=c-n,y=rf(u,s),v=Math.exp(-d);return $c-f/y*v},i=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),S=rf(Math.pow(u,2),s);return(-o(u)+$c>0?-1:1)*((f-y)*v)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-$c+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=p3(o,i,a);if(e=_n(e),isNaN(l))return{stiffness:be.stiffness,damping:be.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const h3=12;function p3(e,t,n){let r=n;for(let o=1;o=of?1/0:t}const m3=["duration","bounce"],g3=["stiffness","damping","mass"];function Ug(e,t){return t.some(n=>e[n]!==void 0)}function y3(e){let t={velocity:be.velocity,stiffness:be.stiffness,damping:be.damping,mass:be.mass,isResolvedFromDuration:!1,...e};if(!Ug(e,g3)&&Ug(e,m3))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Mn(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:be.mass,stiffness:o,damping:i}}else{const n=f3(e);t={...t,...n,mass:be.mass},t.isResolvedFromDuration=!0}return t}function ob(e=be.visualDuration,t=be.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=y3({...n,velocity:-Pn(n.velocity||0)}),v=f||0,S=u/(2*Math.sqrt(l*c)),P=s-i,m=Pn(Math.sqrt(l/c)),h=Math.abs(P)<5;r||(r=h?be.restSpeed.granular:be.restSpeed.default),o||(o=h?be.restDelta.granular:be.restDelta.default);let p;if(S<1){const x=rf(m,S);p=T=>{const C=Math.exp(-S*m*T);return s-C*((v+S*m*P)/x*Math.sin(x*T)+P*Math.cos(x*T))}}else if(S===1)p=x=>s-Math.exp(-m*x)*(P+(v+m*P)*x);else{const x=m*Math.sqrt(S*S-1);p=T=>{const C=Math.exp(-S*m*T),$=Math.min(x*T,300);return s-C*((v+S*m*P)*Math.sinh($)+x*P*Math.cosh($))/x}}const b={calculatedDuration:y&&d||null,next:x=>{const T=p(x);if(y)a.done=x>=d;else{let C=0;S<1&&(C=x===0?_n(v):nb(p,x,T));const $=Math.abs(C)<=r,R=Math.abs(s-T)<=o;a.done=$&&R}return a.value=a.done?s:T,a},toString:()=>{const x=Math.min(rb(b),of),T=eb(C=>b.next(x*C).value,x,30);return x+"ms "+T}};return b}function Hg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=$=>a!==void 0&&$l,v=$=>a===void 0?l:l===void 0||Math.abs(a-$)-S*Math.exp(-$/r),p=$=>m+h($),b=$=>{const R=h($),M=p($);f.done=Math.abs(R)<=u,f.value=f.done?m:M};let x,T;const C=$=>{y(f.value)&&(x=$,T=ob({keyframes:[f.value,v(f.value)],velocity:nb(p,$,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:$=>{let R=!1;return!T&&x===void 0&&(R=!0,b($),C($)),x!==void 0&&$>=x?T.next($-x):(!R&&b($),f)}}}const v3=Rs(.42,0,1,1),S3=Rs(0,0,.58,1),ib=Rs(.42,0,.58,1),b3=e=>Array.isArray(e)&&typeof e[0]!="number",Uh=e=>Array.isArray(e)&&typeof e[0]=="number",Kg={linear:Xe,easeIn:v3,easeInOut:ib,easeOut:S3,circIn:Lh,circInOut:LS,circOut:IS,backIn:Ih,backInOut:MS,backOut:zS,anticipate:DS},Gg=e=>{if(Uh(e)){Zd(e.length===4);const[t,n,r,o]=e;return Rs(t,n,r,o)}else if(typeof e=="string")return Zd(Kg[e]!==void 0),Kg[e];return e},x3=(e,t)=>n=>t(e(n)),ir=(...e)=>e.reduce(x3),ge=(e,t,n)=>e+(t-e)*n;function Ac(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 w3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Ac(l,a,e+1/3),i=Ac(l,a,e),s=Ac(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function _l(e,t){return n=>n>0?t:e}const Rc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},k3=[tf,$r,yo],C3=e=>k3.find(t=>t.test(e));function Yg(e){const t=C3(e);if(!t)return!1;let n=t.parse(e);return t===yo&&(n=w3(n)),n}const Xg=(e,t)=>{const n=Yg(e),r=Yg(t);if(!n||!r)return _l(e,t);const o={...n};return i=>(o.red=Rc(n.red,r.red,i),o.green=Rc(n.green,r.green,i),o.blue=Rc(n.blue,r.blue,i),o.alpha=ge(n.alpha,r.alpha,i),$r.transform(o))},sf=new Set(["none","hidden"]);function T3(e,t){return sf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _3(e,t){return n=>ge(e,t,n)}function Hh(e){return typeof e=="number"?_3:typeof e=="string"?jh(e)?_l:Ke.test(e)?Xg:$3:Array.isArray(e)?sb:typeof e=="object"?Ke.test(e)?Xg:P3:_l}function sb(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Hh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function E3(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=cr.createTransformer(t),r=xs(e),o=xs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?sf.has(e)&&!o.values.length||sf.has(t)&&!r.values.length?T3(e,t):ir(sb(E3(r,o),o.values),n):_l(e,t)};function ab(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ge(e,t,n):Hh(e)(e,t)}function A3(e,t,n){const r=[],o=n||ab,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=A3(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Mn(e[0],e[i-1],u)):l}function z3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ho(0,t,r);e.push(ge(n,1,o))}}function M3(e){const t=[0];return z3(t,e.length-1),t}function D3(e,t){return e.map(n=>n*t)}function I3(e,t){return e.map(()=>t||ib).splice(0,e.length-1)}function Pl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=b3(r)?r.map(Gg):Gg(r),i={done:!1,value:t[0]},s=D3(n&&n.length===t.length?n:M3(t),e),a=R3(s,t,{ease:Array.isArray(o)?o:I3(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const L3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>re.update(t,!0),stop:()=>ur(t),now:()=>Be.isProcessing?Be.timestamp:fn.now()}},j3={decay:Hg,inertia:Hg,tween:Pl,keyframes:Pl,spring:ob},F3=e=>e/100;class Kh extends JS{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:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Fh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Wh(n)?n:j3[n]||Pl;let l,u;a!==Pl&&typeof t[0]!="number"&&(l=ir(F3,ab(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=rb(c));const{calculatedDuration:d}=c,f=d+o,y=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}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:$}=this.options;return{done:!0,value:$[$.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:y,repeatType:v,repeatDelay:S,onUpdate:P}=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 m=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let p=this.currentTime,b=i;if(y){const $=Math.min(this.currentTime,c)/d;let R=Math.floor($),M=$%1;!M&&$>=1&&(M=1),M===1&&R--,R=Math.min(R,y+1),!!(R%2)&&(v==="reverse"?(M=1-M,S&&(M-=S/d)):v==="mirror"&&(b=s)),p=Mn(0,1,M)*d}const x=h?{done:!1,value:l[0]}:b.next(p);a&&(x.value=a(x.value));let{done:T}=x;!h&&u!==null&&(T=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return C&&o!==void 0&&(x.value=gu(l,this.options,o)),P&&P(x.value),C&&this.finish(),x}get duration(){const{resolved:t}=this;return t?Pn(t.calculatedDuration):0}get time(){return Pn(this.currentTime)}set time(t){t=_n(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=Pn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=L3,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=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 B3=new Set(["opacity","clipPath","filter","transform"]);function Gh(e){let t;return()=>(t===void 0&&(t=e()),t)}const V3={linearEasing:void 0};function O3(e,t){const n=Gh(e);return()=>{var r;return(r=V3[t])!==null&&r!==void 0?r:n()}}const El=O3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function lb(e){return!!(typeof e=="function"&&El()||!e||typeof e=="string"&&(e in af||El())||Uh(e)||Array.isArray(e)&&e.every(lb))}const Ei=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,af={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ei([0,.65,.55,1]),circOut:Ei([.55,0,1,.45]),backIn:Ei([.31,.01,.66,-.59]),backOut:Ei([.33,1.53,.69,.99])};function ub(e,t){if(e)return typeof e=="function"&&El()?eb(e,t):Uh(e)?Ei(e):Array.isArray(e)?e.map(n=>ub(n,t)||af.easeOut):af[e]}function N3(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=ub(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function qg(e,t){e.timeline=t,e.onfinish=null}const W3=Gh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$l=10,U3=2e4;function H3(e){return Wh(e.type)||e.type==="spring"||!lb(e.ease)}function K3(e,t){const n=new Kh({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&El()&&G3(s)&&(s=cb[s]),H3(this.options)){const{onComplete:f,onUpdate:y,motionValue:v,element:S,...P}=this.options,m=K3(t,P);t=m.keyframes,t.length===1&&(t[1]=t[0]),o=m.duration,i=m.times,s=m.ease,a="keyframes"}const d=N3(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(qg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(gu(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Pn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Pn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=_n(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 Xe;const{animation:r}=n;qg(r,t)}return Xe}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:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...y}=this.options,v=new Kh({...y,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),S=_n(this.time);u.setWithVelocity(v.sample(S-$l).value,v.sample(S).value,$l)}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:o,repeatType:i,damping:s,type:a}=t;return W3()&&r&&B3.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const Y3=Gh(()=>window.ScrollTimeline!==void 0);class X3{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;rY3()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function q3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Yh=(e,t,n,r={},o,i)=>s=>{const a=Dh(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-_n(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};q3(a)||(c={...c,...xz(e,c)}),c.duration&&(c.duration=_n(c.duration)),c.repeatDelay&&(c.repeatDelay=_n(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=gu(c.keyframes,a);if(f!==void 0)return re.update(()=>{c.onUpdate(f),c.onComplete()}),new X3([])}return!i&&Qg.supports(c)?new Qg(c):new Kh(c)},Q3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Z3=e=>Qd(e)?e[e.length-1]||0:e;function Xh(e,t){e.indexOf(t)===-1&&e.push(t)}function qh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qh{constructor(){this.subscriptions=[]}add(t){return Xh(this.subscriptions,t),()=>qh(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class eM{constructor(t,n={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=fn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=J3(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 Qh);const r=this.events[t].add(n);return t==="change"?()=>{r(),re.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=fn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zg);return tb(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 ws(e,t){return new eM(e,t)}function tM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ws(n))}function nM(e,t){const n=mu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Z3(i[s]);tM(e,s,a)}}const Zh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rM="framerAppearId",db="data-"+Zh(rM);function fb(e){return e.props[db]}const Ye=e=>!!(e&&e.getVelocity);function oM(e){return!!(Ye(e)&&e.add)}function lf(e,t){const n=e.getValue("willChange");if(oM(n))return n.add(t)}function iM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function hb(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||c&&iM(c,d))continue;const v={delay:n,...Dh(s||{},d)};let S=!1;if(window.MotionHandoffAnimation){const m=fb(e);if(m){const h=window.MotionHandoffAnimation(m,d,re);h!==null&&(v.startTime=h,S=!0)}}lf(e,d),f.start(Yh(d,f,y,e.shouldReduceMotion&&Ur.has(d)?{type:!1}:v,e,S));const P=f.animation;P&&u.push(P)}return a&&Promise.all(u).then(()=>{re.update(()=>{a&&nM(e,a)})}),u}function uf(e,t,n={}){var r;const o=mu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(hb(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return sM(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function sM(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(aM).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(uf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function aM(e,t){return e.sortNodePosition(t)}function lM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>uf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=uf(e,t,n);else{const o=typeof t=="function"?mu(e,t,n.custom):t;r=Promise.all(hb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uM=Mh.length;function pb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?pb(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})=>lM(e,n,r)))}function hM(e){let t=fM(e),n=Jg(),r=!0;const o=l=>(u,c)=>{var d;const f=mu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:v,...S}=f;u={...u,...S,...v}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=pb(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let P=0;Pv&&b,R=!1;const M=Array.isArray(p)?p:[p];let O=M.reduce(o(m),{});x===!1&&(O={});const{prevResolvedValues:Se={}}=h,W={...Se,...O},$e=we=>{$=!0,f.has(we)&&(R=!0,f.delete(we)),h.needsAnimating[we]=!0;const D=e.getValue(we);D&&(D.liveStyle=!1)};for(const we in W){const D=O[we],V=Se[we];if(y.hasOwnProperty(we))continue;let N=!1;Qd(D)&&Qd(V)?N=!PS(D,V):N=D!==V,N?D!=null?$e(we):f.add(we):D!==void 0&&f.has(we)?$e(we):h.protectedKeys[we]=!0}h.prevProp=p,h.prevResolvedValues=O,h.isActive&&(y={...y,...O}),r&&e.blockInitialAnimation&&($=!1),$&&(!(T&&C)||R)&&d.push(...M.map(we=>({animation:we,options:{type:m}})))}if(f.size){const P={};f.forEach(m=>{const h=e.getBaseTarget(m),p=e.getValue(m);p&&(p.liveStyle=!0),P[m]=h??null}),d.push({animation:P})}let S=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):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(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Jg(),r=!0}}}function pM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!PS(t,e):!1}function Sr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jg(){return{animate:Sr(!0),whileInView:Sr(),whileHover:Sr(),whileTap:Sr(),whileDrag:Sr(),whileFocus:Sr(),exit:Sr()}}class pr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mM extends pr{constructor(t){super(t),t.animationState||(t.animationState=hM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pu(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 gM=0;class yM extends pr{constructor(){super(...arguments),this.id=gM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const vM={animation:{Feature:mM},exit:{Feature:yM}};function SM(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Vt={x:!1,y:!1};function mb(){return Vt.x||Vt.y}function e0(e){return t=>{t.pointerType==="touch"||mb()||e(t)}}function bM(e,t,n={}){const r=new AbortController,o={passive:!0,...n,signal:r.signal},i=e0(s=>{const{target:a}=s,l=t(s);if(!l||!a)return;const u=e0(c=>{l(c),a.removeEventListener("pointerleave",u)});a.addEventListener("pointerleave",u,o)});return SM(e).forEach(s=>{s.addEventListener("pointerenter",i,o)}),()=>r.abort()}function xM(e){return e==="x"||e==="y"?Vt[e]?null:(Vt[e]=!0,()=>{Vt[e]=!1}):Vt.x||Vt.y?null:(Vt.x=Vt.y=!0,()=>{Vt.x=Vt.y=!1})}const gb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ms(e){return{point:{x:e.pageX,y:e.pageY}}}const wM=e=>t=>gb(t)&&e(t,Ms(t));function kn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function sr(e,t,n,r){return kn(e,t,wM(n),r)}const t0=(e,t)=>Math.abs(e-t);function kM(e,t){const n=t0(e.x,t.x),r=t0(e.y,t.y);return Math.sqrt(n**2+r**2)}class yb{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!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 d=Mc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=kM(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:v}=d,{timestamp:S}=Be;this.history.push({...v,timestamp:S});const{onStart:P,onMove:m}=this.handlers;f||(P&&P(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=zc(f,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Mc(d.type==="pointercancel"?this.lastMoveEventInfo:zc(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,P),v&&v(d,P)},!gb(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ms(t),a=zc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Be;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Mc(a,this.history)),this.removeListeners=ir(sr(this.contextWindow,"pointermove",this.handlePointerMove),sr(this.contextWindow,"pointerup",this.handlePointerUp),sr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ur(this.updatePoint)}}function zc(e,t){return t?{point:t(e.point)}:e}function n0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mc({point:e},t){return{point:e,delta:n0(e,vb(t)),offset:n0(e,CM(t)),velocity:TM(t,.1)}}function CM(e){return e[0]}function vb(e){return e[e.length-1]}function TM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=vb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_n(t)));)n--;if(!r)return{x:0,y:0};const i=Pn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function vo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Sb=1e-4,_M=1-Sb,PM=1+Sb,bb=.01,EM=0-bb,$M=0+bb;function bt(e){return e.max-e.min}function AM(e,t,n){return Math.abs(e-t)<=n}function r0(e,t,n,r=.5){e.origin=r,e.originPoint=ge(t.min,t.max,e.origin),e.scale=bt(n)/bt(t),e.translate=ge(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_M&&e.scale<=PM||isNaN(e.scale))&&(e.scale=1),(e.translate>=EM&&e.translate<=$M||isNaN(e.translate))&&(e.translate=0)}function Gi(e,t,n,r){r0(e.x,t.x,n.x,r?r.originX:void 0),r0(e.y,t.y,n.y,r?r.originY:void 0)}function o0(e,t,n){e.min=n.min+t.min,e.max=e.min+bt(t)}function RM(e,t,n){o0(e.x,t.x,n.x),o0(e.y,t.y,n.y)}function i0(e,t,n){e.min=t.min-n.min,e.max=e.min+bt(t)}function Yi(e,t,n){i0(e.x,t.x,n.x),i0(e.y,t.y,n.y)}function zM(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ge(n,e,r.max):Math.min(e,n)),e}function s0(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 MM(e,{top:t,left:n,bottom:r,right:o}){return{x:s0(e.x,n,o),y:s0(e.y,t,r)}}function a0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ho(t.min,t.max-r,e.min):r>o&&(n=Ho(e.min,e.max-o,t.min)),Mn(0,1,n)}function LM(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 cf=.35;function jM(e=cf){return e===!1?e=0:e===!0&&(e=cf),{x:l0(e,"left","right"),y:l0(e,"top","bottom")}}function l0(e,t,n){return{min:u0(e,t),max:u0(e,n)}}function u0(e,t){return typeof e=="number"?e:e[t]||0}const c0=()=>({translate:0,scale:1,origin:0,originPoint:0}),So=()=>({x:c0(),y:c0()}),d0=()=>({min:0,max:0}),ke=()=>({x:d0(),y:d0()});function Pt(e){return[e("x"),e("y")]}function xb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function FM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function BM(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 Dc(e){return e===void 0||e===1}function df({scale:e,scaleX:t,scaleY:n}){return!Dc(e)||!Dc(t)||!Dc(n)}function wr(e){return df(e)||wb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wb(e){return f0(e.x)||f0(e.y)}function f0(e){return e&&e!=="0%"}function Al(e,t,n){const r=e-n,o=t*r;return n+o}function h0(e,t,n,r,o){return o!==void 0&&(e=Al(e,o,r)),Al(e,n,r)+t}function ff(e,t=0,n=1,r,o){e.min=h0(e.min,t,n,r,o),e.max=h0(e.max,t,n,r,o)}function kb(e,{x:t,y:n}){ff(e.x,t.translate,t.scale,t.originPoint),ff(e.y,n.translate,n.scale,n.originPoint)}const p0=.999999999999,m0=1.0000000000001;function VM(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;ap0&&(t.x=1),t.yp0&&(t.y=1)}function bo(e,t){e.min=e.min+t,e.max=e.max+t}function g0(e,t,n,r,o=.5){const i=ge(e.min,e.max,o);ff(e,t,n,i,r)}function xo(e,t){g0(e.x,t.x,t.scaleX,t.scale,t.originX),g0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cb(e,t){return xb(BM(e.getBoundingClientRect(),t))}function OM(e,t,n){const r=Cb(e,n),{scroll:o}=t;return o&&(bo(r.x,o.offset.x),bo(r.y,o.offset.y)),r}const Tb=({current:e})=>e?e.ownerDocument.defaultView:null,NM=new WeakMap;class WM{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ke(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ms(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:v}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xM(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pt(P=>{let m=this.getAxisMotionValue(P).get()||0;if(dn.test(m)){const{projection:h}=this.visualElement;if(h&&h.layout){const p=h.layout.layoutBox[P];p&&(m=bt(p)*(parseFloat(m)/100))}}this.originPoint[P]=m}),v&&re.postRender(()=>v(c,d)),lf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:v,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:P}=d;if(y&&this.currentDirection===null){this.currentDirection=UM(P),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,P),this.updateAxis("y",d.point,P),this.visualElement.render(),S&&S(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Pt(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new yb(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Tb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&re.postRender(()=>i(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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Sa(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=zM(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&vo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=MM(o.layoutBox,n):this.constraints=!1,this.elastic=jM(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Pt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=LM(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!vo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=OM(r,o.root,this.visualElement.getTransformPagePoint());let s=DM(o.layout.layoutBox,i);if(n){const a=n(FM(s));this.hasMutatedConstraints=!!a,a&&(s=xb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Pt(c=>{if(!Sa(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,y=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return lf(this.visualElement,t),r.start(Yh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Pt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pt(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(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Pt(n=>{const{drag:r}=this.getProps();if(!Sa(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ge(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!vo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Pt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=IM({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Pt(s=>{if(!Sa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ge(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;NM.set(this.visualElement,this);const t=this.visualElement.current,n=sr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();vo(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),re.read(r);const s=kn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=cf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Sa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function UM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HM extends pr{constructor(t){super(t),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new WM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const y0=e=>(t,n)=>{e&&re.postRender(()=>e(t,n))};class KM extends pr{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(t){this.session=new yb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:y0(t),onStart:y0(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&re.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=sr(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 Ds=_.createContext(null);function GM(){const e=_.useContext(Ds);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.useId();_.useEffect(()=>r(o),[]);const i=_.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function YM(){return XM(_.useContext(Ds))}function XM(e){return e===null?!0:e.isPresent}const Jh=_.createContext({}),_b=_.createContext({}),Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function v0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=v0(e,t.target.x),r=v0(e,t.target.y);return`${n}% ${r}%`}},qM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=cr.parse(e);if(o.length>5)return r;const i=cr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ge(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},Rl={};function QM(e){Object.assign(Rl,e)}const{schedule:ep,cancel:uL}=ES(queueMicrotask,!1);class ZM extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;QM(JM),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||re.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ep.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Pb(e){const[t,n]=GM(),r=_.useContext(Jh);return E.jsx(ZM,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(_b),isPresent:t,safeToRemove:n})}const JM={borderRadius:{...vi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vi,borderTopRightRadius:vi,borderBottomLeftRadius:vi,borderBottomRightRadius:vi,boxShadow:qM},Eb=["TopLeft","TopRight","BottomLeft","BottomRight"],e4=Eb.length,S0=e=>typeof e=="string"?parseFloat(e):e,b0=e=>typeof e=="number"||B.test(e);function t4(e,t,n,r,o,i){o?(e.opacity=ge(0,n.opacity!==void 0?n.opacity:1,n4(r)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,r4(r))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Ho(e,t,r))}function w0(e,t){e.min=t.min,e.max=t.max}function Tt(e,t){w0(e.x,t.x),w0(e.y,t.y)}function k0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function C0(e,t,n,r,o){return e-=t,e=Al(e,1/n,r),o!==void 0&&(e=Al(e,1/o,r)),e}function o4(e,t=0,n=1,r=.5,o,i=e,s=e){if(dn.test(t)&&(t=parseFloat(t),t=ge(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ge(i.min,i.max,r);e===i&&(a-=t),e.min=C0(e.min,t,n,a,o),e.max=C0(e.max,t,n,a,o)}function T0(e,t,[n,r,o],i,s){o4(e,t[n],t[r],t[o],t.scale,i,s)}const i4=["x","scaleX","originX"],s4=["y","scaleY","originY"];function _0(e,t,n,r){T0(e.x,t,i4,n?n.x:void 0,r?r.x:void 0),T0(e.y,t,s4,n?n.y:void 0,r?r.y:void 0)}function P0(e){return e.translate===0&&e.scale===1}function Ab(e){return P0(e.x)&&P0(e.y)}function E0(e,t){return e.min===t.min&&e.max===t.max}function a4(e,t){return E0(e.x,t.x)&&E0(e.y,t.y)}function $0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rb(e,t){return $0(e.x,t.x)&&$0(e.y,t.y)}function A0(e){return bt(e.x)/bt(e.y)}function R0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class l4{constructor(){this.members=[]}add(t){Xh(this.members,t),t.scheduleRender()}remove(t){if(qh(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 u4(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const c4=(e,t)=>e.depth-t.depth;class d4{constructor(){this.children=[],this.isDirty=!1}add(t){Xh(this.children,t),this.isDirty=!0}remove(t){qh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(c4),this.isDirty=!1,this.children.forEach(t)}}function Ga(e){const t=Ye(e)?e.get():e;return Q3(t)?t.toValue():t}function f4(e,t){const n=fn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(ur(r),e(i-t))};return re.read(r,!0),()=>ur(r)}function h4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function p4(e,t,n){const r=Ye(e)?e:ws(e);return r.start(Yh("",r,t,n)),r.animation}const kr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},$i=typeof window<"u"&&window.MotionDebug!==void 0,Ic=["","X","Y","Z"],m4={visibility:"hidden"},z0=1e3;let g4=0;function Lc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",re,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zb(r)}function Mb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=g4++,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,$i&&(kr.totalNodes=kr.resolvedTargetDeltas=kr.recalculatedProjection=0),this.nodes.forEach(S4),this.nodes.forEach(C4),this.nodes.forEach(T4),this.nodes.forEach(b4),$i&&window.MotionDebug.record(kr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=f4(f,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(D0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||A4,{onLayoutAnimationStart:P,onLayoutAnimationComplete:m}=c.getProps(),h=!this.targetLayout||!Rb(this.targetLayout,v)||y,p=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||p||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,p);const b={...Dh(S,"layout"),onPlay:P,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||D0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ur(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(_4),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zb(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 x=b/1e3;I0(d.x,s.x,x),I0(d.y,s.y,x),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),E4(this.relativeTarget,this.relativeTargetOrigin,f,x),p&&a4(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=ke()),Tt(p,this.relativeTarget)),S&&(this.animationValues=c,t4(c,u,this.latestValues,x,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ur(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=p4(0,z0,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(z0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Db(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ke();const d=bt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=bt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Tt(a,l),xo(a,c),Gi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new l4),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Lc("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(M0),this.root.sharedNodes.clear()}}}function y4(e){e.updateLayout()}function v4(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:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Pt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=bt(f);f.min=r[d].min,f.max=f.min+y}):Db(i,n.layoutBox,r)&&Pt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=bt(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=So();Gi(a,r,n.layoutBox);const l=So();s?Gi(l,e.applyTransform(o,!0),n.measuredBox):Gi(l,r,n.layoutBox);const u=!Ab(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=ke();Yi(v,n.layoutBox,f.layoutBox);const S=ke();Yi(S,r,y.layoutBox),Rb(v,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=v,e.relativeParent=d)}}}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 S4(e){$i&&kr.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 b4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function x4(e){e.clearSnapshot()}function M0(e){e.clearMeasurements()}function w4(e){e.isLayoutDirty=!1}function k4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function D0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function C4(e){e.resolveTargetDelta()}function T4(e){e.calcProjection()}function _4(e){e.resetSkewAndRotation()}function P4(e){e.removeLeadSnapshot()}function I0(e,t,n){e.translate=ge(t.translate,0,n),e.scale=ge(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function L0(e,t,n,r){e.min=ge(t.min,n.min,r),e.max=ge(t.max,n.max,r)}function E4(e,t,n,r){L0(e.x,t.x,n.x,r),L0(e.y,t.y,n.y,r)}function $4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const A4={duration:.45,ease:[.4,0,.1,1]},j0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),F0=j0("applewebkit/")&&!j0("chrome/")?Math.round:Xe;function B0(e){e.min=F0(e.min),e.max=F0(e.max)}function R4(e){B0(e.x),B0(e.y)}function Db(e,t,n){return e==="position"||e==="preserve-aspect"&&!AM(A0(t),A0(n),.2)}function z4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const M4=Mb({attachResizeListener:(e,t)=>kn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jc={current:void 0},Ib=Mb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){const e=new M4({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),D4={pan:{Feature:KM},drag:{Feature:HM,ProjectionNode:Ib,MeasureLayout:Pb}};function V0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n);const o=r[n?"onHoverStart":"onHoverEnd"];o&&re.postRender(()=>o(t,Ms(t)))}class I4 extends pr{mount(){const{current:t,props:n}=this.node;t&&(this.unmount=bM(t,r=>(V0(this.node,r,!0),o=>V0(this.node,o,!1)),{passive:!n.onHoverStart&&!n.onHoverEnd}))}unmount(){}}class L4 extends pr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ir(kn(this.node.current,"focus",()=>this.onFocus()),kn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Lb=(e,t)=>t?e===t?!0:Lb(e,t.parentElement):!1;function Fc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ms(n))}class j4 extends pr{constructor(){super(...arguments),this.removeStartListeners=Xe,this.removeEndListeners=Xe,this.removeAccessibleListeners=Xe,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=sr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!Lb(this.node.current,a.target)?c:u;f&&re.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=sr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ir(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Fc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&re.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=kn(this.node.current,"keyup",s),Fc("down",(a,l)=>{this.startPress(a,l)})},n=kn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Fc("cancel",(i,s)=>this.cancelPress(i,s))},o=kn(this.node.current,"blur",r);this.removeAccessibleListeners=ir(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&re.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&re.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=sr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=kn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ir(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const hf=new WeakMap,Bc=new WeakMap,F4=e=>{const t=hf.get(e.target);t&&t(e)},B4=e=>{e.forEach(F4)};function V4({root:e,...t}){const n=e||document;Bc.has(n)||Bc.set(n,{});const r=Bc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(B4,{root:e,...t})),r[o]}function O4(e,t,n){const r=V4(t);return hf.set(e,n),r.observe(e),()=>{hf.delete(e),r.unobserve(e)}}const N4={some:0,all:1};class W4 extends pr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:N4[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return O4(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(U4(t,n))&&this.startObserver()}unmount(){}}function U4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const H4={inView:{Feature:W4},tap:{Feature:j4},focus:{Feature:L4},hover:{Feature:I4}},K4={layout:{ProjectionNode:Ib,MeasureLayout:Pb}},tp=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),yu=_.createContext({}),np=typeof window<"u",jb=np?_.useLayoutEffect:_.useEffect,Fb=_.createContext({strict:!1});function G4(e,t,n,r,o){var i,s;const{visualElement:a}=_.useContext(yu),l=_.useContext(Fb),u=_.useContext(Ds),c=_.useContext(tp).reducedMotion,d=_.useRef();r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=_.useContext(_b);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&Y4(d.current,n,o,y);const v=_.useRef(!1);_.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const S=n[db],P=_.useRef(!!S&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,S))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,S)));return jb(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ep.render(f.render),P.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!P.current&&f.animationState&&f.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,S)}),P.current=!1))}),f}function Y4(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Bb(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&vo(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Bb(e){if(e)return e.options.allowProjection!==!1?e.projection:Bb(e.parent)}function X4(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):vo(n)&&(n.current=r))},[t])}function vu(e){return pu(e.animate)||Mh.some(t=>Ss(e[t]))}function Vb(e){return!!(vu(e)||e.variants)}function q4(e,t){if(vu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ss(n)?n:void 0,animate:Ss(r)?r:void 0}}return e.inherit!==!1?t:{}}function Q4(e){const{initial:t,animate:n}=q4(e,_.useContext(yu));return _.useMemo(()=>({initial:t,animate:n}),[O0(t),O0(n)])}function O0(e){return Array.isArray(e)?e.join(" "):e}const N0={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"]},Ko={};for(const e in N0)Ko[e]={isEnabled:t=>N0[e].some(n=>!!t[n])};function Z4(e){for(const t in e)Ko[t]={...Ko[t],...e[t]}}const J4=Symbol.for("motionComponentSymbol");function eD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Z4(e);function i(a,l){let u;const c={..._.useContext(tp),...a,layoutId:tD(a)},{isStatic:d}=c,f=Q4(a),y=r(a,d);if(!d&&np){nD();const v=rD(c);u=v.MeasureLayout,f.visualElement=G4(o,y,c,t,v.ProjectionNode)}return E.jsxs(yu.Provider,{value:f,children:[u&&f.visualElement?E.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,X4(y,f.visualElement,l),y,d,f.visualElement)]})}const s=_.forwardRef(i);return s[J4]=o,s}function tD({layoutId:e}){const t=_.useContext(Jh).id;return t&&e!==void 0?t+"-"+e:e}function nD(e,t){_.useContext(Fb).strict}function rD(e){const{drag:t,layout:n}=Ko;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const oD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rp(e){return typeof e!="string"||e.includes("-")?!1:!!(oD.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ob(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Nb=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 Wb(e,t,n,r){Ob(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Nb.has(o)?o:Zh(o),t.attrs[o])}function Ub(e,{layout:t,layoutId:n}){return Ur.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rl[e]||e==="opacity")}function op(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ye(o[s])||t.style&&Ye(t.style[s])||Ub(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function Hb(e,t,n){const r=op(e,t,n);for(const o in e)if(Ye(e[o])||Ye(t[o])){const i=As.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function ip(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}function iD({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:sD(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Kb=e=>(t,n)=>{const r=_.useContext(yu),o=_.useContext(Ds),i=()=>iD(e,t,r,o);return n?i():ip(i)};function sD(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Ga(i[f]);let{initial:s,animate:a}=e;const l=vu(e),u=Vb(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!pu(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),Gb=()=>({...sp(),attrs:{}}),Yb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,aD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lD=As.length;function uD(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",pD={useVisualState:Kb({scrapeMotionValuesFromProps:Hb,createRenderState:Gb,onMount:(e,t,{renderState:n,latestValues:r})=>{re.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),re.render(()=>{lp(n,r,up(t.tagName),e.transformTemplate),Wb(t,n)})}})},mD={useVisualState:Kb({scrapeMotionValuesFromProps:op,createRenderState:sp})};function Xb(e,t,n){for(const r in t)!Ye(t[r])&&!Ub(r,n)&&(e[r]=t[r])}function gD({transformTemplate:e},t){return _.useMemo(()=>{const n=sp();return ap(n,t,e),Object.assign({},n.vars,n.style)},[t])}function yD(e,t){const n=e.style||{},r={};return Xb(r,n,e),Object.assign(r,gD(e,t)),r}function vD(e,t){const n={},r=yD(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 SD=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 zl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||SD.has(e)}let qb=e=>!zl(e);function bD(e){e&&(qb=t=>t.startsWith("on")?!zl(t):e(t))}try{bD(require("@emotion/is-prop-valid").default)}catch{}function xD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(qb(o)||n===!0&&zl(o)||!t&&!zl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function wD(e,t,n,r){const o=_.useMemo(()=>{const i=Gb();return lp(i,t,up(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Xb(i,e.style,e),o.style={...i,...o.style}}return o}function kD(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(rp(n)?wD:vD)(r,i,s,n),u=xD(r,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=_.useMemo(()=>Ye(d)?d.get():d,[d]);return _.createElement(n,{...c,children:f})}}function CD(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...rp(r)?pD:mD,preloadedFeatures:e,useRender:kD(o),createVisualElement:t,Component:r};return eD(s)}}const pf={current:null},Qb={current:!1};function TD(){if(Qb.current=!0,!!np)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pf.current=e.matches;e.addListener(t),t()}else pf.current=!1}function _D(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ye(o))e.addValue(r,o);else if(Ye(i))e.addValue(r,ws(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,ws(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const U0=new WeakMap,PD=[...WS,Ke,cr],ED=e=>PD.find(NS(e)),H0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $D{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Fh,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 f=fn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Qb.current||TD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){U0.delete(this.current),this.projection&&this.projection.unmount(),ur(this.notifyUpdate),ur(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=Ur.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&re.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),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 Ko){const n=Ko[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ke()}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=ws(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(FS(o)||jS(o))?o=parseFloat(o):!ED(o)&&cr.test(n)&&(o=QS(t,n)),this.setBaseTarget(t,Ye(o)?o.get():o)),Ye(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Rh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ye(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Qh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Zb extends $D{constructor(){super(...arguments),this.KeyframeResolver=ZS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ye(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function AD(e){return window.getComputedStyle(e)}class RD extends Zb{constructor(){super(...arguments),this.type="html",this.renderInstance=Ob}readValueFromInstance(t,n){if(Ur.has(n)){const r=Nh(n);return r&&r.default||0}else{const r=AD(t),o=(VS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cb(t,n)}build(t,n,r){ap(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return op(t,n,r)}}class zD extends Zb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ke}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ur.has(n)){const r=Nh(n);return r&&r.default||0}return n=Nb.has(n)?n:Zh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hb(t,n,r)}build(t,n,r){lp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Wb(t,n,r,o)}mount(t){this.isSVGTag=up(t.tagName),super.mount(t)}}const MD=(e,t)=>rp(e)?new zD(t):new RD(t,{allowProjection:e!==_.Fragment}),DD=CD({...vM,...H4,...D4,...K4},MD),Jb=gz(DD);class ID extends _.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 LD({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=_.useContext(tp);return _.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${s}px !important; + height: ${a}px !important; + top: ${l}px !important; + left: ${u}px !important; + } + `),()=>{document.head.removeChild(c)}},[t]),E.jsx(ID,{isPresent:t,childRef:r,sizeRef:o,children:_.cloneElement(e,{ref:r})})}const jD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ip(FD),l=_.useId(),u=_.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),u]:[n,u]);return _.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=E.jsx(LD,{isPresent:n,children:e})),E.jsx(Ds.Provider,{value:c,children:e})};function FD(){return new Map}const ba=e=>e.key||"";function K0(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const BD=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=_.useMemo(()=>K0(e),[e]),l=a.map(ba),u=_.useRef(!0),c=_.useRef(a),d=ip(()=>new Map),[f,y]=_.useState(a),[v,S]=_.useState(a);jb(()=>{u.current=!1,c.current=a;for(let h=0;h{const p=ba(h),b=a===v||l.includes(p),x=()=>{if(d.has(p))d.set(p,!0);else return;let T=!0;d.forEach(C=>{C||(T=!1)}),T&&(m==null||m(),S(c.current),o&&o())};return E.jsx(jD,{isPresent:b,initial:!u.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:x,children:h},p)})})},VD=(e,t)=>e.find(n=>n.id===t);function G0(e,t){const n=ex(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function ex(e,t){for(const[n,r]of Object.entries(e))if(VD(r,t))return n}function OD(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function ND(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var WD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,UD=cS(function(e){return WD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),HD=UD,KD=function(t){return t!=="theme"},Y0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?HD:KD},X0=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},GD=!1,YD=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return gS(n,r,o),QR(function(){return yS(n,r,o)}),null},XD=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=X0(t,n,r),l=a||Y0(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,y=1;yt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=D2(s,bT),l=zt(e,t),u=b2({},o,l,ph(a),i),c=W1(u)(t.theme);return r?[c,r]:c};function Vc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=JD);const o=tI({baseStyle:n}),i=eI(e,r)(o);return _.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:y}=hu(),v=y?f:void 0;return _.createElement(i,{ref:u,"data-theme":v,...d},c)})}function nI(){const e=new Map;return new Proxy(Vc,{apply(t,n,r){return Vc(...r)},get(t,n){return e.has(n)||e.set(n,Vc(n)),e.get(n)}})}const ce=nI(),rI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},tx=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=rI,toastSpacing:c="0.5rem"}=e,[d,f]=_.useState(a),y=YM();lg(()=>{y||r==null||r()},[y]),lg(()=>{f(a)},[a]);const v=()=>f(null),S=()=>f(a),P=()=>{y&&o()};_.useEffect(()=>{y&&i&&o()},[y,i,o]),B2(P,d);const m=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=_.useMemo(()=>OD(s),[s]);return E.jsx(Jb.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:S,custom:{position:s},style:h,children:E.jsx(ce.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:zt(n,{id:t,onClose:P})})})});tx.displayName="ToastComponent";function je(e){return _.forwardRef(e)}var oI=typeof Element<"u",iI=typeof Map=="function",sI=typeof Set=="function",aI=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ya(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ya(e[r],t[r]))return!1;return!0}var i;if(iI&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ya(r.value[1],t.get(r.value[0])))return!1;return!0}if(sI&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(aI&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(oI&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ya(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var lI=function(t,n){try{return Ya(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const uI=yf(lI);function cI(){const e=_.useContext(vs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function nx(){const e=hu(),t=cI();return{...e,theme:t}}function rx(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=nx(),s=e?j1(o,`components.${e}`):void 0,a=n||s,l=sn({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},ph(F1(r,["children"])),(c,d)=>c?void 0:d),u=_.useRef({});if(a){const d=AT(a)(l);uI(u.current,d)||(u.current=d)}return u.current}function Hr(e,t={}){return rx(e,t)}function cp(e,t={}){return rx(e,t)}const q0={path:E.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[E.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),E.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),E.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Jo=je((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Qe("chakra-icon",a),d=Hr("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},y={ref:t,focusable:i,className:c,__css:f},v=r??q0.viewBox;if(n&&typeof n!="string")return E.jsx(ce.svg,{as:n,...y,...u});const S=s??q0.path;return E.jsx(ce.svg,{verticalAlign:"middle",viewBox:v,...y,...u,children:S})});Jo.displayName="Icon";function dI(e){return E.jsx(Jo,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function fI(e){return E.jsx(Jo,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Q0(e){return E.jsx(Jo,{viewBox:"0 0 24 24",...e,children:E.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const hI=nz({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),dp=je((e,t)=>{const n=Hr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Ln(e),u=Qe("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${hI} ${i} linear infinite`,...n};return E.jsx(ce.div,{ref:t,__css:c,className:u,...l,children:r&&E.jsx(ce.span,{srOnly:!0,children:r})})});dp.displayName="Spinner";const[pI,fp]=In({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[mI,hp]=In({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ox={info:{icon:fI,colorScheme:"blue"},warning:{icon:Q0,colorScheme:"orange"},success:{icon:dI,colorScheme:"green"},error:{icon:Q0,colorScheme:"red"},loading:{icon:dp,colorScheme:"blue"}};function gI(e){return ox[e].colorScheme}function yI(e){return ox[e].icon}const ix=je(function(t,n){const{status:r="info",addRole:o=!0,...i}=Ln(t),s=t.colorScheme??gI(r),a=cp("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return E.jsx(pI,{value:{status:r},children:E.jsx(mI,{value:a,children:E.jsx(ce.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:Qe("chakra-alert",t.className),__css:l})})})});ix.displayName="Alert";function sx(e){const{status:t}=fp(),n=yI(t),r=hp(),o=t==="loading"?r.spinner:r.icon;return E.jsx(ce.span,{display:"inherit","data-status":t,...e,className:Qe("chakra-alert__icon",e.className),__css:o,children:e.children||E.jsx(n,{h:"100%",w:"100%"})})}sx.displayName="AlertIcon";const ax=je(function(t,n){const r=hp(),{status:o}=fp();return E.jsx(ce.div,{ref:n,"data-status":o,...t,className:Qe("chakra-alert__title",t.className),__css:r.title})});ax.displayName="AlertTitle";const lx=je(function(t,n){const{status:r}=fp(),o=hp(),i={display:"inline",...o.description};return E.jsx(ce.div,{ref:n,"data-status":r,...t,className:Qe("chakra-alert__desc",t.className),__css:i})});lx.displayName="AlertDescription";function vI(e){return E.jsx(Jo,{focusable:"false","aria-hidden":!0,...e,children:E.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const ux=je(function(t,n){const r=Hr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Ln(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return E.jsx(ce.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||E.jsx(vI,{width:"1em",height:"1em"})})});ux.displayName="CloseButton";const SI=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return E.jsxs(ix,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[E.jsx(sx,{children:u}),E.jsxs(ce.div,{flex:"1",maxWidth:"100%",children:[o&&E.jsx(ax,{id:c==null?void 0:c.title,children:o}),a&&E.jsx(lx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&E.jsx(ux,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function cx(e={}){const{render:t,toastComponent:n=SI}=e;return o=>typeof t=="function"?t({...o,...e}):E.jsx(n,{...o,...e})}const bI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},on=xI(bI);function xI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=wI(o,i),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=G0(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:cx(i)}),a})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{r(i=>{const s=ex(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!G0(on.getState(),o).position}}let Z0=0;function wI(e,t={}){Z0+=1;const n=t.id??Z0,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>on.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[dx,kI]=In({strict:!1,name:"PortalContext"}),pp="chakra-portal",CI=".chakra-portal",TI=e=>E.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),_I=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.useState(null),i=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const a=kI(),l=pz();Fd(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=pp,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?E.jsx(TI,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?fh.createPortal(E.jsx(dx,{value:i.current,children:u}),i.current):E.jsx("span",{ref:c=>{c&&o(c)}})},PI=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=pp),l},[o]),[,a]=_.useState({});return Fd(()=>a({}),[]),Fd(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?fh.createPortal(E.jsx(dx,{value:r?s:null,children:t}),s):null};function Su(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?E.jsx(PI,{containerRef:n,...r}):E.jsx(_I,{...r})}Su.className=pp;Su.selector=CI;Su.displayName="Portal";const[EI,$I]=In({name:"ToastOptionsContext",strict:!1}),AI=e=>{const t=_.useSyncExternalStore(on.subscribe,on.getState,on.getState),{motionVariants:n,component:r=tx,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const u=t[l];return E.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:ND(l),children:E.jsx(BD,{...i,initial:!1,children:u.map(c=>E.jsx(r,{motionVariants:n,...c},c.id))})},l)});return E.jsx(Su,{...o,children:a})},RI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return E.jsxs(mz,{theme:r,...i,children:[E.jsx(EI,{value:o==null?void 0:o.defaultOptions,children:n}),E.jsx(AI,{...o})]})},zI=RI(nR),fx=je(function(t,n){const r=Hr("Badge",t),{className:o,...i}=Ln(t);return E.jsx(ce.span,{ref:n,className:Qe("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});fx.displayName="Badge";const[dL,MI]=In({strict:!1,name:"ButtonGroupContext"});function Ai(e){const{children:t,className:n,...r}=e,o=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Qe("chakra-button__icon",n);return E.jsx(ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Ai.displayName="ButtonIcon";function gf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=E.jsx(dp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Qe("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return E.jsx(ce.div,{className:l,...a,__css:c,children:o})}gf.displayName="ButtonSpinner";function DI(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const mp=je((e,t)=>{const n=MI(),r=Hr("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:y,spinnerPlacement:v="start",className:S,as:P,shouldWrapChildren:m,...h}=Ln(e),p=_.useMemo(()=>{const C={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:C}}},[r,n]),{ref:b,type:x}=DI(P),T={rightIcon:u,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:m};return E.jsxs(ce.button,{disabled:o||i,ref:F2(t,b),as:P,type:f??x,"data-active":Jt(s),"data-loading":Jt(i),__css:p,className:Qe("chakra-button",S),...h,children:[i&&v==="start"&&E.jsx(gf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:y}),i?c||E.jsx(ce.span,{opacity:0,children:E.jsx(J0,{...T})}):E.jsx(J0,{...T}),i&&v==="end"&&E.jsx(gf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:y})]})});mp.displayName="Button";function J0(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?E.jsxs("span",{style:{display:"contents"},children:[t&&E.jsx(Ai,{marginEnd:o,children:t}),r,n&&E.jsx(Ai,{marginStart:o,children:n})]}):E.jsxs(E.Fragment,{children:[t&&E.jsx(Ai,{marginEnd:o,children:t}),r,n&&E.jsx(Ai,{marginStart:o,children:n})]})}const gp=je((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=_.isValidElement(a)?_.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return E.jsx(mp,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});gp.displayName="IconButton";const[II,LI]=In({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[jI,hx]=In({strict:!1,name:"FormControlContext"});function FI(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=_.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,y]=_.useState(!1),[v,S]=_.useState(!1),[P,m]=_.useState(!1),h=_.useCallback((C={},$=null)=>({id:d,...C,ref:Bd($,R=>{R&&S(!0)})}),[d]),p=_.useCallback((C={},$=null)=>({...C,ref:$,"data-focus":Jt(P),"data-disabled":Jt(o),"data-invalid":Jt(r),"data-readonly":Jt(i),id:C.id!==void 0?C.id:u,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,P,r,i,u]),b=_.useCallback((C={},$=null)=>({id:c,...C,ref:Bd($,R=>{R&&y(!0)}),"aria-live":"polite"}),[c]),x=_.useCallback((C={},$=null)=>({...C,...s,ref:$,role:"group","data-focus":Jt(P),"data-disabled":Jt(o),"data-invalid":Jt(r),"data-readonly":Jt(i)}),[s,o,P,r,i]),T=_.useCallback((C={},$=null)=>({...C,ref:$,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!P,onFocus:()=>m(!0),onBlur:()=>m(!1),hasFeedbackText:f,setHasFeedbackText:y,hasHelpText:v,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:b,getRootProps:x,getLabelProps:p,getRequiredIndicatorProps:T}}const BI=je(function(t,n){const r=cp("Form",t),o=Ln(t),{getRootProps:i,htmlProps:s,...a}=FI(o),l=Qe("chakra-form-control",t.className);return E.jsx(jI,{value:a,children:E.jsx(II,{value:r,children:E.jsx(ce.div,{...i({},n),className:l,__css:r.container})})})});BI.displayName="FormControl";const VI=je(function(t,n){const r=hx(),o=LI(),i=Qe("chakra-form__helper-text",t.className);return E.jsx(ce.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});VI.displayName="FormHelperText";function OI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=NI(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":lc(n),"aria-required":lc(o),"aria-readonly":lc(r)}}function NI(e){const t=hx(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:u,onFocus:c,onBlur:d,...f}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&y.push(t.feedbackId),t!=null&&t.hasHelpText&&y.push(t.helpTextId),{...f,"aria-describedby":y.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:sg(t==null?void 0:t.onFocus,c),onBlur:sg(t==null?void 0:t.onBlur,d)}}const WI=new Set(["dark","light","system"]);function UI(e){let t=e;return WI.has(t)||(t="light"),t}function HI(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=UI(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?s:a}`.trim()}function KI(e={}){const{nonce:t}=e;return E.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:HI(e)}})}function yp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=_.Children.toArray(e.path),s=je((a,l)=>E.jsx(Jo,{ref:l,viewBox:t,...o,...a,children:i.length?i:E.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}const vp=je(function(t,n){const{htmlSize:r,...o}=t,i=cp("Input",o),s=Ln(o),a=OI(s),l=Qe("chakra-input",t.className);return E.jsx(ce.input,{size:r,...a,__css:i.field,ref:n,className:l})});vp.displayName="Input";vp.id="Input";const px=ce("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});px.displayName="Spacer";const mx=e=>E.jsx(ce.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});mx.displayName="StackItem";function GI(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":z2(n,o=>r[o])}}const Sp=je((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,y=n?"row":r??"column",v=_.useMemo(()=>GI({spacing:s,direction:y}),[s,y]),S=!!u,P=!d&&!S,m=_.useMemo(()=>{const p=_2(l);return P?p:p.map((b,x)=>{const T=typeof b.key<"u"?b.key:x,C=x+1===p.length,R=d?E.jsx(mx,{children:b},T):b;if(!S)return R;const M=_.cloneElement(u,{__css:v}),O=C?null:M;return E.jsxs(_.Fragment,{children:[R,O]},T)})},[u,v,S,P,d,l]),h=Qe("chakra-stack",c);return E.jsx(ce.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y,flexWrap:a,gap:S?void 0:s,className:h,...f,children:m})});Sp.displayName="Stack";const bp=je((e,t)=>E.jsx(Sp,{align:"center",...e,direction:"row",ref:t}));bp.displayName="HStack";const gx=e=>E.jsx(ce.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});gx.displayName="StackDivider";const xp=je((e,t)=>E.jsx(Sp,{align:"center",...e,direction:"column",ref:t}));xp.displayName="VStack";function YI(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(o==null?void 0:o[t])??n}function XI(e,t){const n=o=>({...t,...o,position:YI((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=cx(i);return on.notify(s,i)};return r.update=(o,i)=>{on.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...zt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...zt(i.error,a)}))},r.closeAll=on.closeAll,r.close=on.close,r.isActive=on.isActive,r}function qI(e){const{theme:t}=nx(),n=$I();return _.useMemo(()=>XI(t.direction,{...n,...e}),[e,t.direction,n])}const yx=je(function(t,n){const r=Hr("Heading",t),{className:o,...i}=Ln(t);return E.jsx(ce.h2,{ref:n,className:Qe("chakra-heading",t.className),...i,__css:r})});yx.displayName="Heading";const vx=je(function(t,n){const r=Hr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Ln(t),u=ph({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return E.jsx(ce.p,{ref:n,className:Qe("chakra-text",t.className),...u,...l,__css:r})});vx.displayName="Text";const QI=({addTodo:e})=>{const t=_.useRef(null),n=qI(),r=i=>n({title:i,status:"error",duration:2e3,isClosable:!0}),o=i=>{if(i.preventDefault(),t.current===null)return;if(!t.current.value){r("This field is required.");return}const s=t.current.value;e(s),t.current.value=""};return E.jsx("form",{onSubmit:o,children:E.jsxs(bp,{m:"8",children:[E.jsx(vp,{variant:"filled",placeholder:"Add new todo",ref:t}),E.jsx(mp,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})},ZI=yp({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),JI=yp({displayName:"SunIcon",path:E.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[E.jsx("circle",{cx:"12",cy:"12",r:"5"}),E.jsx("path",{d:"M12 1v2"}),E.jsx("path",{d:"M12 21v2"}),E.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),E.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),E.jsx("path",{d:"M1 12h2"}),E.jsx("path",{d:"M21 12h2"}),E.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),E.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),eL=yp({displayName:"DeleteIcon",path:E.jsx("g",{fill:"currentColor",children:E.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),tL=({todos:e,deleteTodo:t})=>{if(e.length===0)return E.jsx(fx,{colorScheme:"green",p:"4",m:"4",borderRadius:"lg",children:"No Todos, yay~"});const n={p:"4",w:"100%",maxW:{base:"90vw",sm:"80vw",lg:"50vw",xl:"40vw"},borderColor:"gray.100",borderWidth:"2px",borderRadius:"lg",alignItems:"stretch",divider:E.jsx(gx,{})};return E.jsx(xp,{...n,children:e.map(r=>E.jsxs(bp,{children:[E.jsx(vx,{children:r.body}),E.jsx(px,{}),E.jsx(gp,{"aria-label":"Delete todo",icon:E.jsx(eL,{}),onClick:()=>t(r.id)})]},r.id))})},nL=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,variant:"ghost",icon:t==="light"?E.jsx(ZI,{}):E.jsx(JI,{}),"aria-label":"Switch DarkMode"};return E.jsx(Jb.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:E.jsx(gp,{onClick:e,...n})})},wp=Xl("light");wp.debugLabel="themeAtom";const rL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let oL=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=rL[n[e]&63];return t};const Go=Xl([]);Go.debugLabel="todosAtom";const iL=Xl(null,(e,t,n)=>{const r={id:oL(),body:n};t(Go,[...e(Go),r])}),sL=Xl(null,(e,t,n)=>{const o=e(Go).filter(i=>i.id!==n);t(Go,o)});function aL(){const{colorMode:e,toggleColorMode:t}=hu(),[n,r]=Ld(wp),[o]=Ld(Go),i=Id(iL),s=Id(sL);_.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return E.jsxs(xp,{p:4,children:[E.jsx(nL,{toggleTheme:a,theme:n}),E.jsx(yx,{size:"2xl",children:"Jotai-Todos App"}),E.jsx(QI,{addTodo:i}),E.jsx(tL,{todos:o,deleteTodo:s})]})}const lL=()=>{const[e]=Ld(wp);return E.jsxs(zI,{children:[E.jsx(KI,{initialColorMode:e}),E.jsx(aL,{})]})};A1(document.getElementById("root")).render(E.jsxs(_.StrictMode,{children:[E.jsx(v2,{}),E.jsx(lL,{})]})); diff --git a/index.html b/index.html index ab8baae..45587f8 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Todos - - + +